Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Mar 31, 2011 11:15 am 
Offline
Senior Newbie

Joined: Thu Mar 31, 2011 11:12 am
Posts: 5
Hello,

I have installed Wordpress (CMS) on Ubuntu and a custom PHP code in one of its pages doesnt execute as it has to. Instead, the code as a whole is directly output to the browser.


Top
   
 Post subject:
PostPosted: Thu Mar 31, 2011 11:22 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
That's a pretty vague problem, can you be more specific, where did you put this php code?

If you put it in the wordpress post/page content box then it won't be rendered.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Mar 31, 2011 11:48 am 
Offline
Senior Newbie

Joined: Thu Mar 31, 2011 11:12 am
Posts: 5
Wordpress is installed on Ubuntu.
ExecPHP plugin is used to execute PHP code on one of the Wordpress pages.
The purpose of the plugin is to execute the code and output the browser.
Instead, it outputs the code to the webpage.

This plugin works fine on Wordpress installed on Red Hat Linux.
I hope this information helps :) .


Top
   
 Post subject:
PostPosted: Thu Mar 31, 2011 12:21 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
A link to the offending page would be useful, also check your phpinfo() and see if eval is in the disabled functions list.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Sat Apr 02, 2011 10:36 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
kiranpvsr wrote:
Instead, the code as a whole is directly output to the browser.

You probably use <? or <% opening tags in that file.
Use <?php instead.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Sat Apr 02, 2011 10:52 am 
Offline
Senior Member

Joined: Sat Mar 12, 2011 3:43 am
Posts: 76
Location: Russia
obs wrote:
see if eval is in the disabled functions list.

eval can't be disabled, is not function.


Top
   
 Post subject:
PostPosted: Sat Apr 02, 2011 12:27 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
eval is function:
http://php.net/manual/en/function.eval.php


Top
   
 Post subject:
PostPosted: Sat Apr 02, 2011 12:36 pm 
Offline
Senior Member

Joined: Sat Mar 12, 2011 3:43 am
Posts: 76
Location: Russia
waldo wrote:

From this page:
Quote:
Note: Because this is a language construct and not a function, it cannot be called using variable functions

Also 'eval' can not be disabled in php.ini. Just check it.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group