Add to Google

How To Use Xampp To Test Php

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

How To Use Xampp To Test Php

KingSingh
Hi, I'm new at trap17, 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 http://localhost/xampp/ and logging in.

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

Any help would be appreciated. smile.gif

Reply

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

Reply

KingSingh
I don't get what you mean by access the script. To go on XAMPP, in the Terminal, I type
CODE
su
-root password-
/opt/lampp/lampp start


Then I go to http://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. smile.gif

EDIT: Oh, you're probably on 'bout XAMPP on Windows... Lol. I used Fedora more. tongue.gif

Reply

Galahad
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...

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. how can i test php locally? - 1.08 hr back. (1)
  2. how to use xampp on windows - 3.03 hr back. (1)
  3. php files in xampp - 13.73 hr back. (2)
  4. xampp configration file for parse html - 14.46 hr back. (1)
  5. how to use xampp - 3.05 hr back. (4)
  6. testing php with xampp - 23.38 hr back. (1)
  7. xampp php file - 27.89 hr back. (1)
  8. test php with xampp - 28.08 hr back. (1)
  9. xamp php script - 29.19 hr back. (1)
  10. parsing a php file xampp - 31.70 hr back. (1)
  11. php-file testen mit xampp - 33.10 hr back. (1)
  12. htaccess file in xampp - 35.45 hr back. (1)
  13. file not parse in xampp - 38.29 hr back. (1)
  14. run php in xamp - 42.61 hr back. (1)
Similar Topics

Keywords : xampp, test, php

  1. Xampp How Can I Generate "automatic Start Sites"
    (7)
  2. Sub Domain Help In Xampp
    Sub Domain Help in xampp (4)
    I am trying to work out how to get subdomains working in xampp. I have tried all of the tutorials
    on the net but I still cant work it out. Any Ideas? Thanks Rob....
  3. Parsing Html As Php
    and XAMPP as the server version on Windows (7)
    On my Trap17 account here, I have an .htaccess file with the following declaration which (I think)
    forces all html files to be parsed by the PHP Parsing engine and therefore I can insert snippets of
    php scripts into html files. CODE AddType application/x-httpd-php .html .htm However, when I
    add an .htaccess file to the local directory of the version of XAMPP on my local machine, it fails.
    I have tried to add the .htaccess file to the htdocs folder and elsewhere, but it still doesn't
    work to parse html through the php parser. Any ideas on how to get these htm....
  4. Php Version Differences? Or Not?
    between the trap and XAMPP??? (5)
    The Trap uses php version 4.4.1 and I have downloaded and installed the XAMPP php Local Server
    configuration which includes php version 5.1.1 and mysql and perl etc, but this question relates to
    the php because that is where I am currently having difficulties. This is the script I am having
    problems with locally: http://www.trap17.com/forums/script-build-...nks-t33362.html Both places
    have the same identical files, code and data. Both are folders in the root directory. I have used
    phpinfo function to confirm the server root is what it should be (public_html and htdo....

    1. Looking for xampp, test, php

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for xampp, test, php

*MORE FROM TRAP17.COM*
advertisement



How To Use Xampp To Test Php



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE