php-general Digest 25 Jan 2007 14:33:22 -0000 Issue 4589

2007-01-25 Thread php-general-digest-help
php-general Digest 25 Jan 2007 14:33:22 - Issue 4589 Topics (messages 247745 through 247778): Re: most powerful php editor 247745 by: Roman Neuhauser 247746 by: Curt Zirzow 247748 by: Jochem Maas 247749 by: John Meyer 247750 by: Robert Cummings

Re: [PHP] Unserialize problem (and or bug)

2007-01-25 Thread Sancar Saran
Hi On Thursday 25 January 2007 02:16, Richard Lynch wrote: On Wed, January 24, 2007 9:17 am, Sancar Saran wrote: After updating company test server to dotdeb 5.2.0 it star to give memory problems (even 32mb session). I tought it was because of suhosin. And I cannot update that server to

Re: [PHP] most powerful php editor

2007-01-25 Thread Sancar Saran
On Wednesday 24 January 2007 15:41, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: and also in these days I'm looking for 19 inch (or more) wide LCD sceerns to able to fit longer lines in my screen... Number of reading errors people make grows with line length,

Re: [PHP] most powerful php editor

2007-01-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-25 11:06:22 +0200: On Wednesday 24 January 2007 15:41, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: and also in these days I'm looking for 19 inch (or more) wide LCD sceerns to able to fit longer lines in my screen... Number of

