הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   בעיה לא מובנת בקוד (https://hosts.co.il/forums/showthread.php?t=56282)

Nils 10-11-07 04:55

בעיה לא מובנת בקוד
 
PHP קוד:

<?php

$target_path 
"up/";

$file_size $_FILES['uploadedfile']['size'];

$limit_size "20000";

$url='http://84.94.230.229/~yairsh/upload/up/';

$target_path $target_path basename$_FILES['uploadedfile']['name']); 

if(
move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {

if (
$limit_size $file_size) {
echo 
"הקובץ הועלה בהצלחה!!
:קישור לקובץ
<a href="
.$url.$_FILES['uploadedfile']['name'].">".$url.$_FILES['uploadedfile']['name']."<a/>";
}


     } else{
    echo 
"There was an error uploading the file, please try again!";
           }


?>

לפעמים הוא מעלה,לפעמים הוא מציג את " echo "There was an error uploading the file, please try again!";"

אבל הוא לא מציג שגיאה
לפעמים זה גם פשוט דף ריק \=
אני לא יודע מה לעשות

Striker 10-11-07 06:18

תוסיף OR DIE אחרי כל פונקצייה שאתה משתמש בה, נראה איפה יש שגיאה.


כל הזמנים הם GMT +2. הזמן כעת הוא 21:36.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