[PHP] printing in HTML or PHP
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 Thank you Daniel Ferreira Castro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] printing in HTML or PHP
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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] printing in HTML or PHP
It doesnt work I need to use it with fwrite not print :-) Erik Price [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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 [EMAIL PROTECTED] /* SteeleSoft Consulting John Steele - Systems Analyst/Programmer * We also walk dogs... Dynamic Web Design PHP/MySQL/Linux/Hosting * www.steelesoftconsulting.com [EMAIL PROTECTED] */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] printing in HTML or PHP
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:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 7:53 AM To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] /* SteeleSoft Consulting John Steele - Systems Analyst/Programmer * We also walk dogs... Dynamic Web Design PHP/MySQL/Linux/Hosting * www.steelesoftconsulting.com [EMAIL PROTECTED] */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] printing in HTML or PHP
On Monday, March 18, 2002, at 03:49 PM, Daniel Ferreira Castro wrote: I need to use it with fwrite not print :-) Erik Price [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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\ /; ? ?php $fp = fopen(./filename.txt, w); $string_to_write = link rel=\stylesheet\ type=\text/css\ href=\default.css\ /; fwrite($fp, $string_to_write); fclose($fp); ? Does that work for you? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] printing in HTML or PHP
At 18.03.2002 16:57, you 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 Thank you Daniel Ferreira Castro Your line should be between head and /head the you could use echo 'link rel=stylesheet type=text/css href=default.css'; HTH Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php