RE: [PHP] Odd escape code behavior
| From: | Chris W. Parker | Date: | Fri, 25 Jul 2003 19:54:57 +0000 |
| Subject: | RE: [PHP] Odd escape code behavior | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156934@lists.php.net to get a copy of this message | ||
Meeta Bhaduri <mailto:mg_bhaduri@yahoo.com>
on Friday, July 25, 2003 12:33 PM said:
> Correct php code would be :
> <?php echo getenv("myURL");?>/mypath/my.gif
> Works only if I remove the ">" :
> <?php echo getenv("myURL");?/mypath/my.gif
>
> Can someone point out where I'm goofing up?
Do this instead:
<?php
echo getenv("myURL")."/mypath/my.gif";
?>
> Also, I'm not on this list, so I'd appreciate replies
> to my email address mg_bhaduri(at)yahoo(dot)com.
Most people will do this anyway.
hth,
Chris.