Re: File extensions



On Mon, 26 Feb 2007 16:34:47 -0700, "Thad" <tsobota@xxxxxxx> wrote:

file end in .php. So, I renamed test1.html to test1.php and it worked. Is
that the case everywhere or could it just be my server?

No, it depends on the server set-up. The server can be configured to
run PHP within .html files, or mod_rewrite could be used, but it is
non-standard. Unless you have a particular reason why you can't use
..php file extensions, it should not be a problem.

--
------------------------------------------------------------------
- Stuart Millington ALL HTML e-mail rejected -
- mailto:phupp@xxxxxxxxxx http://www.z-add.co.uk/ -
.



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)