Re: standard coding...



d said the following on 16/01/2006 15:19:
"David Haynes" <david.haynes2@xxxxxxxxxxxx> wrote in message news:OHrxf.4737$08.1779@xxxxxxxxxxxxxxxxxxxxxxxx
There's nothing magical about any suffix - it's just what you tell the server to be sensitive to. For example, I could change all the php files to have a 'pre' suffix to indicate that these files are 'pre'processed before displaying them.

Unfortunately, as long as certain browsers take notice of suffixes, they are somewhat magical. Making sure your extensions match your content is one sure-fire way to get round that :)

That's not always possible, though. Yes, one could set up the server to parse all .html requests as PHP, but what about dynamic images generated by PHP? To "match" the suffix there, you'd need to set the server to parse all .jpg, etc. files as PHP, which would be a sure-fire way to get bizarre behaviour ;)




--
Oli
.



Relevant Pages

  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... Apache as the global web server user and thus needs world write ...
    (alt.php)
  • mysqli error?
    ... I'm just setting up my php enviroment and I typed in a simple script ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... web server itself is part of the group. ...
    (alt.php)