Re: [PHP] Re: Script failing on extension_dir

2012-04-10 Thread Matijn Woudt
0:/usr/qmsys/qmphp# php -i 2> /dev/null | grep -i >> "extension_dir" | >> cut -d" " -f3 >> /usr/lib/php5/20090626+lfs >> no >> root@dell350:/usr/qmsys/qmphp# >> >> I am doing this so I can connect the database I use and have only b

Re: [PHP] tempnam() not working as expected...

2012-04-13 Thread Matijn Woudt
On Sat, Apr 14, 2012 at 12:05 AM, tamouse mailing lists wrote: > Can someone explain the following to me: > > > $d=tempnam(".","dir");          /* create a temp named file */ > unlink($d);                     /* unlink it because we're going to make it a > directory */ > mkdir($d,777,true);    

Re: [PHP] sms class

2012-04-18 Thread Matijn Woudt
On Tue, Apr 17, 2012 at 9:50 PM, Lester Caine wrote: > DZvonko Nikolov wrote: >> >> I need a class that sends sms messages to list of numbers. >> I'm quite new to that issue, so I need to know what I need >> more. Thanks in advance. > > > Ignoring the wallies > > Simply sending an SMS message

Re: [PHP] sms class

2012-04-18 Thread Matijn Woudt
On Wed, Apr 18, 2012 at 9:53 PM, Lester Caine wrote: > Matijn Woudt wrote: >> >> It should be possible to hack up an android phone and write some >> software that sends messages from there, though using one of the >> provided services is much simpler. > > >

Re: [PHP] tempnam() not working as expected...

2012-04-19 Thread Matijn Woudt
On Thu, Apr 19, 2012 at 9:03 AM, ma...@behnke.biz wrote: > > > tamouse mailing lists hat am 19. April 2012 um > 07:10 geschrieben: > >> On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz > wrote: >> >> mkdir($d,777,true);                /* make the directory */ >> > Try using "mkdir($d, 0777, tru

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Matijn Woudt
On Thu, Apr 19, 2012 at 1:01 PM, Bastien wrote: > > > Bastien Koert > > On 2012-04-19, at 1:54 AM, tamouse mailing lists > wrote: > >> On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay wrote: >>> On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: >>> He literally wants the "addresses" visible

Re: [PHP] sms class

2012-04-19 Thread Matijn Woudt
On Wed, Apr 18, 2012 at 10:31 PM, Matijn Woudt wrote: > On Wed, Apr 18, 2012 at 9:53 PM, Lester Caine wrote: >> Matijn Woudt wrote: >>> >>> It should be possible to hack up an android phone and write some >>> software that sends messages from there, though us

Re: [PHP] NULL Problem

2012-04-24 Thread Matijn Woudt
On Tue, Apr 24, 2012 at 7:29 PM, David Stoltz wrote: > Here's my code (using MSSQL): > > $conn = new COM ("ADODB.Connection")or die("Cannot start ADO"); > $conn->open($connStr); > $query = "SELECT * FROM TABLE WHERE id = ".$id; > $rs = $conn->execute($query); > > This code works fine, and I retrie

Re: [PHP] Sort question..

2012-04-25 Thread Matijn Woudt
On Wed, Apr 25, 2012 at 3:16 PM, Karl-Arne Gjersøyen wrote: > Hello again. > I have a photo album that show all images in a specified directory. > but I like to sort them by filename as one possibillity and random > sort the photos as another feature. > I don't know how to do this.. Here is my sor

Re: [PHP] Find/count different word in a text

2012-04-25 Thread Matijn Woudt
On Wed, Apr 25, 2012 at 6:59 PM, Karl-Arne Gjersøyen wrote: > Hello again. > I am looking for a way to find and count different word in a text.. > I am thinking on save the text as array and iterate through the array. > Then I like to register all different words in the text. > For example. If bre

Re: [PHP] Serving a .dmg via readfile?

