Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

problems with file upload

Featured Replies

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

  • Author
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

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.