php-general Digest 5 Dec 2006 09:15:00 -0000 Issue 4497

2006-12-05 Thread php-general-digest-help
php-general Digest 5 Dec 2006 09:15:00 - Issue 4497 Topics (messages 245497 through 245509): Re: Distinguishing between a mouse click and a refresh? 245497 by: Jay Blanchard 245498 by: Pawe³ Stradomski 245499 by: Russell Jones 245500 by: Paul Novitski

php-general Digest 5 Dec 2006 22:00:37 -0000 Issue 4498

2006-12-05 Thread php-general-digest-help
php-general Digest 5 Dec 2006 22:00:37 - Issue 4498 Topics (messages 245510 through 245541): Re: Send emails from PHP ... in a secure way 245510 by: Ruben Rubio 245512 by: T.Lensselink 245513 by: Ruben Rubio 245515 by: Jochem Maas Re: EZ array problem -

[PHP] Problems with Zip+IE6

2006-12-05 Thread Javier Ruiz
Hi all! I have a problem with zip files and Internet Explorer 6. I try to send to the user a dinamically generated zip file writting the http headers and using file_put_contents for the zip content. It works fine when downloading the file with firefox, opera, etc... even it works well if I

[PHP] Send emails from PHP ... in a secure way

2006-12-05 Thread Ruben Rubio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a question sending mails from PHP. Actually I am using phpmailer (is good!!) but when this class sends an email and there is an error (Mail server is not ready) It just reports error and email is lost. Is out there any way to save failed

Re: [PHP] Send emails from PHP ... in a secure way

2006-12-05 Thread clive
Ruben Rubio wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a question sending mails from PHP. Actually I am using phpmailer (is good!!) but when this class sends an email and there is an error (Mail server is not ready) It just reports error and email is lost. how are you

Re: [PHP] Send emails from PHP ... in a secure way

2006-12-05 Thread Ruben Rubio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 clive escribió: Ruben Rubio wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 the MTA then something is very wrong Why cant you save the email in a file or a database and then send it later your self? Because if Mail server has a problem

[PHP] Re: EZ array problem - What's wrong with my brain?

2006-12-05 Thread Colin Guthrie
Brian Dunning wrote: That works, but the value 1.2 is unknown, I can't hardcode it. If it is only a one element array you have several options. foreach ($array as $unknown_key=$the_values) { ... } or reset($array); $the_values = current($array); $unknown_key = key($array); or various

Re: [PHP] Send emails from PHP ... in a secure way