2012-04-27 Thread Matijn Woudt
On Thu, Apr 26, 2012 at 8:20 PM, Brian Dunning wrote: > Thanks, this suggestion from Dante completely solved the problem. > > Replaced: > > readfile('/var/www/mypath/My Cool Image.dmg'); > > With: > > $fd = fopen ('/var/www/mypath/My Cool Image.dmg', "r"); > while(!feof($fd)) { >    set_time_limit

Re: [PHP] mb_encode_mimeheader function can't deal with long non-English strings?

2012-04-30 Thread Matijn Woudt
On Mon, Apr 30, 2012 at 1:04 AM, Coiby Xu wrote: > Hi all, > > I wonder why mb_encode_mimeheader function can't deal with long non-english > strings. Here are the codes: > >> function util_encode_mimeheader($headername,$str,$charset) { >> if (function_exists('mb_internal_encoding') && >> function_

Re: [PHP] date conversion/extraction issues

2012-05-02 Thread Matijn Woudt
On Wed, May 2, 2012 at 11:36 PM, Haluk Karamete wrote: > This is my code and the output is right after that... > > $PDate = $row['PDate']; > //row is tapping into ms-sql date field. > //and the ms-sql data field has a value like this for the PDate; > //07/12/2001 > $PDate = $PDate->date; > echo "[

Re: [PHP] PHP & Database Problems -- Code Snippets

2012-05-02 Thread Matijn Woudt
On Wed, May 2, 2012 at 11:43 PM, Ethan Rosenberg wrote: > Dear list - > > Sorry for the attachment.  Here are code snippets --- Ethan, I don't want to sound rude, but it appears to me you don't have any understanding of what you're doing. It might help if you understand what the code is doing...

Re: [PHP] PHP & Database Problems -- Code Snippets

2012-05-05 Thread Matijn Woudt
On Thu, May 3, 2012 at 4:20 PM, Ethan Rosenberg wrote: > At 06:47 PM 5/2/2012, Matijn Woudt wrote: >> >> On Wed, May 2, 2012 at 11:43 PM, Ethan Rosenberg >> wrote: > Dear list - > > Sorry for the attachment. Â Here are code snippets >> --- Ethan, I don't

Re: [PHP] I'm missing something

2012-05-05 Thread Matijn Woudt
On Sun, May 6, 2012 at 12:38 AM, Jim Giner wrote: > I have a discrepancy in the number of elements in my arrays and can't see > why. > > Here is some code: > Note the lines with the *** > > *** $plyrs = 0; >  unset($plyrnames_ar); >  unset($js_names); >  unset($js_seeds); > *** $rows = mysql_num_r

Re: [PHP] I'm missing something

2012-05-05 Thread Matijn Woudt
On Sun, May 6, 2012 at 12:53 AM, Jim Giner wrote: > Yup that was it!  Something I knew would happen during my design, but forgot > to code for now. > > ""Jim Giner"" wrote in message > news:e2.dc.30075.c6ea5...@pb1.pair.com... >> >> >> My guess would be that you end up with 2 rows having the same

Re: [PHP] How to send XML requests from PHP?

2012-05-08 Thread Matijn Woudt
On Tue, May 8, 2012 at 7:50 PM, Michelle Konzack wrote: > Hello *, > > I have to implement an interface which must access a Domain-Registration > API.  From the manual I have for example: > > 8<-- > Example 2.8. Contact Update:val

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Matijn Woudt
On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: > Hi there, > > I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a > strange issue. > > I have made a Drupal 7 site with a mysql db. > > If I stress-test the site with : ab -c 1 -n 150 http://sitename/ it works > fine. > If

Re: [PHP] Your Citi Credit Card Statement

2012-05-10 Thread Matijn Woudt
On Thu, May 10, 2012 at 7:35 PM, James wrote: >> Original Message >>From: "Citi Cards" >>To: php-general@lists.php.net >>Sent: Thu, May 10, 2012, 1:19 PM >>Subject: [PHP] Your Citi Credit Card Statement >> >>Your Citi Credit Card Statement >> >> >> >> >> >>               Add citica...@in

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Matijn Woudt
On Thu, May 10, 2012 at 11:26 PM, Lars Nielsen wrote: > >> >> >> Sent from my iPhone 5 Beta [Confidential use only] >> >> On 10 mei 2012, at 17:40, Matijn Woudt wrote: >> >>> On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: >>>> H

Re: [PHP] Performance / AB issue?

2012-05-11 Thread Matijn Woudt
t;>> >>>>> >>>>> >>>>> Sent from my iPhone 5 Beta [Confidential use only] >>>>> >>>>> On 10 mei 2012, at 17:40, Matijn Woudt wrote: >>>>> >>>>>> On Thu, May 10, 2012 at 9:04 AM, Lars N

Re: [PHP] Time out issue

2012-05-12 Thread Matijn Woudt
On Sat, May 12, 2012 at 9:42 PM, admin wrote: > I am running Windows 2008 R2, IIS 7 > > I am running into an issue where no matter what I set the script  time out > to be the server is > > Giving me a 500 error  after like 60 seconds when the process exceeds the > configured activity timeout. > >

Re: [PHP] Time out issue

2012-05-12 Thread Matijn Woudt
On Sat, May 12, 2012 at 10:19 PM, admin wrote: > > > -Original Message- > From: Matijn Woudt [mailto:tijn...@gmail.com] > Sent: Saturday, May 12, 2012 3:54 PM > To: admin > Cc: php-general@lists.php.net > Subject: Re: [PHP] Time out issue > > On Sat, May 12,

Re: [PHP] looking for some PECL PHP GTK tutorial

2012-05-14 Thread Matijn Woudt
On Mon, May 14, 2012 at 7:05 AM, Mihamina Rakotomandimby wrote: > Hi all > > As PHP-GTK has "moved" to the PECL, I suppose several part of this > documentation are not relevent anymore: > http://gtk.php.net/manual/en/tutorials.installation.linux.php > > Would you know a place where I could find so

Re: [PHP] Bug in DOMDocument schemaValidate() function?

2012-05-14 Thread Matijn Woudt
On Mon, May 14, 2012 at 1:39 PM, Voß, Marko wrote: > Hello, > > I am validating user DOM against schema files using the following piece of > code: > > $valid = @$doc->schemaValidate($xsdFile); > > where $doc is of type DOMDocument and $xsdFile is the file location of the > XSD file. > > Everythi

Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-21 Thread Matijn Woudt
On Mon, May 21, 2012 at 2:31 PM, rene7705 wrote: > On Mon, May 21, 2012 at 1:17 PM, Simon Schick > wrote: >> Hi, Rene >> >> I took a quick look over your code ... >> >> I kind-of like the idea having all logging at one place, but the code is a >> bit too messy if you ask me :) >> If you would hav

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 3:50 PM, Jonesy wrote: > On Wed, 23 May 2012 00:24:25 -0400, admin wrote: >> -Original Message- >> From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] >> Sent: Wednesday, May 23, 2012 12:13 AM >> To: php-general@lists.php.net >> Subject: [PHP] w.r.t. mail

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Matijn Woudt
On Tue, May 22, 2012 at 8:15 PM, Gates, Jeff wrote: > Can anyone tell me what differences I might encounter by working with PHP on > a Unix server verses working with PHP on a Windows server. We use Windows > production servers here but many of us would like to get more LAMP > environments. > >

