Re: [PHP] PHP script for detecting pattern sequences?

2009-07-08 Thread WenDong Zhang
yes (\d+?)\1+ works fine On Thu, Jul 9, 2009 at 6:00 AM, Per Jessen wrote: > Rob Gould wrote: > > > Can anyone tell me if there's a PHP library out there that will help > > me determine "pattern sequences" from a string? > > > > > > Example input: > > > > 032258064516129032258064516129032258064

[PHP] php distributed file system

2009-07-08 Thread Shane Hill
hi folks, I am on a couple of php lists and on one of them we were having a discussion about scalable enterprise class systems to store images for things like user photo and file uploads, etc. and whether or not something existed in php to facilitate this. well the discussion inspired me and I cr

[PHP] Re: php/sqlite3

2009-07-08 Thread Greg Beaver
bruce wrote: > hi... > > i've got an issue where i'm trying to incorporate sqlite3 into my php. > > i'm running fedora 9, php5.2.9. > > the php app was installed using the tun install process... > > i know the docs say that php5+ is supposed to have sqlite incorporate > natively... > > howeve

Re: [PHP] php/sqlite3

2009-07-08 Thread Paul M Foster
On Wed, Jul 08, 2009 at 02:55:04PM -0700, bruce wrote: > hi... > > i've got an issue where i'm trying to incorporate sqlite3 into my php. > > i'm running fedora 9, php5.2.9. > > the php app was installed using the tun install process... > > i know the docs say that php5+ is supposed to have s

Re: [PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Paul M Foster
On Wed, Jul 08, 2009 at 06:55:24PM -0500, Shawn McKenzie wrote: > D.M.Jackson wrote: > > Thanks guys. I was just wondering if it was common practice to pass all > > those variables in the SESSION object or if I was following a bad example > > because it was the first time that I had seen so many

Re: [PHP] php/sqlite3

2009-07-08 Thread Robyn Overstreet
Did you try connecting using a PDO object instead of sqlite_open? I'm not positive, but it looks like the sqlite_ only work with sqlite2 ... R On Wed, Jul 8, 2009 at 2:55 PM, bruce wrote: > hi... > > i've got an issue where i'm trying to incorporate sqlite3 into my php. > > i'm running fedora 9,

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Shawn McKenzie
D.M.Jackson wrote: > Thanks guys. I was just wondering if it was common practice to pass all > those variables in the SESSION object or if I was following a bad example > because it was the first time that I had seen so many variables passed this > way. If this is the typical way of handling t

Re: [PHP] CMS

2009-07-08 Thread VamVan
On Wed, Jul 8, 2009 at 2:31 PM, madunix wrote: > Dear ALL, > > What are the experiences you have with various open source CMS > products (Comparison of PHP-based CMS) such as (Drupal, Joomla, > OpenCMS, Typo3, eZ publish ..etc.) > > Security, Bugs, Performance, Support, Developer Community, lea

Re: Re: [PHP] Simple login form with cookies

2009-07-08 Thread Jason Carson
> > The basic model for password authentication is to use one way crypt > routines. MySql has several, PHP also has them. The basic algorithm > would be like this: > > 1) read the password from the form. > 2) read the password from you datastore that matches the user name or > session > 3) encrypt

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread D.M.Jackson
Thanks guys. I was just wondering if it was common practice to pass all those variables in the SESSION object or if I was following a bad example because it was the first time that I had seen so many variables passed this way. If this is the typical way of handling this in php then I don't hav

Re: [PHP] CMS

2009-07-08 Thread Lists
Miles Thompson wrote: [snip]d they're OK. We have probably standardized on Drupal. The big advantage is that they manage all the CRUD, and you spend 80% of your time bending either one to do the non-standard 20% which you absolutely *must* have. [snip] I think that is the "krux" of it for me..

Re: [PHP] CMS

2009-07-08 Thread Miles Thompson
We have used both Joomla! and Drupal for clients and for our own use - and they're OK. We have probably standardized on Drupal. The big advantage is that they manage all the CRUD, and you spend 80% of your time bending either one to do the non-standard 20% which you absolutely *must* have. Typo3

