1

I have Project called Project2 in the Workspace( namely WorkSpace), which is inside the folder htdocs.

I have installed XAMPP in my machine. so the path of the project is C:\xampp\htdocs\WorkSpace\Project2

Now i want to execute the file called Add.php, which is in the Project2 folder. How can I execute the Add.php file in the browser directly.

Please spend few seconds for my query ........

11
  • localhost/WorkSpace/Project2/Add.php Commented Mar 24, 2011 at 11:27
  • First, write a browser plugin that encapsulates the PHP compiler and Zend engine... Commented Mar 24, 2011 at 11:27
  • Have you tried 127.0.0.1/WorkSpace/Project2/Add.php ? Commented Mar 24, 2011 at 11:28
  • Upon the browsers request, the PHP is executed by the server and the resulting html is sent to the browser. The server in this case runs on your localhost. Commented Mar 24, 2011 at 11:30
  • all suggestions work here but make sure that your webserver apache is running Commented Mar 24, 2011 at 11:31

1 Answer 1

3

visit http://localhost/WorkSpace/Project2/Add.php in your browser

Apache must be up an running - you can start Apache with XAMPP Control Panel

Sign up to request clarification or add additional context in comments.

4 Comments

I tried this but i am getting the Error saying Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 localhost 3/24/2011 5:01:33 PM Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
@Gnanendra hit localhost and see what you get
After enter the localhost.. I am getting Welcome to XAMPP for Windows! msg and XAMPP window
did you define any rewrite rules for example in a .htaccess file?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.