Re: [PHP] Function size

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 5:49 PM, shiplu wrote: > On Wed, May 23, 2012 at 8:14 PM, Tedd Sperling wrote: > >> Hi gang: >> >> On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: >> >  A rule of thumb is no more than 50 lines per >> > function, most much less. Back in the day when we didn't hav

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 8:29 PM, jas wrote: > I have run into a problem that I am altogether unfamiliar with. > > A scenario. I retrieve a users private key from a database. > > I then use the openssl_pkey_get_private() function to load it as a resource > object and proceed to call the openssl_sig

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen wrote: > On 05/23/2012 01:05 PM, Matijn Woudt wrote: >> >> On Wed, May 23, 2012 at 8:29 PM, jas  wrote: >>> >>> I have run into a problem that I am altogether unfamiliar with. >>> >>> A scena

Re: [PHP] Function size

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:49 PM, Ashley Sheridan wrote: > ** > On Wed, 2012-05-23 at 20:59 +0200, Matijn Woudt wrote: > > On Wed, May 23, 2012 at 5:49 PM, shiplu wrote: > > On Wed, May 23, 2012 at 8:14 PM, Tedd Sperling wrote: > > > >> Hi gang: > >>

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:33 PM, Ashley Sheridan wrote: > ** > On Wed, 2012-05-23 at 20:36 +0200, Matijn Woudt wrote: > > On Wed, May 23, 2012 at 3:50 PM, Jonesy wrote: > > On Wed, 23 May 2012 00:24:25 -0400, admin wrote: > >> -Original Message- &g

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:35 PM, Ashley Sheridan wrote: > ** > On Wed, 2012-05-23 at 20:54 +0200, Matijn Woudt wrote: > > On Tue, May 22, 2012 at 8:15 PM, Gates, Jeff wrote: > > Can anyone tell me what differences I might encounter by working with PHP > > on a Unix se

Re: [PHP] openssl_sign() & openssl_verify() discrepancy

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:42 PM, Jason Gerfen wrote: > On 05/23/2012 01:26 PM, Matijn Woudt wrote: >> >> On Wed, May 23, 2012 at 9:12 PM, Jason Gerfen >>  wrote: >>> >>> On 05/23/2012 01:05 PM, Matijn Woudt wrote: >>>> >>>> On Wed

Re: [PHP] w.r.t. mail() function

2012-05-24 Thread Matijn Woudt
On Wed, May 23, 2012 at 10:25 PM, Jim Lucas wrote: > On 05/22/2012 09:12 PM, Ashwani Kesharwani wrote: >> >> Hi , >> >> I have a query w.r.t. mail() function in php. >> >> I have hosted my site and i have created an email account as well. >> >> when i am sending mail to different recipient from my

Re: [PHP] Function size

