+ 4

I dont know how to run php in laptop??

I have install xampp but it is not working can anyone pls help pls tell me how to run PHP .

14th Jul 2017, 1:10 PM
Mahak Agrawal
Mahak Agrawal - avatar
9 Answers
+ 4
Step 1:Ā In the XAMPP control panel, click on ā€˜Startā€™ under ā€˜Actionsā€™ for the Apache module. This instructs XAMPP to start the Apache webserver. Step 2:Ā Open your web browser and type in:Ā http://localhostĀ or 127.0.0.1 Step 3:Ā Select your language from the splash screen. now to test php is installed or not.. open notepad and write a code <?php Ā Ā  echo ā€˜Hello worldā€™; ?> and save this file with extension .php (say test.php) in c:\xampp\htdocs now open ur browser and type http://localhost/test.php
14th Jul 2017, 1:28 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 3
if u run a php does it show as plain text? check ur htdocs folder did u put everything in the correct path?
14th Jul 2017, 1:25 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 3
blank page or error page? did u start apache? and does ur code have any syntax mistakes? omg i feel like coming to ur house to fix this because u also need to understand we are guessing what u might have done wrong
14th Jul 2017, 2:07 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 3
ok I will try Sami and let you know thanks
14th Jul 2017, 2:24 PM
Mahak Agrawal
Mahak Agrawal - avatar
+ 2
yes I have tried this but not working
14th Jul 2017, 1:46 PM
Mahak Agrawal
Mahak Agrawal - avatar
+ 2
if u type in localhost what does it show?
14th Jul 2017, 1:48 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
a blank page
14th Jul 2017, 1:51 PM
Mahak Agrawal
Mahak Agrawal - avatar
+ 2
does your Apache server gets started?
14th Jul 2017, 2:02 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 2
file:///c:/xampp/htdocs/test.phpĀ write this in browser let me know what it shows
14th Jul 2017, 2:03 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar