Jump to content

Archived

This topic is now archived and is closed to further replies.

Benan

Benefits of PHP and MySQL

Recommended Posts

Hi,

would I gain benefit if I learnt PHP and mySQL before C++? I was told PHP is MUCH like C

Share this post


Link to post
Share on other sites
Syntactically, php is fairly similar to C/C++; however, being a scripting language, it is far less powerful.  They also have very different purposes.  PHP is generally a web scripting language with the capability of being a command line language.  C/C++ are command line languages which can be run through CGI to dynamically create web pages. 

If you want to make web pages, I would recommend PHP.  If you want to make command line executables, I would recommend C/C++.

Share this post


Link to post
Share on other sites
I will be using C++ for application programming, but I was thinking that I should learn PHP to get a kick start, I always did want to use PHP, because i usually need lots of scripts and some times i can't find. So if i learnt PHP I could code my own.

Share this post


Link to post
Share on other sites
I really wouldn't compare the two in terms of which to learn and not learn. If I had to advise someone in which to learn first, though, I'd recommend learning C++. It is [b]much[/b] more rigid and unforgiving with implicit nuances that PHP takes. type casting and other little issues that PHP coders can, and very often do, take for granted are not so subtle in C++. When I was hired on for my current position writing PHP, I had to take Java and C++ courses to get some of the programming background instilled before I sat down and wrote a lot of PHP. Now, grant it, I was learning them all at once which helped, but the C++ was probably the best help for speeding my learning of PHP.

Share this post


Link to post
Share on other sites
[quote author=obsidian link=topic=110309.msg445748#msg445748 date=1159847299]
It is [b]much[/b] more rigid and unforgiving with implicit nuances that PHP takes. type casting and other little issues that PHP coders can, and very often do, take for granted are not so subtle in C++.
[/quote]

Agreed.  If you are going to be a programmer, PHP is not the end of the line.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.