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

Home » FUDforum » How To » Can't work with maillist.php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon9.gif  Can't work with maillist.php [message #9916] Mon, 12 May 2003 12:35 Go to next message
Gaëtan is currently offline  Gaëtan   France
Messages: 22
Registered: March 2003
Karma: 0
Junior Member

Hello,

Despite many tries i can't use the maillist.php script Sad

Because i don't have access to the .procmailrc i tried to call the maillist script via another script, testit.php in forum directory. Testit.php contains :

<?php

?><HTML>
<HEAD>
<TITLE>Test for maillist.php script</TITLE>
</HEAD>
<BODY>
<?
echo "begin of the test<br>";
echo shell_exec("cat mail.txt | scripts/maillist.php 1");
echo "end of the test<br>";
?>

</BODY>
</HTML>


mail.txt contains an email with a complete header.
I tried to change some files permissions, insert some echo "xxx" in the maillist.php script without success, neither echo or mail in the forum appears.

When i call www...../forum/testit.php i got in return :
begin of the test
Content-type: text/html X-Powered-By: PHP/4.3.0 begin of the test
Content-type: text/html X-Powered-By: PHP/4.3.0 begin of the test
Content-type: text/html X-Powered-By: PHP/4.3.0 begin of the test
Content-type: text/html X-Powered-By: PHP/4.3.0 begin of the test
... <same line many times>
Content-type: text/html X-Powered-By: PHP/4.3.0 begin of the test
end of the test
end of the test
... <same line many times>
end of the test


Any idea ?
What could be wrong ?

Thank's


Gaëtan
Re:Can't work with maillist.php [message #9945 is a reply to message #9916] Tue, 13 May 2003 14:06 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You are using php-cgi, which means that you need to execute it with '-q' parameter so that the 'Content-type: text/html X-Powered-By: PHP/4.3.0' line does not get printed.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: disable notification
Next Topic: Colors
Goto Forum:
  

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

Current Time: Wed Nov 06 02:15:06 GMT 2024

Total time taken to generate the page: 0.03037 seconds