This is a discussion on PHP includes - correct formatting within the Coding Help forums, part of the Webmaster Help category; I not a bona fide coder so forgive this if it's a really dumb question. I use Easy PHP and ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| I not a bona fide coder so forgive this if it's a really dumb question. I use Easy PHP and WAMP server here to make my local machine run ssi scripts and act as a server. Normally, I format a PHP include as follows <? include("../folder/file.php") ?> and that worked fine until I updated a version of one of these applications and now I need to ammend that to be as follows (extra p h p after opening statement... <? php include("../folder/file.php") ?> Any ideas why the change?
__________________ Peter Knight - Web Designer .................................................. .................................................. Eden Web - Web Design Ireland Virtual Tour Company Dublin Photographer |
| |||||
| Thanks Ciaran I'll have a look at the forums and see if there's any info there. |
| |||||
| The <? has been deprecated for a while because it can get mixed up for an XML file. Recommended to use <?php. There's a setting in php.ini that allows the <? or not, it must be turned off in the new installtion or something
__________________ My Blog |
| |||||
| Great - thanks for that. |
| ||||
| George is right (not that I know an awful lot about php), short tags aren't recommended cos they conflict with the xml tag. Quote:
|
| Tags |
| correct, formatting, includes, php |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adsense served through php includes? | ButtermilkJack | Google Adsense | 3 | 03-04-2007 05:21 PM |
| PHP Include (Most Recent HTML File)? | ButtermilkJack | Coding Help | 6 | 29-03-2007 09:19 AM |
| Simple PHP Breadcrumb Script? | ButtermilkJack | Coding Help | 4 | 17-03-2007 06:50 PM |
| PHP woes : checking if value is numeric | paul | Coding Help | 9 | 26-02-2007 02:50 PM |
| WTF - Some PHP Obfuscation. | daviddoran | General Chat | 8 | 20-02-2007 05:45 PM |
| ||||||||
| | ![]() | |||||||