Hi guys, problem.. as you'll see the code below... it works fine but I want it to call the file 'compiled'... if i go to the file, it compiles the ssi and includes it all... if I call it with the php script it doesn't do anything but calls it as a plain text file...
Anything I can do? Another function I can use?
Thanks,
Tony Hicks
?>
Anything I can do? Another function I can use?
Thanks,
Tony Hicks
Code:
<?php
$to = "thicks@wisernet.com\r\n";
$subject = "Testing";
$fn = "/path/to/public_html/testingnewalert.htm";
$fp = fopen("$fn", "r");
$fc = fread($fp, filesize($fn));
mail("aim@me.com", "$subject", "$fc", "From: Test <aim@me.com>");