Jump to content
xisto Community
Sign in to follow this  
iGuest

Learning PHP

Recommended Posts

You could do it through online tutorials, but I find them harder to learn through, since they don't have a very large scope. I would recommend getting a big book on PHP, and preferably one which includes MYSQL in it. Books are mroe reliable than sites, and a 700 page book will cover more stuff in more detail.

Share this post


Link to post
Share on other sites

id go with just writing a few scripts and trying it out.

it helps if you know html already.

or just do this...

<? ?>
code must be included within the above. Each line of code must end with a semi colon.

<?///this wont display cos its not parsed by the script ////(the text following //// on the same line, or anything between /* this */ is excluded)?>

<?///using variables - this sets the variable 'a' (defined by the $) to the value 'hello'$a = "hello";/* this prints the value of the variable to the page - would be the same as 'print "hello";*/print $a?>


<?///gets the value of the variable from the url ...///e.g. if the url is *.php?a=hello, it will print hello to the page - same as above///if the url is *.php?a=1, it will print 1 to the page$a = $_GET['a'];print $a?>

IF / Else statements - same as in excel basically, with different tags
<?$a = $_GET['a'];if ($a == "1") {print $a///if the value of a from the url = 1, then it will print 1} else {print "hello";///if the value isnt 1, then it will print hello}?>


Most php is just an elaboration of that.
Learnign mysql commands are useful

But check out the tutorial section of the site!!

Share this post


Link to post
Share on other sites

Hey im thinking of learning php. I just wanted to see how u guys learned so i can try.

Hey, guy!! I think it will be better if you buy php learning books from the store and learn from forum. The book can give you clearly but it's a very expensive(i collect money about 4-5 month to buy it).

Share this post


Link to post
Share on other sites

I just started with html, and now i make php, mysql webbased games.So if i was you ill start with html so php will be easyer.or just go to google and type ''php help''

Share this post


Link to post
Share on other sites

id go with just writing a few scripts and trying it out.
it helps if you know html already.

or just do this...

<? ?>
code must be included within the above. Each line of code must end with a semi colon.

<?///this wont display cos its not parsed by the script ////(the text following //// on the same line, or anything between /* this */ is excluded)?>

<?///using variables - this sets the variable 'a' (defined by the $) to the value 'hello'$a = "hello";/* this prints the value of the variable to the page - would be the same as 'print "hello";*/print $a?>


<?///gets the value of the variable from the url ...///e.g. if the url is *.php?a=hello, it will print hello to the page - same as above///if the url is *.php?a=1, it will print 1 to the page$a = $_GET['a'];print $a?>

IF / Else statements - same as in excel basically, with different tags
<?$a = $_GET['a'];if ($a == "1") {print $a///if the value of a from the url = 1, then it will print 1} else {print "hello";///if the value isnt 1, then it will print hello}?>


Most php is just an elaboration of that.
Learnign mysql commands are useful

But check out the tutorial section of the site!!

yes thanks, it's helpful.. I need more.. please suggest good sites...

Share this post


Link to post
Share on other sites

HI! I know that html is for internet pages, but what I dont know is :?  what is PHP code? :shock:  
why do we use PHP?

PHP is used by some of the webdevelopers nowadays because it is the most easiest and greatest programming script in webpages. PHP is the most powerful script. Ok?

Share this post


Link to post
Share on other sites

Learned PHP through reading tutorials, other people's codes and experimenting. I've been programming PHP for 3 years now and it's been fun! Only bought a book on my second year. :P

Share this post


Link to post
Share on other sites

I think before starting to learn web programming, you must begin with some simple programming language(like Pascal, C)It will help to understand all the basic things about programming, and then it is a lot easier to switch to another programming language.just my 2c

Share this post


Link to post
Share on other sites

To :karliksi don't agree with you .i live in vietnam so i read english not well, I do'nt know Pascal or C but i can write code by php . I can write big site by php.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.