tags:

views:

195

answers:

3

hi

i want to run single php file using apache-tomcat-6.0.18

my project is GWT project with server side is java servlet

i deployed my project on server in apache-tomcat-6.0.18/webapps/ folder

So please tell me the solution to run php file

A: 

You should put your php file in www folder in apache installation and then you can access that file from browser like this:

http://localhost/your_file_name.php

localhost is the default host name in most configurations.

Sarfraz
but there no folder like www in apache-tomcat-6.0.18 installation directory
Tushar Ahirrao
what about what like 'httdocs' or `public_html`, you need to search in for those names in apache directory.
Sarfraz
@Sarfraz: "Apache Tomcat" is not the same thing as "Apache". One is a servlet host, the other is a web server.
Amber
Tushar Ahirrao
A: 

Try this, if not working, check this thread.

Alexander
A: 

Use the PHP/Java Bridge. As long as your PHP was compiled with cgi support, it should work seamlessly.

Steven Jay Cohen