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

15th Mar 2017, 3:35 PM
krupa
9 Antworten
+ 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.
15th Mar 2017, 6:57 PM
seamiki
seamiki - avatar
+ 2
did you put the phone file in the right directory (htdoc) ? make sure you enter right path.
15th Mar 2017, 5:17 PM
Nithin
Nithin - avatar
0
yes I put that file in the htdocs but still I am having error 404.
15th Mar 2017, 5:20 PM
krupa
0
is it inside on another folder?
15th Mar 2017, 5:21 PM
Nithin
Nithin - avatar
0
no
15th Mar 2017, 5:22 PM
krupa
0
if you are using xampp there will be two htdocs folder you should make sure you placed file in the right directory.
15th Mar 2017, 5:23 PM
Nithin
Nithin - avatar
0
OK I will check
15th Mar 2017, 5:24 PM
krupa
0
no I am only having one htdocs. I think there is some other technical fault.
15th Mar 2017, 5:31 PM
krupa
0
Ty but I have done all that but program is not running.should I uninstall this xampp & download the other xampp
15th Mar 2017, 7:01 PM
krupa