Having an issue when compiling php code :( | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Having an issue when compiling php code :(

"The webpage cannot be found Http 404 " how I can solve this ? thanks :)

17th Nov 2016, 12:27 PM
Mazin
Mazin - avatar
7 Answers
+ 2
If you are dealing with PHP you allways need a webserver with PHP installed. You can not open a php-file directly in a browser, instead of HTML/JavaScript files. PHP will be executed on the webserver and will deliver HTML/JS to the browser.
18th Nov 2016, 7:11 AM
jmey
+ 1
that didn't sounds like a php compiling issue... Did you get the right URL? What about other ressources in the webserver, e.g. images or simple HTML are the accessable?
17th Nov 2016, 4:13 PM
jmey
+ 1
but not your PHP file? try to upload the simplest phpfile in the world: <?PHP phpinfo(); ?> and try to reach it. if you get the same error your webserver did not have PHP installed.
17th Nov 2016, 4:35 PM
jmey
0
hi jmey yes all images and stuff are accessible.
17th Nov 2016, 4:29 PM
Mazin
Mazin - avatar
0
same error :(
17th Nov 2016, 4:40 PM
Mazin
Mazin - avatar
0
what kind of webserver did you use? Maybe you could install xamp on your system and try it local to test your code.
17th Nov 2016, 7:56 PM
jmey
0
wow thanks a lot jmey. installed xampp and problem gone.
18th Nov 2016, 6:52 AM
Mazin
Mazin - avatar