"live" version of php?
Is there a way to run php files on your own computer, just like if its on a webserver?
|
Yes... you could use the php-cli interface, or install your own webserver and php instance. (I recommend lighttpd for testing: it's lightweight and easy to use.)
|
i tried it, but is it possible to parse a html file of the php file (the php file has html code)? Because I want to learn php, but i don't want to upload each little chance in the file to test it
|
What did you try? Matir's first suggestion or the second?
If you install a webserver on your machine (or on a spare one if you have), you can connect to it using e.g firefox and test. |
oh sorry, i forgot to mention that i used the php-cli way.
But i don't want to run a webserver just to test some php-files, but if there isn't an other i should do it that way. |
If you want to display webpages, you need a webserver or you must except the HTML tags in your output.
|
Quote:
So I'll second the recommendation to install a light web server which is "php-enabled" so you can just create/edit your php files and test the pages in your favourite web browser, without needing to upload anything off your machine before it's ready. |
i installed lighttpd and php, but when i start lighttpd with:
Code:
lighttpd -D Code:
2008-02-15 21:29:22: (server.c.548) No configuration available. Try using -f option. |
If you are just doing development and do not have much experience with setting up a server, i would recommend justs installing xampp from apachefriends.org
It will install Apache, MySQL, and PHP with almost no input needed from you. There are versions for both linux and windows, and there are also ad on packages for Perl, Tomcat..... Dan |
All times are GMT -5. The time now is 10:11 AM. |