944,080 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2300
  • PHP RSS
Dec 28th, 2005
0

PHP newbie...

Expand Post »
Hello,

Ps can anyone enlighten me on how to learn PHP.
I mean I am a novice and would like to know if it requires a compiler etc like C++,C ..to compile codes.

In essence what are the things needed to learn PHP...and how can I really develop myself well in PHP.

..and any book reccomendation(s)

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
crestaldin is offline Offline
30 posts
since Mar 2005
Dec 29th, 2005
0

Re: PHP newbie...

HI,

Im trying to learn .net. The programming language is really simple.. I have looked at code samples... but I just cant figure out how to put it on a webpage.. ?

lol.. ok php..
PHP is complied at runtime. That means, you dont have to worry about compiling.
All you need is a server that supports php. And you just have to put some php code in a file, and name it with the extenstion .php.

I'll try and make it simple in a series of steps:

1) Get access to a server running php
--- (a) You can rent a php server online , just search google for web hosting, and see if they support php. This is usually included in the features. This costs around $10 a month. You will then have to purchase a domain, and have it pointed to your webserver. Ask your hosting support for this.
---(b) You can install an apache server on your home computer. Search google for apache on windows. This is free. Your domain will be http://localhost/ by default.

2) Create a php file.
--- (a) A php file is a text file with the extension .php.
--- (b) The php file starts with <?php and ends with ?>
--- (c) example: <?php echo 'This is PHP'; ?>

3) Save your php file in a web accessible directory.
--- (a) A web accessible directory is one that is acessible over HTTP. This is any folder in your web server, that you can access from the browser.
--- (b) In most apache servers, this is any folder above 'public_html' or 'www'.

As to learning php: I'd use http://www.php.net
They have all the php functions, some examples and user contributed notes. Easy to read and understand.

Note: geocities, and other free hosting usually dont offer php. You have to spend around $10 a month to get a php enabled server.
Most everything from there on is asking your web server support.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Jan 3rd, 2006
0

Re: PHP newbie...

I can only tell you what I did to learn PHP, maybe it will work for you:

First: I was willing to learn, and put lots of enthusiasm and hours on it... thats the most important
SECOND: tried several tutorials until I saw these two:

Sitepoint (the Build your own database driven website using PHP & MySQL)

http://www.sitepoint.com/popup/popup...e=2&popupid=45 (This was it)

and
Web Monkey:

http://hotwired.lycos.com/webmonkey/...tutorial4.html

Now, to start you don't even need to know how to install it... you can check Xampp

http://www.apachefriends.org/en/xampp.html

It will install Apache, PHP, MySQL and a FTP server... that is all you will need to start.

Then, for questions and answers I recommend: DaniWeb, Sitepoint and the PHP Manual at http://www.php.net/

Then find something to put you on the road and develop your knowledge. Practice with something you like or a job. That is the best way to learn PHP.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
RamiroS is offline Offline
57 posts
since Mar 2005
Jan 5th, 2006
0

Re: PHP newbie...

Hi Crest,
I am by no means an expert at php. I have developed my own website using php.
I used the tutorials at www.webmonkey.com and recieved help through this forum.
The tutorials are in plain english, and They are very easy to follow. I knew absolutely nothing about php when I started. If I can understand them, anyone can!
Hope this helps.

Stick
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Stick is offline Offline
20 posts
since Feb 2005
Jan 13th, 2006
0

Re: PHP newbie...

I have a few PHP eBooks that I'd be willing to share with new coders in need Just PM me on the forums.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Virii is offline Offline
14 posts
since Jan 2006
Jan 15th, 2006
0

Re: PHP newbie...

crestaldin,

i recently also have begun to learn php, but only because in database systems I we had to use JSP and well im not the greatest fan of it. in any case, after reading this site i think you will be in much better shape (atleast i did) as far as setting up the system. one note though, incase you dont read the bottom, make sure you use php-cgi.exe for php5.0 and not php.exe. after that, finding tutorials online is as easy as can be.

http://www.phpbuilder.com/columns/jain20030324.php3

hope it helps

kush2
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kush2 is offline Offline
4 posts
since Nov 2005
Jan 15th, 2006
0

Re: PHP newbie...

Good day to you Crest!

Try this site http://www.w3schools.com/php/default.asp it may help for you how to start PHP.

Good luck...

rcasinillo_s (Roland)
Reputation Points: 10
Solved Threads: 0
Light Poster
rcasinillo_s is offline Offline
29 posts
since Jan 2006
Jan 15th, 2006
0

Re: PHP newbie...

nice link... very, complete.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kush2 is offline Offline
4 posts
since Nov 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Passing Information Between pages
Next Thread in PHP Forum Timeline: retriving the name form the databse only once





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC