Php codes dont run | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Php codes dont run

Hello I'm new in php. After saving my file as .php I want to run it on my browser but the exact code will appear not the result of it. I turn on Apache and mysql in xampp but I dont know what's the problem.

28th Jun 2021, 9:51 AM
Fram
Fram - avatar
3 ответов
+ 1
php code must me executed at "server side"... meaning you must also have php interpreter installed and linked with apache... as well as not directly opened in browser, but served by apache: access it through url, not file path, in your browser ^^
28th Jun 2021, 10:31 AM
visph
visph - avatar
+ 1
usually xampp will provide it to you (xampp == X (cross) Apache MariaDB Perl PHP) you just need to make sure it's "turned on" with the correct version of php you're expecting to run ^^ the php file(s) must be in the www (or whatever it's named) folder of the xampp installation (folder accessible through url in your browser)...
28th Jun 2021, 5:01 PM
visph
visph - avatar
0
How install php interpreter and link it with Apache?
28th Jun 2021, 12:08 PM
Fram
Fram - avatar