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

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

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 i

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 onl

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 modificati

Re: [PHP] simple form web site up date

2007-04-15 Thread Wolf
I cheat for some of mine. I just write what I want/need to a MySQL with form inputs and then the page just queries the database. takes it 0 time to do it that way, and in case there is something screwed up date-wise, they can go in and fix it without too much hassle. Wolf Joker7 wrote: I ha

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 perf

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Alister Bulman
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 when I add an element like > > $dirs = array (filemtime($d)

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 misund

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 (http://www.p

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
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 (http://ww

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

[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 system.An

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 i

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

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'] = "" >>

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

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 example

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 pro

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

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

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

[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 (http://www.p

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