Pages: [1]   Go Down
Author Topic: Help a noob!  (Read 227 times)
marco423
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


« on: April 10, 2010, 06:19:36 AM »

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.
Report to moderator   Logged

RoseKnight
Sr. Member
****

Karma: +0/-0
Offline Offline

Posts: 52


« Reply #1 on: April 10, 2010, 08:29:24 AM »

when using a string, make sure you have the string in between quotes.

e.g.

instead of:
echo hello;

use:
echo 'hello';
Report to moderator   Logged

marco423
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


« Reply #2 on: April 12, 2010, 03:00:05 AM »

that doesnt make a difference
Report to moderator   Logged

Goldie_
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


« Reply #3 on: April 14, 2010, 07:11:51 AM »

- 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
Report to moderator   Logged

Pages: [1]   Go Up
Print
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC | Theme Kani By Fussilet

Page created in 0.032 seconds with 21 queries.