php-general Digest 16 Aug 2008 14:08:00 -0000 Issue 5627

2008-08-16 Thread php-general-digest-help
php-general Digest 16 Aug 2008 14:08:00 - Issue 5627 Topics (messages 278208 through 278226): Re: SESSION problem 278208 by: VamVan 278216 by: tedd 278217 by: Stut 278218 by: Ashley Sheridan 278219 by: Sabine Richter 278220 by: tedd

[PHP] Re: Open Source Classifides

2008-08-16 Thread Lupus Michaelis
Joey a écrit : Does anyone know of a good php based classified system? What do you mean by classified system ? -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

SV: [PHP] Re: Buffering problem

2008-08-16 Thread Anders Norrbring
Anders Norrbring a écrit : I'm running out of ideas to where to look for this, so can you please give me some pointers? I guess it is that you're seeking for : http://fr.php.net/manual/en/outcontrol.configuration.php#ini.implicit- flush Thank you! Worked just as I want.. Anders

Re: [PHP] Re: PHP editor for linux

2008-08-16 Thread Richard Heyes
pico :-) ed baby; its all about ed! hexedit /dev/sda1 I do seriously use pico. My editing needs on Linux are small, via a puTTY window and pico is the most like a Windows editor that I've used (compared to vi say with its command/edit modes). I've used it for years, am very

Re: [PHP] Re: PHP editor for linux

2008-08-16 Thread Brice
On Fri, Aug 15, 2008 at 5:11 PM, Shawn McKenzie [EMAIL PROTECTED]wrote: It flance wrote: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks I use Aptana which is based on eclipse and has built-in HTML/JS/PHP?SVN stuff. Also a cool

RE: [PHP] How to submit form via PHP

2008-08-16 Thread pe . ve . ce
Many thanks, Todd, and others. Matěj czech_d3vl0p3r Grabovský Původní zpráva Od: Boyd, Todd M. [EMAIL PROTECTED] Předmět: RE: [PHP] How to submit form via PHP Datum: 15.8.2008 22:43:40 -Original Message- From:

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 8:02 PM -0700 8/15/08, VamVan wrote: Tedd, I think according to PHP manual. Session_start() must be the first line in the code. Dont worry it will remember your session until you close the browser and also it wont duplicate it. VamVan: Yes, I thought that as well and practiced it for

Re: [PHP] SESSION problem

2008-08-16 Thread Stut
On 16 Aug 2008, at 12:36, tedd wrote: At 8:02 PM -0700 8/15/08, VamVan wrote: Tedd, I think according to PHP manual. Session_start() must be the first line in the code. Dont worry it will remember your session until you close the browser and also it wont duplicate it. VamVan: Yes, I

Re: [PHP] SESSION problem

2008-08-16 Thread Ashley Sheridan
session_start() doesn't have to be the first line in the code, but it does have to occur before ANY content sent to the browser, and this includes any headers as well. Generally speaking, it does no harm to have it as the first line of your PHP code Ash www.ashleysheridan.co.uk

Re: [PHP] SESSION problem

2008-08-16 Thread Sabine Richter
Hello Tedd, it seems to be a naming problem. You may not use a numeric value for a variable name to store in $_SESSION. By assigning it to $_SESSION, you get a Notice: Unknown: Skipping numeric key 1 in Unknown on line 0 and in your second script a Notice: Undefined offset: 1 in

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 12:40 PM +0100 8/16/08, Stut wrote: On 16 Aug 2008, at 12:36, tedd wrote: The problem here is can I use a variable within a $_SESSION[] declaration? Like so: $_SESSION[$var] I haven't really been following this thread but using a variable like that is perfectly valid. $_SESSION is no

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 2:09 PM +0200 8/16/08, Sabine Richter wrote: Hello Tedd, it seems to be a naming problem. You may not use a numeric value for a variable name to store in $_SESSION. By assigning it to $_SESSION, you get a Notice: Unknown: Skipping numeric key 1 in Unknown on line 0 and in your second

Re: [PHP] SESSION problem

2008-08-16 Thread Sabine Richter
Hello Tedd, tedd schrieb: At 2:09 PM +0200 8/16/08, Sabine Richter wrote: Hello Tedd, it seems to be a naming problem. You may not use a numeric value for a variable name to store in $_SESSION. By assigning it to $_SESSION, you get a Notice: Unknown: Skipping numeric key 1 in Unknown on

Re: [PHP] SESSION problem

