Re: printing in HTML or PHP
| From: | John Steele | Date: | Mon, 18 Mar 2002 12:52:35 +0000 |
| Subject: | Re: printing in HTML or PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89012@lists.php.net to get a copy of this message | ||
PHP doesn't have to parse this string (since it contains no PHP variables, why pass it
through the parser?), and it's easier to read:
echo '<link rel="stylesheet" type="text/css"
href="default.css">';
>On Monday, March 18, 2002, at 02:57 PM, Daniel Ferreira Castro wrote:
>
>>I would like to print the line bellow on my HTML generated by a PHP file.
>>How can I do it?
>>
>>The line is:
>><link rel="stylesheet" type="text/css"
>>href="default.css">
>
><?php
>
>print "<link rel=\"stylesheet\" type=\"text/css\"
>href=\"default.css\" />";
>
>?>
>
>E
>----
>Erik Price
>Web Developer Temp
>Media Lab, H.H. Brown
>pricee@hhbrown.com
/* SteeleSoft Consulting John Steele - Systems Analyst/Programmer
* We also walk dogs... Dynamic Web Design PHP/MySQL/Linux/Hosting
* www.steelesoftconsulting.com jsteele@steelesoftconsulting.com
*/