Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Getting full directory path of selected image

images php coding issues or problems here.

Moderators: macek, egami, gesf

Postby pootergeist » Wed Feb 19, 2003 4:09 am

they can (and do) select the upload image from anywhere on their local system. The server retrievable values only indicate the filename rather than the path though.

subnote: trying to keep the image name the same as what it was called by the surfer is more awkward than useful and can result in overwritten files on your server. It is best to attribute a new server created name once the file gets to you.

I find it best to use mysql_insert_id and name the images exactly the same as an auto_increment field of the database
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK

Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.