954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Im just beginning and need some help

Hey
I know extensive knowledge of HTML but thats just about it when it comes to webpages, so I want to move on to something much better. I have a text book about PHP but i dont understand what its on about. Anyway, to get started, where and how can I get all the software required to make a PHP website.

Thanks

Don Gino
Junior Poster
102 posts since Oct 2006
Reputation Points: 16
Solved Threads: 2
 

You don't actually need any.

If your web server can handle PHP, all you need is a text editor and as long as you can upload files it will work.

I use this editor:

http://syn.sourceforge.net/

If you want to run PHP files locally then you need to install PHP and server software. Several variations possible but they take a little bit of setting up no matter how easy the installation guide tells you it is ;)

http://uk2.php.net/install.windows

http://www.thescripts.com/serveradministration/webservers/apache/theapachewebserver/index.html

SnowDog
Posting Whiz in Training
217 posts since Oct 2006
Reputation Points: 32
Solved Threads: 9
 

Thanks. What do you mean by webserver? well i know what you mean but cant i just use my normal pc to create the PHP?

Don Gino
Junior Poster
102 posts since Oct 2006
Reputation Points: 16
Solved Threads: 2
 

Another question to add, what does it mean by binary or source code installation.

Don Gino
Junior Poster
102 posts since Oct 2006
Reputation Points: 16
Solved Threads: 2
 

Yes, but unless you have a server with PHP running on it you won't be able to see the pages.

Your webspace must have PHP capability (and most free ones don't). In that case you have to install server software on your PC and put PHP on that.

But unless you have a webspace to upload to that can handle PHP no one else is going to be able to see your pages.

SnowDog
Posting Whiz in Training
217 posts since Oct 2006
Reputation Points: 32
Solved Threads: 9
 
Another question to add, what does it mean by binary or source code installation.


You don't need the sourcecode.

SnowDog
Posting Whiz in Training
217 posts since Oct 2006
Reputation Points: 32
Solved Threads: 9
 

Aaah k yeah ive got Apache but i dont understand how to install and set it up

Don Gino
Junior Poster
102 posts since Oct 2006
Reputation Points: 16
Solved Threads: 2
 

So to create a PHP webpage, you need PHP installed and Apache for the webserver?

Don Gino
Junior Poster
102 posts since Oct 2006
Reputation Points: 16
Solved Threads: 2
 

Yes, if you want to run them locally on your machine. You also need mySQL if you plan to use that.

And it isn't as easy as it sounds, and you may find some things don't work (sending form mail, for example).

To start with, it might be best to stick with your webspace (if it handles PHP) because that way you can stay focused on PHP and not all the messing about associated with setting up Apache on your system (i.e. trying to figure out if something isn't working because of your PHP code or the set up on your system).

SnowDog
Posting Whiz in Training
217 posts since Oct 2006
Reputation Points: 32
Solved Threads: 9
 

Ok. When I run the installation for PHP, it asks me to enter the "address of your SMTP server" and " 'from' address for the mail function". What does all that mean?

Don Gino
Junior Poster
102 posts since Oct 2006
Reputation Points: 16
Solved Threads: 2
 

This is exactly the point I was making.

If I were you I'd forget it for now and stick with your web server. Or get some web space which allows PHP.

http://www.oinko.net/freephp/

SnowDog
Posting Whiz in Training
217 posts since Oct 2006
Reputation Points: 32
Solved Threads: 9
 

But to install PHP on my machine I need to enter those details. So do I just do anything for now?

Don Gino
Junior Poster
102 posts since Oct 2006
Reputation Points: 16
Solved Threads: 2
 

When I set it up, all I did was put my normal pop server names in.

But as I have said, I could never get the set up to work properly. Single pages were served fine, but as soon as I tried to call another PHP page the system reported an error - one which didn't occur on a web-based server. I wasn't alone in experiencing the problem, but by then it didn't matter. And there were other quirks as well.

But that was 3 or 4 years ago.

Being online these days with high-speed connections means there's not much point in going through all the hassle unless you are doing it professionally (IMO). I always upload my scripts directly and test them there - after all, that's where they need to work.

SnowDog
Posting Whiz in Training
217 posts since Oct 2006
Reputation Points: 32
Solved Threads: 9
 

There are a few options for PHP on your local machine. You can use the PHP Command line interface, included in PHP 5's distribution. (But not necessarily PHP 4... Don't quote me on this, I don't use PHP 4.)

The other option is to use a all-in-one package such as EasyPHP or something similar. There was some discussion about this less than a month ago... You may want to search for the thread.

Puckdropper
Posting Pro
500 posts since Jul 2004
Reputation Points: 23
Solved Threads: 23
 

thanks

Don Gino
Junior Poster
102 posts since Oct 2006
Reputation Points: 16
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You