![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I was wondering on one of my apps that allows models to upload pics. I want to eliminate spaces in their filenames i.e jenny 01.jpg I want jenny01.jpg They are being sent via $_FILES['pic1'] and so on for 10 pics Would I use trim?? Also can I totally rename the files if that is not possible $_FILES['pic1']['name'] = "$fname.$lname.$dob" ??? Thanks all Eric | |||
|
| Advertisements |
| | #2 | ||
| "Eric Haskins" <eric.haskins@rackspeed.net> wrote: > I was wondering on one of my apps that allows models to upload pics. I > want to eliminate spaces in their filenames i.e jenny 01.jpg I want > jenny01.jpg They are being sent via $_FILES['pic1'] and so on for 10 > pics Would I use trim?? Use str_replace(). JOn | |||
|
| | #3 | ||
| You may use urlencode and urldecode for the filenames check the php manual "Eric Haskins" <eric.haskins@rackspeed.net> escreveu na mensagem news:2q3Pa.59101$JY1.27521@nwrddc01.gnilink.net... > I was wondering on one of my apps that allows models to upload pics. I want > to eliminate spaces in their filenames i.e jenny 01.jpg I want jenny01.jpg > They are being sent via $_FILES['pic1'] and so on for 10 pics > Would I use trim?? > > Also can I totally rename the files if that is not possible > > $_FILES['pic1']['name'] = "$fname.$lname.$dob" ??? > > Thanks all > > Eric > > > | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: command, filenames, remove, spaces |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP: columnames with spaces in MySQL | Dick Fennema | PHP | 3 | 07-01-2007 3:38 PM |
| Back command | Kian | HTML | 6 | 07-01-2007 1:58 PM |
| Need command | frogiswrong | Graphics in general | 0 | 06-11-2007 10:35 PM |
| Feather Command | Brian La Plante | Graphics in general | 3 | 06-11-2007 6:38 PM |
| Command And Conquer | encoder | The Games | 11 | 06-25-2006 8:00 PM |
| Featured Websites | ||||
|