[PHP] fsockopen with ADH cipher

2010-08-20 Thread Dave Cundiff
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

Re: [PHP] fsockopen in phpmailer and tls

2008-09-07 Thread Larry Brown
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

Re: [PHP] fsockopen in phpmailer and tls

2008-09-06 Thread Larry Brown
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

Re: [PHP] fsockopen in phpmailer and tls

2008-09-06 Thread Robert Cummings
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

Re: [PHP] fsockopen in phpmailer and tls

2008-09-06 Thread Larry Brown
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

Re: [PHP] fsockopen in phpmailer and tls

2008-09-06 Thread Robert Cummings
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

[PHP] fsockopen in phpmailer and tls

2008-09-04 Thread Larry Brown
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

Re: [PHP] fsockopen in phpmailer and tls

2008-09-04 Thread Robert Cummings
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

[PHP] fsockopen Fread and fget issue

2008-06-05 Thread Ross King II
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

Re: [PHP] fsockopen + fputs

2008-05-18 Thread Stut
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='

Re: [PHP] fsockopen + fputs

2008-05-16 Thread Per Jessen
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

Re: [PHP] fsockopen + fputs

2008-05-16 Thread Nathan Rixham
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 . - .

[PHP] fsockopen + fputs

2008-05-15 Thread debussy007
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 .

[PHP] fsockopen on ssl://

2008-05-13 Thread bob pilly
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 = /;

[PHP] fsockopen on ssl://

2008-05-13 Thread bob pilly
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 = /;

[PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread @4u
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

Re: [PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread Jochem Maas
@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

Re: [PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread @4u
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

Re: [PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread Jochem Maas
@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

Re: [PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread @4u
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

Re: [PHP] fsockopen problems

2007-06-22 Thread Tijnema
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

Re: [PHP] fsockopen problems

2007-06-22 Thread Ray
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,

[PHP] fsockopen problems

2007-06-22 Thread Ray
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

[PHP] fsockopen with proxy?

2007-06-07 Thread Tijnema
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

[PHP] fsockopen - how can I specify the local/source port

2007-04-18 Thread Matt
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

Re: [PHP] fsockopen - how can I specify the local/source port

2007-04-18 Thread Richard Lynch
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

[PHP] fsockopen error messages

2006-11-06 Thread Philip Thompson
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 =

Re: [PHP] fsockopen error messages

2006-11-06 Thread Richard Lynch
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:

Re: [PHP] fsockopen error messages

2006-11-06 Thread Philip Thompson
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

[PHP] fsockopen, openssl error

2006-01-20 Thread James Benson
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

Re: [PHP] fsockopen, openssl error

2006-01-20 Thread Richard Lynch
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

Re: [PHP] Fsockopen error

2005-11-02 Thread Terence
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

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
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

Re: [PHP] Fsockopen error

2005-11-02 Thread Robert Prentice
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

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
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

Re: [PHP] Fsockopen error

2005-11-02 Thread Robert Prentice
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/ =

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
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

[PHP] Fsockopen error

2005-11-01 Thread Robert Prentice
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

Re: [PHP] fsockopen and session_start

2005-03-08 Thread Pedro Garre
*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

[PHP] fsockopen and session_start

2005-03-07 Thread Pedro Garre
*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:

Re: [PHP] fsockopen and session_start

2005-03-07 Thread Jason Wong
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

Re: [PHP] fsockopen: fetching url

2005-02-13 Thread Bostjan Skufca @ domenca.com
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

[PHP] fsockopen: fetching url

2005-02-11 Thread branimir . topic
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

Re: [PHP] fsockopen: fetching url

2005-02-11 Thread Richard Lynch
[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

Re: [PHP] fsockopen

2005-02-02 Thread Bostjan Skufca @ domenca.com
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

[PHP] fsockopen

2005-02-01 Thread pete M
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

Re: [PHP] fsockopen

2005-02-01 Thread Richard Lynch
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:

Re: [PHP] fsockopen to own server

2004-12-22 Thread Doc
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

Re: [PHP] fsockopen to own server

2004-12-20 Thread Doc
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

Re: [PHP] fsockopen to own server

2004-12-20 Thread Doc
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

Re: [PHP] fsockopen to own server

2004-12-20 Thread Richard Lynch
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

Re: [PHP] fsockopen to own server

2004-12-20 Thread Doc
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

Re: [PHP] fsockopen to own server

2004-12-20 Thread Richard Lynch
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

[PHP] fsockopen to own server

2004-12-16 Thread Doc
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

Re: [PHP] fsockopen to own server

2004-12-16 Thread Raditha Dissanayake
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

Re: [PHP] fsockopen to own server

2004-12-16 Thread Richard Lynch
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:

Re: [PHP] fsockopen https problem

2004-12-13 Thread Richard Lynch
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

[PHP] fsockopen https problem

2004-12-10 Thread Maycon de Oliveira
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 =

[PHP] fsockopen() throwing errors

2004-05-28 Thread Phil Ewington - 43 Plc
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 ...

[PHP] fsockopen connection error on IIS

2004-03-31 Thread Michael Egan
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

RE: [PHP] fsockopen connection error on IIS[Scanned]

2004-03-31 Thread Michael Egan
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

[PHP] fsockopen and HTTP 1.1 Problem

2004-03-25 Thread Mooki
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

Re: [PHP] fsockopen and HTTP 1.1 Problem

2004-03-25 Thread Richard Davey
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

Re: [PHP] fsockopen and HTTP 1.1 Problem

2004-03-25 Thread Chris Shiflett
--- 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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Michal Migurski
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 =

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
--- 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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Michal Migurski
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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
--- 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,

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
--- 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

[PHP] fsockopen to spit out the HTTP's Location...

2004-03-22 Thread Scott Fletcher
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

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-22 Thread Chris Shiflett
--- 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

[PHP] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
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)

Re: [PHP] fsockopen() errors.

2004-03-08 Thread Miguel J. Jiménez
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 --

RE: [PHP] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
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

RE: [PHP] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
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

[PHP] fsockopen failed with permission denied error...

2004-02-19 Thread Scott Fletcher
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,

[PHP] fsockopen to conect to ssl sites

2004-01-03 Thread Jorge Castaneda
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

[PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
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

Re: [PHP] fsockopen()

2003-09-30 Thread Jason Wong
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

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
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

Re: [PHP] fsockopen()

2003-09-30 Thread Jason Wong
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? --

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
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

[PHP] fsockopen server monitor

2003-09-29 Thread Cameron Metzke
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

[PHP] fsockopen server monitor

2003-09-29 Thread Cameron Metzke
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

Re: [PHP] fsockopen server monitor

2003-09-29 Thread Curt Zirzow
* 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 //

Re: [PHP] fsockopen server monitor

2003-09-29 Thread Cameron Metzke
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

[PHP] fsockopen/ssl

2003-08-14 Thread Wendy Reetz
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

Re: [PHP] fsockopen

2003-07-22 Thread Curt Zirzow
* 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

RE: [PHP] fsockopen

2003-07-22 Thread Boaz Yahav
: 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

RE: [PHP] fsockopen

2003-07-22 Thread Mike Migurski
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

Re: [PHP] fsockopen

2003-07-22 Thread Curt Zirzow
* 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).

Re: [PHP] fsockopen

2003-07-22 Thread Mike Migurski
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

[PHP] fsockopen

2003-07-21 Thread Doug La Farge
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

Re: [PHP] fsockopen

2003-07-21 Thread Curt Zirzow
* 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   2   >