Date: 08/17/01
- Next message: Jens Benecke: "Re: [phplib] Wie kann man die Ausgabe von table.inc von phplib gestalten?"
- Previous message: giancarlo pinerolo: "[phplib] a ocal.inc generator/tester"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello!
I want to retrieve an url.
I'm running a php script under qmail. Qmail receives an email and prints
this one to stdin of my php script.
I've tried the followed source codes. Only source code number 3 works.
Why do i have to do an fopen and then do the file? That makes no sense.
If i call this skript without qmail, then it works.
I've added the message which, i receive from qmail for the variants 1 and 2
and for variant 3.
cu
oli
1.
--------------------------------------------------------------------------
$fp = fopen ($txCommandRequest, 'r');
if ( $fp ) {
$result = fread ($fp, 2048);
fclose ($fp);
} else {
// say to qmail, that it has been failed
exit(100);
}
2.
----------------------------------------------------------------------------
-
$curlHandle = curl_init ($txCommandRequest);
if ( $curlHandle ) {
curl_setopt ($curlHandle, CURLOPT_HEADER, 1);
$result = curl_exec ($curlHandle);
curl_close ($curlHandle);
} else {
// say to qmail, that it has been failed
exit(100);
}*/
3. ------------------------------------------------------------------------
fopen ($txCommandRequest,'r');
$result = file($txCommandRequest);
THIS PART IS FOR VARIANT 1 AND 2
****************************************************************************
-----Original Message-----
From: MAILER-DAEMON <email protected>
[mailto:MAILER-DAEMON <email protected>]
Sent: Friday, August 17, 2001 12:40 PM
To: Oliver.Maske <email protected>
Subject: failure notice
Hi. This is the qmail-send program at lila.flatfox.de.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<flatmail <email protected>>:
/<br>
<b>Warning</b>:
fopen("http://10.3.1.16/ff/servlets/tx.http?class=MessageProccesor&method=Ge
tCustCareEmail&MESSAGE_ID=17396","r") - Success in
<b>/usr/local/ff/bin/ms.php</b> on line <b>127</b><br>
100
THIS PART IS FOR VARIANT 3 (it is getting the content of the url!)
****************************************************************************
**
Hi. This is the qmail-send program at lila.flatfox.de.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<flatmail <email protected>>:
/<br>
<b>Warning</b>: fopen("http://www.yahoo.de/","r") - Success in
<b>/usr/local/ff/bin/ms.php</b> on line <b>144</b><br>
<html>
<head><title>Yahoo! Deutschland</title><base
href=http://de.yahoo.com/r/></head>
<body onLoad=\"document.f.p.focus();\">
<center><form
action=http://de.rd.yahoo.com/hps/*http://de.search.yahoo.com/search/de
name=f>
<map name=t><area coords=\"0,0,52,52\" href=gc2 alt=GeoCities><area
coords=\"53,0,121,52\" href=be2 alt=Messenger><area coords=\"122,0,191,52\"
href=bc2 alt=E-Mail><area coords=\"441,0,510,52\" href=me alt=Neu><area
coords=\"511,0,579,52\" href=bd2 alt=\"Mein Yahoo!\"><area
coords=\"580,0,637,52\" href=fb alt=Hilfe></map><img alt=\"Yahoo!
Deutschland\" border=0 height=60 hspace=0 isMap
src=http://eur.i1.yimg.com/eur.yimg.com/i/de/main/m5e.gif useMap=\"#t\"
width=638><br>
<table border=0 cellPadding=4 cellSpacing=0 width=638>
<tr><td align=center width=160>
<b><a href=\"/home/chat/?http://de.chat.yahoo.com/\">Yahoo!
Chat</a><br><small>Flirten Sie mit!</small></b>
</td><td align=center valign=bottom>
/</td><td align=center width=160>
....AND SO ON....
-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>
- Next message: Jens Benecke: "Re: [phplib] Wie kann man die Ausgabe von table.inc von phplib gestalten?"
- Previous message: giancarlo pinerolo: "[phplib] a ocal.inc generator/tester"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