2012-05-24 Thread Matijn Woudt
On Wed, May 23, 2012 at 10:14 PM, shiplu wrote: > > > On Thu, May 24, 2012 at 1:56 AM, Matijn Woudt wrote: >> >> I agree that large switch block are not always easy and useful to split, >> however, writing too much code inside a switch block isn't considered good

Re: [PHP] problem sending email

2012-05-24 Thread Matijn Woudt
On Thu, May 24, 2012 at 2:00 PM, As'ad Djamalilleil wrote: > hi all,i'm having this problem in sending email using pear. > it just wont send :( > here's the code .. > >    require_once 'Mail.php'; > >    $from_name = "My Self"; >    $to_name = "My Friend"; >    $subject = "Sending Trial"; >    $m

Re: [PHP] Function size

2012-05-29 Thread Matijn Woudt
> The art of software development is in taking a problem, breaking it up in to > bite-size chunks, and putting those chunks together to form a practical > solution. Anyone who considers themselves a "better" programmer because their > functions are large due to their ability to handle large func

Re: [PHP] Re: Function size

2012-05-29 Thread Matijn Woudt
On Tue, May 29, 2012 at 11:06 PM, Paul M Foster wrote: > OMG in alpha order?! At best, I might group them together by function > type, with some comment notation in the file. But not alpha order. I > prefer not to have "forward declares" in my files, so I generally > arrange functions so that thos

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-31 Thread Matijn Woudt
On Thu, May 31, 2012 at 3:29 PM, Gates, Jeff wrote: > From: Matijn Woudt mailto:tijn...@gmail.com>> > Date: Wednesday, May 23, 2012 3:59 PM > To: "a...@ashleysheridan.co.uk<mailto:a...@ashleysheridan.co.uk>" > mailto:a...@ashleysheridan.co.uk>> > Cc:

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread Matijn Woudt
On Thu, May 31, 2012 at 12:28 PM, Voß, Marko wrote: > Hello, > > I need to perform uploading of large files using the HTTP_Request class: > > http://pear.php.net/manual/package.http.http-request.php > > I am *not* using this one: > > http://php.net/manual/en/class.httprequest.php > > > The HTTP_Re

Re: [PHP] progress indicators in browsers for long running php scripts?

2012-06-02 Thread Matijn Woudt
On Fri, Jun 1, 2012 at 3:45 PM, rene7705 wrote: > Hi.. > > I've got several scripts now that may run for a long time; the > self-test script for my htmlMicroscope, my serviceLog component when > it calculates totals for a large number of hits, a curl script that is > likely to one day crawl a hund

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-02 Thread Matijn Woudt
On Fri, Jun 1, 2012 at 9:52 PM, <324...@mail.muni.cz> wrote: > Hi, > > as I accidentally found out that PHP allows default argument values > to occur not only at the end of parameter list: > > function ( Classname $a, Classname $b = null, Classname $c ) ... > > Unfortunately, documentation does no

Re: [PHP] Simple Email System (SES) Provider

2012-06-02 Thread Matijn Woudt
On Sat, Jun 2, 2012 at 2:32 AM, Don Wieland wrote: > Hi all, > > I built a system in PHP/mySQL where a group of users post events, sign-up > for events, change their arrival times, remove thier names from events, and > post related notes on the events. Each time an action is done, an email is > ge

Re: [PHP] Simple Email System (SES) Provider

2012-06-02 Thread Matijn Woudt
On Sat, Jun 2, 2012 at 6:20 PM, Ashley Sheridan wrote: > ** > On Sat, 2012-06-02 at 17:33 +0200, Matijn Woudt wrote: > > On Sat, Jun 2, 2012 at 2:32 AM, Don Wieland wrote: > > Hi all, > > > > I built a system in PHP/mySQL where a group of users post events, sign-u

Re: [PHP] Simple Email System (SES) Provider

2012-06-02 Thread Matijn Woudt
On Sat, Jun 2, 2012 at 6:25 PM, Stuart Dallas wrote: > On 2 Jun 2012, at 17:20, Ashley Sheridan wrote: > >> On Sat, 2012-06-02 at 17:33 +0200, Matijn Woudt wrote: >> >>> On Sat, Jun 2, 2012 at 2:32 AM, Don Wieland wrote: >>>> Hi all, >>>> >&g

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-02 Thread Matijn Woudt
On Sat, Jun 2, 2012 at 8:30 PM, oliver gondža wrote: > On Sat, 02 Jun 2012 17:13:55 +0200, Matijn Woudt wrote: > >> >> Hi Oliver, >> >> I think the example at [1] demonstrates that it is possible, but it >> also notes that it is pretty useless. Why are yo

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 4:48 PM, oliver gondža wrote: > On Sat, 02 Jun 2012 21:35:28 +0200, Matijn Woudt wrote: > >> It does not state it works only at the end of the list, it states that >> it only makes sense to use it at the end of the argument list to be >> able to cal

Re: [PHP] disabled cookies

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan wrote: > > > Al wrote: > >>Disabled cookies use to be a problem years ago.  What's your experience >>these days. >> >>I need it for my session ID. As I read the docs, the old method of >>appending it >>to the URL is a security issue. >> >>I can obv

Re: [PHP] disabled cookies

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 11:26 PM, Matijn Woudt wrote: > On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan > wrote: >> >> >> Al wrote: >> >>>Disabled cookies use to be a problem years ago.  What's your experience >>>these days. >>> >

Re: [PHP] disabled cookies

2012-06-04 Thread Matijn Woudt
On Mon, Jun 4, 2012 at 1:09 AM, Lester Caine wrote: > Ashley Sheridan wrote: >> >> How is Google Chrome a bigger security risk than the other popular >> browsers, Fx and IE? >> >> I was under the impression it was more secure than either of those. > > > License Conditions ... They may have removed

Re: [PHP] Hungarian Notation interest with PHP

2012-06-04 Thread Matijn Woudt
On Mon, Jun 4, 2012 at 4:43 PM, Mihamina Rakotomandimby wrote: > Hi all, > > I have a colleague stuck with this thing named "Hungarian Notation" > http://goo.gl/xYv8O > > We try to define our internal coding standards, which is very close to the > Symfony ones http://goo.gl/f2rcO > > But we're in

Re: [PHP] long running php script won't complete :(

2012-06-04 Thread Matijn Woudt
On Mon, Jun 4, 2012 at 5:57 PM, rene7705 wrote: > Hi. > > I've got a piece of code that builds up a multi-meg test array for my > opensourced http://mediabeez.ws/products/htmlMicroscope var_dump() > improvement, and when I run it for longer than about 20 minutes, the > browser just calls it quits.

Re: [PHP] 0.0.0.0 & iplong()

2012-06-04 Thread Matijn Woudt
On Mon, Jun 4, 2012 at 6:54 PM, jas wrote: > Not sure if this is a bug or not... > > I have run into an error when performing a conditional using iplong() and > the ~ bitwise operator > > $ip = '0.0.0.0'; > $mask = '24'; > > $end = (ip2long($ip) || (~ip2long($mask))) + 1; > > PHP Fatal error:  Uns

Re: [PHP] 0.0.0.0 & iplong()

2012-06-04 Thread Matijn Woudt
On Mon, Jun 4, 2012 at 8:38 PM, jas wrote: > On 06/04/2012 11:33 AM, Matijn Woudt wrote: >> >> On Mon, Jun 4, 2012 at 6:54 PM, jas  wrote: >>> >>> Not sure if this is a bug or not... >>> >>> I have run into an error when performing a condit

Re: [PHP] disabled cookies

2012-06-04 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 12:13 AM, Ashley Sheridan wrote: > On Mon, 2012-06-04 at 17:53 -0400, Paul M Foster wrote: > >> On Sun, Jun 03, 2012 at 10:21:21PM +0100, Ashley Sheridan wrote: >> >> > >> > >> > Al wrote: >> > >> > >Disabled cookies use to be a problem years ago.  What's your >> > >experie

Re: [PHP] 0.0.0.0 & iplong()

2012-06-05 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 1:07 PM, jas wrote: > On 06/04/2012 12:48 PM, Matijn Woudt wrote: >> >> On Mon, Jun 4, 2012 at 8:38 PM, jas  wrote: >>> >>> On 06/04/2012 11:33 AM, Matijn Woudt wrote: >>>> >>>> >>>> On Mon, Jun 4, 2012

Re: [PHP] 0.0.0.0 & iplong()

2012-06-05 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 1:49 PM, jas wrote: > > > As stated previously using CIDR notation such as 192.168.0.0/24, 10.0.0.0/24 > perform validation on an IP existing within said subnet range. > > visiting ip: 192.168.0.22 > > acl allow range: 192.168.0.0/24 > acl deny range: 0.0.0.0/24 > > CIDR no

Re: [PHP] zend_auto_global_disable_jit missing in PHP 5.4.5

2012-06-05 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 4:39 AM, freeone3000 wrote: > I'm working with a third-party PHP extension that makes a call to > zend_auto_global_disable_jit. However, in PHP5.4.5, there is no > zend_auto_global_disable_jit available, nor is it in its traditional > header. Commenting out all zend_auto_glo

Re: [PHP] disabled cookies

2012-06-05 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 9:15 PM, Tedd Sperling wrote: > On Jun 3, 2012, at 5:21 PM, Ashley Sheridan wrote: >> >> There is a new law been passed in the UK that makes non-essential cookies >> opt-in only, so you must get permission in order to use them. > > What's a non-essential cookie? > > Cheers,

Re: [PHP] A Question of SESSION

2012-06-07 Thread Matijn Woudt
On Thu, Jun 7, 2012 at 5:15 PM, Tedd Sperling wrote: > Hi Daniel and gang: > > Considering I'm never afraid to show my ignorance, please review the > following example. > > Because of the way I normally use sessions and considering this way works for > me, I thought I knew what sessions were abo

Re: [PHP] how to walk async recursively over an object, doing work (in right order) per leaf

2012-06-13 Thread Matijn Woudt
On Wed, Jun 13, 2012 at 7:03 PM, rene7705 wrote: > I'm a bit stumped on a javascript problem at the moment, I hope you > don't mind (too much) that I post it here as well, for a wider > audience.. > > My opensourced htmlMicroscope works well, except when you open a > sub-array that holds more than

Re: [PHP] phpinfo

2012-06-17 Thread Matijn Woudt
On Sun, Jun 17, 2012 at 10:22 PM, Jim Giner wrote: > When one executes a phpinfo call, the display of info broken into the >  various sections mostly makes sense. The $_SERVER vars are listed with a >  _SERVER name, the environment ones show _ENV, and so on.  But I question >  what are the duplica

Re: [PHP] What's happened to our newsgroup?

2012-06-26 Thread Matijn Woudt
On Tue, Jun 26, 2012 at 11:39 PM, Jason Pruim wrote: > > On Jun 26, 2012, at 4:15 PM, "Jen Rasmussen" wrote: > >> LOL >> >> -Original Message- >> From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] >> Sent: Tuesday, June 26, 2012 3:13 PM >> To: Marc Guay >> Cc: php-general@lists.php.

