ge-
From: George Pitcher [mailto:[EMAIL PROTECTED]
Sent: 14 December 2004 13:50
To: S.D.Price
Subject: RE: [PHP-WIN] Substr function
Steven,
You need to start by checking what might be passed. I assume that you
going to work on 'name'. What will that be and will it always be
consistent?
Copy to the list
**
Have you tried reading the manuals, or the function syntax ?
What I give you next is readable at http://www.php.net
Description
string *substr* ( string string, int start [, int length])
*substr()* return
In addition to substr() and explode() already mentioned, check out some of
these:
basename() - Returns filename component of path
http://us2.php.net/manual/en/function.basename.php
strrpos() - Find position of last occurrence of a char in a string
http://us2.php.net/manual/en/function.strrpos.ph
Hi can anyone explain to me how to manipluate strings. I have generated
a file name
($_FILES['documenturl']['name'])
Out of this server variable I need to grab the file and the extension
and put them into seperate fields for database upload. Any idea how to
do this by using substr?
Thanks
Stev