RE: [PHP] printing in HTML or PHP
| From: | Coggeshall, John | Date: | Mon, 18 Mar 2002 21:02:35 +0000 |
| Subject: | RE: [PHP] printing in HTML or PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89017@lists.php.net to get a copy of this message | ||
For that matter, even better... Why bother with PHP at all?
<?php
/* code here */
?>
<link rel="stylesheet" type="text/css" href="default.css">
<?php
/* More code here */
?>
-----Original Message-----
From: John Steele [mailto:overlord@visionww.com]
Sent: Monday, March 18, 2002 7:53 AM
To: php-general@lists.php.net
Subject: Re: [PHP] printing in HTML or PHP
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
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php