2006-12-05 Thread T . Lensselink
You can store the emails in a database or textfile when an error occurs. And use crontab to check the stored messages and send them to the mailserver. On Tue, 05 Dec 2006 10:55:50 +0100, Ruben Rubio [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 clive escribió: Ruben

Re: [PHP] Send emails from PHP ... in a secure way

2006-12-05 Thread Ruben Rubio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 T.Lensselink escribió: You can store the emails in a database or textfile when an error occurs. And use crontab to check the stored messages and send them to the mailserver. Is out there something that actually do it? -BEGIN PGP SIGNATURE-

[PHP] Fwd: Problems with Zip+IE6

2006-12-05 Thread Javier Ruiz
BUMP! -- Forwarded message -- From: Javier Ruiz [EMAIL PROTECTED] Date: Dec 5, 2006 9:07 AM Subject: Problems with Zip+IE6 To: php-general@lists.php.net Hi all! I have a problem with zip files and Internet Explorer 6. I try to send to the user a dinamically generated zip file

Re: [PHP] Send emails from PHP ... in a secure way

2006-12-05 Thread Jochem Maas
Ruben Rubio wrote: T.Lensselink escribió: You can store the emails in a database or textfile when an error occurs. And use crontab to check the stored messages and send them to the mailserver. Is out there something that actually do it? php, perl, python, ruby, c, c++ ... just about any

[PHP] utf8 encoding £ to £ problem

2006-12-05 Thread Chris Dean
Hi I was just wondering if anyone knows why php's utf8_encode function converts the £ symbol into £ Is this a bug in php or is it because utf8 doesn't include the £ symbol (can't find a quick and easy ref to say if it does or not) and as such the function outputs junk? Kind

RE: [PHP] utf8 encoding £ to £ problem

2006-12-05 Thread James Nunnerley
Hi Chris, Do you use pound; or £? I've had problems uploading onto a linux box for ages, but a straight text £ never seems to work, so I have to get one of my colleagues to do it instead... Does that help? Nunners -Original Message- From: Chris Dean [mailto:[EMAIL PROTECTED] Sent: 05

RE: [PHP] utf8 encoding £ to £ problem

2006-12-05 Thread Edward Kay
Hi Chris, UTF-8 certainly does include the £ symbol (UTF-8 is a superset of ASCII so has all the ASCII characters plus many others). I've recently converted my database-driven app to UTF-8 and encountered various issues that were quite awkward to resolve. In this case, I would expect that the £

RE: [PHP] utf8 encoding £ to £ problem

2006-12-05 Thread Chris Dean
Hi Nunners, Just the £ and in my case I need to use that symbol, can't really get round it sensibly with pound; Chris -Original Message- From: James Nunnerley [mailto:[EMAIL PROTECTED] Sent: 05 December 2006 13:01 To: Chris Dean Cc: php-general@lists.php.net Subject: RE: [PHP] utf8

RE: [PHP] LDAP Active Directory Authentication

2006-12-05 Thread Jay Blanchard
[snip] I am going to need to build LDAP and AD modules for a project that I'm working on. Could any of you who have delt with PHP/LDAP/AD point me in the direction of some decent resources/papers/books? [/snip] http://www.php.net/ldap -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] utf8 encoding £ to £ probl em

2006-12-05 Thread Jochem Maas
Chris Dean wrote: Hi Nunners, Just the £ and in my case I need to use that symbol, can't really get round it sensibly with pound; odd problem - check the output of the output of following ... : var_dump( mb_convert_encoding(html_entity_decode(pound;),UTF-8,ISO-8859-1), //

Re: [PHP] Error in php doc?

2006-12-05 Thread MS P
Hi. First thanks for the replies. Can anyone confirm that the php 5.2.0 engine takes the file name from the path automatically and so basename() can be omitted? I understand that leaving basename() in the code won't hurt, but I need the info for other purpose. Thanks. Hi. There seems to

Re: [PHP] Error in php doc?

2006-12-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-05 21:50:44 +0800: Hi. First thanks for the replies. Can anyone confirm that the php 5.2.0 engine takes the file name from the path automatically and so basename() can be omitted? I understand that leaving basename() in the code won't hurt, but I need the info

[PHP] Error with array and include

2006-12-05 Thread Fernando M. M.
Hi, I'm having a strange problem when trying to show a array after its value was defined on a file that was included. Something like this: ?php $lang = 'pt_BR'; include('lang/'. $lang .'/login.php'); echo $lang['Username']; ? On the file lang/pt_BR/login.php i have this... ?php

Re: [PHP] Error with array and include

2006-12-05 Thread T . Lensselink
How can you use an array as string in the include statement and two lines lower as array? Think it echo's 'S' because it see's $lang as a string and not an array. On Tue, 05 Dec 2006 13:11:12 -0200, Fernando M. M. [EMAIL PROTECTED] wrote: Hi, I'm having a strange problem when trying to show

Re: [PHP] Error with array and include

2006-12-05 Thread Fernando M. M.
T.Lensselink, Ok, problem solved. I didn't realized that i was using the same variable. Thanks for the help! T.Lensselink escreveu: How can you use an array as string in the include statement and two lines lower as array? Think it echo's 'S' because it see's $lang as a string and not an

Re: [PHP] Pass a relative path [with slashes] into a 'clean' url

2006-12-05 Thread Aaron Koning
Assuming you mean URLs as GET variable values, urlencode() and urldecode() might be the ticket: http://ca.php.net/urlencode Aaron On 12/4/06, Graham Anderson [EMAIL PROTECTED] wrote: What is a good/accepted way to pass a relative or absolute path into a clean url ? I could replace the

Re: [PHP] Error with array and include

2006-12-05 Thread Richard Lynch
On Tue, December 5, 2006 9:11 am, Fernando M. M. wrote: Hi, I'm having a strange problem when trying to show a array after its value was defined on a file that was included. Something like this: ?php $lang = 'pt_BR'; include('lang/'. $lang .'/login.php'); echo

Re: [PHP] Problems with Zip+IE6

2006-12-05 Thread Richard Lynch
It's kinda long, but this will probably save you some grief: http://richardlynch.blogspot.com On Tue, December 5, 2006 2:07 am, Javier Ruiz wrote: Hi all! I have a problem with zip files and Internet Explorer 6. I try to send to the user a dinamically generated zip file writting the http

Re: [PHP] Distinguishing between a mouse click and a refresh?

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 3:03 pm, Mark London wrote: Is there any way for PHP to know whether it is being called due to a browser refresh versus a mouse click? I think the answer is no but I just want to be sure. Thanks. You could embed a random token in all your links and input forms, and

Re: [PHP] Pass a relative path [with slashes] into a 'clean' url

2006-12-05 Thread Richard Lynch
If you are composing these on the fly, you could use http://php.net/dirname for each element in front of a ../ and wipe out the subdir and the ../ Or, perhaps something like: $url = preg_replace(|/[^/]/\\.\\./|, /, $url); On Mon, December 4, 2006 9:11 pm, Graham Anderson wrote: What is a

Re: [PHP] illegal characters

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 10:43 am, M.Ozan Hazer wrote: [04-Dec-2006 18:21:56] PHP Warning: Unknown: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 Find your session_start() and do this after it: var_dump(session_id()); If you

Re: [PHP] Sending E-mail

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 8:11 am, Janet Smith wrote: We have an application using PHP. If users have forgotten their password, they click on the link 'Forgot Password' and enter this e-mail address. This is suppose to send their new password to the e-mail address provided. Errr. So if I

Re: [PHP] hiding passwd in cmdlines that appear in the process list

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 6:55 am, Jochem Maas wrote: but given that the ENV var is only available to the shell php in currently running in (and any subshells) so the script is only vulnerable to mistakes/attacks from 'inside' the script - basically I'm assuming that whatever is stored in the

Re: [PHP] problem with register globals on new server

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 4:53 am, Tony Marston wrote: No, otherwise I would have quoted them. Generally speaking when people say that X is inefficient or bad for performance all they can prove is that if something extra is done then it takes extra processing time to perform that extra work,

Re: [PHP] Pass a relative path [with slashes] into a 'clean' url

2006-12-05 Thread Graham Anderson
thanks :) I'll give that a try g On Dec 5, 2006, at 10:48 AM, Richard Lynch wrote: If you are composing these on the fly, you could use http://php.net/dirname for each element in front of a ../ and wipe out the subdir and the ../ Or, perhaps something like: $url =

RE: [PHP] utf8 encoding £ to £ problem

2006-12-05 Thread tedd
At 1:14 PM + 12/5/06, Chris Dean wrote: Hi Nunners, Just the £ and in my case I need to use that symbol, can't really get round it sensibly with pound; Chris Chris: A simple way I've found to display such characters is to first find their Unicode code-point -- in this case 00A3.

Re: [PHP] Help me about audio stream...

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 1:37 am, Le Phuoc Canh wrote: Dears, I want to make a web app about music online. But i don't know how to use streaming in PHP to load a music file for playing. Please help me for the best direction. Thanks alot and best regard. You are making this too complicated.

Re: [PHP] Distinguishing between a mouse click and a refresh?

2006-12-05 Thread Mark London
Hi - Thanks! This is the solution I actually realized myself last night, after many hours of looking at the other solutions and finding problems with them. Thanks to everyone who responded! - Mark Richard Lynch wrote: On Mon, December 4, 2006 3:03 pm, Mark London wrote: Is there any way

Re: [PHP] firefox only problem

2006-12-05 Thread Jochem Maas
Ross wrote: This is the head of my doc. It is supposed to change the page height based on the selection from the menu. It works in IE and validates ok but it is no go in firefox. Any ideas?? try a CSS list ; google for CSS-Discuss (Eric Meyers list) You can see it in action here...

[PHP] Newsgroup connect time has become very long

2006-12-05 Thread Al
Anyone having problems connecting the last few days? Or, is there something wrong on my end. Al other sites are working just fine. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newsgroup connect time has become very long

2006-12-05 Thread Al
Anyone having problems connecting the last few days? Or, is there something wrong on my end. All other sites are working just fine. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php