Re: [PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread Stut
M5 wrote: Just wondering what smart people do for parsing data sent by the Javascript XMLHTTP object--e.g., http.send(post,url,true)... In a normal form submit, the $_POST global nicely allocates form elements as array elements automatically. But with the AJAX way, the data get stuffed

Re: [PHP] preg_match problem

2007-01-25 Thread Jim Lucas
Beauford wrote: Here is my rendition of what I think you are looking for. $str = 'tab()/space( )/[EMAIL PROTECTED]*();:...'; if ( preg_match('|[EMAIL PROTECTED]*();:_. /\t-]+$|', $str) ) { echo 'success'; } else { echo 'failure'; } Here is the problem, and it is

Re: [PHP] most powerful php editor

2007-01-25 Thread clive
Vinicius C Silva wrote: hi everyone! i'd like to ask something maybe commonly asked here. what is the most powerful php editor? Just thought I'd add my bit, I used to use phpedit when I developed on a windows systems, then I started using Zend. Ive now moved to linux and still use Zend

Re: [PHP] Multi lingual pages

2007-01-25 Thread Satyam
I wrote something about this, but it is in Spanish: http://www.satyam.com.ar/blog/2007/01/17/internacionalizacion-y-localizacion-indice/ Satyam - Original Message - From: Otto Wyss [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, January 24, 2007 10:44 PM Subject:

Re: [PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread Bernhard Zwischenbrugger
hi The X in AJAX says that the data are XML Data. To parse XML I use DOM. It is also possible to validate the data using RelaxNG, DTD or XMLSchema before processing. A receiver in PHP looks like ?php //read the string ($HTTP_RAW_POST_DATA is by default //not active - use php://input)

[PHP] Re: Parsing AJAX post data -- The Way

2007-01-25 Thread Colin Guthrie
Stut wrote: M5 wrote: Just wondering what smart people do for parsing data sent by the Javascript XMLHTTP object--e.g., http.send(post,url,true)... In a normal form submit, the $_POST global nicely allocates form elements as array elements automatically. But with the AJAX way, the data get

Re: [PHP] sortind arrays

2007-01-25 Thread Alexander Sagen
Roman Neuhauser skrev: # [EMAIL PROTECTED] / 2007-01-25 08:12:14 +0200: How can I sort an array like this so that it would be ASC ordered by the [1] key in subarrays? I need to maintain only the subarray key - value pairs. (Do I make sense?) Array ( [0] = Array ( [0]

Re: [PHP] most powerful php editor

2007-01-25 Thread Robert Cummings
On Thu, 2007-01-25 at 10:12 +, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-25 11:06:22 +0200: On Wednesday 24 January 2007 15:41, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: and also in these days I'm looking for 19 inch (or more) wide LCD

[PHP] Send Email to Mobiles

2007-01-25 Thread Marcelo Ferrufino Murillo
Hi guys, I need to send a email to mobiles I don´t know if I have to use the function mail( ) or if I have to use other one. Thanks your help

RE: [PHP] sortind arrays

2007-01-25 Thread Ford, Mike
On 25 January 2007 10:55, Alexander Sagen wrote: Roman Neuhauser skrev: # [EMAIL PROTECTED] / 2007-01-25 08:12:14 +0200: How can I sort an array like this so that it would be ASC ordered by the [1] key in subarrays? I need to maintain only the subarray key - value pairs. (Do I make

[PHP] php from address

2007-01-25 Thread Chantal Rosmuller
Hi everyone, In November I sent a mail to this list asking how to get the mail From header right, I solved that but I still have a problem. The solution was using the -f option like this: $frommail = [EMAIL PROTECTED]; mail($to, $subject, $message, $headers,-f$frommail); The from address is

Fwd: Re: [PHP] most powerful php editor

2007-01-25 Thread Børge Holen
On Thursday 25 January 2007 08:14, David Robley wrote: tedd wrote: At 9:07 PM -0500 1/24/07, Robert Cummings wrote: Code structure Ahem to that! You're on a roll brother -- keep going. Can I get another Ahem?! tedd I'll see your 'Ahem' and raise you an 'Amen' :-) 'n a God

Re: [PHP] sortind arrays

2007-01-25 Thread Alexander Sagen
Ford, Mike skrev: On 25 January 2007 10:55, Alexander Sagen wrote: Roman Neuhauser skrev: # [EMAIL PROTECTED] / 2007-01-25 08:12:14 +0200: How can I sort an array like this so that it would be ASC ordered by the [1] key in subarrays? I need to maintain only the subarray key - value pairs.

[PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread Myron Turner
[EMAIL PROTECTED] / 2007-01-24 23:41:19 -0700: Just wondering what smart people do for parsing data sent by the Javascript XMLHTTP object--e.g., http.send(post,url,true)... In a normal form submit, the $_POST global nicely allocates form elements as array elements automatically. But with

RE: [PHP] preg_match problem

2007-01-25 Thread Beauford
Hi Jim, Thanks for all the help, but where is the link. Here is a link to a page that has this on it, but with the added ' Plus a link to the source code for it. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --

Re: [PHP] preg_match problem

2007-01-25 Thread Jim Lucas
Beauford wrote: Hi Jim, Thanks for all the help, but where is the link. Here is a link to a page that has this on it, but with the added ' Plus a link to the source code for it. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php from address

2007-01-25 Thread M.Sokolewicz
Chantal Rosmuller wrote: Hi everyone, In November I sent a mail to this list asking how to get the mail From header right, I solved that but I still have a problem. The solution was using the -f option like this: $frommail = [EMAIL PROTECTED]; mail($to, $subject, $message,

Re: [PHP] Send Email to Mobiles

2007-01-25 Thread Youri LACAN-BARTLEY
Marcelo Ferrufino Murillo wrote: Hi guys, I need to send a email to mobiles I don´t know if I have to use the function mail( ) or if I have to use other one. Thanks your help Hi Marcelo, if the mobile phones you are trying to email have Internet connectivity the PHP mail() will enable to

Re: [PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread M5
On 25-Jan-07, at 7:49 AM, Myron Turner wrote: [EMAIL PROTECTED] / 2007-01-24 23:41:19 -0700: Just wondering what smart people do for parsing data sent by the Javascript XMLHTTP object--e.g., http.send(post,url,true)... In a normal form submit, the $_POST global nicely allocates form

[PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread blackwater dev
Is there a php function I can call to pass in a number and get the values returned? For example, pass in 7 and get 1,2,4 ? Thanks!

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread tg-php
If there isn't a function to do exactly what you want, you could use dec2bin() to at least get the binary and work from there: http://us3.php.net/manual/en/function.decbin.php -TG = = = Original message = = = Is there a php function I can call to pass in a number and get the values returned?

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread Jon Anderson
function bits($num) { $bit_array = str_split(strrev(decbin(intval($num; $val_array = array(); foreach ($bit_array as $pow = $bit) { if ($val = $bit * pow(2,$pow)) $val_array[] = $val; } return($val_array); } (I wanted

[PHP] retrieve all the groups a user is memberOf from active directory?

2007-01-25 Thread Bing Du
Hi, Sorry if the top is not closely PHP related. But I need to accomplish it using PHP. I can query the attribute 'memberOf' of a user from the active directory server with no problem. The challenge I'm facing now is how to obtain all the groups a user is member of. In many cases, a user can

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-25 14:34:51 -0500: function bits($num) { $bit_array = str_split(strrev(decbin(intval($num; $val_array = array(); foreach ($bit_array as $pow = $bit) { if ($val = $bit * pow(2,$pow)) $val_array[] =

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread Jim Lucas
Jon Anderson wrote: function bits($num) { $bit_array = str_split(strrev(decbin(intval($num; $val_array = array(); foreach ($bit_array as $pow = $bit) { if ($val = $bit * pow(2,$pow)) $val_array[] = $val; }

Re: [PHP] retrieve all the groups a user is memberOf from active directory?

2007-01-25 Thread Richard Lynch
On Thu, January 25, 2007 3:07 pm, Bing Du wrote: Sorry if the top is not closely PHP related. But I need to accomplish it using PHP. I can query the attribute 'memberOf' of a user from the active directory server with no problem. The challenge I'm facing now is how to obtain all the

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread Paul Novitski
At 1/25/2007 11:16 AM, blackwater dev wrote: Is there a php function I can call to pass in a number and get the values returned? For example, pass in 7 and get 1,2,4 ? Here's a slightly more off-the-wall contribution: function bin2array($iDecimal) {

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread Richard Lynch
On Thu, January 25, 2007 1:34 pm, Jon Anderson wrote: function bits($num) { $bit_array = str_split(strrev(decbin(intval($num; $val_array = array(); foreach ($bit_array as $pow = $bit) { if ($val = $bit * pow(2,$pow))

Re: [PHP] preg_match problem

2007-01-25 Thread Richard Lynch
On Thu, January 25, 2007 9:53 am, Jim Lucas wrote: http://www.cmsws.com/examples/php/preg_match/example01.php The \t inside of '' has no special meaning. So you don't have a TAB character in there. You need to get \t to mean TAB Once you do that, you should then escape the $ with \$ instead

Re: [PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread Richard Lynch
On Thu, January 25, 2007 12:41 am, M5 wrote: Just wondering what smart people do for parsing data sent by the Javascript XMLHTTP object--e.g., http.send(post,url,true)... In a normal form submit, the $_POST global nicely allocates form elements as array elements automatically. But with the

Re: [PHP] Validating a link in php

2007-01-25 Thread Richard Lynch
On Thu, January 25, 2007 12:06 am, [EMAIL PROTECTED] wrote: Richard Lynch wrote: I dunno what you did wrong with fsockopen... First of all, thanks for taking the time to respond. I had tried fsockopen, but here's the problem. The following calls work as expected, returning a valid file

Re: [PHP] JPEG info needed

2007-01-25 Thread Richard Lynch
Re-read the docs more carefully. The second arg is optional, and it returns the PRIOR state of the interlaced-ness (or progressive-ness for a JPEG). Standard computer-science function trick to return prior state when altering state, and to simply return state if the second arg is not passed in.

Re: [PHP] most powerful php editor

2007-01-25 Thread Richard Lynch
On Thu, January 25, 2007 3:06 am, Sancar Saran wrote: On Wednesday 24 January 2007 15:41, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: and also in these days I'm looking for 19 inch (or more) wide LCD sceerns to able to fit longer lines in my screen... Number of

Re: [PHP] most powerful php editor

2007-01-25 Thread Richard Lynch
On Wed, January 24, 2007 8:07 pm, Robert Cummings wrote: On Wed, 2007-01-24 at 18:23 -0600, Richard Lynch wrote: On Wed, January 24, 2007 7:41 am, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: and also in these days I'm looking for 19 inch (or more) wide LCD

Re: [PHP] JPEG info needed

2007-01-25 Thread Gerry Danen
I *have* tried, Richard. It is not returning the state of the file. Files that Irfanview recognizes are prograssive, your example code does not. Looking at C code in gd-2.0.33/gd_jpeg.c downloaded from http://www.boutell.com/gd/ there is a comment: /* REMOVED by TBB 2/12/01. This field of the

Re: [PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread M5
On 25-Jan-07, at 4:46 PM, Richard Lynch wrote: On Thu, January 25, 2007 12:41 am, M5 wrote: Just wondering what smart people do for parsing data sent by the Javascript XMLHTTP object--e.g., http.send(post,url,true)... In a normal form submit, the $_POST global nicely allocates form elements

Re: [PHP] Validating a link in php

2007-01-25 Thread Robert Porter
Frank Arensmeier wrote: Did you take a look at the error numbers / messages returned by fsockopen? What do they say? Actually, I only get warnings, not errors, but here's what they say: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in

Re: [PHP] Validating a link in php

2007-01-25 Thread Casey Chu
Try changing that url to www.youtube.com:80/v/JqO8ZevPJNk On 1/25/07, Robert Porter [EMAIL PROTECTED] wrote: Frank Arensmeier wrote: Did you take a look at the error numbers / messages returned by fsockopen? What do they say? Actually, I only get warnings, not errors, but here's what they