Forum Moderators: coopster
Can I use a <script> tag or something similar to add a simple code block into an HTML page?
Or must the page be saved with the .php extension?
It would be cool if I could do it like I add some JavaScript.
Thanks.
include "somehtmlinafile.php";
Save it as anything you want, but, I make all my includes .php so no one else can read them by themselves.
I'm sure someone else can answer this one. Probably with mod_rewrite.
Why would making the include.php not allow others to read them by themselves?
I think he means if you go to MySite.com/include.php you won't get a code dump in the browser window or even a Save As dialog box.