RE: [PHP] REGEX for tag attributes?

2001-01-17 Thread Robert Collins
Thomas, Not sure if this si what you want but it may start you in the right direction. ? $bob = "div key1=val1 key2 = val2 key3='val3' key4 = \"val4\""; preg_match_all( '/\S*\s?=\s?\S+[^]/', $bob, $match ); foreach ($match[0] as $match_result) { echo $match_result."BR"; } ?

RE: [PHP] decimal point movement...

2001-01-18 Thread Robert Collins
Christopher, try a regular expression somthing like this ? $temp = "007170"; ereg ("([0-9]{2})([0-9]*)", $temp, $test); $changed_to_deicmal_form = $test[1].".".$test[2]; echo "$changed_to_deicmal_form"; ? Robert -Original Message- From: Christopher Allen [mailto:[EMAIL PROTECTED]]

RE: [PHP] HELP!!! $PHP_AUTH_USER!!!!!!

2001-01-23 Thread Robert Collins
Try this: ? function authUser($username,$password,$realm,$message) { if (isset($GLOBALS["PHP_AUTH_USER"]) (($GLOBALS["PHP_AUTH_USER"] != $username) || ($GLOBALS["PHP_AUTH_PW"] != $password))) { header("WWW-Authenticate: Basic realm=\"$realm\""); header("HTTP/1.0

RE: [PHP] File upload error

2001-01-26 Thread Robert Collins
that sounds like a permissions error. check the permissions for all of the directories and the file along your path. -Original Message- From: Data Driven Design [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 1:04 PM To: [EMAIL PROTECTED] Subject: [PHP] File upload error I

RE: [PHP] rand(), mt_rand(), and my inability to make either of them random.

2001-01-26 Thread Robert Collins
this is a function that I wrote to solve this problem, but it is almost impossible to get a truly random number you can get somthing pretty close by seeding with somthing like the time function, using the seconds since epoch and this should be hard to duplicate. ?php function

RE: [PHP] Check for Page

2001-01-26 Thread Robert Collins
Try this: ? $filename = "dat.txt"; if (file_exists($filename)){ echo "file exists"; } else { echo "file does not exist"; } ? Robert W. Collins Web Developer II Insight / TC Computers www.insight.com www.tccomputers.com -Original Message- From: Karl J. Stubsjoen

RE: [PHP] Re: Host OnLine ?

2001-08-06 Thread Robert Collins
Why not use ping like ? $bob = exec(ping -c 1 php.net); echo $bob; ? -Original Message- From: Arcadius A. [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 10:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Host OnLine ? What if the host I'm checking is a simple workstation not

RE: [PHP] Example high-profile PHP sites

2001-07-26 Thread Robert Collins
www.insight.com is a publicly traded fortune 1000 company. The site is 50% php now and will be launching its new site this week that will move it up to 90% php. a demo will be available today. -Original Message- From: Maurice Rickard [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26,