Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I am trying to access mysql from android eclips using php webservices. I installed wamp server. Please guide me where I put php file? whether in www folder of wamp or I have to install xampp server and place this file in hdocs folder? If I put php file in www folder then what url should be given in java file?

I am giving the url as "http://localhost/phpfile.php. but it is not working properly. It displays this url as it is on output...

I have 2 queries...
. Where I have to put php file?
. And what will be the url of php file?

Kindly guide me..
Thanks in advance...
Posted

1 solution

Not clear what have you done. Is your HTTP server installed started and was configured properly? Is PHP installed and the server properly configured to use it. *.php file names? PHP.INI?

The location of PHP files served by HTTP is no different from HTML and other files. All the directory structure is computed relative to the Web site root directory in terms of the server-side file system space, and domain name in terms of URL space. Assuming your root directory of the Web site is "c:/MyWebSites/MyWebSite", it gives:
http://localhost/phpfile.php <--> c:/MyWebSites/MyWebSite/phpfile.php
http://localhost/some-sub-directory/phpfile.php <--> c:/MyWebSites/MyWebSite/some-sub-directory/phpfile.php
...
...


—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900