Benan Posted October 3, 2006 Share Posted October 3, 2006 Hi,would I gain benefit if I learnt PHP and mySQL before C++? I was told PHP is MUCH like C Link to comment https://forums.phpfreaks.com/topic/22815-benefits-of-php-and-mysql/ Share on other sites More sharing options...
Hi I Am Timbo Posted October 3, 2006 Share Posted October 3, 2006 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++. Link to comment https://forums.phpfreaks.com/topic/22815-benefits-of-php-and-mysql/#findComment-102818 Share on other sites More sharing options...
Benan Posted October 3, 2006 Author Share Posted October 3, 2006 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. Link to comment https://forums.phpfreaks.com/topic/22815-benefits-of-php-and-mysql/#findComment-102821 Share on other sites More sharing options...
Hi I Am Timbo Posted October 3, 2006 Share Posted October 3, 2006 Sure, sounds like a good idea to me. The tutorials at php freaks are great! Link to comment https://forums.phpfreaks.com/topic/22815-benefits-of-php-and-mysql/#findComment-102823 Share on other sites More sharing options...
obsidian Posted October 3, 2006 Share Posted October 3, 2006 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. Link to comment https://forums.phpfreaks.com/topic/22815-benefits-of-php-and-mysql/#findComment-102825 Share on other sites More sharing options...
Hi I Am Timbo Posted October 3, 2006 Share Posted October 3, 2006 [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. Link to comment https://forums.phpfreaks.com/topic/22815-benefits-of-php-and-mysql/#findComment-102829 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.