Jump to content

Talk:PHP

Page contents not supported in other languages.
From Simple English Wikipedia, the free encyclopedia

Use of W3Schools

[change source]

w3schools.com is not agreed by programmers to be a reliable source, due to doubts in its factual accuracy, and therefore source 3 is dubious in my opinion. Could a better source be located? There are probably plenty on blogs, less controversial tutorials, and other sites, as well as a primary sources from the documentation. Rarkenin (talk) 13:58, 7 December 2012 (UTC)[reply]

I have not found errors myself at w3schools.com and often use it as a tutorial for Web languages.
When PHP is used in Apache, in a standard Linux installation, the extensions used to pass PHP scripts to the PHP module are listed in standard Apache directives AddHandler, AddType. Similar options exist in other webservers supporting PHP. These directives can take one or more arbitrary suffixes as arguments, thus there is no restriction on what extension may be used for a PHP file. .php and .php3 are standard. From /etc/httpd/conf.d/php.conf:
AddHandler php5-script .php .php3
AddType text/html .php .php3
See http://httpd.apache.org/docs/2.4/mod/mod_mime.html#addhandler http://in2.php.net/distributions/manual/php_manual_en.html.gz Both these URLs may move I believe; certainly the Apache one is rewritten for each new version. Adaviel (talk) 05:09, 14 January 2013 (UTC)[reply]

.htaccess can be used to 'change' file extensions. See here (Yes, I know it's not a valid source, but it works and you can feel free to try it - I wouldn't know where to start when finding valid sources for things like this.) Also - As seen above it can be changed in Apache (something I have little experience with). Removing dubious tag as I no longer think it's needed. --  Kethrus |talk to me  09:34, 30 September 2015 (UTC)[reply]