Re: [PHP] PHP script for detecting pattern sequences?

2009-07-08 Thread Per Jessen
Rob Gould wrote: > Can anyone tell me if there's a PHP library out there that will help > me determine "pattern sequences" from a string? > > > Example input: > > 032258064516129032258064516129032258064516129032258064516129 > Sequence = 032258064516129 > > > 0370370370370370370370370370370370

[PHP] php/sqlite3

2009-07-08 Thread bruce
hi... i've got an issue where i'm trying to incorporate sqlite3 into my php. i'm running fedora 9, php5.2.9. the php app was installed using the tun install process... i know the docs say that php5+ is supposed to have sqlite incorporate natively... however, on this box, it doesn't! when i do

[PHP] CMS

2009-07-08 Thread madunix
Dear ALL, What are the experiences you have with various open source CMS products (Comparison of PHP-based CMS) such as (Drupal, Joomla, OpenCMS, Typo3, eZ publish ..etc.) Security, Bugs, Performance, Support, Developer Community, learning curve, appearance..etc Thanks -mu -- PHP General Mai

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
Try again, and include the actual link this time, dummy. :-) On Wed, Jul 8, 2009 at 5:30 PM, Andrew Ballard wrote: > On Wed, Jul 8, 2009 at 4:45 PM, PJ wrote: >> Andrew Ballard wrote: >>> On Wed, Jul 8, 2009 at 11:53 AM, PJ wrote: I have a couple of questions/comments re all this: > > [s

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
On Wed, Jul 8, 2009 at 4:45 PM, PJ wrote: > Andrew Ballard wrote: >> On Wed, Jul 8, 2009 at 11:53 AM, PJ wrote: >>> I have a couple of questions/comments re all this: >>> [snip] >>> 2. Cleaning is another bloody headache, for me anyway. I have found that >>> almost every time I try to do some cle

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Paul M Foster wrote: > On Wed, Jul 08, 2009 at 03:23:49PM -0400, Bob McConnell wrote: > > >> From: Tony Marston >> >> >>> I do not follows rules which cannot be justified beyond the expression >>> >> "It >> >>> is there, so obey it!" Why is it there? What are the alternatives?

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Tony Marston wrote: > I do not follows rules which cannot be justified beyond the expression "It > is there, so obey it!" Why is it there? What are the alternatives? What harm > does it do? What happens if the rule is disobeyed? Damn, isn't life frustrating... in case no one has noticed, 99 % of

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Andrew Ballard wrote: > On Wed, Jul 8, 2009 at 11:53 AM, PJ wrote: > >> Michael A. Peters wrote: >> >>> Daniel Brown wrote: >>> First, a reminder to several (including some in this thread) that top-posting is against the law here. On Wed, Jul 8, 2009 at 09:48,

[PHP] PHP script for detecting pattern sequences?

2009-07-08 Thread Rob Gould
Can anyone tell me if there's a PHP library out there that will help me determine "pattern sequences" from a string? Example input: 032258064516129032258064516129032258064516129032258064516129 Sequence = 032258064516129 037037037037037037037037037037037037037037037037037037037037 S

[PHP] EXEC and SYSTEM delay

2009-07-08 Thread Alberto García Gómez
Fellows: I'm experimenting problems with a call that I made to exec or system. The problem is that the script await for the function finish and that take's a lot of time. I need a way to use those functions in order to continue without await for it. Saludos Fraternales

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Paul M Foster
On Wed, Jul 08, 2009 at 03:23:49PM -0400, Bob McConnell wrote: > From: Tony Marston > > > I do not follows rules which cannot be justified beyond the expression > "It > > is there, so obey it!" Why is it there? What are the alternatives? > What harm > > does it do? What happens if the rule is d

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Shane Hill
just an observation here, but are we not getting close to breaking another rule? "Do not high-jack threads, by bringing up entirely new topics. Please create an entirely new thread copying anything you wish to quote into the new thread." I know some feel this is important but if i was searching f

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
On Wed, Jul 8, 2009 at 3:06 PM, Tony Marston wrote: [snip] > I don't like this rule, so I choose to disobey it. Now that's some scary ideology. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Simple login form with cookies

2009-07-08 Thread Bob McConnell
From: Tony Marston > I do not follows rules which cannot be justified beyond the expression "It > is there, so obey it!" Why is it there? What are the alternatives? What harm > does it do? What happens if the rule is disobeyed? Top posting existed in > the early days of the internet, and for a

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Tony Marston
I do not follows rules which cannot be justified beyond the expression "It is there, so obey it!" Why is it there? What are the alternatives? What harm does it do? What happens if the rule is disobeyed? Top posting existed in the early days of the internet, and for a logical reason. Then some ar

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Al
Shawn McKenzie wrote: D.M.Jackson wrote: Hi, I'm trying to learn php mostly by reading the docs and pulling through other peoples projects for reference examples. One particular application I'm looking at has a ton of variables being handled through the SESSION global variable, probab

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Shawn McKenzie
D.M.Jackson wrote: > Hi, > > I'm trying to learn php mostly by reading the docs and pulling through > other peoples projects for reference examples. One particular application > I'm looking at has a ton of variables being handled through the SESSION > global variable, probably about 25 or

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Ashley Sheridan
On Wed, 2009-07-08 at 13:03 -0400, Bastien Koert wrote: > On Wed, Jul 8, 2009 at 12:50 PM, Daniel Brown wrote: > > On Wed, Jul 8, 2009 at 12:38, Tony Marston > > wrote: > >> What rules? I never agreed to abide by any rules before I started posting > >> to > >> this group. My newsreader assumes to

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 13:02, Tony Marston wrote: > I do not regard that as a concrete rule, and certainly not one worth > bothering about. Lots of newsgroups I visited before coming here allowed top > posting, so it is arrogant for someone to say "I personally don't like top > posting, so I'll mak

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Bastien Koert
On Wed, Jul 8, 2009 at 12:50 PM, Daniel Brown wrote: > On Wed, Jul 8, 2009 at 12:38, Tony Marston > wrote: >> What rules? I never agreed to abide by any rules before I started posting to >> this group. My newsreader assumes top posting by default, so I have been top >> posting for the past 10 year

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Tony Marston
I do not regard that as a concrete rule, and certainly not one worth bothering about. Lots of newsgroups I visited before coming here allowed top posting, so it is arrogant for someone to say "I personally don't like top posting, so I'll make a rule that disallows it". A sensible rule, and one

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 12:38, Tony Marston wrote: > What rules? I never agreed to abide by any rules before I started posting to > this group. My newsreader assumes top posting by default, so I have been top > posting for the past 10 years. If you don't like it then it is your problem, > not mine.

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Tony Marston
What rules? I never agreed to abide by any rules before I started posting to this group. My newsreader assumes top posting by default, so I have been top posting for the past 10 years. If you don't like it then it is your problem, not mine. -- Tony Marston http://www.tonymarston.net http://www

[PHP] SESSION variables: How much is too much?

2009-07-08 Thread D.M.Jackson
Hi, I'm trying to learn php mostly by reading the docs and pulling through other peoples projects for reference examples. One particular application I'm looking at has a ton of variables being handled through the SESSION global variable, probably about 25 or so variables. That just seems

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 12:14, Tony Marston wrote: > No it isn't. That's just your personal preference. Mine is different. Uhh Tony, if that's in response to me, you're wrong. Please read the rules before posting what you believe to be fact. ;-P -- daniel.br...@parasane.net || danbr...

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Tony Marston
No it isn't. That's just your personal preference. Mine is different. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "PJ" wrote in message news:4a54c0e8.2080...@videotron.ca... > Michael A. Peters wrote: >> Daniel Brown wrote: >>> First, a reminder to several (including

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
On Wed, Jul 8, 2009 at 11:53 AM, PJ wrote: > Michael A. Peters wrote: >> Daniel Brown wrote: >>>     First, a reminder to several (including some in this thread) that >>> top-posting is against the law here. >>> >>> On Wed, Jul 8, 2009 at 09:48, Martin Scotta >>> wrote: $sql = 'SELECT * FROM y

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Michael A. Peters wrote: > Daniel Brown wrote: >> First, a reminder to several (including some in this thread) that >> top-posting is against the law here. >> >> On Wed, Jul 8, 2009 at 09:48, Martin Scotta >> wrote: >>> $sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' >>> a

[PHP] berkeley database

2009-07-08 Thread bruce
hi... trying to find a link to a good/basic sample/tutorial for berkeley db using php... so far, looking over the net, haven't found any! pointers, links would be greatly appreciated!! thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Michael A. Peters
Daniel Brown wrote: First, a reminder to several (including some in this thread) that top-posting is against the law here. On Wed, Jul 8, 2009 at 09:48, Martin Scotta wrote: $sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' and passwd = md5( concat( \'' . $username .'\',

Re: [PHP] Host that allows edit of php.ini

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 04:27, Matthew Croud wrote: > Apologies if this type of question is frowned upon in the mailing list, > however I would like to pop the question to those in the know. > > Can anyone recommend a UK host that allows you to edit ( or a copy of ) the > php.ini file, > allowing me

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Eddie Drapkin
On Wed, Jul 8, 2009 at 10:44 AM, Andrew Ballard wrote: > On Wed, Jul 8, 2009 at 9:48 AM, Martin Scotta wrote: >> $sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' >> and passwd = md5( concat( \'' . $username .'\', \'@\', \'' . $password >> .'\'))'; >> >> I use this solution beca

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
On Wed, Jul 8, 2009 at 9:48 AM, Martin Scotta wrote: > $sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' > and passwd = md5( concat( \'' . $username .'\', \'@\', \'' . $password > .'\'))'; > > I use this solution because md5 run faster in Mysql > > > > > -- > Martin Scotta > If

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
First, a reminder to several (including some in this thread) that top-posting is against the law here. On Wed, Jul 8, 2009 at 09:48, Martin Scotta wrote: > $sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' > and passwd = md5( concat( \'' . $username .'\', \'@\', \'' . $pass

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Martin Scotta
$sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' and passwd = md5( concat( \'' . $username .'\', \'@\', \'' . $password .'\'))'; I use this solution because md5 run faster in Mysql On Wed, Jul 8, 2009 at 10:28 AM, Andrew Ballard wrote: > On Tue, Jul 7, 2009 at 11:05 PM, Micha

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
On Tue, Jul 7, 2009 at 11:05 PM, Michael A. Peters wrote: > Carl Furst wrote: > >> >> > $salt = 'someglobalsaltstring'; # the salt should be the same salt used >> when storing passwords to your database otherwise it won't work >> $passwd = crypt($_GET['passwd'], $salt); > > I personally use the use

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Ashley Sheridan
On Wednesday 08 July 2009 04:25:46 Carl Furst wrote: > These are great ideas. > > Another option would be to have the user choose a pin number and use > either the literal pin or the encrypted pin as part of the salt. This > way only when you change the pin do you need to change the password, > whi

Re: [PHP] Host that allows edit of php.ini

2009-07-08 Thread Michael Shadle
Someone who adopts php 5.3.0 or uses htscanner might allow for it. I'm too lazy to check if memory limit is allowed on an htscanner/htaccess level or not On Wed, Jul 8, 2009 at 1:27 AM, Matthew Croud wrote: > Apologies if this type of question is frowned upon in the mailing list, > however I woul

[PHP] Host that allows edit of php.ini

2009-07-08 Thread Matthew Croud
Apologies if this type of question is frowned upon in the mailing list, however I would like to pop the question to those in the know. Can anyone recommend a UK host that allows you to edit ( or a copy of ) the php.ini file, allowing me to increase the file upload size to 100mb for clients PDF

[PHP] Re: How to stop E_DEPRECATED messages in the PHP log?

2009-07-08 Thread Andre Hübner
Hello, Try error_reporting(E_ALL ^ E_DEPRECATED); Thanks for your suggestion - it would work nicely, except that that is a runtime function that is called within a script. but if it works within script you could do it by auto_prepend_file to stop flooding the log until solution is found..