[PHP] Re: Downloading utf-8 encoded files

2007-01-03 Thread Nisse Engström
On Tue, 26 Dec 2006 17:22:39 +0500, Fahad Pervaiz wrote: I want to download UTF-8 encoded kml files from a website. I have written a script that automatically downloads KML file. Problem is that some of the utf-8 charc are distrubed after saving file on windows. below is the script.

[PHP] read cwk files

2007-01-03 Thread John Salib
Hi, I need to read cwk files (mac clarisworks files). so is it possible to do so using php if so how to do that? Thanks. _ Get FREE Web site and company branded e-mail from Microsoft Office Live

Re: [PHP] Re: http request problem

2007-01-03 Thread Curt Zirzow
On 1/3/07, Roman Neuhauser [EMAIL PROTECTED] wrote: # [EMAIL PROTECTED] / 2007-01-03 11:19:21 +0500: ===ORINGIAL=== [...] ===END ORIGINAL=== Gah, early morning! Ok, I wasted my time thanks to your quoting style. Would you please use something more conventional, like prefixing each line of the

Re: [PHP] Pushing a file to the browser

2007-01-03 Thread Curt Zirzow
roman neuhauser describes it rather well on the other thread. Basically. the push in this context below, is the response php provides php.net/header has a lot of info about how to send a non html file back to the browser. Curt. On 1/2/07, Casey Chu [EMAIL PROTECTED] wrote: What do you mean by

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, John Salib [EMAIL PROTECTED] wrote: Hi, I need to read cwk files (mac clarisworks files). so is it possible to do so using php if so how to do that? Sure you can read the files, the question is what is the output you want it in? Once that is answered, is there such a tool i can

Re: [PHP] Re: http request problem

2007-01-03 Thread Kencana
Hi all, first of all, sorry for all the trouble i have caused. i didnt give a clear explanation and for your information that I am not the author of the requested jsp file. however i did try to access other jsp file from the same server, it didn't give me any error. so i guess i have to ask the

Re: [PHP] read cwk files

2007-01-03 Thread John Salib
well I mean I want to fetch the data from it. I need to get the data in plain text format. formating is not important. I found a script to do that for xls files but didn't find one for cwk files. From: Curt Zirzow [EMAIL PROTECTED] To: John Salib [EMAIL PROTECTED] CC:

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, John Salib [EMAIL PROTECTED] wrote: well I mean I want to fetch the data from it. I need to get the data in plain text format. formating is not important. I found a script to do that for xls files but didn't find one for cwk files. This might be hard to find, do you have the

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, Curt Zirzow [EMAIL PROTECTED] wrote: On 1/3/07, John Salib [EMAIL PROTECTED] wrote: well I mean I want to fetch the data from it. I need to get the data in plain text format. formating is not important. I found a script to do that for xls files but didn't find one for cwk files.

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 11:14:27 +0100: When I send mail via PEARs Mail class they are sorted as spam by Thunderbird. Do you have any ideas why? I can't figure it out. Surely Thunderbird provides an interface to query and modify its spam filters? Or is it an automated email black hole

[PHP] PEAR mail sorted as spam

