TinyPortal

Development => Support => Topic started by: SpiffyJr on July 27, 2007, 03:31:17 PM

Title: PHP articles showing blank
Post by: SpiffyJr on July 27, 2007, 03:31:17 PM
I'm trying to use TinyPortal as a wrapper for a PHP file so I tried out the PHP article. I used a bit of simple test code <?php echo 'test'; ?> and when I preview the page all I get is a blank page. I even tried <?php die("TEST!!!"); ?> as well as just die("TEST!");

Any ideas?
Title: Re: PHP articles showing blank
Post by: Lesmond on July 27, 2007, 03:37:40 PM
remove the <?php and ?> from the code so you just have   echo ' test ';
Title: Re: PHP articles showing blank
Post by: SpiffyJr on July 27, 2007, 03:43:42 PM
Tried that as well. All I get is "echo 'test';" It's like the file isn't being parsed at all.
Title: Re: PHP articles showing blank
Post by: Lesmond on July 27, 2007, 03:49:31 PM
Strange I have just tested it on my local server, here.. http://lesmond.homedns.org/smf2/index.php?page=6

echo ' <b>This is what I get</b> ';
Title: Re: PHP articles showing blank
Post by: SpiffyJr on July 27, 2007, 03:53:14 PM
Joy. Something must have borked on my end, then. Let me make a page real fast for a demo.

Alright, attached is an image of what I put in the article editor and you can view it at http://www.phpraider.com/index.php?page=45
Title: Re: PHP articles showing blank
Post by: IchBin on July 27, 2007, 11:18:17 PM
Delete the article and create a new one. Let me know if you still have this problem.
Title: Re: PHP articles showing blank
Post by: SpiffyJr on July 28, 2007, 05:04:52 PM
Deleted and remade using echo 'test'; and the same thing happens.