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

Reply via email to