Current time: 03-19-2010, 11:49 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Learn PHP
06-30-2009, 04:48 PM (This post was last modified: 06-30-2009 04:50 PM by Kelvin.)
Post: #1
Learn PHP
I have purchased a book so i can learn PHP, My question is do i type the code the into note pad? like you do for html and if so how do i run the program to see what comes up.

Regards

Kelvin

http://www.bookreaders-forum.co.uk

http://www.fourleggedfriend.org.uk/forum
Visit this user's website Find all posts by this user
Quote this message in a reply
06-30-2009, 04:50 PM (This post was last modified: 06-30-2009 04:51 PM by MattRogowski.)
Post: #2
RE: Learn PHP
Best not to use Notepad, use Notepad++, but yeah, you just type and then run it in your browser... you'll need to install WAMP or something first though.

My Personal Site - Twitter
MyBB Support Team
[Image: lqscs]
Visit this user's website Find all posts by this user
Quote this message in a reply
06-30-2009, 05:03 PM
Post: #3
RE: Learn PHP
(06-30-2009 04:50 PM)MattRogowski Wrote:  Best not to use Notepad, use Notepad++, but yeah, you just type and then run it in your browser... you'll need to install WAMP or something first though.

Thanks Matt, for the info, but please tell me what wamp does this is so i can understand it.

http://www.bookreaders-forum.co.uk

http://www.fourleggedfriend.org.uk/forum
Visit this user's website Find all posts by this user
Quote this message in a reply
06-30-2009, 05:04 PM (This post was last modified: 06-30-2009 05:06 PM by frostschutz.)
Post: #4
RE: Learn PHP
The browser can't run PHP, so something like file:///some/path/to/myfile.php will not work.

You need a web server with php that runs the thing for you, and you use your browser to view the result on your own webserver.

So in the browser it'll be like http://localhost/myfile.php

WampServer is a nice and easy to use webserver+php+mysql package for windows. Google it.

Most PHP books have a whole chapter dedicated to setting up a webserver with PHP first actually...
Visit this user's website Find all posts by this user
Quote this message in a reply
06-30-2009, 05:09 PM
Post: #5
RE: Learn PHP
(06-30-2009 05:04 PM)frostschutz Wrote:  The browser can't run PHP, so something like file:///some/path/to/myfile.php will not work.

You need a web server with php that runs the thing for you, and you use your browser to view the result on your own webserver.

So in the browser it'll be like http://localhost/myfile.php

WampServer is a nice and easy to use webserver+php+mysql package for windows. Google it.

Most PHP books have a whole chapter dedicated to setting up a webserver with PHP first actually...

is it a free software, Matt or frostschutz can you put a link on here please, i did google it but there id so many out there i was not sure what one to do.

thanks

http://www.bookreaders-forum.co.uk

http://www.fourleggedfriend.org.uk/forum
Visit this user's website Find all posts by this user
Quote this message in a reply
06-30-2009, 05:19 PM (This post was last modified: 06-30-2009 05:34 PM by seeker.)
Post: #6
RE: Learn PHP
Yes, they are free:
XAMPP would work for you...
XAMPP is nominated for the Source Forge Community Choice Awards 2009!

EDIT:
WampServer looks good too:
http://www.wampserver.com/en/presentation.php

WampServer allows you to install almost all the existing releases of Apache, PHP and MySQL so you can reproduce exactly the settings of your production server...

>>> A Fun, Unique Cash Contest Unlike Any Other Ever Seen Before.
#
MyBB is the best forum software! Exclamation
##
Find all posts by this user
Quote this message in a reply
06-30-2009, 05:26 PM
Post: #7
RE: Learn PHP
May I know which book Toungue
Find all posts by this user
Quote this message in a reply
06-30-2009, 05:39 PM (This post was last modified: 06-30-2009 05:40 PM by seeker.)
Post: #8
RE: Learn PHP
Virtually all of them:
http://www.google.com/search?q=php+and+mysql+books

>>> A Fun, Unique Cash Contest Unlike Any Other Ever Seen Before.
#
MyBB is the best forum software! Exclamation
##
Find all posts by this user
Quote this message in a reply
06-30-2009, 06:18 PM
Post: #9
RE: Learn PHP
I think he wanted to know which book the OP is using...

[Image: sig.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
06-30-2009, 07:01 PM
Post: #10
RE: Learn PHP
In my experience the best way to learn php is on the net rather than from books. Like learning to swim in the water kind of thing.

[Image: sig.gif]

Contact me in private only if you need paid help with mybb-related issues. Otherwise, please don''t, unless I invite you to. Thanks Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: