I am working on a site that has over 1000 pages and all the images need to
be made lower case in the HTML.
Here is what I have so far. Please someone tell me what I am doing wrong.
$contents="";
$contents = EREG_REPLACE("([-_a-zA-Z0-9]+).gif",strtolower("\\0"),$contents);
Output of $conten
I am working on a site that has over 1000 pages and all the images need to
be made lower case in the HTML.
Here is what I have so far. Please someone tell me what I am doing wrong.
$contents="";
$contents = EREG_REPLACE("([-_a-zA-Z0-9]+).gif",strtolower("\\0"),$contents);
Output of $conten
From: "Ian LeBlanc" <[EMAIL PROTECTED]>
>
> I am working on a site that has over 1000 pages and all the images need to
> be made lower case in the HTML.
> Here is what I have so far. Please someone tell me what I am doing wrong.
>
>
> $contents=" alt=ThisOneReallyNeedsToBeAllLowercase.gif>";
>
>
On Thursday 22 February 2001 23:42, Simon Garner wrote:
> This should do the trick (untested!):
>
> $contents = " alt=ThisOneReallyNeedsToBeAllLowercase.gif>";
>
> $contents = preg_replace("/([-_a-zA-Z0-9]+)\.gif/e",
> "strtolower('\\1') . '.gif'", $contents);
> ?>
simpler that
"/([-_a-
4 matches
Mail list logo