PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Error loading modules (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Error loading modules


#1027
spektr (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Error loading modules 4 Years, 7 Months ago Karma: 0  
Hi guys,

1. Cay someone tell me why am I having this error. I included a php file into my article. When I try to preview the page I receive this:
http://picasaweb.google.si/SpEkTrOsLaF/ ... 3375818258

What modules? I don't understand? I disabled all modules but error doesn't go away..
I tried with this codE:
<?php
require_once 'Tools/phpMyEdit/Kanali.php';
?>



2. The only way that it works is through iFrame, but in that case I can't write If sentences, since DirectPHP crashes...
"Parse error: syntax error, unexpected '}' in /home/akkranj/Testno/plugins/content/DirectPHP.php(49) : eval()'d code on line 1"
It happened with this code:

<?php
$user =& JFactory::getUser();
if ($user->username=="Administrator")
{iframe}Tools/phpMyEdit/Kanali_admin.php{/iframe};
else
print "test";

function Kanali_admin()
{
{iframe}Tools/phpMyEdit/Kanali_admin.php{/iframe};
}
?>

Do you have any idea?
 
  The administrator has disabled public write access.

#1053
kksou (Admin)
Admin
Posts: 1676
graph
User Online Now Click here to see the profile of this user
Re:Error loading modules 4 Years, 6 Months ago Karma: 27  
{iframe} is not a valid PHP statement.

You need to use: echo "{iframe}";
if you wish to output any HTML or javascript statement.

All the code that you want to be run by DirectPHP has to be valid PHP statements.

Regards,
/kksou
 
  The administrator has disabled public write access.

#1058
spektr (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Error loading modules 4 Years, 6 Months ago Karma: 0  
Thanks, I will try your way :)
 
  The administrator has disabled public write access.
#1059
spektr (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Error loading modules 4 Years, 6 Months ago Karma: 0  
Can you give me a hint how to call this php file with this echo thing?

echo "{iframe}Tools/phpMyEdit/Kanali.php";
 
  The administrator has disabled public write access.
#1062
spektr (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Error loading modules 4 Years, 6 Months ago Karma: 0  
By the way, i was using iframe plugin. Should I disable it?
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Links - Classes - Social Business - BPM - Web - General
Copyright © 2006-2013. kksou.com. All Rights Reserved