Your Ad Here

New Post/Thread Notification: PHP Forum

Hello,

welcomewiki has just posted in the PHP Forum forum of Wiki Newforum under the title of PHP File Upload.

This thread is located at http://www.wikinewforum.com/showthread.php?t=5865

Here is the message that has just been posted:
***************
*Saving the Uploaded File*

The examples above create a temporary copy of the uploaded files in the PHP temp folder on the server.


The temporary copied files disappears when the script ends. To store the uploaded file we need to copy it to a different location:


<?php
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 20000))
{
if ($_FILES["file"]["error"] > 0)
{
echo "Return Code: " . $_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 "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; if (file_exists("upload/" . $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"upload/" . $_FILES["file"]["name"]);
echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
}
}
}
else
{
echo "Invalid file";
}
?>

The script above checks if the file already exists, if it does not, it copies the file to the specified folder.


*Note:* This example saves the file to a new folder called "upload"
***************

Your Ad Here

FREE TRAINING By World's No.1 Site Wikipedia

Hi

Here the SAP HR Real Blue Print: http://www.wikinewforum.com/showthread.php?t=1410


Join us World's Best FREE SAP HR Training @ www.wikinewforum.com


Online Training (Any time you can log-in)

FREE SAP HR TRAINING

WITH REAL TIME SCREEN SHOTS

By World's No.1 Site Wikipedia



Duration: 40 Days Venue: Wikipedia Website

Timings: Any time you can open and can take training

Support: Any time 24/7

We called as Special training because:

  • Real Time Employees will teach & answers your queries
  • Real Time Scenarios
  • Real Time System screen shots step by step configuration
  • Post training support like Resume & Interview tips with exact requirement, we provide top companies HR email ID's and every day vacancy list.

Special Topics apart from general topics:

  • We teach special topics like following where no any dare to reach
  • Payroll & Time Schema's
  • Payroll & Time PCR's (Personal Calculation Rules)
  • Rates of Pay
  • Factoring/Pro-ration
  • Wage type Valuation
  • Time Quota's & Time Types
  • Time Evaluation
  • Absence Valuation
  • Integration wit FICO & other Modules
  • And more and more....list will not stop
  • Totally End-to-End implementation Process

Visit our Website

www.wikinewforum.com

Free Demo

http://www.wikinewforum.com/showthread.php?p=10222#post10222

Reach us

info@wikinewforum.com

Presented

World No. 1 Site - Wikipedia

Our Aim is to provide FREE SAP Training, hope you join.