Here's a simple one:
I have a php file which executes fine if launched from a hyperlink in my index.shtml file.
If I then try to 'run' that same script to give an output directly into my index.shtml page, I should use the 'include' function. i.e.
<?php include("sample.php"); ?>
however nothing happens. I don't see the output in my .shtml file (homepage).
I have tried the obvious such as changing the dbl quotes to single quotes. Getting rid of the semi-colon, brackets etc... in fact I have scoured the internet for every conceivable combination of the include function.
P.S. I am running php version 4.1.2
I have also checked and made sure that the target php file is in the same directory as the index.shtml -still no luck.
I have also checked to make sure nothing sinister has happened with the permissions.
PLEASE HELP ME, I AM PULLING MY HAIR OUT......