I have xampp server & sublime text. Why my php code is not running with html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have xampp server & sublime text. Why my php code is not running with html

1st Sep 2019, 5:32 PM
Mayank Raj Singh
Mayank Raj Singh - avatar
8 Answers
+ 3
It is also possible that any other server maybe running on your system( if you have any other server like tomcat installed). In that case, maybe because of same port your server is not working properly. If this is the case then you can either stop that server or check the port numbers of the servers if they are same then change it if possible because two services cannot run on same port.
1st Sep 2019, 6:07 PM
Chetali Shah
Chetali Shah - avatar
+ 2
If you are using html form then do add your php file in action attribute of your <form> tag. Also all files should be in htdocs folder present inside the xampp folder. Make sure you start apache in xampp.
1st Sep 2019, 5:58 PM
Chetali Shah
Chetali Shah - avatar
+ 2
I hope it helps :)
1st Sep 2019, 6:07 PM
Chetali Shah
Chetali Shah - avatar
+ 1
Thanks it is very helpful
1st Sep 2019, 6:14 PM
Mayank Raj Singh
Mayank Raj Singh - avatar
+ 1
How do you access the PHP document, what you type in address bar to load it? Can you copy that code from your computer, save it as PHP code in your profile and share the link on the Description for everyone to see? it might help to identify the problem. Without a code people can only do wild guessing : )
1st Sep 2019, 6:55 PM
Ipang
0
Yes
1st Sep 2019, 5:34 PM
Mayank Raj Singh
Mayank Raj Singh - avatar
0
All your php files need to be in xampp/htdocs directory
1st Sep 2019, 5:34 PM
Elva
Elva - avatar
0
Yes it is apache
1st Sep 2019, 5:59 PM
Mayank Raj Singh
Mayank Raj Singh - avatar