[PHP] SSL POST problems, cURL, fsockopen, ipv6??

2003-07-05 Thread af
configuring php with "--disable-ipv6" and reinstalling, but I continue to get the same message). Anyone have any penetrating insights? Thanks in advance... Alex - - - - - - - - - - af at ax-im dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Anyone?? file uploads received, but mangled

2003-01-27 Thread af
I don't believe it -- it's another IE "feature"!! It doesn't happen in Netscape 7. Not completely sure, but I think the binary data is the mac-specific type/creator code which apparently IE feels the need to prepend. I thought I was safe now that I've dumped OS 9 entirely and moved everything

[PHP] Anyone?? file uploads received, but mangled

2003-01-27 Thread af
Hi all. Last try -- I know there's a lot of noise in this group, but could someone please offer an opinion? Is the following possible to work around, or is it a bug that I should be reporting? I'm having issues uploading files whose names don't necessarily end with the correct extension, in pa

Re: [PHP] HELP: Regex pattern matching

2003-01-23 Thread af
Hmmm... I was about to reply with a simple solution, but there's a problem with it that I can't explain. Assuming the text is in $str... I can't get preg_replace to match a newline at the end of a pattern. If I use... $str = preg_replace('/\n=.+--\n/sU', '', $str); ...it matches nothing,

Re: [PHP] Disable pic copy/save?

2003-01-23 Thread af
Not true -- you can use JavaScript to catch right-click events and do something creative with them, or disable them entirely. But that, of course, is a client-side scripting issue, which has nothing to do with server-side languages such as PHP. Cheers, Alex > On Thursday 23 January 2003 17:5

[PHP] file uploads received, but mangled

2003-01-21 Thread af
Hi all. 2nd try -- Is the following possible to work around, or is it a bug that I should be reporting? I'm having issues uploading files whose names don't necessarily end with the correct extension, in particular text files which don't end in .txt. (Why they don't is complicated, and it's im

[PHP] file uploads received, but mangled

2003-01-20 Thread af
Hi all. I'm having issues uploading files whose names don't necessarily end with the correct extension, in particular text files which don't end in .txt. (Why they don't is complicated, and it's impractical to insist that they must.) The files are received, but altered -- they are prepended w

[PHP] Help invoking a regexp

2002-07-25 Thread Nicklas af Ekenstam
Hi I have this regular expression: (((http|https|ftp|gopher)|mailto):(//)?[^ <>"\t]*|www\.[-a-z0-9.]+)[^ .,;\t<">\):] Which is supposed to match hyperlinks. I would like to use this from php to grab all hyperlinks in a text file and return them in an array. I've messed around with the function

[PHP] Reg exp to remove line feeds before lines starting with white space

2002-07-25 Thread Nicklas af Ekenstam
Hi I'm trying to do some parsing of mail headers and since not all headers follow the pattern: X-Header-A: A string X-Header-B: Another string that is longer X-Header-C: And this string is very very long compared But may very well look like this: X-Header-A: A string X-Header-B: Another string

[PHP] Grab value of mail headers

2002-07-24 Thread Nicklas af Ekenstam
Hi Could someone please enlighten me on a good way to grab the value for a given mail header once I've fetched the entire headers to a string using php:s imap_fetchheader() function? For an example I would like to look for a header called List-Id which may look like this: List-Id: And grab th

[PHP] Propably easy regex question

2001-07-24 Thread Nicklas af Ekenstam
Hi Could anyone help me with a code snippet that would take a string and add '> ' to it at the start of every new line just as a mail client does when replying to a mail? I.e. I would like this: Hello, How are you? To look like this: > Hello, > > How are you? When it's do

Re: [PHP] mailing in batches

2001-07-24 Thread Nicklas af Ekenstam
So sprach »Justin Farnsworth« am 2001-07-24 um 04:52:57 -0400 : > > Handling all those bounces manually will be a mess. > > From: Don Read <[EMAIL PROTECTED]>: > No matter which MTA you use. I'd have to disagree slightly here. Using qmail as your MTA would bless you with the VERP (Variable Env

Re: [PHP] Fetching binaires from an e-mail

2001-07-10 Thread Nicklas af Ekenstam
Nicklas af Ekenstam wrote: > Hi > > I'm currently trying to rewrite one of my old perl applications to php > and everything works great except one thing: > I can't figure out how to write a piece of code that will fetch and > unencode all binaires, if any, from

[PHP] Fetching binaires from an e-mail

2001-06-26 Thread Nicklas af Ekenstam
Hi I'm currently trying to rewrite one of my old perl applications to php and everything works great except one thing: I can't figure out how to write a piece of code that will fetch and unencode all binaires, if any, from an e-mail message in an imap stream and return them so that I can save the

[PHP] Finding every even 100

2001-03-21 Thread Nicklas af Ekenstam
Hi Propably a really simple question, but my math skills are not up to speed anymore: How do I find out if an int is an even 100? I.e. 100, 200, 1200, 9900 etc. I could always divide by 100 and have a look at the result and se if it has any decimals but I'm guessing this could be done prettier

[PHP] Unix-time problem

2001-03-04 Thread Nicklas af Ekenstam
Hi! I wrote this simple function to return the current date minus supplied number of years: function get_birthdate($age_in_years) { // get the current timestamp into an array $timestamp = time(); $date_time_array = getdate($timestamp); $hours = $dat

[PHP] Php and forking

2001-01-31 Thread Nicklas af Ekenstam
Hi! Is there some way (perhaps using a multi threaded httpd?) that I can get php to fork processes? I.e. I'd like to have a script which prints something to the clients web browser and terminates that http connection, but keeps going in the background doing other processing not related to the

[PHP] Richard Heyes HTML Mime Mail class

2001-01-30 Thread Nicklas af Ekenstam
to do it myself. Does anyone here have any sample code or tips? Would be greatly appreciated. Thank! - Nicklas af Ekenstam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adminis

[PHP] Sorting an array

2001-01-18 Thread Nicklas af Ekenstam
Hi! I have an array that looks kinda like this: NAMEADDRESS John DoeSome Street 1 Jane DoeAnother Street 2 Bill Gates Helsinki 666 How do I sort this array based on NAME? ADDRESS? Thanks!! - Nicklas -- PHP General Mailing List (http://www.php.net/) To unsub