| | |
testing php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
tomcat is typically used with Java Servlets not PHP, besides opening the file in a browser how else are you supposed to test it?
I don't know, you'll have to explain your situation a little more
here is a verry simple php file:
[php]<? phpinfo(); ?>[/php]
when you run that and you get a lot of PHP info then you will know PHP is working on your server
I don't know, you'll have to explain your situation a little more
here is a verry simple php file:
[php]<? phpinfo(); ?>[/php]
when you run that and you get a lot of PHP info then you will know PHP is working on your server
Paradox, his question is clear enough I think. His point is that you can't simply double-click a PHP file on your local disk and expect it to pop open and run in the browser---like you would an HTML page.
Sam, you are on the right track--you can only test PHP against a webserver configured to process PHP. The defacto standard web server for use with PHP is Apache. However, IIS works fine, too. I don't know about Tomcat.
My recommendation is to install Apache and PHP on your local workstation and use that. The process is not too difficult, but not exactly intuitive to the first-timer either! I have a slightly dated WAMP HOWTO that should get you where you need to be.
http://www.troywolf.com/articles/wamp_howto.htm
If you want to use a Linux server to test against instead of Windows, then look for a LAMP guide. Actually, most Linux flavors come with Apache ready to process PHP, so it could be as simple as starting your Apache process and plopping your PHP files into the webroot dir.
Sam, you are on the right track--you can only test PHP against a webserver configured to process PHP. The defacto standard web server for use with PHP is Apache. However, IIS works fine, too. I don't know about Tomcat.
My recommendation is to install Apache and PHP on your local workstation and use that. The process is not too difficult, but not exactly intuitive to the first-timer either! I have a slightly dated WAMP HOWTO that should get you where you need to be.
http://www.troywolf.com/articles/wamp_howto.htm
If you want to use a Linux server to test against instead of Windows, then look for a LAMP guide. Actually, most Linux flavors come with Apache ready to process PHP, so it could be as simple as starting your Apache process and plopping your PHP files into the webroot dir.
![]() |
Similar Threads
- Free PHP Hosting (PHP)
- Trouble installing PHP on my machine (PHP)
- Php parser error when xml version is mentioned (PHP)
Other Threads in the PHP Forum
- Previous Thread: PHP Help - Display forum online and total members on main page
- Next Thread: help!
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess 301 access ajax apache api array beginner binary broken cakephp checkbox class cms code compression cron curl database date directory display download dropdown dynamic echo email error file files folder form forms function functions google href htaccess html httppost image include insert integration ip java javascript joomla limit link login loop mail md5 menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search secure select server sessions sms soap source space speed sql structure syntax system table tutorial update upload url validation validator variable video votedown web xml youtube