2008-08-16 Thread Stut
On 16 Aug 2008, at 13:20, tedd wrote: At 12:40 PM +0100 8/16/08, Stut wrote: On 16 Aug 2008, at 12:36, tedd wrote: The problem here is can I use a variable within a $_SESSION[] declaration? Like so: $_SESSION[$var] I haven't really been following this thread but using a variable like

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 2:11 PM +0100 8/16/08, Stut wrote: Ahh, I see the problem. You've never been able to use numbers as keys at the root level of the $_SESSION array. It's not a bug, it's just the way it is. I've just checked the documentation and can't find an obvious reference to this limitation which is

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 2:45 PM +0200 8/16/08, Sabine Richter wrote: Yes, our mails overlaped each other (Do you say that in english? My english is not the best.) Sabine: Your English is fine -- much better than my de for certain. By the way: I tried your initial code and I had no problem with the variable

Re: [PHP] SESSION problem

2008-08-16 Thread Stut
On 16 Aug 2008, at 14:46, tedd wrote: At 2:11 PM +0100 8/16/08, Stut wrote: Ahh, I see the problem. You've never been able to use numbers as keys at the root level of the $_SESSION array. It's not a bug, it's just the way it is. I've just checked the documentation and can't find an obvious

[PHP] Licensing

2008-08-16 Thread Richard Heyes
Hi, Don't think me a money grabbing bast (well, I guess I am...) but I'd just like to know if you've got any input on trying to get people to cough up some readies in return for the mounds of free code I give away. I've updated my licensing page just now, and hopefully this will convince more

Re: [PHP] Licensing

2008-08-16 Thread Eric Butera
On Sat, Aug 16, 2008 at 10:34 AM, Richard Heyes [EMAIL PROTECTED] wrote: Hi, Don't think me a money grabbing bast (well, I guess I am...) but I'd just like to know if you've got any input on trying to get people to cough up some readies in return for the mounds of free code I give away. I've

Re: [PHP] SESSION problem

2008-08-16 Thread Eric Butera
On Sat, Aug 16, 2008 at 10:06 AM, Stut [EMAIL PROTECTED] wrote: I wish I understood the reason why it's like this but I've never looked into the session extension in that level of detail, but I doubt such a limitation would exist if there was not a very good reason for it. But again, I don't

Re: [PHP] Licensing

2008-08-16 Thread Matty Sarro
Sell support. Sell obfuscated code. Sell your software but make the source available upon sale (completely allowed under all open source licenses). On Sat, Aug 16, 2008 at 10:47 AM, Eric Butera [EMAIL PROTECTED] wrote: On Sat, Aug 16, 2008 at 10:34 AM, Richard Heyes [EMAIL PROTECTED] wrote:

Re: [PHP] SESSION problem

2008-08-16 Thread Ashley Sheridan
I tend to prefer assigning all my session variables to an array, which itself is a member of the $_SESSION array. For example: $_SESSION[] Array ( [myarray] = Array ( [someitem] = x [someitem2] = y

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 3:06 PM +0100 8/16/08, Stut wrote: Not really, since I would never name a session variable 1, or 2, or 5318008 - I would always put those in the session in a named array. That's understandable. But, if you came from a background that predated associate arrays, then using numeric indexes

Re: [PHP] SESSION problem

2008-08-16 Thread Stut
On 16 Aug 2008, at 17:03, tedd wrote: I understand what you are saying -- semantics are important. But if there is a need for temporary place to store values I don't consider it bad form to store them in a numerically indexed array. For example, if a user was going to purchase up to 10

Re: [PHP] SESSION problem

2008-08-16 Thread Sabine Richter
Hi Tedd, tedd schrieb: At 2:45 PM +0200 8/16/08, Sabine Richter wrote: Yes, our mails overlaped each other (Do you say that in english? My english is not the best.) Sabine: Your English is fine -- much better than my de for certain. Thanks :-) By the way: I tried your initial code and I

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 5:15 PM +0100 8/16/08, Stut wrote: Instead I assert you would have... $_SESSION['user_purchase'][0] = $item0; ... $_SESSION['user_purchase'][9] = $item9; which is perfectly valid. I'll try to re-word my basic point... I personally consider it bad to even want to use numeric indexes at the

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
Sabine: I understand the problem now. But to get to my basic question to you, namely using this link: http://www.webbytedd.com/b2/session-test1/index.php -- does SESSION[20] and SESSION[test2] show anything in the second step (Step 2) or are the results blank? Cheers, tedd -- ---

Re: [PHP] SESSION problem

2008-08-16 Thread Sabine Richter
tedd schrieb: Sabine: I understand the problem now. But to get to my basic question to you, namely using this link: http://www.webbytedd.com/b2/session-test1/index.php -- does SESSION[20] and SESSION[test2] show anything in the second step (Step 2) or are the results blank? Oh, ok,