Re: [PHP] What's happened to our newsgroup?

2012-06-26 Thread Matijn Woudt
On Tue, Jun 26, 2012 at 11:45 PM, Daniel Brown wrote: > On Tue, Jun 26, 2012 at 5:42 PM, Matijn Woudt wrote: >> >> Isn't everyday friday in summer? ;) > >    If it is, then it could be argued that every day is a Monday in > winter --- and right now, those poor fol

Re: [PHP] Re: php form action breaks script

2012-06-27 Thread Matijn Woudt
On Thu, Jun 28, 2012 at 2:17 AM, Tim Dunphy wrote: > Hey guys, > > It's been a little while since I've toyed with this, and I hope you > don't mind my coming back to you for some more advice. But I've > enjoyed some limited success with David R's advice regarding adding > some strong quoting to th

Re: [PHP] log tailing

2012-07-02 Thread Matijn Woudt
On Mon, Jul 2, 2012 at 3:23 PM, Mihamina Rakotomandimby wrote: > On 06/30/2012 09:32 PM, Daniel Brown wrote: >>> >>> >> $ssh_entries = explode(PHP_EOL,trim(`tail /var/log/syslog | awk >>> {'print $1,$2,$3 "|" $5 "|" $11'}`)); > > > This will tail a default number of lines. > > I'm looking for a wa

