[PHP] Properly formatted ereg??

2001-04-10 Thread Black S.
How would I write an ereg to use the value of $PHP_SELF and look for a distinct folder? For instance. say I have: ereg("^/anythinghere/coverage/anthythinghere.html?", $PHP_SELF || ||| So basically it is looking for the

RE: [PHP] Properly formatted ereg??

2001-04-10 Thread Jason Murray
ereg("^/anythinghere/coverage/anthythinghere.html?", $PHP_SELF || ||| So basically it is looking for the "/coverage/" folder, anything can come before it, and anything after it?? if (strstr($PHP_SELF, "/coverage/")) {

Re: [PHP] Properly formatted ereg??

2001-04-10 Thread Rasmus Lerdorf
strstr($PHP_SELF,"/coverage/") Absolutely no reason to use a regular expression when all you are doing is picking a simple string out of another. -Rasmus On Tue, 10 Apr 2001, Black S. wrote: How would I write an ereg to use the value of $PHP_SELF and look for a distinct folder? For