![]() |
executing php in a wordpress blog post?
I'd like to execute php in a wordpress blog post but can't get it to work.
I tried two different plugins, neither of them work. exec php & run php. With exec php after entering code between the tags it just shows the code in the post instead of showing what the code is telling it to show. Anyone know a way to solve this? |
Same problem here. I can give you a couple of others to try...didn't work for me, but maybe you'll have better luck.
http://www.daikos.net/widgets/daikos-text-widget/ http://www.erik-rasmussen.com/blog/2...tize-anything/ I'm trying to drop in some php from Dragonscrips, and it just says "cannot connect to server" If you figure it out, let me know... |
I run exec.php and am able to add php to pages without any problem. have never tried posts but can't imagine it would be different.
|
Quote:
http://bluesome.net/post/2005/08/18/50/ |
Quote:
|
Quote:
tried several times & nothing works.. not in a post nor as a page. I have tgp on root & blog in dir. Script is in root & trying to include tgp script in post thats on blog in dir as Code:
Code:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ 65′ at line 1 |
In the docs, the author states:
Quote:
I'm not a PHP guru, so I really couldn't tell you what's wrong with the included script's code. |
Quote:
The code works fine on a normal php page. Must be some conflict with wordpress & the plugin and I don't know how to fix this as I didn't write this code |
It's more than likely a pathing problem in the code. Wordpress is a bit unique in that a post resides within the theme and the path through there would be through your theme.
Try using absolute instead of relative paths and you may be ok. |
All times are GMT -4. The time now is 11:10 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc