Wampserver- testing php

They have: 2 posts

Joined: Aug 2009

Im just starting to learn php so as an absolute begginer im following instructions from a tutorial website.
I have barely started and have already been held up hours just trying to
work out how to test my code (not even sure if im in the right forum but ill proceed .... )
I was given two options for testing my code

1.Find a host who supports php and test your code on their servers.
( As simple as this may sound im not sure how to do this )

2.Install PHP on your own computer

After a bit of reading i decided to download WampServer (Windows, Apache, MySQL, PHP) even though i know this is very advanced for me, i thought maybe i could muggle my way through, purely to test my code.
But doing this has become a real head-ache, im usig dreamweaver but only writing code ( maybe better to work on notepad ? ) and have tried various methods on the web about how to setup a php website through wamp in dreamweaver.
This is all very daunting as it was not long since i was learning css, and this seems to be a whole new ball game, but one im very motivated to learn.

Basically i was hoping someone had some instructions that would be best suited for me on how to test my php code either in dreamweaver or notepad.
Again i have read alot over the web but its more of a dummies guide i need.

P.s i only need to know how to test my code i have a good tutorial source on the programming unfortunatly they dont instruct on testin

Thanks.....

greg's picture

He has: 1,581 posts

Joined: Nov 2005

You are at the stage a lot of people go through when learning web development. You've sussed the simper stuff like HTML and CSS, now you want something more powerful like PHP.

It is something you have to take some time to learn, as with all the other aspects of web dev, and this includes all the new tools and requirements you need to use PHP.

yash059 wrote:
Basically i was hoping someone had some instructions that would be best suited for me on how to test my php code either in dreamweaver or notepad.

PHP is a server side language, and therefore it needs server software to run. As per the two options you listed, either a web server or LAMP on your own PC.

While there's more to learn to get a web server and set it up, get a domain name and learn about pointing the namesevers to your new host (etc etc), LAMP isn't always a quick install and you're away.

Many people come across problems getting it setup. Even if it all goes smoothly, there are still necessary settings to configure like your host folder and phpmyadmin. They often have issues and don't work straight away

LAMP is arguably less to learn and once set up and working you are "likely" to have less problems with it (as long as you don't mess around with it, change settings etc)

That said, I'd really advise you to learn about using a web server and your own testing domain. Simply because if you are learning PHP, you are likely at some point going to put those skills into use with a website. So if you learn with LAMP, you then STILL need to learn all the requirements later with a web server.

LAMP is free of course, whereas a web server, although really cheap to get one, are not free.
A domain is £6-£10 and a basic host server about £5 per month.
But in your sig you have a link, is that not your site? If so, then you already have a domain and a hosting server, so can test there.

Otherwise, continue with getting LAMP working and perhaps tell us why it's not working and we can help you get that setup and running.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.