Hi,
I have a code which works perfectly except for one thing. I need to open a php file and then save it as an html file.
I am using this so that I can save my clients bills but I have a big problem - I cant include the variables so that the bill is individual for each client.
Basically this works:
include("connect.php");
$file="concesionarios/factura.php";
$factura = fopen("$file", "r") or die ("could not open file");
$contents = fread ($factura, filesize ($file));
echo $contents;
$writefact ="factura1.html";
$fp = fopen("$writefact", "w");
fputs($fp,"$contents");
print("Hecho");
fclose($factura);
but isnt complete - and this doesnt
include("connect.php");
$file="concesionarios/factura.php?user=jon&pswd=123";
$factura = fopen("$file", "r") or die ("could not open file");
$contents = fread ($factura, filesize ($file));
echo $contents;
$writefact ="factura1.html";
$fp = fopen("$writefact", "w");
fputs($fp,"$contents");
print("Hecho");
fclose($factura);
How can I get around this?
(Except by using Adobe Elements)
Thanks