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
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/"))
{
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
3 matches
Mail list logo