Hii ,

I am a beginner in PHP .I would like to know how one can execute a PHP script using XAMPP server ... ??

Any suggestions ... :)

link|improve this question
feedback

2 Answers

Assuming Windows:

Navigate to your "localhost" folder (usally): C:\xampp\htdocs

Create a new folder called "ravi", and inside that folder create a file called: index.php

Put all your PHP code in that index.php file and save the file.

Then, after starting XAMPP, navigate to: http://localhost/ravi/

And you'll see your script running.

Gav

link|improve this answer
feedback

Of course your index.php should follow the php rules. For example your code has to start with

<?php

and end with ?>

You can use this tutorial http://www.w3schools.com/php/php_syntax.asp to get some information regarding php how-to

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.