php-general Digest 15 Apr 2007 17:07:25 -0000 Issue 4736

2007-04-15 Thread php-general-digest-help
php-general Digest 15 Apr 2007 17:07:25 - Issue 4736 Topics (messages 252959 through 252968): Re: isset 252959 by: Jochem Maas 252968 by: afan.afan.net secure login 252960 by: Ross 252961 by: Alain Roger 252962 by: Stut 252966 by: tedd Re:

Re: [PHP] isset

2007-04-15 Thread Jochem Maas
Afan Pasalic wrote: Jochem Maas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = and isset thinks is set

[PHP] secure login

2007-04-15 Thread Ross
I am creating a single user secure login based on this: http://www.phpnoise.com/tutorials/26/1 Can anyone see any potential security issues with this method? Where should I store the password/username can I just have it located in the pagehead? R. -- PHP General Mailing List

Re: [PHP] secure login

2007-04-15 Thread Alain Roger
Hi Ross, I previously worked on this theme and the general feeling / feedback from the mailing list was the following one : - access to your login window, via HTTPS (SSL) - hash you password (inspired by : http://phpsec.org/articles/2005/password-hashing.html) - when user is authenticated, you

Re: [PHP] secure login

2007-04-15 Thread Stut
Ross wrote: I am creating a single user secure login based on this: http://www.phpnoise.com/tutorials/26/1 Can anyone see any potential security issues with this method? Where should I store the password/username can I just have it located in the pagehead? I would be careful about using any

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-15 Thread tedd
At 3:27 PM -0400 4/14/07, Robert Cummings wrote: Statistics are easy to find: http://www.frontpagewebmaster.com/m-281187/tm.htm#281187 Okay, so read them. I did just before I posted the link :) In the first post you'll find (from my old college CSUN) this:

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-15 Thread Robert Cummings
On Sun, 2007-04-15 at 08:23 -0400, tedd wrote: At 3:27 PM -0400 4/14/07, Robert Cummings wrote: Statistics are easy to find: http://www.frontpagewebmaster.com/m-281187/tm.htm#281187 Okay, so read them. I did just before I posted the link :) In the first post

Re: [PHP] how to get var name and value from function?

2007-04-15 Thread Zoltán Németh
2007. 04. 14, szombat keltezéssel 08.15-kor Afan Pasalic ezt írta: Tijnema ! wrote: On 4/14/07, Afan Pasalic [EMAIL PROTECTED] wrote: hi, this one I can't figure out: I have to assign value of an array to variable named after key of the array several times in my project to , e.g.

Re: [PHP] secure login

2007-04-15 Thread tedd
I am creating a single user secure login based on this: http://www.phpnoise.com/tutorials/26/1 Can anyone see any potential security issues with this method? Where should I store the password/username can I just have it located in the pagehead? R. Ross: Yes, as Stut pointed out, the

RE: [PHP] preg_replace and regular expressions.

2007-04-15 Thread Buesching, Logan J
In your regex, you have a greedy matcher, i.e. .* will match as much as it can to satisfy its condition. I believe you can do .*? and it will work, as .*? will match as little as it can to be satisfied. -Logan -Original Message- From: Travis Moore [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] isset

2007-04-15 Thread afan
Afan Pasalic wrote: Jochem Maas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = and isset thinks is set php -r '

Re: [PHP] isset

2007-04-15 Thread Larry Garfield
On Sunday 15 April 2007 12:07 pm, [EMAIL PROTECTED] wrote: of course it's your call whether you write/run code that spits out E_NOTICEs all over the place due to usage of uninitialized vars. not quite sure. if $_GET['var'] doesn't exists it's DEFINITLY not equal to 'foo', right? how I

RE: [PHP] isset

2007-04-15 Thread Buesching, Logan J
how I understand: clause one: isset($_GET['var']) clause two: ($_GET['var'] == 'foo') if clause two is true, clause one MUST be true. if clause one is true, clause two could be true or false. means, if I look for solutions where ($_GET['var'] == 'foo') they wil lautomaticaly cover

[PHP] simple form web site up date

2007-04-15 Thread Joker7
I have said I would host a couple of friends CV's as a web page,here's the situation I'd like to set it up so that it can updated it via a simple form.I've googled the subject a fair bit and all I can come up with is big full solutions when I only need a simple form and say a flat file

[PHP] Appending into associative arrays

2007-04-15 Thread Otto Wyss
I want to sort directories according there modification time and thought accociative arrays would be perfect. But when I add an element like $dirs = array (filemtime($d) = $d) the previous ones are lost. I tried array_push but that doesn't seems to work, at least I always get syntax errors.

Re: [PHP] Json.php

2007-04-15 Thread Otto Wyss
Tijnema ! wrote: *ROFLMFAO*...Did you actually try google for json.php? Second result: http://mike.teczno.com/JSON/JSON.phps This doesn't have a json_encode but needs a $json object which then could be used as $json-encode(...). Thanks anyway. O. Wyss -- PHP General Mailing List

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Zoltán Németh
2007. 04. 15, vasárnap keltezéssel 21.20-kor Otto Wyss ezt írta: I want to sort directories according there modification time and thought accociative arrays would be perfect. But when I add an element like $dirs = array (filemtime($d) = $d) why not simply $dirs[] = array (filemtime($d) =

Re: [PHP] Json.php

2007-04-15 Thread Otto Wyss
Satyam wrote: www.json.org lists all json resources in any language you care to think of. I must admit I haven't checked each reference but the ones I have have only packages to install and not a PHP source. Maybe I wasn't clear when asking. O. Wyss -- PHP General Mailing List

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Zoltán Németh
2007. 04. 15, vasárnap keltezéssel 21.20-kor Otto Wyss ezt írta: I want to sort directories according there modification time and thought accociative arrays would be perfect. But when I add an element like $dirs = array (filemtime($d) = $d) (sorry the previous one is incorrect, I

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Robert Cummings
On Sun, 2007-04-15 at 20:36 +0100, Alister Bulman wrote: On 15/04/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 04. 15, vasárnap keltezéssel 21.20-kor Otto Wyss ezt írta: I want to sort directories according there modification time and thought accociative arrays would be perfect. But

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Alister Bulman
On 15/04/07, Robert Cummings [EMAIL PROTECTED] wrote: On Sun, 2007-04-15 at 20:36 +0100, Alister Bulman wrote: On 15/04/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 04. 15, vasárnap keltezéssel 21.20-kor Otto Wyss ezt írta: I want to sort directories according there modification time

Re: [PHP] simple form web site up date

2007-04-15 Thread Børge Holen
On Sunday 15 April 2007 20:56, Joker7 wrote: I have said I would host a couple of friends CV's as a web page,here's the situation I'd like to set it up so that it can updated it via a simple form.I've googled the subject a fair bit and all I can come up with is big full solutions when I only

Re: [PHP] free allocated memory: HOW ?

2007-04-15 Thread Chris
Richard Lynch wrote: On Fri, April 13, 2007 12:54 am, Arthur Erdös wrote: It can if you're trying to process a borked image... I've had imagecreatefromjpeg() eat memory up to almost 50x the size of the image before finally deciding it can't handle it and crapping out. That was *after* running

[PHP] auto page generation

2007-04-15 Thread Jeremy Adams
I'm building a website right now that will be a database of attractions in the Carolina and Virginia area. The idea is that attraction owners can submit data to the database and the database will automatically generate a page containing that information. What I'm trying to figure out is how to

Re: [PHP] auto page generation

2007-04-15 Thread heavyccasey
What you're looking for is basically what PHP is all about. Just read any PHP MySQL book and you'll find whatever you need. On 4/15/07, Jeremy Adams [EMAIL PROTECTED] wrote: I'm building a website right now that will be a database of attractions in the Carolina and Virginia area. The idea is