Testing php
Posted: Wed May 19, 2010 4:47 pm
I am working on developing a website in php. I am very new to the whole process of working with servers and the internet but I did a lot of self education. Because of this, I believe that there are a lot of misconceptions in my understanding of how the whole process works.
My question is: Is there a way to test php without installing apache?
I think the answer is no so I will explain my situation as best I can.
On a school computer that I work on, I installed apache and php, making the computer a server with php. At that point I can go onto the the computer, save my php files in the document root and run them by using a web browser and the IP address 127.0.0.1 to connect to the server that is my computer.
Now I am at my home computer where I would like to continue testing the code for my website. So I try to install apache and I realize that I need to enter a Network Domain and Server Name. If am planing to install apache and php on my computer, thus making my computer a server with php, and then using my code in the same way I do at school. Do I actually need a real Network Domain and Server Name? Is there something else I can put into those spaces?
Again, because I taught all this stuff to myself I believe there are probably some holes in my understanding of the situation and what I am trying to do here. The big goal is that I just want to be able to test my php code.
My question is: Is there a way to test php without installing apache?
I think the answer is no so I will explain my situation as best I can.
On a school computer that I work on, I installed apache and php, making the computer a server with php. At that point I can go onto the the computer, save my php files in the document root and run them by using a web browser and the IP address 127.0.0.1 to connect to the server that is my computer.
Now I am at my home computer where I would like to continue testing the code for my website. So I try to install apache and I realize that I need to enter a Network Domain and Server Name. If am planing to install apache and php on my computer, thus making my computer a server with php, and then using my code in the same way I do at school. Do I actually need a real Network Domain and Server Name? Is there something else I can put into those spaces?
Again, because I taught all this stuff to myself I believe there are probably some holes in my understanding of the situation and what I am trying to do here. The big goal is that I just want to be able to test my php code.