PHP script does not work in browser

I installed the XAMPP server on my system in order to be able to use PHP. But after installation, when I run any PHP script in the browser, it does not start. I do not see a way out. Without checking phpinfo () from the local host, I see that version 5.3.5 is installed even when I run a simple php file, for example, where I echo the lines,

I donโ€™t see anything in my browser. So my question is: do I need to make any changes to my browser or system configuration in order to run PHP.

+3
source share
3 answers

Put your scripts in / XAMPP / htdocs and then tell the browser: http: //localhost/your_script.php

+4
source

It is best to look at your log files and possibly include an error report. Put a simple script in your website that is just an echo line, for example:

<?php echo "Hello World!"; 

with the foregoing, there is very little that can go wrong. Work from there. Take a look at your phpinfo and see where your log files are located. Search

 error_log 

for the path to your PHP error log file and maybe look

 display_errors 

switched on.

This is something that has many features that can be the cause of your problem.

+2
source

install phpxx-php , which is used to create dynamic websites

check php version with php -v

if you have php55 then use:

 yum install php55-php.x86_64 
+1
source

All Articles