Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
I am confused (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: I am confused
#1165
bas1985 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
I am confused 2 Years ago Karma: 0  
I made a php script to retreive some data from a rss feed wich seems to work fine outside joomla

I tryed this module.
copy/paste the copy into the module, change a few paths to incudes ect.

But when I turn evaluate php on my entire joomla just shows a blank white screen.
if I turn evaluate off the site is displayed

but inside the php module it start echo-ing raw code as soon as it finds the first ">" character in the code

$output='<link rel="stylesheet" type="text/css" href="../style.css">';
$output.='<script src="http://static.wowhead.com/widgets/power.js"></script>';
$output.='<table border="0" cellpadding="3" cellspacing="0">';
$i=0;
$end=0;
and this is what is displayed:
'; $output.=''; $output.=''; $i=0; $end=0; while ($i < count($data) and $end !=1) { $output.=''; $output.=''; $output.=''; $output.=''; $i++; if ($i >= $maxResults) { $end = 1; } } $output.='
'.substr($data[$i]['updated'], 5, 5).'	'.$data[$i]['content'].'
'; $output = str_replace('obtained', '
and after that it does on printing the rest of the php code Any clue ?
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/02/04 01:05 By bas1985.
  The administrator has disabled public write access.
#1166
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:I am confused 1 Year, 12 Months ago Karma: 10  
You need evaluate PHP turned to on.
Did you wrap your code in PHP tags?

Make sure you have error reporting on so you can see the errors generated.

error_reporting(E_ALL);
ini_set('display_errors', 1);
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1167
bas1985 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:I am confused 1 Year, 12 Months ago Karma: 0  
aaahhh offcourse I am am idiot haha

I had turned on error reporting in my mind after just double checking it in fact wasnt.
the error was due to a mispelled include somewere

I did in include the code in <?php tags though. but it seems to work that way now
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1235
mkpeter (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:I am confused 1 Year, 6 Months ago Karma: 0  
==edited==
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/08/17 22:04 By admin. Reason: Spam
  The administrator has disabled public write access.
#1255
mikecriss (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:I am confused 1 Year, 5 Months ago Karma: 0  
thanks admin it was really a complicated question that u have been solved easily
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.