Jump to content
The Uniform Server Community
Sign in to follow this  
ryosax

problems with file upload

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...