Hello,
I've scoured the net and it appears I may be out of luck.
Is it possible to change the cipher fsockopen uses for SSL? I have a
remote socket that uses ADH which I can connect to fine with the
openssl client.
CONNECTED(0003)
---
no peer certificate available
---
No client certificate
On Sat, 2008-09-06 at 14:53 -0400, Robert Cummings wrote:
On Sat, 2008-09-06 at 14:38 -0400, Larry Brown wrote:
On Sat, 2008-09-06 at 14:06 -0400, Robert Cummings wrote:
On Sat, 2008-09-06 at 14:02 -0400, Larry Brown wrote:
OK. So I broke down and re-created my mail server due to
On Fri, 2008-09-05 at 00:58 -0400, Robert Cummings wrote:
On Thu, 2008-09-04 at 23:20 -0400, Larry Brown wrote:
I am having a ball of a time trying to figure this one out... If anyone
has dealt with this before I'd love to get some morsels of wisdom from
you...
I am trying to connect
On Sat, 2008-09-06 at 14:02 -0400, Larry Brown wrote:
OK. So I broke down and re-created my mail server due to its age. I
am
now running the latest sendmail and it is still failing. The message
in
the sendmail log is
...remoteMachineIP] did not issue MAIL/EXPN/VRFY/ETRN during
On Sat, 2008-09-06 at 14:06 -0400, Robert Cummings wrote:
On Sat, 2008-09-06 at 14:02 -0400, Larry Brown wrote:
OK. So I broke down and re-created my mail server due to its age. I
am
now running the latest sendmail and it is still failing. The message
in
the sendmail log is
On Sat, 2008-09-06 at 14:38 -0400, Larry Brown wrote:
On Sat, 2008-09-06 at 14:06 -0400, Robert Cummings wrote:
On Sat, 2008-09-06 at 14:02 -0400, Larry Brown wrote:
OK. So I broke down and re-created my mail server due to its age. I
am
now running the latest sendmail and it is
I am having a ball of a time trying to figure this one out... If anyone
has dealt with this before I'd love to get some morsels of wisdom from
you...
I am trying to connect to a postfix server I have set up remotely using
smtp auth with tls. The postfix appears to be configured correctly at
this
On Thu, 2008-09-04 at 23:20 -0400, Larry Brown wrote:
I am having a ball of a time trying to figure this one out... If anyone
has dealt with this before I'd love to get some morsels of wisdom from
you...
I am trying to connect to a postfix server I have set up remotely using
smtp auth with
When I do the following it grabs the response (And using a packet sniffer I
can see the server responds quick). If I only call fread one time it will
read and return the page to the server. If I read a second batch after the
eof it hangs for 30 seconds.
All I want to do is send a raw POST
On 16 May 2008, at 00:04, debussy007 wrote:
I use fsockopen and fputs to call a distant URL, but I have the
following
error :
The requested URL /registration/test was not found on this server.
This is my code:
$req =
'username=' . $usr . 'password=' . $pass .
'date_of_birth='
debussy007 wrote:
However the path www.example.com/registration/test exists
so why does it says it cannot find the requested url ?
Any idea ? Thank you for any help !!
Take a look at the accesslog on www.example.com - that'll tell you
what's happening.
/Per Jessen, Zürich
--
PHP General
debussy007 wrote:
Hello,
I use fsockopen and fputs to call a distant URL, but I have the following
error :
The requested URL /registration/test was not found on this server.
This is my code:
$req =
'username=' . $usr . 'password=' . $pass .
'date_of_birth=' . $year . - . $month . - .
Hello,
I use fsockopen and fputs to call a distant URL, but I have the following
error :
The requested URL /registration/test was not found on this server.
This is my code:
$req =
'username=' . $usr . 'password=' . $pass .
'date_of_birth=' . $year . - . $month . - . $day .
Hi all
I have tried researching this issue but havent come up with any solution so im
hoping someone has seen it before and can help. I have the following test
script that uses fsockopen to connect to a https site, get the contents and
outputs it.
?php
$host = www.microsoft.com;
$path = /;
Hi all
I have tried researching this issue but havent come up with any solution so im
hoping someone has seen it before and can help. I have the following test
script that uses fsockopen to connect to a https site, get the contents and
outputs it.
?php
$host = www.microsoft.com;
$path = /;
Hi,
I have a problem with fsockopen in connection with the UNIX abstract
namespace.
To open a UNIX socket in the abstract namespace I have to add a nul byte
in front of the path.
Unfortunately PHP returns
fsockopen() [function.fsockopen]: unable to connect to unix://:0
(Connection refused)
for
@4u schreef:
Hi,
I have a problem with fsockopen in connection with the UNIX abstract
namespace.
To open a UNIX socket in the abstract namespace I have to add a nul byte
in front of the path.
Unfortunately PHP returns
fsockopen() [function.fsockopen]: unable to connect to unix://:0
Hi,
thanks for your help - unfortunately it doesn't help.
With stream_socket_client () I get the message unable to connect to
unix://\0/tmp/hald-local/dbus-ZniNmvr5O0 (Connection refused) in
/root/dbus_session.php on line 272 which is at least better, because it
shows the full path.
I verified
@4u schreef:
Hi,
thanks for your help - unfortunately it doesn't help.
With stream_socket_client () I get the message unable to connect to
unix://\0/tmp/hald-local/dbus-ZniNmvr5O0 (Connection refused) in
/root/dbus_session.php on line 272 which is at least better, because it
shows the full
Hi again,
Jochem Maas schrieb:
@4u schreef:
[snip]
is the connection refused a permissions thing here? can you
verify that it's possible to connect?
I'm not sure but I don't think so. 1.) we speak about D-BUS and 2.) its
owner and root should always be able to connect to it. Especially the
On 6/22/07, Ray [EMAIL PROTECTED] wrote:
hello,
I'm having some problems with fsockopen and was hopping for some help.
I try to connect to a host via fsockopen and I get getaddrinfo failed
errors, but if I try fsockopen with google, everything works.
sample test code
On Friday 22 June 2007 10:59 am, Tijnema wrote:
On 6/22/07, Ray [EMAIL PROTECTED] wrote:
hello,
I'm having some problems with fsockopen and was hopping for some help.
I try to connect to a host via fsockopen and I get getaddrinfo failed
errors, but if I try fsockopen with google,
hello,
I'm having some problems with fsockopen and was hopping for some help.
I try to connect to a host via fsockopen and I get getaddrinfo failed
errors, but if I try fsockopen with google, everything works.
sample test code
Hi,
What I want is to send a complete HTTP request, including special
headers, to another server over a HTTP proxy. Is this possible with
PHP?
I've seen the manual, and it doesn't say anything about proxy. I've
checked the comments on the fsockopen page, and there's a comment
about it for using
Hello,
I am experimenting with the fsockopen function to send custom UDP packets.
What I would like to do is to be able to nominate the LOCAL port that my UDP
packet originates from. What happens currently is that when I execute my
code below I get a random port 1023 allocated. What I want to
On Wed, April 18, 2007 5:48 am, Matt wrote:
I am experimenting with the fsockopen function to send custom UDP
packets.
What I would like to do is to be able to nominate the LOCAL port that
my UDP
packet originates from. What happens currently is that when I execute
my
code below I get a
Hi.
I have not dealt much with fsockopen, but after looking at many
examples, I'm not finding the answers I need. fsockopen is not
returning anything and I'm trying to find out what the issue is. The
error messages are not provided and I'm not sure what's going on.
Help please!
?
$fp =
Depending on your php.ini settings, it may be set up to wait FOREVER
for a socket to open...
What $host?
What $port?
Is it public? Private?
Is there any authentication scheme in place?
We've got nothing to work with here to help you...
On Mon, November 6, 2006 2:58 pm, Philip Thompson wrote:
Ok, since my last post, I have slapped myself on the wrist. I made a
newbie mistake. The function that I send the host, port, etc to was
in the wrong order from an older version of the function I had. So...
the port was MSIE... instead of 80. Way to go me! =\
Thanks Richard.
~Philip
On
Im running into the followng error when trying to use fsockopen with the
openssl extension,
Warning: fsockopen(): php_stream_sock_ssl_activate_with_method: failed
to create an SSL context
Warning: fsockopen(): failed to activate SSL mode 1
Socket Error: Operation now in progress
On Fri, January 20, 2006 7:38 am, James Benson wrote:
Im running into the followng error when trying to use fsockopen with
the
openssl extension,
Warning: fsockopen(): php_stream_sock_ssl_activate_with_method: failed
to create an SSL context
Warning: fsockopen(): failed to activate SSL
Robert Prentice wrote:
snip
$reply = http_post(https://www.safetrustprocessing.com;, 80, /
Isnt https supposed to run on port 443? (or other than 80) Just a guess
xml_order_processing.php, array(myXml = $xml));
function http_post ($server, $port, $url, $vars) {
--
PHP General Mailing
Terence wrote:
Robert Prentice wrote:
snip
$reply = http_post(https://www.safetrustprocessing.com;, 80, /
Isnt https supposed to run on port 443? (or other than 80) Just a guess
that is the default, but any port is allowed technically ... although putting
port 80 under SSL is probably
Even if i change it back to 443 i still get the error.
Robert
On Nov 2, 2005, at 9:54 AM, Jochem Maas wrote:
Terence wrote:
Robert Prentice wrote:
snip
$reply = http_post(https://www.safetrustprocessing.com;, 80, /
Isnt https supposed to run on port 443? (or other than 80) Just a
guess
Robert Prentice wrote:
Even if i change it back to 443 i still get the error.
take another look at your initail error message... it indicates
a problem related to the machines nameserver/dns setting (specifically
IPv6).
I'm willing to bet it's nothing to do with php - your OS seems to at
I get this error:
wget -d -v --delete-after https://www.safetrustprocessing.com
Setting --verbose (verbose) to 1
Setting --delete-after (deleteafter) to 1
DEBUG output created by Wget 1.10.1 (Red Hat modified) on linux-gnu.
--17:15:16-- https://www.safetrustprocessing.com/
=
still no info on what your version of php etc.
but that output gives the impression it may not be the OS after all...
are you able to recompile php? (using the --no-ipv6 flag or whatever it
mentioned
in the original php error message you posted).
I have no idea how 'invalid' certificates are
I am attempting to connect to a remote server using fsockopen to post
data to a php file. Here is the error i get:
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed:
Name or service not known (is your IPV6 configuration correct? If
this error happens all the time, try
*This message was transferred with a trial version of CommuniGate(tm) Pro*
It works now. Thanks Jason.
I had never realized that once $_SESSION is set, and if you are not going to
modify it, the session could be closed. It does not seem a good programming
practice, thou.
On Tuesday 08 March
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi,
I am using fsockopen to simulate a POST to another page (test_post.php) within
the same server.
Data sent to the socket is:
POST $uri HTTP/1.1\r\n.
Host: $host\n. User-Agent: mandapost\r\n.
Cookie:
On Monday 07 March 2005 22:02, Pedro Garre wrote:
I am using fsockopen to simulate a POST to another page (test_post.php)
within the same server.
It's not clear how exactly you're executing your code. I suspect that you
haven't closed the session before doing your simulated POST. Your order
HTTP 1.0 does not support virtual hosts.
B.
On Friday 11 February 2005 18:04, [EMAIL PROTECTED] wrote:
I'm using code below to fetch content from the url.
This code was worked properly on two servers I tested but it want worked on
the
designated one, so after getting error message I
I'm using code below to fetch content from the url.
This code was worked properly on two servers I tested but it want worked on
the
designated one, so after getting error message I figure it out it may
be php.ini settings limitation
[EMAIL PROTECTED] wrote:
I'm using code below to fetch content from the url.
This code was worked properly on two servers I tested but it want worked
on
the
designated one, so after getting error message I figure it out it may
be php.ini settings limitation
Last two examples are fine as connection is obviously established, it is the
communication with server that is causig an error. Read http protocol
documentation.
You do not want such a degree of control over communication you can just use
file_get_contents($url);
where $url is
am not having a lot of success with opening a socket to a secure domain
(php 4.3.8 - apache - openSSL)
$fp = fsockopen($url , 443 ,$errno, $errstr, 30);
have tried the following $urls
---
$url = 'domain.net';
Bad Request
Your browser sent a request that this server could not
pete M wrote:
am not having a lot of success with opening a socket to a secure domain
(php 4.3.8 - apache - openSSL)
$fp = fsockopen($url , 443 ,$errno, $errstr, 30);
You would need to do S much work to get this going, generating
complementary two-way encryption keys...
Just use curl:
Thanks for your (and everyone else's) help so far.
I've given up on this. Got another one off the web which uses pop3 and
mail() to achieve the same thing.
Thanks anyway
Dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 16 Dec 2004 10:02:02 -0800, Richard Lynch wrote:
Doc wrote:
I'm having a problem with fsockopen and was wondering has anyone ever
noticed a case where it will work from machine1 (dev machine) to machine2.
But when the was placed onto machine2 it wouldn't work connecting to it's
own
On Thu, 16 Dec 2004 23:37:36 +0600, Raditha Dissanayake wrote:
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN]
serverip IMAP4rev1 2003.339-cpanel at Wed, 15 Dec 2004
19:33:27 + (GMT)
so I don't think it's the firewall.
usually a good idea to disable
Doc wrote:
not sure what you are trying to do but it sounds like you are using unix
domain sockets where you should be using tcp. That's why it might work
on one machine (where web and imap are both installed) and not on the
other where you only have the web server but the imap server is
On Mon, 20 Dec 2004 07:51:46 -0800, Richard Lynch wrote:
WILD GUESS ALERT!
What you got in /etc/hosts.allow and /etc/hosts.deny?...
nothing in there other than default install comments.
Or any kind of other anti-bad-guy technology?...
nope.
Does it work if you use 127.0.0.1 for the
Doc wrote:
On Mon, 20 Dec 2004 07:51:46 -0800, Richard Lynch wrote:
WILD GUESS ALERT!
What you got in /etc/hosts.allow and /etc/hosts.deny?...
nothing in there other than default install comments.
Or any kind of other anti-bad-guy technology?...
nope.
Does it work if you use 127.0.0.1
Hello.
I'm having a problem with fsockopen and was wondering has anyone ever
noticed a case where it will work from machine1 (dev machine) to machine2.
But when the was placed onto machine2 it wouldn't work connecting to it's
own ip address;
when connecting via telnet it returns:
Escape
Doc wrote:
Hello.
I'm having a problem with fsockopen and was wondering has anyone ever
noticed a case where it will work from machine1 (dev machine) to machine2.
happens all the time :-)
But when the was placed onto machine2 it wouldn't work connecting to it's
own ip address;
when connecting
Doc wrote:
I'm having a problem with fsockopen and was wondering has anyone ever
noticed a case where it will work from machine1 (dev machine) to machine2.
But when the was placed onto machine2 it wouldn't work connecting to it's
own ip address;
when connecting via telnet it returns:
Maycon de Oliveira wrote:
Hi, i have problem in my script, this error is Permission Danied (13)
?
$host = 193.132.139.36;
$port = 443;
$path = /gatekeeper/ink/quexry.asp; //or .dll, etc. for authnet, etc.
$fp = fsockopen(https://.$host, $port, $errno, $errstr, $timeout = 10);
You can't
Hi, i have problem in my script, this error is Permission Danied (13)
?
$host = 193.132.139.36;
$port = 443;
$path = /gatekeeper/ink/quexry.asp; //or .dll, etc. for authnet, etc.
//you will need to setup an array of fields to post with
//then create the post string
$formdata =
Hi All,
How can I stop fsockopen() throwing an error and killing my script when it
cannot connect?
I have tried the following:
$this-_Socket = fsockopen($s_server, $this-_Port, $i_errno, $s_errstr,
$this-_Timeout);
if (!$this-_Socket)
{
... code to handle connection failure
}
and ...
Hello all,
I'm working with somebody using IIS (honest - it's not me) to try and develop some web
services whereby a site hosted on IIS is able to access data using a nusoap client
with a nusoap server set up on a linux/apache server. I can do this satisfactorily
from another linux/apache
Problem solved. It seems there was a proxy server involved which was screwing things
up.
Regards,
Michael Egan
-Original Message-
From: Michael Egan
Sent: 31 March 2004 14:20
To: PHP General (E-mail)
Subject: [PHP] fsockopen connection error on IIS[Scanned]
Hello all,
I'm
I am using these to get the code of a page that is listed in the code
below. I am using the example code of fsockopen on php.net as reference.
I can get the response header but i have a problem with the CHUNKs.
the Code :
$header = ;
$response = ;
if (!($fp = fsockopen
Hello Mooki,
Thursday, March 25, 2004, 12:26:27 PM, you wrote:
M I am using these to get the code of a page that is listed in the code
M below. I am using the example code of fsockopen on php.net as reference.
M I can get the response header but i have a problem with the CHUNKs.
You could save
--- Mooki [EMAIL PROTECTED] wrote:
I am using these to get the code of a page that is listed in the code
below. I am using the example code of fsockopen on php.net as
reference.
I can get the response header but i have a problem with the CHUNKs.
I can show you how to deal with chunked
In plain english, can't use the header(Location: ), so have to use the
fsockopen() instead. Just that header() is not allowed, don't ask me why.
Just couldn't get the browser perform the HTTP LOCATION event. It does work
when using fsockopen() for HTTP POST or GET as stated in the
In plain english, can't use the header(Location: ), so have to use the
fsockopen() instead. Just that header() is not allowed, don't ask me why.
Just couldn't get the browser perform the HTTP LOCATION event. It does work
when using fsockopen() for HTTP POST or GET as stated in the
In plain english, can't use the header(Location: ), so have to use
the fsockopen() instead. Just that header() is not allowed, don't ask me
why. Just couldn't get the browser perform the HTTP LOCATION event.
--snip--
$host = 192.168.0.2;
$port = 443;
$url_str =
--- Scott Fletcher [EMAIL PROTECTED] wrote:
In plain english, can't use the header(Location: ), so have to
use the fsockopen() instead. Just that header() is not allowed, don't
ask me why.
I'm asking anyway. :-)
You cannot (thank goodness) connect to a remote client with fsockopen(),
so
Boy! Everyone here is itching for an answer!!! :-) Sigh! Well, I guess
all web browsers suck at it by the way!! Michal Migurski from other posting
had explained that fsockopen() do the TCP stuff or the Transport Layer. So,
no wonder fsockopen() can't get to the Network layer, like the IP
See the reply to the Chris Shiflett's reply...
Michal Migurski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
In plain english, can't use the header(Location: ), so have to use
the fsockopen() instead. Just that header() is not allowed, don't ask me
why. Just couldn't get the
And finally, for those of you who are dying to know the answer to why I
can't use the header(). It's the 3rd party coding that contain the code,
--snip--
if(headers_sent())
$this-Error(' ');
--snip--
Why not delete that part of the 3rd party code then? Or send your Location
header
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Sigh! Well, I guess all web browsers suck at it by the way!
Suck at what exactly?
Michal Migurski from other posting had explained that fsockopen()
do the TCP stuff or the Transport Layer. So, no wonder fsockopen()
can't get to the Network layer,
Sigh! Well, I guess all web browsers suck at it by the way!
Suck at what exactly?
Not suck at receiving the HTTP commands from the webserver but suck at not
receiving the HTTP commands from the PHP. :-) I understand how the
browser/webserver communication work so no wonder why it doesn't
Why not delete that part of the 3rd party code then? Or send your Location
header before you call it? Curl won't help you here, for the same reasons
that fsockopen won't work.
Not sure about deleting the part of the 3rd party code though, I had thought
about it alot and I had been itching for
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Application -- Web Browser/Web Server
Presentation -- HTTP/HTTPS/SSL and language (HTML/JavaScript, etc).
Session -- Browser-Server connection, etc.
Transport -- Port 80/Port 443, packet transfer control, etc.
Network -- IP Address/Internet/Router
Hi!
I haven't found the right wording to spit out the HTTP scripts to the
web browser through the fsockopen. In this case, the Location:
script. I can not use the php header() function because of the FPDF strict
checking. (Freeware PDF). All I did was to create a PDF and put it on
--- Scott Fletcher [EMAIL PROTECTED] wrote:
I haven't found the right wording to spit out the HTTP scripts to
the web browser through the fsockopen.
I feel certain that I can help you, but unfortunately I can't seem to
understand your question at all. Please understand that I'm not trying to
Hi All,
Can anyone tell me the best way to avoid errors using fsockopen(). I have
tried wrapping the function call in a conditional statement, and have also
tried calling the function and then testing the return.
Example 1:
$sckHandle = fsockopen($server, 25, $errNo, $errString);
if ($sckHandle)
Is it an error or a warning? If it is a warning you can try use @
before fsockopen() to avoid echoing warning messages [EMAIL PROTECTED](...)].
--
Miguel J. Jiménez
ISOTROL, S.A. (Área de Internet)
Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA)
[EMAIL PROTECTED]
TLFNO. 955036800 ext. 111
--
Hi Miguel,
I am giving it a test at the moment, thanks.
-- Phil.
-Original Message-
From: Miguel J. Jiménez [mailto:[EMAIL PROTECTED]
Sent: 08 March 2004 12:29
To: Phil Ewington - 43 Plc
Cc: PHP
Subject: Re: [PHP] fsockopen() errors.
Is it an error or a warning
Hmm, added @ to fsockopen() function, still happens, can anyone shed any
light on this?
TIA
Phil.
-Original Message-
From: Phil Ewington - 43 Plc [mailto:[EMAIL PROTECTED]
Sent: 08 March 2004 12:57
To: Miguel J. Jiménez
Cc: PHP
Subject: RE: [PHP] fsockopen() errors.
Hi Miguel
Hi Everyone!
Sample code below...
--snip--
$fp = fsockopen(www.cnn.com, 80, $errno, $errstr, 30);
--snip--
I get the error message, permission denied along with 13. When I read the
bugs.php.net and found out that I need to add the @ to it so I did this..
--snip--
$fp = @fsockopen(www.cnn.com,
WHERE IS THE ERROR?
The username and the password are the correct and the name of the
variables (login and pass) also match. I tried to get data from a
secure site but I always receive the next message instead of the page
I request:
We are connected with somesecuredomain.com
Hi All,
I am having problems with fsockopen() and wondered if anyone else has
encountered this behaviour. My problem is that when connecting to an invalid
domain I cannot trap the errors.
I have tried setting a variable then testing the value, which prints a
warning to the screen...
$sck_handle
On Tuesday 30 September 2003 18:46, Phil Ewington - 43 Plc wrote:
I am having problems with fsockopen() and wondered if anyone else has
encountered this behaviour. My problem is that when connecting to an
invalid domain I cannot trap the errors.
Have you checked that it is really an invalid
Positive, I am deliberately using invalid domains to test how to catch
errors when users misspell their domain.
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: 30 September 2003 12:01
To: [EMAIL PROTECTED]
Subject: Re: [PHP] fsockopen()
On Tuesday 30 September 2003
On Tuesday 30 September 2003 20:39, Phil Ewington - 43 Plc wrote:
Positive, I am deliberately using invalid domains to test how to catch
errors when users misspell their domain.
Did you read that article (or are you aware of what it is about)?
And what invalid domains have you tried?
--
on another
TLD, strange message for 'domain cannot be found', but hey life would be
boring if everyone thought along the same lines :o)
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: 30 September 2003 15:51
To: [EMAIL PROTECTED]
Subject: Re: [PHP] fsockopen()
On Tuesday
Hi there,
I have been trying to make a simple monitor script using fsockopen. here it
is
--Start Code-
?php
error_reporting(0);
include 'config.php';
$domain = $_POST['domain'];
?
html
head
titlemonitor script/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
Hi there,
I have been trying to make a simple monitor script using fsockopen. here it
is
--Start Code-
?php
error_reporting(0);
include 'config.php';
$domain = $_POST['domain'];
?
html
head
titlemonitor script/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
* Thus wrote Cameron Metzke ([EMAIL PROTECTED]):
Hi there,
I have been trying to make a simple monitor script using fsockopen. here it
is
--Start Code-
?php
error_reporting(0);
include 'config.php';
$domain = $_POST['domain'];
[... unneeded code ...]
td width=50%?php
//
Sorry about that . Its my first post, :(
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Cameron Metzke ([EMAIL PROTECTED]):
Hi there,
I have been trying to make a simple monitor script using fsockopen. here
it
is
--Start Code-
?php
Using php 4.3.2, apache 1.3.27, openssl .9.7b
I'm trying to open a secure connection using fsockopen(ssl://...,443...) as
described in http://us4.php.net/manual/en/function.fsockopen.php.
I keep getting an error: PRNG not seeded.
OpenSSL says http://www.openssl.org/support/faq.html#USER1
* Thus wrote Mike Migurski ([EMAIL PROTECTED]):
preg_match('/(!DOCTYPE.+\/html)/ms', $http_response, $html)
...puts it into $html[1]. Adjust to suit your local standards-compliance
practices. You can also look for everything after the first instance of
\n\n.
Thats assuming that the
: Doug La Farge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 12:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] fsockopen
Is there a way to get fsockopen to suppress the header information it
returns. I have no use for the crap, have no idea how to use a regexp
to get it out of there (nor does
Is there a way to get fsockopen to suppress the header information it
returns. I have no use for the crap, have no idea how to use a regexp to
get it out of there (nor does anyone on this list it would seem either).
preg_match('/(!DOCTYPE.+\/html)/ms', $http_response, $html)
...puts it into
* Thus wrote Mike Migurski ([EMAIL PROTECTED]):
Is there a way to get fsockopen to suppress the header information it
returns. I have no use for the crap, have no idea how to use a regexp to
get it out of there (nor does anyone on this list it would seem either).
preg_match('/(!DOCTYPE.+\/html)/ms', $http_response, $html)
...puts it into $html[1]. Adjust to suit your local standards-compliance
practices. You can also look for everything after the first instance of
\n\n.
Thats assuming that the person used the doctypehtml for the first
item. what bout
Is there a way to get fsockopen to suppress the header information it
returns. I have no use for the crap, have no idea how to use a regexp
to get it out of there (nor does anyone on this list it would seem
either).
I'd like to be able to grab a web page as it is presented to the
browsers
* Thus wrote Doug La Farge ([EMAIL PROTECTED]):
Is there a way to get fsockopen to suppress the header information it
returns. I have no use for the crap, have no idea how to use a regexp
to get it out of there (nor does anyone on this list it would seem
either).
I have plenty of use for
1 - 100 of 162 matches
Mail list logo