[PHP] Where to start?

🚫
Exiled
Joined
Jun 24, 2008
Messages
719
Reaction score
1
OK.

I have realised that PHP is becoming a very popular language at the moment

So, what is the best thing to start at in PHP?

I'm interested in learning it xD
 
Re: Where to start?

You should start with the basic things, like echo'ing and using variables
Check out this tutorial site or PHP.net

another thing you could do is to just look around in some or the threads in this section (some may be to difficult) and try to learn something of them ;)
 
Re: Where to start?

You don't _need_ to learn HTML before learning PHP. You only need it if you plan on building a website (or web page) yourself. Hence it not being a _real_ requirement. For example, I'm quite good in PHP, and barely know the basics of HTML (which I learned when I just happened to need it some day).

Anyway, http://php.net/ there simply is no better resource.
 
Re: Where to start?

You don't _need_ to learn HTML before learning PHP. You only need it if you plan on building a website (or web page) yourself. Hence it not being a _real_ requirement. For example, I'm quite good in PHP, and barely know the basics of HTML (which I learned when I just happened to need it some day).

Anyway, http://php.net/ there simply is no better resource.

What's the purpose of knowing PHP without HTML, i mean if you do not plan building a website then why bother to learn PHP it does not have other puproses than websites.
 
Re: Where to start?

What's the purpose of knowing PHP without HTML, i mean if you do not plan building a website then why bother to learn PHP it does not have other puproses than websites.

You don't need to know past very basic HTML to use a template someone else made. Which is what in fact I do 98% of the time, have someone else write the markup and style sheet for me, then I just add in the dynamic content. I've never been good with designs anyway, so why should I ever bother learning HTML and CSS past the basics? So yes there is indeed a purpose knowing PHP without HTML, since as I stated previously, HTML is not a requirement for PHP, and you certainly don't need it to build a website, unless you are building it yourself as I also previously stated.
 
Re: Where to start?

Thanks guys

Also,

HTML = Hyper Text Markup Language

What does PHP stand for?
 
Re: Where to start?

Thanks.

And Google hardly ever gives me the answers I need.

It just picks out my keywords and not what I need :\
 
PHP is just a scripting language, and you can implement it using C for example, and use it for game and AI scripting, however it's most popular usage is within websites, indeed ;).
 
cause PHP is so slow that it has no purpose as AI :-).

You ever tried it?

PHP rests directly on the C(++) libraries, many functions in PHP have almost no overhead compared to their C counterparts (like fopen, sprintf, etc) and in most real-life webapplications the database servers cause most of the page execution time - about 70% for a huge site the company I worked for just did. Another 25% or so is loading and parsing files, something you do not need to do for a continuously running AI.

Theoretics aside, I've build an (experimental) MMO engine using purely PHP and it runs smoothly covering 2000 monsters and tested with several dozen connected users with barely any CPU load on a 1500Mhz testserver with 1Gb ram. It consists of 5 seperate instances (monster server, user server, chatserver etc) talking with eachother trough TCP/IP pipes using a flash application as client.

Yes, C and C++ are faster. Even C# is probably faster. But it's really not by that big an amount, nor does it matter that much for modern PC's that have CPU power to spare.
 
Theoretics aside, I've build an (experimental) MMO engine using purely PHP and it runs smoothly covering 2000 monsters and tested with several dozen connected users with barely any CPU load on a 1500Mhz testserver with 1Gb ram. It consists of 5 seperate instances (monster server, user server, chatserver etc) talking with eachother trough TCP/IP pipes using a flash application as client.

I've had similar idea even started creating core for it, but dropped the projects as i have not much free time.
 
Back