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";
}
?
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]]
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
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
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
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
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
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,
8 matches
Mail list logo