I have a changename.php (written by you) i have edited a little and it ges like this
<?
$fp=fopen("sas.inc","w");
fputs($fp,"<?\n");
fputs($fp,"\$sasname = $sasname;\n");
fputs($fp,"\$sascname = $sascname;\n");
fputs($fp,"\$sascicq = $sascicq;\n");
fputs($fp,"\$sasburl = $sasburl;\n");
fputs($fp,"\$sasurl = $sasurl;\n");
fputs($fp,"\$sasmail = $sasmail;\n");
fputs($fp,"?>");
fclose($fp);
echo "Stuff changed :-)";
?>
The variables are supplyied through a form by the user and produces results like this in sas.inc:
<?
$sasname = SAS;
$sascname = Stimpy;
$sascicq = 44795939;
$sasburl = http://www.special-air-service.org.uk/images/banner.jpg;
$sasurl = http://www.special-air-service.org.uk;
$sasmail = jimbo@jimbo.bom;
?>
the problem is that on the e mail and http links to use them i need them to have " (quotes) either side how can I do this?
Thanks for you time 🙂
Tom