Jump to content

RSA

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by RSA

  1. 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
  2. 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
  3. 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"; }?>
  4. The error Parse error: syntax error, unexpected T_BOOLEAN_AND in C:\AppServ\www\kids\upload_file.php on line 20
  5. 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))
  6. 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
  7. RSA

    css help using divs

    Thanks Ingolme I'll try to do it and I'll attach the final design
  8. RSA

    css help using divs

    Hello guys, please, I want to know how to make these divs I tried using width 100% for the banner and footer and it works already but for the menu I've a problem I can't do the same design for it I'm talking about making menu stuck from left like the imgthanks in advance
×
×
  • Create New...