2007-01-03 Thread Emil Edeholt
Hi, When I send mail via PEARs Mail class they are sorted as spam by Thunderbird. Do you have any ideas why? I can't figure it out. function send_mail($to,$from,$subject,$body) { $recipients = $to; $headers = array(); $headers['From']= $from; $headers['To'] = $to;

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Emil Edeholt
Hi, I can of course tell Thunderbird that something is not spam, but I don't want all of my users to have to do that for every mail I send via pear. Maybe I haven't included some header non-spam usually have or something? Did my script look all okey? Emil Roman Neuhauser wrote: Surely

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Jochem Maas
Emil Edeholt wrote: Hi, I can of course tell Thunderbird that something is not spam, but I don't want all of my users to have to do that for every mail I send via pear. Maybe I haven't included some header non-spam usually have or something? Did my script look all okey? it's not the

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Emil Edeholt
Are you sure? The email is very short and is something like this (but in swedish): Hello, Your order is now available. Regards Emil Jochem Maas wrote: it's not the script. it's the content of the email (possibly in conjunction with 'bad' mail headers, etc) -- Hälsningar Emil Edeholt

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Stut
Emil Edeholt wrote: I can of course tell Thunderbird that something is not spam, but I don't want all of my users to have to do that for every mail I send via pear. Maybe I haven't included some header non-spam usually have or something? Did my script look all okey? Let's all take a moment

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Jochem Maas
Emil Edeholt wrote: Are you sure? The email is very short and is something like this (but in yes I'm sure. Thunderbird knows nothing about your script (not even that it exists), all it sees is the 'envelope' (headers et al) and the content of the email. it might be purely the fact that the

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: David CHANIAL wrote: We are preparing the upgrade of PHP for our customers, but, after some tests, we have a migration problem caused by the news E_RECOVERABLE_ERROR. So, even if the upgrade guide (http://www.php.net/UPDATE_5_2.txt)

[PHP] Project php-mobile

2007-01-03 Thread Fernando chucre
Hello, I am a PHP-Developer, and for a long time I wait for um php binary for PDA's (mobiles devices). But this time not hapen. So I and my friend Lauro Salmito (C develeper) making the PHP-Mobile Project. We want create a small binary, Mobile Edition. Basically we make a binary with the

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Roman Neuhauser
Don't toppost. Preserve (just) enough context to make the mail comprehensible by someone who doesn't know the previous emails. Thanks. # [EMAIL PROTECTED] / 2007-01-03 11:14:27 +0100: When I send mail via PEARs Mail class they are sorted as spam by Thunderbird. Do you have any ideas why? I

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Strong Cypher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Could you send us header of your mail please, just to see the prob Perhaps problem in sender : [EMAIL PROTECTED] Or domain who send the mail : localhost.localdomain I don't really know how thunderbird find some spam, that's why I prefer use kmail

Re: [PHP] Help me about detect client screen resolution!!!

2007-01-03 Thread Strong Cypher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just remember in web context is a server-side language ... so you couldn't have more information than client would want to send to you in web context, the navigator send some information to the server (like what navigator, address, proxy, ...) so

Re: [PHP] php 5 and register_globals=off gives lotsa errors

2007-01-03 Thread Strong Cypher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You said if(action==main) So ... it's really that or you would said if($action==main) ??? the $ is important so ... perhaps phpv4 ignore this kind of mistake and not php5 or perhaps action is when register global is on ... so if miss $ before

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Emil Edeholt
Roman Neuhauser wrote: That's not what I asked. Does Thunderbird tell you why it marked something as spam? If it does, use that information. If it does not, you're crazy for using it. Either way, your question belongs into a Thunderbird mailing list, along with the exact full message. Full means

Re: [PHP] Request of php5

2007-01-03 Thread edwardspl
Richard Lynch wrote: On Mon, January 1, 2007 12:40 am, [EMAIL PROTECTED] wrote: Dear All, Happy New Year, How much mem ( Ram ) does the php5 need ? Yes. :-) Depends on what extension you add, what you do with those extensions, and what sort of performance you expect to get.

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 13:16:17 +0100: Roman Neuhauser wrote: That's not what I asked. Does Thunderbird tell you why it marked something as spam? If it does, use that information. If it does not, you're crazy for using it. Either way, your question belongs into a Thunderbird mailing

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Curt Zirzow
On 1/3/07, Emil Edeholt [EMAIL PROTECTED] wrote: Roman Neuhauser wrote: But I'll look for a log file. Maybe there are something hidden below the gui. Maybe I haven't included some header non-spam usually have or something? How are we supposed to know? Should we read Thunderbird's source

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Curt Zirzow
On 1/3/07, Roman Neuhauser [EMAIL PROTECTED] wrote: . Then again, AFAIK all recipients used either mutt or outlook. Now that is a very disperse audience, i never see mutt mentioned often. Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Request of php5

2007-01-03 Thread Curt Zirzow
On 1/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Mon, January 1, 2007 12:40 am, [EMAIL PROTECTED] wrote: How much mem ( Ram ) does the php5 need ? ... Depends on what extension you add, what you do with those extensions, and what sort of performance you expect

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: David CHANIAL wrote: We are preparing the upgrade of PHP for our customers, but, after some tests, we have a migration problem caused by the news E_RECOVERABLE_ERROR. So, even if the upgrade guide

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 04:42:05 -0800: On 1/3/07, Roman Neuhauser [EMAIL PROTECTED] wrote: . Then again, AFAIK all recipients used either mutt or outlook. Now that is a very disperse audience, The reports went to two types of people: admins and managers. i never see mutt

[PHP] Array decleration problem

2007-01-03 Thread Delta Storm
Hi, I'm new to php and im learning, I haven't encounter any problems till now so please help me? :) the code: (learning arrays...) ?php $flavors=array (banana, cucumber, grape, vanilla) $flavors2 [0] =3; $flavors2 [1]=13;

