Talk:PHP: Difference between revisions
m Reverted edits by 115.249.89.205 (talk) to last version by Dsimic |
→connection to the database: new section |
||
Line 76: | Line 76: | ||
: Hello! Please see http://php.net/manual/en/functions.arguments.php#functions.variable-arg-list for an explanation what changed with variable-length argument lists in PHP 5.6. — [[User:Dsimic|Dsimic]] ([[User talk:Dsimic#nobold|talk]] | [[Special:Contributions/Dsimic|contribs]]) 07:50, 8 January 2015 (UTC) |
: Hello! Please see http://php.net/manual/en/functions.arguments.php#functions.variable-arg-list for an explanation what changed with variable-length argument lists in PHP 5.6. — [[User:Dsimic|Dsimic]] ([[User talk:Dsimic#nobold|talk]] | [[Special:Contributions/Dsimic|contribs]]) 07:50, 8 January 2015 (UTC) |
||
== connection to the database == |
|||
when i use this connection to connect to the database it brigs me errors |
|||
mysql_connect("localhost","root",""); |
|||
mysql_select_db("pass"); |
Revision as of 06:19, 22 April 2015
This is the talk page for discussing improvements to the PHP article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
PHP has been listed as one of the Engineering and technology good articles under the good article criteria. If you can improve it further, please do so. If it no longer meets these criteria, you can reassess it. | ||||||||||||||||
| ||||||||||||||||
Current status: Good article |
This article has not yet been rated on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
|
A fact from this article was featured on Wikipedia's Main Page in the On this day section on June 8, 2007, June 8, 2008, June 8, 2009, June 8, 2010, and June 8, 2012. |
The contents of the Visibility of PHP properties and methods page were merged into PHP on 08:41, July 28, 2010. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page. |
The contents of the PHP Data Objects page were merged into PHP on July 15, 2014. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page. |
|
||||||||
This page has archives. Sections older than 100 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Name of PHP
Maybe I'm a bit unclear, but the current name of PHP is (PHP: Hypertext Preprocessor). Shouldn't his be in bold at the beginning at the article instead of in the middle? CarnivorousBunnytalk • contribs 14:09, 20 April 2014 (UTC)
- Hello there! The lead section currently contains that description in its opening paragraph, just to quote it:
- While PHP originally stood for Personal Home Page,[6] it now stands for PHP: Hypertext Preprocessor, a recursive backronym.[7]
- So, it should be Ok, if you agree. — Dsimic (talk | contribs) 14:22, 20 April 2014 (UTC)
- I'd like to make a note: PHP is a recursive acronym, not a recursive backronym. Backronyms are formed when an acronym is made to fit an existing word, which was not the case with PHP. Forcefully (talk) 18:36, 8 July 2014 (UTC)
- Hello there! Hm, but "PHP" already stood for "Personal Home Page" before "PHP: Hypertext Preprocessor" was coined, thus "PHP" already existed as an abbreviation. That's why it might be treated as a backronym, as the meaning of "PHP" clearly was "reinvented", so to speak. — Dsimic (talk | contribs) 20:45, 8 July 2014 (UTC)
- I know there was a lot of dispute over this whole acronym vs. backronym thing, and I know we solved properly, but I'm wondering whether it's entirely necessary to include this bit of information. This is an article about the programming language, after all. Not an article about its name. Cfjem (talk) 19:21, 9 July 2014 (UTC)
- Including that detail shouldn't hurt as it also indirectly introduces the concept of recursion, what can't be a bad thing in a programming language article. :) Hope you agree. — Dsimic (talk | contribs) 00:26, 10 July 2014 (UTC)
- I guess it can't hurt. Cfjem (talk) 01:26, 13 July 2014 (UTC)
hello world embedded code
has anyone else noticed that the hello world code doesn't work properly? Both Firefox and Chrome return:
Hello World
'; ?>
I'm not knowledgeable enough about PHP to fix even this error properly. --Kwixtartpahtee (talk) 23:05, 22 June 2014 (UTC)
- @Kwixtartpahtee, it does work on a webserver if you have PHP configured. Yes, I would expect to get the sort of error that you describe if you attempted to run this server-side script on you local PC's browser. TerryE (talk) 09:15, 23 June 2014 (UTC)
- Open up a terminal, navigate to where you saved the script (e.g.,
helloworld.php
). Then typephp -S localhost:8888
to start a server. Open your browser and go tolocalhost:8888/helloworld.php
and the code will then work. Let99 (talk) 06:24, 10 November 2014 (UTC)
- Open up a terminal, navigate to where you saved the script (e.g.,
- ... what applies to PHP 5.4.0+, by the way. :) — Dsimic (talk | contribs) 06:45, 10 November 2014 (UTC)
PHP syntax and semantics
Does anyone want to help modernize and expand the PHP syntax and semantics page? It's really bad at the moment. Let99 (talk) 06:21, 10 November 2014 (UTC)
- Hello! Hm, why do we have that article at all? It looks like a manual, what's pretty much against WP:NOTMANUAL. — Dsimic (talk | contribs) 06:44, 10 November 2014 (UTC)
- Well, we have Python syntax and semantics too. —ajf (talk) 15:55, 10 November 2014 (UTC)
Variadic in 5.6?
PHP always had variadic functions, at least since PHP4 days, with func_num_args() / func_get_arg() / func_get_args() / ... ( https://php.net/manual/en/function.func-num-args.php / https://php.net/manual/en/function.func-get-arg.php / https://php.net/manual/en/function.func-get-args.php ) Divinity76 (talk) 10:50, 7 January 2015 (UTC)
- Hello! Please see http://php.net/manual/en/functions.arguments.php#functions.variable-arg-list for an explanation what changed with variable-length argument lists in PHP 5.6. — Dsimic (talk | contribs) 07:50, 8 January 2015 (UTC)
connection to the database
when i use this connection to connect to the database it brigs me errors mysql_connect("localhost","root",""); mysql_select_db("pass");
- Wikipedia good articles
- Engineering and technology good articles
- Old requests for peer review
- Pages using WikiProject banner shell with duplicate banner templates
- GA-Class Computing articles
- Mid-importance Computing articles
- All Computing articles
- GA-Class Computer science articles
- Mid-importance Computer science articles
- WikiProject Computer science articles
- GA-Class Internet articles
- Mid-importance Internet articles
- WikiProject Internet articles
- GA-Class software articles
- High-importance software articles
- GA-Class software articles of High-importance
- Unknown-importance Computing articles
- All Software articles
- Mid-importance software articles
- GA-Class software articles of Mid-importance
- Selected anniversaries (June 2007)
- Selected anniversaries (June 2008)
- Selected anniversaries (June 2009)
- Selected anniversaries (June 2010)
- Selected anniversaries (June 2012)