After writing all the php codes when i try to open the file which is save as .php all the codes get displayed on my browser instead of displaying the codes which i wrote in echo part. I need a help.
Đang xem: Mở file php bằng chrome
open xampp, htdocs folder and create new folder inside the htdocs folder and give it an name ” let's call it name”.now put the .php files you create in this folder “example index.php “. it's very important to run xampp,after running xampp open browser and typehttp://localhost/name/index.phpnow you should see the content of the index file
You'll need a localhost server to run PHP on your PCtry xampafter installing and configuring make sure you start the Apache server and the php file must be in the htdoc directory in the xamp foldergo to Chrome and type localhost/your PHP file
Xem thêm: Bcaa Là Gì – Tác Dụng Phụ Và Cách Dùng Bcaa Hiệu Quả
index.phpthat's odd. is the page blank or what does it show? maybe you can post your code in code playground.
to let the php interpreter know that it is php code?”>did you use to let the php interpreter know that it is php code?
save your files in root folder, .php extension. turn on your local server..type localhost in address bar, if its not working type localhost:8080, localhost:3036 etc. let us know what exactly you're facing
Xem thêm: The 17 Best Body Lotions Of 2021, Body Lotions
you need a localhost server to run PHP on your PCtry wamp if using Mac try Mamp or Lamp for Linuxafter installing and configuringgo to Chrome and type localhost/your PHP script
you must install a server apache in your machine, because php is a server side programming language