Jump to content
xisto Community
KingSingh

How To Use Xampp To Test Php

Recommended Posts

Hi, I'm new at Xisto, and it's a good host, but there are too many forums so sorry if I got this is the wrong forum.

I am using Fedora 9 (Linux) and I want to test PHP locally and one of the moderators said XAMPP is good. I''ve got it installed and that, and I can go to the XAMPP page by going to LOCALHOST/xampp/ and logging in.

However, I want to know how I can use XAMPP to test PHP locally.

Any help would be appreciated. :)

Share this post


Link to post
Share on other sites

Store your scripts/programs in the htdocs sub-folder under the XAMPP folder.
Then access the script using LOCALHOST/folder/script.php in your Browser. Be certain that the XAMPP Apache Server is running before calling the script.

Share this post


Link to post
Share on other sites

I don't get what you mean by access the script. To go on XAMPP, in the Terminal, I type

su-root password-/opt/lampp/lampp start

Then I go to LOCALHOST/
To stop XAMPP, I do the above but type 'stop' instead of 'start'.

Thanks anyway, 'cause now I can test my PHP scripts locally. :)

EDIT: Oh, you're probably on 'bout XAMPP on Windows... Lol. I used Fedora more. :P
Edited by KingSingh (see edit history)

Share this post


Link to post
Share on other sites

Dunno where XAMPP for Linux expects files to be... Generic Apache configuration on my Linux looks in /var/www for files and scripts... Maybe there? You should read XAMPP documentation, or configuration files, to see where XAMPP wants the files to be...

Share this post


Link to post
Share on other sites
xamp problemHow To Use Xampp To Test Php

I am begginer in php.I installed xamp server and started the server now I dontknow how to run my first php basic program.

-reply by arsh

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.