[PHP] Re: Array decleration problem

2007-01-03 Thread Jo�o C�ndido de Souza Neto
it happens because you forgot the semi-collon at the end of the previews line. Delta Storm [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi, I'm new to php and im learning, I haven't encounter any problems till now so please help me? :) the code: (learning arrays...)

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 14:07:31 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: David CHANIAL wrote: We are preparing the upgrade of PHP for our customers, but, after some tests, we have a migration problem caused by the news

Re: [PHP] Array decleration problem

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-02 10:48:27 +0100: Hi, I'm new to php and im learning, I haven't encounter any problems till now so please help me? :) the code: (learning arrays...) ?php $flavors=array (banana, cucumber, grape, vanilla) that statement is incomplete (;

[PHP] How can i hightlight an stacktrace error/exception?

2007-01-03 Thread Mathijs
Hello there, Is there a way to color exceptions/errors? I try d to use highlight_string() but that only works on PHP code. Does someone has a function or something which can do this? Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Array decleration problem

2007-01-03 Thread Al
There another error in your code in addition to the missing ;, echo() is for strings, not arrays. Also, look up the use of single and double quotes in the php docs. It's a good habit to learn to use the right one early on. Delta Storm wrote: Hi, I'm new to php and im learning, I haven't

Re: [PHP] How can i hightlight an stacktrace error/exception?

2007-01-03 Thread Jochem Maas
Mathijs wrote: Hello there, Is there a way to color exceptions/errors? I recommend a combination of php html (maybe with some css and javascript thrown in for good measure) e.g. (ripped straight from zend.com): ?php function printException(Exception $e) { print

Re: [PHP] How to read cookies set by php?

2007-01-03 Thread Dotan Cohen
On 03/01/07, Peter Lauri [EMAIL PROTECTED] wrote: Are you trying to read cookies that are not set by your host? If that is the case you will probably be disappointed. The purpose with cookies is that they should only be table to be read by the one who is setting the cookie. If you want to read

Re: [PHP] How to read cookies set by php?

2007-01-03 Thread Dotan Cohen
On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: Configure the browser to prompt you before saving cookies, and then surf there again? FIrst thing that I did (well, second). The cookies are obfuscated. Turn on LiveHTTPHeaders and see what the browser sends when you surf back to that site?

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-03 14:07:31 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: David CHANIAL wrote: We are preparing the upgrade of PHP for our customers, but, after some tests, we have a migration problem caused by the news

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 16:43:14 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-03 14:07:31 +0100: Roman - you make some very good point but the pragmatist in me says of your first example - why the F*** would anyone pass in an object and blindly push it through

Re: [PHP] Request of php5

2007-01-03 Thread edwardspl
Curt Zirzow wrote: On 1/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Mon, January 1, 2007 12:40 am, [EMAIL PROTECTED] wrote: How much mem ( Ram ) does the php5 need ? ... Depends on what extension you add, what you do with those extensions, and what sort of

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 16:43:14 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-03 14:07:31 +0100: Roman - you make some very good point but the pragmatist in me says of your first example - why the F*** would anyone pass in an object and blindly push it through

RE: [PHP] Pushing a file to the browser

2007-01-03 Thread bruce
hi mike... i'mnot sure what you mean to do, but i think you want to take a file as input, do some modifications to it, and then display the file on your site... or do you want to allow the user to download the modified file, or do you want to be able to automatically send the 'massaged file' to

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Robert Cummings
On Wed, 2007-01-03 at 17:49 +, Roman Neuhauser wrote: If you dare to use dynamic features in PHP you're begging to have your throat cut by some call to undefined method, or hop in to lala land with an undefined member variable access warning... If problems with the dynamic typing of PHP

Re: [PHP] Request of php5

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 00:09:37 +0800: Curt Zirzow wrote: On 1/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Mon, January 1, 2007 12:40 am, [EMAIL PROTECTED] wrote: How much mem ( Ram ) does the php5 need ? ... Depends on what extension you

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 11:57:03 -0500: Not to get into this argument [...] Nah, just chattin'. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing

[PHP] Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
I have many email address that are stored like this: =?UTF-8?B?15jXqNeR15XXp9eZ16DXlCDXnteo15nXkNeg15Q=?= [EMAIL PROTECTED], =?UTF-8?B?15nXoNem158g157XqNeZ15Q=?= [EMAIL PROTECTED], =?UTF-8?B?15zXmSDXpNeV15zXmdeg15Q=?= [EMAIL PROTECTED] I'm trying to run a script that will leave the file as so:

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Robert Cummings
On Wed, 2007-01-03 at 11:57 -0500, Robert Cummings wrote: On Wed, 2007-01-03 at 17:49 +, Roman Neuhauser wrote: ?php if( method_exists( $o, 'f' ) ) { $o.f(); That should have been $o-f() btw. Too much JavaScript lately :D Cheers, Rob. --

RE: [PHP] Pushing a file to the browser

2007-01-03 Thread Peter Lauri
Hi, I assume that you mean you want to send the file as application/octet-stream. Take a look at this: ob_start(); $path = 'path to directory where file resides'; $filename = 'the name of the file'; ob_end_clean(); header(Pragma: public); header(Expires: 0); // set expiration time

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 19:51:56 +0200: I have many email address that are stored like this: =?UTF-8?B?15jXqNeR15XXp9eZ16DXlCDXnteo15nXkNeg15Q=?= [EMAIL PROTECTED], =?UTF-8?B?15nXoNem158g157XqNeZ15Q=?= [EMAIL PROTECTED], =?UTF-8?B?15zXmSDXpNeV15zXmdeg15Q=?= [EMAIL PROTECTED] I'm

[PHP] Re: Removing UTF-8 from text

2007-01-03 Thread Al
Why not simply capture what you want, rather than try to remove what you don't want? preg_match_all(%([EMAIL PROTECTED])%, $text, $matches); now print_r($matches[1]) and you see your addresses A little better code might be, sense it is more explicit and less prone to pick up malformed

Re: [PHP] Re: Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
On 03/01/07, Al [EMAIL PROTECTED] wrote: Why not simply capture what you want, rather than try to remove what you don't want? Because there are also emails in there in this format: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] preg_match_all(%([EMAIL PROTECTED])%, $text,

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 4:29 am, Emil Edeholt wrote: I can of course tell Thunderbird that something is not spam, but I don't want all of my users to have to do that for every mail I send via pear. Maybe I haven't included some header non-spam usually have or something? Did my script look

Re: [PHP] read cwk files

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 2:18 am, John Salib wrote: I need to read cwk files (mac clarisworks files). so is it possible to do so using php if so how to do that? Google for cwk2xls and see if you can convert Clarisworks to MS Excel, which *has* to be a very common need. You can then use the XLS

Re: [PHP] http request problem

2007-01-03 Thread Richard Lynch
On Tue, January 2, 2007 11:55 pm, Kencana wrote: I got problem in getting file content. the file is located at another server (tomcat) and it is a jsp file. i don't know why i keep getting the same error message file accessing that file but while i am trying to access to another file, from

Re: [PHP] I need help with PHP, cURL, and POST

2007-01-03 Thread Richard Lynch
On Tue, January 2, 2007 8:56 pm, Charley wrote: What do you mean about the submit input? I thought that was just a text link to cause the form to be submitted when clicked. I didn't know that it sent anything to the server. (As you can tell, I don't know anything about asp except what it

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 8:24 am, Roman Neuhauser wrote: I don't follow the logic. What did we gain? Can one of those exceptions == Java, Java stinks, exceptions stink campers show me their version of the below f($any) that works in 5.1 and 5.2? Sure. function f($any) {

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 11:51 am, Dotan Cohen wrote: I have many email address that are stored like this: =?UTF-8?B?15jXqNeR15XXp9eZ16DXlCDXnteo15nXkNeg15Q=?= [EMAIL PROTECTED], ×™× ×¦×Ÿ מריה [EMAIL PROTECTED], לי ×¤×•×œ×™× ×” [EMAIL PROTECTED] I'm trying to run a script that will

Re: [PHP] How to read cookies set by php?

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 9:02 am, Dotan Cohen wrote: On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: Configure the browser to prompt you before saving cookies, and then surf there again? FIrst thing that I did (well, second). The cookies are obfuscated. They won't get any clearer than

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: Instead of trying to strip the UTF stuff out, try to capture the part you want: preg_match_all('|[^]|ms', $emails, $output); var_dump($output); Richard, I do have a working script now, but I'm intrigued by your regex. Why do you surround

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 14:01:29 -0600: On Wed, January 3, 2007 8:24 am, Roman Neuhauser wrote: I don't follow the logic. What did we gain? Can one of those exceptions == Java, Java stinks, exceptions stink campers show me their version of the below f($any) that works in 5.1

[PHP] Port Block

2007-01-03 Thread Christopher Deeley
I used to use mailenable to send e-mails from a site hosted on my computer, to email anyone. Now my ISP blocked port 25 so I can't connect directly to any smtp servers like google to send e-mail directly from my computer. Does anyone know of an open SMTP server which doesn't use port 25?

Re: [PHP] How to read cookies set by php?

2007-01-03 Thread Dotan Cohen
On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, January 3, 2007 9:02 am, Dotan Cohen wrote: On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: Configure the browser to prompt you before saving cookies, and then surf there again? FIrst thing that I did (well, second). The

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 22:41:54 +0200: On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: Instead of trying to strip the UTF stuff out, try to capture the part you want: preg_match_all('|[^]|ms', $emails, $output); var_dump($output); Richard, I do have a working script now,

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Al
You can use anything for delimiters | e.g., I like % m is for multiline, which I don't think you want here. s is for dotall; but, I don't see his dot. I try to avoid using dotall; it is too hard to think of everything it can include. Dotan Cohen wrote: On 03/01/07, Richard Lynch [EMAIL

[PHP] IE, Word documents and Content Types

2007-01-03 Thread Philip Thompson
Hi. I have a form where a user can upload different types of documents. A valid file type they will be able to upload is a Word Document. However, when I view the $_FILES 'type' of a word document in Internet Explorer, it says it's type 'application/octet-stream' instead of

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Al
Correction... If your text is truly multiline, as you've shown, then you do need the 'M' Al wrote: You can use anything for delimiters | e.g., I like % m is for multiline, which I don't think you want here. s is for dotall; but, I don't see his dot. I try to avoid using dotall; it is too

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Gregory Beaver
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: David CHANIAL wrote: We are preparing the upgrade of PHP for our customers, but, after some tests, we have a migration problem caused by the news E_RECOVERABLE_ERROR. So, even if the upgrade guide

Re: [PHP] Port Block

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 2:44 pm, Christopher Deeley wrote: I used to use mailenable to send e-mails from a site hosted on my computer, to email anyone. Now my ISP blocked port 25 so I can't connect directly to any smtp servers like google to send e-mail directly from my computer. Does

Re: [PHP] How to read cookies set by php?

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 2:44 pm, Dotan Cohen wrote: On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, January 3, 2007 9:02 am, Dotan Cohen wrote: On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: Configure the browser to prompt you before saving cookies, and then surf

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-03 16:43:14 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-03 14:07:31 +0100: BTW, would you share a version of f($any) that meets your definition of good code? I would suggest adding some sanity checking - as

Re: [PHP] IE, Word documents and Content Types

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 2:52 pm, Philip Thompson wrote: I have a form where a user can upload different types of documents. A valid file type they will be able to upload is a Word Document. However, when I view the $_FILES 'type' of a word document in Internet Explorer, it says it's type

Re: [PHP] IE, Word documents and Content Types

2007-01-03 Thread Jochem Maas
hi Richard, Best Wishes for the new year btw! Richard Lynch wrote: On Wed, January 3, 2007 2:52 pm, Philip Thompson wrote: I have a form where a user can upload different types of documents. A valid file type they will be able to upload is a Word Document. However, when I view the $_FILES

Re: [PHP] Port Block

2007-01-03 Thread Stut
Christopher Deeley wrote: I used to use mailenable to send e-mails from a site hosted on my computer, to email anyone. Now my ISP blocked port 25 so I can't connect directly to any smtp servers like google to send e-mail directly from my computer. Does anyone know of an open SMTP server which

[PHP] Calling static child method from inherited static parent method

2007-01-03 Thread Kelly Jones
I'm trying to implement what I think is called a virtual method: my abstract parent class ParentClass defines a method xxx that calls method yyy, but yyy is defined only in ParentClass's children. I can't get this to work (PHP5.0.4). Sample code: === start sample code === abstract class

Re: [PHP] software recommendation: ServiceCapture

2007-01-03 Thread Casey Chu
I already have one, but this one looks better! I don't want to pay though... On 1/2/07, Paul Novitski [EMAIL PROTECTED] wrote: I've recently discovered a tool that I recommend for web work: ServiceCapture by Kevin Langdon http://kevinlangdon.com/serviceCapture/ It acts as an HTTP proxy,

[PHP] Re: Calling static child method from inherited static parent method

2007-01-03 Thread Fahad Pervaiz
===ORIGINAL=== I'm trying to implement what I think is called a virtual method: my abstract parent class ParentClass defines a method xxx that calls method yyy, but yyy is defined only in ParentClass's children. I can't get this to work (PHP5.0.4). Sample code: === start sample code ===

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
On 03/01/07, Roman Neuhauser [EMAIL PROTECTED] wrote: It's for Did you know that the syntax is described in the manual? Did you know that PHP has a manual on the web? It's at http://www.php.net/;. Thank you Roman. Yes, I am familiar with the php manual. I've referenced the manual hunderds of

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Chris
Dotan Cohen wrote: On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: Instead of trying to strip the UTF stuff out, try to capture the part you want: preg_match_all('|[^]|ms', $emails, $output); var_dump($output); Richard, I do have a working script now, but I'm intrigued by your regex.

Re: [PHP] Temporary Emails - Your Recommendations - An Appeal to the PHP Community

2007-01-03 Thread Shafiq Rehman
Hi, You can use gmail account to receive as many mails as you want on different email addresses with one account. For example my email address is [EMAIL PROTECTED] I can receive email at [EMAIL PROTECTED] and [EMAIL PROTECTED] I love this feature especially when I am testing the signup process

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: On 03/01/07, Roman Neuhauser [EMAIL PROTECTED] wrote: It's for Did you know that the syntax is described in the manual? Did you know that PHP has a manual on the web? It's at http://www.php.net/;. Thank you Roman. Yes, I am familiar with

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Dotan Cohen
On 04/01/07, Roman Neuhauser [EMAIL PROTECTED] wrote: Your written English is very good. If you can understand what you wrote and can read replies (in English) from the list, you should have no problems understanding the manual. Thank you. Like said, I do prefer the English manual over the

Re: [PHP] IE, Word documents and Content Types

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 15:48:31 -0600: On Wed, January 3, 2007 2:52 pm, Philip Thompson wrote: I have a form where a user can upload different types of documents. A valid file type they will be able to upload is a Word Document. However, when I view the $_FILES 'type' of a word