Re: [PHP] embedding php inside of php

2012-07-02 Thread Matijn Woudt
Hi, First a message to the ones that have responded before me: You're correct about the nested php tags that are not doing what the OP wanted, but you might want to take a closer look at the error that's in the logs. In ANY CASE PHP SHOULD NOT CRASH. What if the OP really wanted to print PHP tags

Re: [PHP] Destructor not called when extending SimpleXMLElement

2012-07-02 Thread Matijn Woudt
On Mon, Jul 2, 2012 at 1:58 PM, Nick Chalk wrote: > Afternoon all. > > I seem to be having a little trouble with extending the > SimpleXMLElement class. I would like to add a destructor to the > subclass, but am finding that it is not called. > > Attached is a minimal demonstration of the problem.

Re: [PHP] PDO Prevent duplicate field names?

2012-07-02 Thread Matijn Woudt
On Tue, Jul 3, 2012 at 12:25 AM, Scott Baker wrote: > $sql = "SELECT First, Last, Age, 'Foobar' AS Last;"; > > This is a simplified example of a SQL query where we're returning two > fields with the same name (Last). When I do a fetch_assoc with this > query I only get three fields, as the second

Re: [PHP] PDO Prevent duplicate field names?

2012-07-02 Thread Matijn Woudt
On Tue, Jul 3, 2012 at 12:38 AM, Scott Baker wrote: > On 07/02/2012 03:34 PM, Matijn Woudt wrote: >> Why the would you want to return 2 columns with the same name? >> To be short, there's no such function, so you have to: >> 1) Rename one of the columns >> 2)

