FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » No command-line php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
No command-line php [message #21243] Tue, 23 November 2004 15:04 Go to next message
Vicw   United Kingdom
Messages: 10
Registered: November 2004
Karma: 0
Junior Member
Hmmm. It appears my distribution has no command-line php. This means that I can't get the mailing-list integration working.

Anyone got any ideas how to work around this? Or know where I can get a version of PHP 4.3 with /usr/bin/php for a Cobalt RaQ4? Building it myself is not an option - this box is *far* too out-of-date to have the necessary dev files ;-(

Vic.
Re: No command-line php [message #21247 is a reply to message #21243] Tue, 23 November 2004 15:17 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Other then installing PHP the only other solution is to modify the import script to work via the web and accept the message and the import id via POST and then use cURL to submit this data to a web script.

FUDforum Core Developer
Re: No command-line php [message #21249 is a reply to message #21247] Tue, 23 November 2004 15:19 Go to previous messageGo to next message
Vicw   United Kingdom
Messages: 10
Registered: November 2004
Karma: 0
Junior Member
Ilia wrote on Tue, 23 November 2004 10:17

Other then installing PHP the only other solution is to modify the import script to work via the web and accept the message and the import id via POST and then use cURL to submit this data to a web script.



I was hoping there'd be something like that.

Next up - got any pointers on how to do something like that? Or even what to read so that I understand what you just posted? *grin*

Vic.
Re: No command-line php [message #21250 is a reply to message #21249] Tue, 23 November 2004 16:28 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, it not a very complicated process.

Right now the script takes 1 argument via the command line which is the import id and the message is piped to the script. You;'d need to modify it to get the id via $_POST['id'] and the message from $_POST['message'].

Other then that you'd need to make sure that the GLOBALS.php can be found by the script (easiest way is to put the script inside the forum's main web dir).

The last part which is a little tricky is writing a shell script that would use curl binary get the message and import id and compose a POST request for the import script.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FUDforum on virtual hosts
Next Topic: make sticky and locking
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 08:59:02 GMT 2024

Total time taken to generate the page: 0.02541 seconds