Re: [PHP] Using PHP for directory indexing

2001-11-12 Thread Mike Harvey
Here's one from my function collection: ~~~ function list_dir($basedir,$type="",$filter=""){ //echo $basedir; $handle=opendir($basedir); $filelisting=array(); while ($file = readdir($handle)) { if ($file!="." AND $file!=".."){ switch($type){ case "file": if

[PHP] Re: executing another php.script

2001-11-12 Thread Mike Harvey
Just "include(script2.inc)" in your loop. -- Mike ~~~ MICHAEL R. HARVEY Web Creation - http://vestudiohost.com Internet Business Tools - http://ibiz-tools.com Sculpture, Craft, Jewelry - http://sculpture-by-mrh.com http://jewelry-b

[PHP] Re: pass javascript variable to php without submit or reload

2001-11-12 Thread Mike Harvey
If you are trying to collect things like monitor size or other user data you could try putting the JS in the head and then put a tag with time period of 0. I haven't actually tried this but it might work. -- Mike ~~~ MICHAEL R. HARVEY W

[PHP] Re: Form Name Attribute

2001-11-12 Thread Mike Harvey
I would use a field and look for that variable. -- Mike ~~~ MICHAEL R. HARVEY Web Creation - http://vestudiohost.com Internet Business Tools - http://ibiz-tools.com Sculpture, Craft, Jewelry - http://sculpture-by-mrh.com http://je

[PHP] Re: post variables to MySQL fields

2001-11-12 Thread Mike Harvey
This isn't the code you were talking about but it's something I wrote and use all the time. update_table() requires a "where" variable which is an array which needs to be declared before the function is called. The $where array is only 2 parts with the column name as [0] and the condition as [1].

[PHP] HTTP Headers

2001-11-09 Thread Mike Harvey
Is it possible to redirect to an IP address but have the browser address bar show an URL? Mike H. http://ibiz-tools.com http://vestudiohost.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con