Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-12-28, 05:21 PM   #1
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
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...
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Old 2007-12-28, 06:00 PM   #2
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
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.
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2007-12-28, 06:17 PM   #3
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Quote:
Originally Posted by walrus View Post
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.
That's what I've used and works fine within posts. I believe it's another situation in which you want to turn off the Visual Rich Editor.
http://bluesome.net/post/2005/08/18/50/
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2007-12-28, 06:40 PM   #4
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by Useless Warrior View Post
That's what I've used and works fine within posts. I believe it's another situation in which you want to turn off the Visual Rich Editor.
http://bluesome.net/post/2005/08/18/50/
Or, in other words, read the fucking manual
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2007-12-28, 08:22 PM   #5
spacedog
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Mar 2007
Posts: 45
Quote:
Originally Posted by walrus View Post
Or, in other words, read the fucking manual
yep. did everything it said.. even installed the role manager, etc..

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:
<?
 include("../script.php");
 $query   = "SELECT COUNT(url) AS numrows FROM links";
 $result  = mysql_query($query) or die('Error, query failed');
 $row     = mysql_fetch_array($result, MYSQL_ASSOC);
 $numrows = $row['numrows'];
 
 $maxPage = ceil($numrows/65);

 $sql = "SELECT url, title, date FROM `links` ORDER BY date DESC LIMIT ".$offset.", 65;";
 $rs = mysql_query($sql);
 echo mysql_error();
 
 
 $self = $_SERVER['PHP_SELF'];
 $nav = '';
 for($page = 1; $page <= $maxPage; $page++)
 {
    if ($page == $pageNum)
    {
        $nav .= " $page ";
    }
    else
    {
        $nav .= " <a href=\"$self?page=$page\">$page</a> ";
    }
 }

while($row = mysql_fetch_row($rs)){
     echo "<a href=\"".$row[0]."\">".$row[1]."</a>".$row[2]."\n<br>\n";}

 echo "<p>Page: ";
 $self = $_SERVER['PHP_SELF'];
 $nav = '';
 for($page = 1; $page <= $maxPage; $page++)
 {
    if ($page == $pageNum)
    {
        $nav .= " $page ";
    }
    else
    {
        $nav .= " <a href=\"$self?page=$page\">$page</a> ";
    }
 }

echo $first . $prev . $nav . $next . $last;
 mysql_close();
?>
and I end up with on the post
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
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /dirname/0/blahblah/htdocs/file/name/wp-content/plugins/exec-php/runtime.php(41) : eval()’d code on line 29
__________________
spacedog is offline   Reply With Quote
Old 2007-12-28, 10:46 PM   #6
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
In the docs, the author states:
Quote:
If you experience a PHP error message like 'Some error in /home/minime/htdocs/blog/wp-content/plugins/exec-php/runtime.php(41) : eval()’d code on line 4' then it's time to repair your PHP code. If you are unsure where your code breaks, first run it in a separate file to punch out all bugs and afterwards copy the code into your article or widget.
So I guess he's saying, "it's you, not me."

I'm not a PHP guru, so I really couldn't tell you what's wrong with the included script's code.
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2007-12-29, 10:50 AM   #7
spacedog
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Mar 2007
Posts: 45
Quote:
Originally Posted by Useless Warrior View Post
In the docs, the author states:So I guess he's saying, "it's you, not me."

I'm not a PHP guru, so I really couldn't tell you what's wrong with the included script's code.

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
__________________
spacedog is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:17 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc