|
Basic php tutorial
|
|
04-17-2011, 02:23 PM
Post: #1
|
|||
|
|||
|
Basic php tutorial
Any interest in tutor about basics of php?
Could start from the very begginings-f.ex. how to set up a server on own computer to run php scripts, or some basics about php itself? I love the smell of parsed templates in the morning, oh yes!!! |
|||
|
04-17-2011, 02:26 PM
Post: #2
|
|||
|
|||
|
Re: Basic php tutorial
I'm curious
|
|||
|
04-17-2011, 11:37 PM
Post: #3
|
|||
|
|||
|
Re: Basic php tutorial
I'd watch it out!
|
|||
|
04-18-2011, 08:08 PM
Post: #4
|
|||
|
|||
|
Re: Basic php tutorial
That'd be cool.
![]() UndergroundHipHop.me - Underground Hip Hop Blog |
|||
|
04-20-2011, 01:58 AM
Post: #5
|
|||
|
|||
|
Re: Basic php tutorial
Most of the basical knowledge you can get from w3consortium - easy to understand language, starts from very basics, here i'll try to duscuss things they don't speak about.
Making PHP work The big difference between html and php is that php is server-sided(ssi) and therefore files cannot be launched like any html document right from your computer, you'll need a server that understands php scripts, perform them, and then return plain html in browser window. There are two ways of making php work: 1.Set up a server locally(on your system) 2.Free hosting company who offers php Setting it up locally would need a WAMP server if u using windows and MAMP if u using Mac OS. Install it in the folder setup offers. All files afterwards should be placed at "www" folder, preferably in some kind of project map. C:/wamp/www/*myproject*. Launch the server. If you got DreamWeaver In manage site settings, set the "using server side tech"(or something like this) to PHP/mySQL and provide a path to your project folder. Every each time u "preview in browser" your file, DW will automatically run the file ssi, add "http://localhost..." in front. If you don't got DreamWeaver Save a file into your project folder and try to access it from browser by typing: Try to copy/paste this in your document and run it ssi - if you see "Hello World" coming up, everything works properly. In php, following extensions of comments are allowed //line of comments /* block of comments */ Code: <?php //open the php languageI love the smell of parsed templates in the morning, oh yes!!! |
|||
|
04-20-2011, 11:21 AM
Post: #6
|
|||
|
|||
|
Re: Basic php tutorial
Thanks for posting the basics =)
![]() UndergroundHipHop.me - Underground Hip Hop Blog |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



![[Image: k9zyqe.png]](http://i56.tinypic.com/k9zyqe.png)