My PHP coding is a little scratchy, so I apologize for the what might seem easy answer. I want a PHP page to pull the information from an HTML file (or PHP file that can show HTML). The file will hold advertising information and I'd like to call it different times in my PHP pages. If I were to change my advertising I would like to change it in one location, rather than many. All help is appreciated. Thanks!
hi <? include 'sidebar.html'; ?> in the php file use this assumes html file name is sidebar.html Regards Alex
The Difference between HTML and PHP jooria.com/Tutorials/Website-Programming-16/The-Difference-between-HTML-and-PHP-63/index.html this will help you
I don't think its appropriate to use include for an HTML file... many reasons: INJECTIONS! ...need more? have you site hacked once, you learn quick. Use: read() or file_get_contents. Note: this is only good if you're including ONLY html/txt/non-php Either way, try that instead.