variable for file name
| From: | Diksha Neel | Date: | Wed, 09 Apr 2003 09:38:17 +0000 |
| Subject: | variable for file name | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143032@lists.php.net to get a copy of this message | ||
hi everybody,
i am creating an html page by file as under.
<?php
$fp = fopen ("aditya.html", "w");
$string='<html>
but what i want to do is use a variable for the
name of the page.
eg.
$fp = fopen ("$wname.html", "w");
where $wname will be holding value as 'aditya'
so that by the fopen function, i should be
able to open "aditya.html".
is this possible? and if yes, can anybody please
tell me the correct syntax?
thanks a lot,
regards,
diksha.
_______________________________________________________________________
Odomos - the only mosquito protection outside 4 walls -
Click here to know more!
http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn