[PHP] Re: Searching and removing

2004-07-29 Thread Jonathan Lassoff
Justin Patrin gmail.com> writes: > You could "fix" this script by actually giving it a file to output to > and reading it or by using output buffering to grab the output into a > string. > > Or you could use some code which gives you a better interface for all > of this, such as: > http://pear.ph

[PHP] Re: Searching and removing

2004-07-29 Thread Jonathan Lassoff
Justin Patrin gmail.com> writes: > Assuming there's only one table in the document > > preg_match('!]*>.*!i', $text, $matches); > $table = $matches[0]; Thanks! I thought that I was putting it into a variable, but poking around with the script, it actually is just pooping out all the fetched

[PHP] Searching and removing

2004-07-29 Thread Jonathan Lassoff
There is a local radio station near me that has a crumby webserver that doesn't server HTTP requests in a standard way. So, I wrote a simple PHP script that fetches a playlist I want (with curl) and serves it properly. I only want to get a table from the resulting HTML file. I have it stored in a v

[PHP] OpenSSL integration

2003-01-08 Thread Jonathan Lassoff
I wish to integrate a secure HTTP tunnel into an existing PHP application I am working on. I am having a hard time understanding the PHP.net OpenSSL documentation. Any pointers, or refrences would be really helpful. Source is at http://harrisdracon.dyndns.org/phpcode/hw.src -- Jonathan Lassoff