|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Installing PHP without a webserver
Is there a way to do that for the use of testing my scripts?
|
|
#2
|
|||
|
|||
|
RE: Installing PHP without a webserver
In a nutshell NO. But just install a webserver. If you are using windows then go Apache www.apache.org its small, fast and best of all.. It's Not a microsoft product. Good Luck.
|
|
#3
|
|||
|
|||
|
RE: Installing PHP without a webserver
Okay thanks!
|
|
#4
|
|||
|
|||
|
RE: Installing PHP without a webserver
Great cow!
Anyways, sure you can install PHP without a webserver. I run PHP CLI scripts all the time. Basically there are three ways to invoke PHP: 1) webserver (the most common way) 2) cli (command line interface) 3) gui - use it to create cross-platform gui apps HTH |
|
#5
|
|||
|
|||
|
RE: Installing PHP without a webserver
Sure, you can use it in the ways you say. I use PHP for my backup scripts. But I'm sure that he is doing something that needs displayed in a browser.
I could swim to Hawaii too. But I would rather take a plane or a boat. He is obviously new at this and he needs the least painful way of doing things. I suppose I should have said yes you can, without a browser but if your new to PHP it would be less painful to wack yourself in the nuts with a hammer than try to explain debuging through command line especially after it pukes on the HTML that I'm sure he is trying to incorporate within his scripts. Well thats just my two cents. It might be a lot of "Bull" or my mind might be out in the pasture some. Hell maybe I just think the grass is greener on the other side of the fence and it confuses me. Oh well Moo |
|
#6
|
|||
|
|||
|
RE: Installing PHP without a webserver
You were able to gather all that info about an anonymous poster from one sentence?!
Could you tell us where the S&P 500 will finish this year? |
|
#7
|
|||
|
|||
|
RE: Installing PHP without a webserver
I would tell you where the S&P will finish at. But there is a problem. You will end up making so much money and you will be drowned in women then you will bet it all or pork bellys loose all you money then you will come crying to me for a loan. I'm just a lonely polymeric chemist with a crappy life of my own I don't need you on my door step, living in a cardboard box. Then my kids will feel sorry for you and start bringing you table scraps to survive.
So thank me now form keeping you from a life of turmoil |
|
#8
|
|||
|
|||
|
RE: Installing PHP without a webserver
Acually Mr Cow was correct.
|
|
#9
|
|||
|
|||
|
answer the question
You two guys amaze me, this guy asked a question and you towo are arguing over who is right or wrong in the way you answered his question....just answer the question already, neither one of you told him how to do it.
|
|
#10
|
|||
|
|||
|
inbstalling php cgi
1 install php. when the list of servers come up select CGI
2 In the command line... Type this set path %path%;"c:\Program Files\PHP" Type exactly the same, this will set the path to the php programs. If you install thenm in a different location you will have to change the location in the line. 3 When writing a script always use the following format. Dont know if all of it is needed but this is the way I do it. #!/usr/local/bin/php <?php ----your code goes here---- ?> thats it. write a code and in command line, if you put your script in the C root directory, you woyuld type php and you file as in php test.php. Always end the file extension as .php |
|
#11
|
|||
|
|||
|
wow, arguing about a thread well over 6 years old...you amaze me.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Installing PHP without a webserver |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|