Jump to content

php help


mikensu

Recommended Posts

When I click on the .php files no webpage is coming up.  When I include php code in an html page the php code does not show up.  But if I save a html code in a .php file the html code does show up.  The system does reconize the .php extention as php files.  How do I troubleshoot this.

 

 

Link to comment
Share on other sites

well it could be something complex like not having PHP installed

 

or it could be that you just have an error somewhere in your PHP code which keeps the whole page from being sent to the brower.

 

try this:

make a new page, named something like  "text.php"

 

the put this code in it.

 

Here is some <b>HTML</b> <br>
<br>
<?php
echo "and Here is some PHP";
?>

 

if that loads, the I suspect the problem is in your original source code.

Link to comment
Share on other sites

If you are trying to open a *.php file by clicking on it you will get nothing. You have to have a web server with PHP installed to then open them through a web browser "URL/file.php" PHP requires a PHP engine to display or process PHP code. There are many great free package that work great. Google WAMP  or LAMP.

 

Brett

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.