Re: [PHP] exec to launch putty.exe for telnet

2012-07-03 Thread Matijn Woudt
On Tue, Jul 3, 2012 at 8:24 PM, Devang Patel wrote: > Hello Experts, > > I have putty.exe on my desktop so if I will go to command prompt and then > to C:\Documents and Settings\user\Desktop location and execute following > command it will launch the Putty window of telnet connection to server >

Re: [PHP] Unexpected Notice message

2012-07-05 Thread Matijn Woudt
On Thu, Jul 5, 2012 at 6:54 PM, RGraph.net support wrote: > Hi, > >> that the code should be fixed. > > Or the error reporting turned down... :-) And one day, you decide to write define('QUERY_STRING', "Oh I was so stupid that day"); and since you turned down your error reporting, you will have

Re: [PHP] [PHP-DEV] SQLite - Unwanted values using group-by

2012-07-07 Thread Matijn Woudt
On Sun, Jul 8, 2012 at 12:07 AM, Simon Schick wrote: > Hi, All > > May you have an idea ... > > Here's the full code-example: > http://viper-7.com/M5mldG > > I have the following SQL command: > > SELECT max(r.month+r.year*100), r.year, r.month > FROM base b LEFT JOIN remote r ON b.id = r.remote_id

Re: [PHP] Using named Pipes between PHP and ZIP

2012-07-09 Thread Matijn Woudt
On Mon, Jul 9, 2012 at 7:19 PM, Dennis Heck wrote: > > Unfortunately it makes no difference if i use zip with 2 - or if I leave > them ommited. The longer I guess about it, the more I think it might be a > ZIP topic, namely how the stream to stdin needs to be like so zip will know > the name of th

Re: [PHP] [PHP-DEV] SQLite - Unwanted values using group-by

2012-07-11 Thread Matijn Woudt
On Wed, Jul 11, 2012 at 1:45 AM, Simon Schick wrote: > On Sun, Jul 8, 2012 at 12:33 AM, Matijn Woudt wrote: >> >> Both of the results are valid outcomes. I think you don't understand >> the GROUP BY clause well enough. The parameters in the SELECT clause, >> sho

Re: [PHP] Contribute to PHP

2012-07-11 Thread Matijn Woudt
On Thu, Jul 12, 2012 at 8:45 AM, Ziad Jammal wrote: > Deal all phpiers, > > It took me a while before I hit the send key. > I have been a php developer for some time and I got certified beginning of > this year. > I have always wanted to start contributing to php and zend framework, but I > am u

Re: [PHP] vCard Image

2012-07-12 Thread Matijn Woudt
On Thu, Jul 12, 2012 at 5:51 PM, Floyd Resler wrote: > I'm trying to extract the image from a vCard and display it. I'm not having > any luck. I saw a sample of putting an image into a vCard via PHP and use > base64_encode. So I thought base64_decode would work. However, still no > luck. A

Re: [PHP] Entry point of an MVC framework

2012-07-12 Thread Matijn Woudt
On Fri, Jul 13, 2012 at 12:41 AM, Paul M Foster wrote: > On Fri, Jul 13, 2012 at 12:26:33AM +0200, Timmy Sjöstedt wrote: > > > [snip] > >> >> The Controllers also doesn't care if the data is stored in MySQL, >> Postgres, in RAM or on butterflies or anything else, as long as data >> is returned in

Re: [PHP] Seeking a scheduling algorithm

2012-07-15 Thread Matijn Woudt
On Sat, Jul 14, 2012 at 10:53 PM, Tedd Sperling wrote: > Hi gang: > > Does anyone have a resource, or better yet code, to solve the scheduling > problem described below? > > Let's say you have a week calendar that has openings between 8:00am to 5:00pm > for Monday through Friday (40 hours). > >

Re: [PHP] SOAP and Php question about authentication

2012-07-16 Thread Matijn Woudt
Op 17 jul. 2012 05:23 schreef "James Newman" het volgende: > > I'm having a few authentication issues and I'm not sure if it's my code or > the web service I'm connecting to. The code below shows what I'm working > with not sire if I'm going about it the right way. > > This is the error I get! >

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread Matijn Woudt
Op 17 jul. 2012 22:44 schreef "James Newman" het volgende: > > I agree with your response, the payment gateway insists that the > authentication I have been given is correct. My question was more around > "was I using the function correctly". It says authentication failed but > I've followed he

Re: [PHP] difference PEAR PECL

