![]() |
Nope, I'm not running PHP in cgi-mode. Any other ideas? I really want to get this one working.
|
Quote:
your on linux? try locate php|more search through until you find a binary rather than a directory |
Dave,
/usr/bin/php is the binary. Quote:
|
Steve:
1) Can you run any php scripts via the command line? 2) Is your path to config.php correct? |
1. Apparently not. I tried with a couple of other scripts and got the same error. How do I get around this?
2. Yes, otherwise my forums would cease to function. Thanks! |
Quote:
|
I'm running RedHat 7.1. I'm not going to take a chance on rebuilding PHP. If something went wrong my forums would stop operating and I can't run that risk. :eek:
Also I just tested a couple of other PHP scripts from the command line and they executed just fine. It's only scripts that access a database that give me this problem. |
use lynx its a browser that comes with nearly every linux distrib and you can just execute the script as if you just typed it in to your browser.
Just use the following thats what i've done to get it to work as i was getting same error. |
Thanks PPN! That now works to create the latest_topics.txt file. However I now have another problem when I try to use the resulting script. You can see for yourself at:
http://www.optiboard.com/activefeed.html |
I rewrote nearly all of the code within this to do the following things, select latest topics from all forums that are open to users with groupid 1. It also writes to a .js file and the code should have been
Code:
<script language="JavaScript" src="http://yourdomain/forums/latest_topics.js"></script> also the ? needs escaped for both php and javascript so you need \\? i done this in my version and also made it work with ./global.php instead of connected within the file. New attachment two posts below. |
All times are GMT. The time now is 03:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|