How can I view PHP files through my web browser?

brandon

New member
Whenever I open up my PHP files with my web browser it never shows it is always blank or doesnt work
How can i get it to show PHP
and im using a website host
 
Be sure that your host has PHP support. If your hosting plan doesn't have PHP, then you'll have to manually install it.

Also note, PHP scripts work invisibly on the server, and is outputted as plain HTML.
 
The reason why PHP will not launch directly in your browser is because PHP is a server side language, what this means is that PHP is launched on a server, and the result is sent to the browser, for example, when the server completes a PHP if statement, the output is put out in plain HTML for the browser to handle.

So to run PHP code for testing purposes, create a test folder on your web space, password protect it if needed, and upload your test PHP files there. Problem solved :)
 
Back
Top