Re: [PHP] A problem about sessions

2012-06-07 Thread As'ad Djamalilleil
i can't undersans much of your question,, but i think you supposed to write the statement to set the variable's value after the "session_start()" called, like this ... session_start(); . some codes $_SESSION['some_var']; <--- don't put it before the session_start() On Thu, Jun 7, 2012 at 5

Re: [PHP] A problem about sessions

2012-06-07 Thread Stuart Dallas
On 8 Jun 2012, at 00:39, Tazio Ceri wrote: > I have a PHP script that takes very long time to execute. I manage it using > the following structure: > > ob_start(); > > // some code > session_start(); > // some code > > header("Content-length: ".ob_get_length()); > ob_end_flush(); > > // some

[PHP] A problem about sessions

2012-06-07 Thread Tazio Ceri
Hi all, I have a PHP script that takes very long time to execute. I manage it using the following structure: ob_start(); // some code session_start(); // some code header("Content-length: ".ob_get_length()); ob_end_flush(); // some other, very long, code! The problem I am facing is that, aft

RE: [PHP] help with query

2012-06-07 Thread Jack Sasportas
Thanks Jim, worked like a charm. > -Original Message- > From: Jim Lucas [mailto:li...@cmsws.com] > Sent: Thursday, June 07, 2012 4:08 PM > To: Jack > Cc: PHP > Subject: Re: [PHP] help with query > > On 06/07/2012 09:37 AM, Jack wrote: > > $query = "select a.startdate, a.articleid, c.name,

Re: [PHP] help with query

2012-06-07 Thread Jim Lucas
On 06/07/2012 09:37 AM, Jack wrote: $query = "select a.startdate, a.articleid, c.name, a.title, a.intro, a.datecreated from articles as a, categories as c where (a.startdate = -1 or a.startdate<= {$now}) and (a.enddate = -1 or a.enddate>= {$now}) and a.categoryid = c.categoryid order by a.startda

Re: [PHP] help with query

2012-06-07 Thread Ashley Sheridan
Jack wrote: >Hello All, > > > >I have this string defined for my query and it shows the different >types of >categories fine, but when I change a.categoryid = c.categoryid to >a.categoryid = 1 which is only one of the categories > >It shows me the same record twice. > > > >$query = "select a.st

Re: [PHP] A Question of SESSION

2012-06-07 Thread Matijn Woudt
On Thu, Jun 7, 2012 at 5:15 PM, Tedd Sperling wrote: > Hi Daniel and gang: > > Considering I'm never afraid to show my ignorance, please review the > following example. > > Because of the way I normally use sessions and considering this way works for > me, I thought I knew what sessions were abo

Re: [PHP] test

2012-06-07 Thread Jay Blanchard
On 6/7/12 1:07 PM, Sven Kowalski wrote: does it work now? It pretty much always did. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] test

2012-06-07 Thread Camilo Sperberg
It seems so Sent from my iPhone 5 Beta [Confidential use only] On 7 jun. 2012, at 20:07, Sven Kowalski wrote: > does it work now? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/

[PHP] test

2012-06-07 Thread Sven Kowalski
does it work now? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help with query

2012-06-07 Thread Jack
Hello All, I have this string defined for my query and it shows the different types of categories fine, but when I change a.categoryid = c.categoryid to a.categoryid = 1 which is only one of the categories It shows me the same record twice. $query = "select a.startdate, a.articleid, c.name

[PHP] Re: A Question of SESSION

2012-06-07 Thread Daniel P. Brown
On Thu, Jun 7, 2012 at 11:20 AM, Daniel P. Brown wrote: > On Thu, Jun 7, 2012 at 11:15 AM, Tedd Sperling wrote: >> >> 3. Looking for an explanation, I came across Daniel's post to the PHP >> manual, which follows: >> >> http://www.webbytedd.com/b/sessions3 I see: http://www.webbytedd.com/b/

[PHP] Re: A Question of SESSION

2012-06-07 Thread Daniel P. Brown
On Thu, Jun 7, 2012 at 11:15 AM, Tedd Sperling wrote: > > 3. Looking for an explanation, I came across Daniel's post to the PHP manual, > which follows: > > http://www.webbytedd.com/b/sessions3 > > Now I am totally bonkers. > > What am I not getting? Anything. Because that page 404's. ;-P

[PHP] A Question of SESSION

2012-06-07 Thread Tedd Sperling
Hi Daniel and gang: Considering I'm never afraid to show my ignorance, please review the following example. Because of the way I normally use sessions and considering this way works for me, I thought I knew what sessions were about -- but my faith is eroding. Cases in point 1. The following i