Talk:PHP

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Good article 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.
Article milestones
Date Process Result
February 23, 2008 Peer review Reviewed
March 25, 2008 Peer review Reviewed
April 1, 2008 Good article nominee Listed
Current status: Good article
          This article is of interest to the following WikiProjects:
WikiProject Computing (Rated GA-class, Mid-importance)
WikiProject icon This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 GA  This article has been rated as GA-Class on the project's quality scale.
 Mid  This article has been rated as Mid-importance on the project's importance scale.
 
WikiProject Computer science (Rated GA-class, Mid-importance)
WikiProject icon This article is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 GA  This article has been rated as GA-Class on the project's quality scale.
 Mid  This article has been rated as Mid-importance on the project's importance scale.
 
WikiProject Internet (Rated GA-class, Mid-importance)
WikiProject icon This article is within the scope of WikiProject Internet, a collaborative effort to improve the coverage of the internet on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 GA  This article has been rated as GA-Class on the project's quality scale.
 Mid  This article has been rated as Mid-importance on the project's importance scale.
 
WikiProject Free Software / Software / Computing  (Rated GA-class, High-importance)
WikiProject icon This article is within the scope of WikiProject Free Software, a collaborative effort to improve the coverage of free software on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 GA  This article has been rated as GA-Class on the project's quality scale.
 High  This article has been rated as High-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Software.
Taskforce icon
This article is supported by WikiProject Computing.
 
WikiProject Software / Computing  (Rated GA-class, Mid-importance)
WikiProject icon This article is within the scope of WikiProject Software, a collaborative effort to improve the coverage of software on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 GA  This article has been rated as GA-Class on the project's quality scale.
 Mid  This article has been rated as Mid-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Computing.
 
WikiProject Spoken Wikipedia
WikiProject icon This article is within the scope of WikiProject Spoken Wikipedia, a collaborative effort to improve the coverage of articles that are spoken on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 

hello world embedded code[edit]

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 type php -S localhost:8888 to start a server. Open your browser and go to localhost:8888/helloworld.php and the code will then work. Let99 (talk) 06:24, 10 November 2014 (UTC)
... what applies to PHP 5.4.0+, by the way. :) — Dsimic (talk | contribs) 06:45, 10 November 2014 (UTC)

PHP syntax and semantics[edit]

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)
Which doesn't make it better: That's pretty much against WP:NOTMANUAL. Such articles should not exist inside the enWP. --88.130.86.109 (talk) 15:35, 6 May 2015 (UTC)

Variadic in 5.6?[edit]

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[edit]

when i use this connection to connect to the database it brigs me errors mysql_connect("localhost","root",""); mysql_select_db("pass"); — Preceding unsigned comment added by 197.232.26.250 (talk) 06:19, 22 April 2015 (UTC)

Hello! Talk pages such as this one should contain discussions focused on article improvements, please see WP:NOTFORUM for further information. — Dsimic (talk | contribs) 04:43, 23 April 2015 (UTC)