Jump to content

Talk:PHP: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
m Reverted edits by 115.249.89.205 (talk) to last version by Dsimic
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

Good articlePHP 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
DateProcessResult
February 23, 2008Peer reviewReviewed
March 25, 2008Peer reviewReviewed
April 1, 2008Good article nomineeListed
Current status: Good article

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? CarnivorousBunnytalkcontribs 14:09, 20 April 2014 (UTC)[reply]

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)[reply]
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)[reply]
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)[reply]
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)[reply]
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)[reply]
I guess it can't hurt. Cfjem (talk) 01:26, 13 July 2014 (UTC)[reply]

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)[reply]

@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)[reply]
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)[reply]
... what applies to PHP 5.4.0+, by the way. :) — Dsimic (talk | contribs) 06:45, 10 November 2014 (UTC)[reply]

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)[reply]

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)[reply]
Well, we have Python syntax and semantics too. —ajf (talk) 15:55, 10 November 2014 (UTC)[reply]

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)[reply]

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)[reply]

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");