+ 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 .
9 Respuestas
+ 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
+ 3
if u run a php does it show as plain text?
check ur htdocs folder did u put everything in the correct path?
+ 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
+ 3
ok I will try Sami and let you know
thanks
+ 2
yes I have tried this but not working
+ 2
if u type in localhost what does it show?
+ 2
a blank page
+ 2
does your Apache server gets started?
+ 2
file:///c:/xampp/htdocs/test.php write this in browser let me know what it shows