ryosax Posted April 8, 2005 Report Share Posted April 8, 2005 hi guys,i run uniform server smoothly. everything goes well, i think it's a great release, but i'm having seriuos problems with file upload.i'm running in local with uniform server a small CMS written by me.averything is ok but file uploading: i receive an error message like this: "Warning: copy(localhost/pics/studio_af_Pict0002.JPG) [function.copy]: failed to open stream: No such file or directory in W:\www\admin\nuploadpic.php on line 33- C:\WINDOWS\Temp\phpAF.tmp - localhost/pics/image.JPG" nuploadpic.php is like this: $cfg[pics_path] = "localhost/pics/"; $path_p1 = $cfg[pics_path] . $i_p1_name; $path_p1n = $cfg[pics_path] . $n_p1_name; copy("$n_p1", "$path_p1n") or die(mysql_error() . " - " . $n_p1 . " - " . $path_p1n); where $n_p1 is the variable containing the image in the upload html form. any help? thanks in advance ryo Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted April 8, 2005 Report Share Posted April 8, 2005 I don't have problems with file upload. Instead of "localhost/pics/", use "/www/pics/" "localhost/pics/" is not a real path but the url. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
ryosax Posted April 10, 2005 Author Report Share Posted April 10, 2005 Instead of "localhost/pics/", use "/www/pics/" "localhost/pics/" is not a real path but the url.410[/snapback] thanks a llllllllllllllllllllott!!!really, i'm very happy for your help. cheers ryo Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted April 10, 2005 Report Share Posted April 10, 2005 lol no problem Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.