0
In xampp ,simple programs of php language aren't running .they are having same error 404.what can i do to run php program?
I have set in xampp control panel, apache running & in goggle chrome localhost is showing
9 Respuestas
+ 4
1 did you start apache server from the cpanel?
2 if yes did you get a confirmation that the server is running on localhost:80?
3 typing localhost in your browser takes you to index.html file in htdocs?
if all the answers to these questions are affirmative,
1 open the htdocs folder from the button provided in the cpanel
2 delete all the files from the htdocs directory
3 open notepad
4 type
<?php echo 'it works'; ?>
5 save the file in the xampp htdocs folder ad test.php
6 in your browser type
localhost/test.php
now everything is working.
+ 2
did you put the phone file in the right directory (htdoc) ? make sure you enter right path.
0
yes I put that file in the htdocs but still I am having error 404.
0
is it inside on another folder?
0
no
0
if you are using xampp there will be two htdocs folder you should make sure you placed file in the right directory.
0
OK I will check
0
no I am only having one htdocs. I think there is some other technical fault.
0
Ty but I have done all that but program is not running.should I uninstall this xampp & download the other xampp