File uploading is not working
Posted: Sat Feb 28, 2009 5:25 am
Hiiii,
I am using file uploading in my program but it is not working...
Following is the code..............
<?php
$tmp_name = $_FILES["text_file"]["tmp_name"];
$name = $_FILES["text_file"]["name"];
if(move_uploaded_file($tmp_name, "$uploads_dir/$name"))
echo"file moved proerly!!!";
else
echo"error in file uploading!!!!!!";
?>
Can anybody help me ?????
I am using file uploading in my program but it is not working...
Following is the code..............
<?php
$tmp_name = $_FILES["text_file"]["tmp_name"];
$name = $_FILES["text_file"]["name"];
if(move_uploaded_file($tmp_name, "$uploads_dir/$name"))
echo"file moved proerly!!!";
else
echo"error in file uploading!!!!!!";
?>
Can anybody help me ?????