Jump to content
xisto Community
Sign in to follow this  
ddwyer

Learning PHP Need some assistance

Recommended Posts

Hello All,I am learning PHP. I have been reading several tutorials and such but what I am wondering is this: is there a site that recomends simple project programs to practice your coding? Or can someone recommend a few programs I could write to get better. Kind of like learning it in school - after you learn it, you get an assignment to go practice it. Thanks,Dennis

Share this post


Link to post
Share on other sites
:lol: woow.. that would be very useful!i'm interested too... if someone knows any site of this kind... it would be very appreciated :P

Share this post


Link to post
Share on other sites

Try making a chat. First make it so it records data in a file. THen after a while change it to a mysql database which will require you to know another language >_>

Share this post


Link to post
Share on other sites

Then you will have to get a book on learning php and attend a course. That's the best way to learn since you will get assistance from instructors and they will perform assignments.

But when self learning (as I did) you will mostly have to rely on tutorial sites.
First get a glimpse what php is through one of those tuts out there. I'll recomend
http://www.w3schools.com/php/default.asp
Next start to write a simple code, don't panic if it doesn't work as you intend it to be. Trial and error make the best programmers.
I'll think adding the include function to a html/php page is the best first practical to get your hands on.

Something like this.

[/br]<?php[br]include("hello.php");[/br]?>[br]

Next you may try something advanced.Try defining databases like this

[/br]<?php[br][/br]$host = "localhost";  // database host[br]$user = "root";       // database username[/br]$pass = "blabla";           // database password[br]$db = "yourdb";   // database name[br][/br]?>[/br]

Now you will be ready to write a simple news script. Try create a form and use a php script to process data and add to a database. Then another script to recall data. News scripts are the simplest scripts for beginners.

Last time for blasting.
You can write polls, email systems,rating systems or maybe forum scripts.
As I said before the key is Trial and Error

:P

Well here are some more links.

http://de1.php.net/tut.php the official one :lol:
http://www.gimpster.com/wiki/PhpTutorial
http://www.lycos.com/
http://www.hotscripts.com/category/scripts/php/tutorials-tips/
http://forums.xisto.com/no_longer_exists/ Here are the advanced stuff. You will find some great practical examples.
http://forums.xisto.com/no_longer_exists/
http://www.webreference.com/programming/php/index.html
:P

Share this post


Link to post
Share on other sites

oh my god, there's so many Englishes............i didn't understand a word!!!!!what could i do???when i asked the programmer, the also gave me the URLs....but i can't read..... :lol::P help...

Share this post


Link to post
Share on other sites

THanks Dude Those sites are awsome i've been tryin to learn php for a while just couldnt find the right site

Learn C/C++ firstrewrite c/c++ code into php

take php manual with you always.

Share this post


Link to post
Share on other sites

THanks Dude Those sites are awsome i've been tryin to learn php for a while just couldnt find the right site

Learn C/C++ firstrewrite c/c++ code into php

take php manual with you always.
I think it's pretty easy to learn php as your first scripting language. Unlike others it has a "fun to code" type outcome and it's more friendly and easy to understand by looking at the code. C++ and Java all seems too complex and they are not easy to understand unless the coder left comments.
:D
Starting your coding career in php is a good idea. All you need is a guide and plenty of practice. Then you can shift to something like c++ or java. :D

Share this post


Link to post
Share on other sites

You dont need to learn C++ to learn PHP. That would be stupid for the fact C++ is alot harder to learn that PHP. Just go to http://programmersheaven.com/ their are some php tutorial that can get you started. From that website you wont need anything else from alot longer.

It would be useful to learn C++, as it'd make php easier to program.
Personally I have background in PHP(like) programming, but just the basics. My strategy (which is usually wrong) is to disect the code as I see, then ask questions on what I don't understand.

Share this post


Link to post
Share on other sites

so what do you gusy recommend? i started learning php a couple of months back.i've never done java, c# or c++.Which one is more efficient?Learning php seems to be a lot of fun btw.

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.