[PHP] Re: Create Mysql Records From a Comma separated Values String

2002-02-06 Thread Ben Crawford
The function you are looking for is 'explode'. It works like this, say you have a line of text stored in line of say pizza topping like this: $pizza_toppings = "topping1,topping2,topping3" and now you want the toppings in an array just do this: $toppings = explode(",", $pizza_toppings); then you

[PHP] File Uploads

2002-02-06 Thread Ben Crawford
I apoligize if this question has already been asked but I am looking to upload files to my server. I use a form and can get the files to upload as user nobody with a random file name on my Linux box. That is the problem, the user is 'nobody'. This is either an Apache thing or a PHP thing an

[PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Ben Crawford
You also seem to have an extra equals. Your loop should read: while (false != ($file=readdir($handle))){ It should come up as an error, but I'm not sure. Ben Manuel Ritsch wrote: > Hello There > > I'm new to PHP and trying to code a function that reads all teh files out of > a directory and p