Jump to content


Photo

Benefits of PHP and MySQL


  • Please log in to reply
5 replies to this topic

#1 Benan

Benan
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 03 October 2006 - 01:29 AM

Hi,

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

#2 Hi I Am Timbo

Hi I Am Timbo
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 03 October 2006 - 03:38 AM

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++.

#3 Benan

Benan
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 03 October 2006 - 03:44 AM

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.

#4 Hi I Am Timbo

Hi I Am Timbo
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 03 October 2006 - 03:46 AM

Sure, sounds like a good idea to me.  The tutorials at php freaks are great!

#5 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 03 October 2006 - 03:48 AM

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 much 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.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#6 Hi I Am Timbo

Hi I Am Timbo
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 03 October 2006 - 03:51 AM

It is much 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++.


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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users