php-general Digest 17 Aug 2012 13:54:46 -0000 Issue 7926
Topics (messages 318725 through 318730):
Re: Display Array Tree as Menu - Can't figure out how to find depth with
something over 2 levels
318725 by: Volmar Machado
Re: PHP session variables
318726 by: Tedd Sperling
318727 by: Tedd Sperling
Need to have form protection techniques
318728 by: Ansry User 01
318729 by: tamouse mailing lists
318730 by: Jim Giner
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
I have develop a solution in a one function as in the example, which
permit you to have n-level menu array, if you want you can change the
returns by a echo to, if you want the ouput in html.
http://pastebin.com/QJUsxPBw
--- End Message ---
--- Begin Message ---
On Aug 15, 2012, at 4:42 PM, Andrew Ballard <aball...@gmail.com> wrote:
> On Wed, Aug 15, 2012 at 3:24 PM, Tedd Sperling <t...@sperling.com> wrote:
>> The php manual ( http://us3.php.net/manual/en/function.session-start.php )
>>
>> First Note states that session_start() must be called *before* anything sent
>> to the Browser.
>>
>> So, to rewrite your code --
>>
>> for($i=1; $i < 1000; $i++)
>> {
>> if (!defined('SID'))
>> {
>> session_start();
>> echo __LINE__, '::session_start()<br>';
>> }
>> }
>>
>> -- should work better, right?
>>
>> Cheers,
>>
>> tedd
>
>
> -snip-
> However, due to the nature of your test page you are still
> sending output from the first loop before you call session_start() in
> the second loop.
Duh!
Too many brain surgeons working on this brain!
In the real world neither of us would have made those mistakes.
It is only when we try to make things simple do we over complicate.
Cheers,
tedd
_____________________
t...@sperling.com
http://sperling.com
--- End Message ---
--- Begin Message ---
On Aug 15, 2012, at 4:13 PM, Robert Cummings <rob...@interjinn.com> wrote:
>
> I only pointed it out because I used to do exactly the same thing :)
>
> Cheers,
> Rob.
Thanks, I was starting to feel pretty dumb.
Cheers,
tedd
_____________________
t...@sperling.com
http://sperling.com
--- End Message ---
--- Begin Message ---
I need to know the forms validity techniques for Php.
--- End Message ---
--- Begin Message ---
On Thu, Aug 16, 2012 at 11:05 PM, Ansry User 01 <yrsna.res...@gmail.com> wrote:
> I need to know the forms validity techniques for Php.
Is that all?
Seriously, that is a very lengthy discussion, and may depend on which
framework you may be using.
--- End Message ---
--- Begin Message ---
On 8/17/2012 12:05 AM, Ansry User 01 wrote:
I need to know the forms validity techniques for Php.
Really?
--- End Message ---