Re: [PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Jay Blanchard wrote: if($string == 'test/contact.html') it could be if($string == "test/contact.html") not to start a flame war or anything, but isn't the apostrophe version quicker, as it doesn't ask the server to parse the string? Kae -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: regex problem

2003-08-15 Thread Merlin
ufff.. sorry guys, but I have to explain that better. I appreciate your help, maybe I did not give enough info. I am trying to redirect with apache modrewrite. To do this you have to use regex (not if functions:-) My problem is, that there are member accounts which look like that: membername/con

Re: [PHP] searching date

2003-08-15 Thread Jonatan Pugliese.
"select * from 'news' where 'date' between '$date_begin' and '$date_last'"; i hope this code is ok? my english is very poor ! - Original Message - From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 5:36 PM Subject: [PHP] searching date

RE: [PHP] regex problem

2003-08-15 Thread Ford, Mike [LSS]
On 15 August 2003 12:02, Merlin wrote: > Hi there, > > I have a regex problem. > > Basicly I do not want to match: > > /dir/test/contact.html > > But I do want to match: > /test/contact.html > > I tryed this one: > ^[!dir]/(.*)/contact(.*).html$ Well, that's not going to work because the con

RE: [PHP] Re: regex problem

2003-08-15 Thread Jay Blanchard
[snip] > if($string = 'test/contact.html') That's if($string == 'test/contact.html') of course... :) [/snip] it could be if($string == "test/contact.html") couldn't resist :) Jay P.S. John, nothing on that thing yet. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: regex problem

2003-08-15 Thread John W. Holmes
John W. Holmes wrote: Merlin wrote: ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? Are you making this too hard? if($string = 'test/contact.html')

[PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Merlin wrote: ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? *sigh* ^test\/contact.html$ Kae -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] Graduated fills using PHP Images

2003-08-15 Thread Jay Blanchard
[snip] Is it possible to have PHP creates an image that graduates 1 color to another, such as create and images 100 pixels wide and in height which fades red to green top to bottom? [/snip] http://us3.php.net/image You could set the color index and the loop through (while incrementing) each new i

[PHP] Graduated fills using PHP Images

2003-08-15 Thread Adrian
Hi all! Is it possible to have PHP creates an image that graduates 1 color to another, such as create and images 100 pixels wide and in height which fades red to green top to bottom? Any help or suggestions would be really helpful. Thanks Adrian [EMAIL PROTECTED]

RE: [PHP] logging data to xml

2003-08-15 Thread Jay Blanchard
[snip] I have been trying to log some data to an xml file. Whta my problem is now is that the tag needs to be either replaced (overwritten) or i need to get the data in before EOF-1. I have spend some time on the manual, but could not find out hoe exactly i should get the last row and then move on

RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Dave Restall - System Administrator
Hi, > $found =3D 0; > while ($mydata =3D mysql_fetch_object($news)) > { > if ($mydata->StudentId =3D=3D $StudentId) > {$found =3D 1; break;} > } > > if ($found=3D=3D1){do this}else{do that} Why not re-oganise your SQL statement s

Re: [PHP] Re: regex problem

2003-08-15 Thread John W. Holmes
Merlin wrote: ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? Are you making this too hard? if($string = 'test/contact.html') { echo 'good'; } else {

[PHP] logging data to xml

2003-08-15 Thread Thomas Hochstetter
Hi there. I have been trying to log some data to an xml file. Whta my problem is now is that the tag needs to be either replaced (overwritten) or i need to get the data in before EOF-1. I have spend some time on the manual, but could not find out hoe exactly i should get the last row and then mov

[PHP] Re: regex problem

2003-08-15 Thread Merlin
> ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? --