Re: [PHP] getting filenames from dir

2005-04-01 Thread Jesper Goos
Try this function: function scandir($dirstr){ $files = array(); $fh = opendir($dirstr); while (false !== ($filename = readdir($fh))){ array_push($files, $filename);} closedir($fh); return $files; } return an array with all th

Re: [PHP] SQL statement - date

2005-03-23 Thread Jesper Goos
take a look here http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html the first example should help you... regards jesper Jacques wrote: How should I formulate my sql statement to create a result set of members who registered between now and 7 days ago? I have tried the following and

Re: [PHP] Reading all headers sent

2005-03-18 Thread Jesper Goos
The $SERVER variable is an array, so try this: "; print_r($_SERVER); echo ""; ?> regards Jesper martin wrote: Hi, I wanted to know if there is some way to expose the full headers sent to a php page. I found in google that for windows there is $_SERVER['ALL_HTTP'] to read all the headers sent but

Re: [PHP] cursor to text field

2005-03-15 Thread Jesper Goos
Try something like this... Jesper William Stokes wrote: Hello, This might be more of a HTML question but I think that someone here can help me. How can I put, automatically, the cursor to a spesific text field in web form. So that the user doesn't have to select the first field with mouse.

[PHP] UDP

2005-02-23 Thread Jesper Goos
Hi I have for the last two days scanned the net for help on implementing a simple UDP server in PHP. I wan't to use it to wait for input, verify some userdata and then return som data. Can anyone help me or piont me in the right direction? Thanx Jesper -- PHP General Mailing List (http://www.php