zero-perfoliate
zero-perfoliate

Author Topic: Help a noob!  (Read 475 times)

Offline marco423

  • New PHP Members
  • Posts: 2
  • Karma: +0/-0
Help a noob!
« on: April 10, 2010, 03:19:36 PM »
ok so im finding whenever i link to a file, the PHP code will not show up, only the html code. for example:
if i link to one.php and its contents are:
<?php
echo hello;
?>
This is my html code.


only this is my html code will show up. not hello.
could it be like an installation error? or what please help me.

Offline RoseKnight

  • PHP Help Guru's
  • ****
  • Posts: 52
  • Karma: +0/-0
Re: Help a noob!
« Reply #1 on: April 10, 2010, 05:29:24 PM »
when using a string, make sure you have the string in between quotes.

e.g.

instead of:
echo hello;

use:
echo 'hello';

Offline marco423

  • New PHP Members
  • Posts: 2
  • Karma: +0/-0
Re: Help a noob!
« Reply #2 on: April 12, 2010, 12:00:05 PM »
that doesnt make a difference

Offline Goldie_

  • New PHP Members
  • Posts: 2
  • Karma: +0/-0
Re: Help a noob!
« Reply #3 on: April 14, 2010, 04:11:51 PM »
- open php.ini
- find display_errors
- change it to "display_errors = On"
- save it and close it
- restart server

then you'll see where is the error

 

zero-perfoliate