2012-07-19 Thread Matijn Woudt
On Thu, Jul 19, 2012 at 6:58 PM, Daniel Brown wrote: > On Thu, Jul 19, 2012 at 12:18 PM, Mihamina Rakotomandimby > wrote: >> Hi all, >> Wondering about the difference between PECL and PEAR, I found: >> http://board.phpbuilder.com/showthread.php?10339238-Pecl-vs-Pear >> >> Is it a suitable answer?

Re: [PHP] magic getter

2012-07-19 Thread Matijn Woudt
On Thu, Jul 19, 2012 at 9:22 PM, Sebastian wrote: > Hi all, > > is this a bug, or a feature? > > class Foo > { > private $data; > > public function __get($name) > { > return $this->data[$name]; > } > } > > $foo = new Foo(); > $foo->color = 'red'; > > echo $foo->color; > > I would expec

Re: [PHP] Too many open files

2012-08-09 Thread Matijn Woudt
On Fri, Aug 10, 2012 at 5:36 AM, Jim Lucas wrote: > On 8/9/2012 5:01 PM, Al wrote: >> >> Getting "Too many open files" error when processing an email batch >> process. >> >> I've looked extensively and can't find more than about 100 files that >> could be open. All my fetching is with get_file_co

Re: [PHP] Too many open files

2012-08-12 Thread Matijn Woudt
On Fri, Aug 10, 2012 at 6:02 PM, Daniel Brown wrote: > On Fri, Aug 10, 2012 at 10:22 AM, Robert Cummings > wrote: >> On 12-08-09 08:01 PM, Al wrote: >>> I can't find a way to see what files could be open or what the limit is. >>> >>> Site is on a shared server, cPanel. >> >>^

Re: [PHP] Is PHP unsuitable for HTML5 WebSockets?

2012-08-13 Thread Matijn Woudt
On Mon, Aug 13, 2012 at 9:01 AM, Jim Lucas wrote: > On 8/12/2012 12:06 PM, BRIAN M. FITZPATRICK wrote: >> >> I've looked all over the net and I have been unable to find a concrete >> answer to this question. I am about to start development on a web >> application that will need to provide real-tim

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 8:12 PM, Suraj Shah wrote: > Thanks for your reply Ashley. > > I’m getting the attached error message which I can’t seem to solve. If it’s > just a matter of adding code to use for a library, would this be possible? > How do I go about configuring it? > > Many thanks, > S

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 8:21 PM, Suraj Shah wrote: > > > > On 23/08/2012 19:11, "Matijn Woudt" wrote: > > > On Thu, Aug 23, 2012 at 8:12 PM, Suraj Shah wrote: > >> Thanks for your reply Ashley. > >> > >> I’m getting the attached error

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
> > OK thanks Matijn. > > I’ll google it now and install it. > > There is a site.php as well as a config.php file in the sub-directory of the > old server. I’ve copied these over but not sure why it still doesn’t > recognise it. I’ve amended the code to point to the new server as well. > > Suraj T

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:14 PM, Suraj Shah wrote: > > > > On 23/08/2012 20:12, "Ashley Sheridan" wrote: > > On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > > >> >> OK thanks Matijn. >> >> I’ll google it now and install it. >

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:12 PM, Ashley Sheridan wrote: > ** > On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > > > > > OK thanks Matijn. > > > > I’ll google it now and install it. > > > > There is a site.php as well as a config.php file in

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:25 PM, Suraj Shah wrote: > > > On 23/08/2012 20:12, "Matijn Woudt" wrote: > > > > On Thu, Aug 23, 2012 at 9:12 PM, Ashley Sheridan > wrote: > > > On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > >> >>

Re: [PHP] Dynamic Content thoughts

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:51 PM, admin wrote: > Hello everyone, > > In my quest to build bigger and better dynamic content, I am > putting forth a concept to see what you all think. > > Many times I come across customers who want drop down menus dynamically > built from database ta

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:01 PM, tamouse mailing lists wrote: > OT Reply -- just frustrated with the way email screws up program > listings. It's a royal pain to have to strip out code and then put it > in an editor and tidy it up just to be able to make heads or tails out > of something. There ar

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: > Two simple guide lines will help everybody here. > > 1) Limit your lines to 80 characters > 2) Use spaces instead of Tabs > Are we going to discuss coding guidelines again? The 80-character limit is outdated, 100 or 120 is more common today. And

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas wrote: > On 08/24/2012 08:25 AM, Matijn Woudt wrote: >> >> On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: >>> >>> Two simple guide lines will help everybody here. >>> >>> 1) Limit your lines

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 8:24 PM, Jim Lucas wrote: >>> >>> Personally, I let my code ramble on as long a line as it needs. I use >>> tabs >>> (set to 8 chars) in my code. That is because the other developers that I >>> work with have editors that can display the tabs in whatever width they >>> de

  1   2   3   4   >