[SOLVED] PHP and table issues - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: [SOLVED] PHP and table issues (/showthread.php?tid=86057) [SOLVED] PHP and table issues by Th3rmal on 09-20-2008 at 04:38 PM
Ok so ive made a website (not currently publicly available ) and to make things a little easier for myself, i have incorporated some _really_ simple PHP. code: Now in the output, the "hello" is not produced, in fact anything in between the two php lines is not produced; even though the header.html and footer.html render perfectly. Some info: as you can tell, the info inside the two <php> lines is part of a table. There are no unclosed tags inside any of the documents, and im pretty sure all the code is fine. Also another note, having all 3 files together (header.html + footer.html + index.php - its php) in a single .html file works correctly and renders everything. Can anyone help me? Thanks RE: PHP and table issues by andrewdodd13 on 09-20-2008 at 04:48 PM
Don't you have to do RE: PHP and table issues by tony on 09-20-2008 at 04:52 PM <?php include ("something.php");?> RE: PHP and table issues by absorbation on 09-20-2008 at 04:56 PM
<?php include 'header.html'; ?> RE: PHP and table issues by Felu on 09-20-2008 at 04:57 PM
Why not have the <html><body> and </body></html> in header.php and footer.php respectively? RE: PHP and table issues by L. Coyote on 09-20-2008 at 09:50 PM
quote:It's not mandatory to use () for include(_once) and require(_once). Do you have any PHP code in the *.html files? If there's PHP code in them, make sure you created the correct AddHandler/AddType entries in the .htaccess file of the directory you're using, to render *.html files as PHP. Or simply rename them to *.php. RE: PHP and table issues by Th3rmal on 09-20-2008 at 11:34 PM
quote:Nope, doing it without the brackets has worked before. quote:Yes i do quote:Same result quote:The opening tags of the table are part of the header.html and closing tags are a part of footer.html quote:Changed, but it didnt solve my problem Thanks anyway. quote:No i dont. the .html files only contain html code. Only the index.php has those two lines of php. EDIT: Fixed. It was reading off the wrong index file. * Th3rmal slaps himself Sorry to waste your time |