-
Posts
8 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by RSA
-
-
Thanks all and thanks justsomeguy It works now I just copied the code from the website and u see the extra parentheses I'm disappointed now how can I follow these tutorials now ------------------- The result is Strict Standards: Only variables should be passed by reference in C:\AppServ\www\kids\upload_file.php on line 13 Upload: goog.jpg Type: image/jpeg Size: 12.015625 Kb Stored in: C:\WINDOWS\Temp\php82.tmp Warning: move_uploaded_file(upload/goog.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\AppServ\www\kids\upload_file.php on line 41 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php82.tmp' to 'upload/goog.jpg' in C:\AppServ\www\kids\upload_file.php on line 41 Stored in: upload/goog.jpg
-
Code<?php$allowedExts = array("jpg", "jpeg", "gif", "png");$extension = end(explode(".", $_FILES["file"]["name"]));if ((($_FILES["file"]["type"] == "image/gif")|| ($_FILES["file"]["type"] == "image/jpeg")|| ($_FILES["file"]["type"] == "image/pjpeg"))&& ($_FILES["file"]["size"] < 20000))&& in_array($extension, $allowedExts)) { if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Stored in: " . $_FILES["file"]["tmp_name"]; } }else { echo "Invalid file"; }?>
-
The error Parse error: syntax error, unexpected T_BOOLEAN_AND in C:\AppServ\www\kids\upload_file.php on line 20
-
new in php world and I'am following w3schools lessons but there is an error in w3shools php lessons( in_array) I'm trying to follow and do these steps to upload a file http://www.w3schools.com/php/php_file_upload.asp this code gives me an error in this line&& in_array($extension, $allowedExts))
-
Hello everyone Please Can u help me why the news slider here in this page cannot work ?notice:It was working before adding the Banner rotator slider .I need an urgently solution http://www.al-awtadco.com/egyadmin/awtad/index.html
-
Thanks Ingolme I'll try to do it and I'll attach the final design
-
error in w3shools php lessons( in_array)
in PHP
Posted
Now no errors thanks again u r marvelous :)The result isUpload: goog.jpgType: image/jpegSize: 12.015625 KbStored in: C:\WINDOWS\Temp\php8D.tmpStored in: upload/goog.jpg