[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 (as

Re: [PHP] Re: How to..

2003-07-21 Thread Doug La Farge
<[EMAIL PROTECTED]> Haseeb: hi, i have heard a lot of people commenting about the coding style of other programmers. i think everyone has his own style. but i also say that there should be a standard that should be followed by everyone. A nice idea that can never fly. It might work for basic pro

Re: [PHP] POSIX seteuid and similar

2003-07-21 Thread Doug La Farge
You guys can correct me if I'm wrong but I believe what is referred to here is SUEXEC. This allows a virtual domain instance to run as any specified username and group. You are not setting the UID of the script but rather any script fun for that domain. This way you don't have to chmod 777 or

Re: [PHP] regexp help...

2003-07-21 Thread Doug La Farge
I guess I should point out that the line i want is the XML line ' On Monday, July 21, 2003, at 11:44 AM, Doug La Farge wrote: Hi all, I have a string that for all practical purposes should probably be a list (array). I need one line from the string and need to send the rest to /dev

[PHP] regexp help...

2003-07-21 Thread Doug La Farge
Hi all, I have a string that for all practical purposes should probably be a list (array). I need one line from the string and need to send the rest to /dev/null. The string starts: HTTP/1.1 200 OK Date: Tue, 22 Jul 2003 01:34:12 GMT Server: Apache/1.3.27 (Unix) mod_jk/1.1.0 mod_ssl/2.8.12 Ope

[PHP] Perl to PHP (Was XML Parsing)

2003-07-17 Thread Doug La Farge
First let me thank Tyler Lane for pointing out my XML issue. I'm an idiot (= vs. ==) was holding me up. D'uh! Now allow me to ask a Perl to PHP conversion question or three. As any Perl and PHP programmer is aware PHP does not have the cool reference thing going that Perl does (yeah, I hear th

[PHP] XML Parsing

2003-07-17 Thread Doug La Farge
Hello, I'm new to PHP but have been coding in Perl for over six years. I've had a steep learning curve in the last few days. My task has been to use fsockopen to pull in an XML stream, parse that XML stream, and package up that data into a complex, but usable data structure. We've been a