Hi all, Im not an expert on PHP so I apologize if this turns out to be a dumb question.
I want ro run a PHP script from an HTML page. I cannot use an htaccess file to parse HTML as PHP since the ISP forbids it.
So...I made a test HTML file and tried doing;
<script src="my.php"></script>
Inside the php file I put
<?php
echo 'PHP file';
?>
when I load the page, it doesnt get executed.
What am I doing wrong?
I want ro run a PHP script from an HTML page. I cannot use an htaccess file to parse HTML as PHP since the ISP forbids it.
So...I made a test HTML file and tried doing;
<script src="my.php"></script>
Inside the php file I put
<?php
echo 'PHP file';
?>
when I load the page, it doesnt get executed.
What am I doing wrong?