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
Return to the default flat view Create a new topic Submit Reply
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:
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: FUDforum on virtual hosts
Next Topic: make sticky and locking
Goto Forum:
  

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

Current Time: Tue Nov 26 10:53:47 GMT 2024

Total time taken to generate the page: 0.04763 seconds