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 ?????
File uploading is not working
Moderator: General Moderators
Re: File uploading is not working
Code: Select all
$tmp_name = $_FILES["text_file"]["tmp_name"];
$name = basename($_FILES["text_file"]["name"]);
$upload_path = $uploads_dir.'/'.$name;
if(move_uploaded_file($tmp_name, $upload_path))
echo"file moved proerly!!!";
else
echo"error in file uploading!!!!!!";
Re: File uploading is not working
It shows error message
error in file uploading!!!!!!
error in file uploading!!!!!!
Re: File uploading is not working
Its working ...
problem was in folder permission.......
problem was in folder permission.......