Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 50
4 members and 46 guests
car8rpopetclean, goe9dkfq42here, parttarcts, shaqi5kerqlqbot
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > Nukemods > News

Reply
 
LinkBack Thread Tools Display Modes
What PHP does
Old
  (#1 (permalink))
Administrator
 
Status: Offline
Posts: 125
Join Date: Feb 2002
Location: USA
What PHP does - 11-03-2010, 10:23 PM

You can think of PHP as a general purpose computing language if you want to, but it was designed with one task in mind and it is almost exclusively used for that task - generating web pages. So while it might be more flattering to PHP to introduce it in the widest possible context this would be misleading and it would make the job of learning how to use it harder than it needs to be.

So let's say the obvious to make it 100% clear.

* PHP is a language that creates web pages.

What this means in practice is that a PHP program's objective in life is to generate HTML or Javascript or anything else that you might find in a web page. In most cases and certainly when you are first learning PHP the web technology that is used is HTML.

Again to state the obvious:

* The output of a typical PHP program is HTML

This means that to make any sense of PHP you also have to know about the web technology that the program is generating, and in particular HTML. In practice this shouldn't be a huge problem because HTML isn't difficult and mostly the way that PHP makes use of it is fairly simple. However, it is important to know that it is possible that you could have a problem with understanding a PHP program simply because you can't understand the HTML it is generating.

more: i-programmer

More...
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31