Posting "PHP" into a post help

Started by Judgey, October 01, 2008, 11:03:30 AM

Previous topic - Next topic

Judgey

Hey i want to post some php code in a post on my forums, but it dont show the output just the code.

so for below code, (i have added the quote tags) But i want the php code to show the page in the post, anyway of doing this?

Quote<?php
   echo '<link href="http://******.info/rss/TEMPLATE_simple/index.css" rel="stylesheet" type="text/css" />';
   
   $display = 'ByFlux';
   
   // Number of article
   $start = '0';
   $end = '100';
   
   $tag = '';
   
   $template = 'TEMPLATE_simple';
   
   $path = '/var/www/*****/judgey/*******/httpdocs/rss';
   include($path.'/display.php');
?>

spearfish

Wait... so you want it to execute the PHP first?  No, you can't do this, probably for your own safety!

Judgey

#2
Yes i want it to be executed, is there no way round this?

EDIT - If not is there a mod were i can add a button to the forums and make it direct to the page i want?

EDIT 2 - Found wot i was looking for thx http://custom.simplemachines.org/mods/index.php?mod=1421

Many thx u can put this as solved now :)

Advertisement: