PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<Miscellaneous configuration directivesBasic syntax>
view the version of this page
Last updated: Thu, 21 Aug 2003


add a note add a note User Contributed Notes
Language Reference
Indrek Mandre <indrek(at)mare(dot)ee>
02-Sep-2003 05:45
I've created a PHP4 grammar for the Java based SableCC parser generator.
http://www.mare.ee/indrek/sablecc/
As there is no PHP language specification I can't guarantee its correctness but it seems to work on most files I've fed to it. It should make working on parsing PHP for various tasks a lot easier (loads easier than using the bison mess) but it's also only for Java.
a.koepke (at) bigpond.com
11-Mar-2003 03:01
The above example is good but you can still find out if a site is running PHP by using sites like http://uptime.netcraft.com/ If they are running the Apache module it will show if they havent disabled the advertise php setting
Bryce Nesbitt <bryce at obviously dot com>
24-Jan-2003 05:13
Using the .php extension for all your scripts is not necessary, and in fact can be harmful (by exposing too much information about your server, and by limiting what you can do in the future without breaking links). There are several ways to hide your .php script extension:

(1) Don't hard code file types at all.  Don't specify any dots, and most web servers will automatically find your .php, .html, .pdf, .gif or other matching file.  This is called canonical URL format:
      www.xxxxxx.com/page
      www.xxxxxx.com/directory/
This gives you great flexibility to change your mind in the future, and prevents Windows browsers from making improper assumptions about the file type.

(2) In an Apache .htaccess file use:
     RewriteEngine on
     RewriteRule page.html page.php

(3) Force the webserver to interpret ALL .html files as .php:
     AddType application/x-httpd-php .php3 .php .html
31-Jul-2001 03:08
Here's a couple different PHP coding standards that you may find helpful :
http://utvikler.start.no/code/php_coding_standard.html
http://pear.php.net/manual/en/standards.php

<Miscellaneous configuration directivesBasic syntax>
 Last updated: Thu, 21 Aug 2003
show source | credits | sitemap | mirror sites 
Copyright © 2001-2003 The PHP Group
All rights reserved.
This mirror generously provided by: http://php.mirrors.ilisys.com.au/
Last updated: Sat 01 Nov 2003 04:13:36 EST EST