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

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 /var/www

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] 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 s

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 LC

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... >> >

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] 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 fi

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

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] 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] 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] 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 >

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; } return($val_a

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[

[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 b

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 t

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?

[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] 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 e

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

[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", "$headers"

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

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 >

[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 t

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. (Do

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: > > > > > 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

[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

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. (D

[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] 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 LC

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]

[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, th

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 use "php://input") $content=file_get_contents("php://input"); //make a dom object //many people

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: Sent: Wednesday, January 24, 2007 10:44 PM Subject: [PHP] Multi lingual page

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 and

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 str

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 insi

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... > > >

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] 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