php-general Digest 7 Sep 2011 10:30:41 -0000 Issue 7470

2011-09-07 Thread php-general-digest-help
php-general Digest 7 Sep 2011 10:30:41 - Issue 7470 Topics (messages 314720 through 314723): Re: REQUEST and COOKIE 314720 by: James Yerge dev to production server 314721 by: Chris Stinemetz mysql_fetch_object() equivalent for mongoDB 314722 by: chamila gayan PHP

[PHP] mysql_fetch_object() equivalent for mongoDB

2011-09-07 Thread chamila gayan
hi all, Is anybody aware of mysql_fetch_object() equivalent/similar implementation for mongoDB? we are looking for the most efficient way to store and load a php object with mongoDB. really appreciate if you can share your experience on this. thanks.. ~Chamila Gayan

[PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
I'm having trouble with a PHP website which requires users to be logged in to access all content other than the home page and a couple of static pages (about us, contact us etc.). Several users have said they are being logged out every few minutes whilst using the site - they can login but

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Nilesh Govindarajan
On 09/07/2011 03:50 PM, Paul Waring wrote: I'm having trouble with a PHP website which requires users to be logged in to access all content other than the home page and a couple of static pages (about us, contact us etc.). Several users have said they are being logged out every few minutes

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 11:47, Nilesh Govindarajan wrote: On 09/07/2011 03:50 PM, Paul Waring wrote: I'm having trouble with a PHP website which requires users to be logged in to access all content other than the home page and a couple of static pages (about us, contact us etc.). Several users have said

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Richard Quadling
On 7 September 2011 11:20, Paul Waring p...@phpdeveloper.org.uk wrote: I'm having trouble with a PHP website which requires users to be logged in to access all content other than the home page and a couple of static pages (about us, contact us etc.). Several users have said they are being

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Richard Quadling
On 7 September 2011 11:20, Paul Waring p...@phpdeveloper.org.uk wrote: Can anyone suggest things which I could try? I cannot work out why this problem is happening for some users but not me. For browsers/extensions that do automatic read ahead (I load page A and linked pages B and C are also

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread vikash . iitb
Just confirm once that you are not calling session_destroy somewhere. Thanks, Vikash Kumar -- http://vika.sh On 7 September 2011 16:46, Richard Quadling rquadl...@gmail.com wrote: On 7 September 2011 11:20, Paul Waring p...@phpdeveloper.org.uk wrote: Can anyone suggest things which I could

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 12:15, Richard Quadling wrote: How do you handle multiple logins? If I login using my laptop and get Session A for my account and then I login using my desktop and get Session B for my account, does Session A get killed? Session A is killed, your last login is always the current

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 12:20, vikash.i...@gmail.com wrote: Just confirm once that you are not calling session_destroy somewhere. The only place session_destroy is called is in the logout function, which itself is only called if a user clicks the logout link. -- Paul Waring

Re: [PHP] dev to production server

2011-09-07 Thread James Yerge
On 09/07/2011 12:24 AM, Chris Stinemetz wrote: Does anyone have a procedure or know of any tutorials that explain how to take a mac/apache/php/mysql dev environment and converting it to production environment? Basically I want to host my own web site on my local machine now that I have

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 12:16, Richard Quadling wrote: On 7 September 2011 11:20, Paul Waringp...@phpdeveloper.org.uk wrote: Can anyone suggest things which I could try? I cannot work out why this problem is happening for some users but not me. For browsers/extensions that do automatic read ahead (I

Re: [PHP] mysql_fetch_object() equivalent for mongoDB

2011-09-07 Thread Duken Marga
Actually, there is no statement in PHP that can return data from MongoDB as object (CMIIW). Data are returned as array. You can convert this array to object using (object). Look an example at http://www.richardcastera.com/blog/php-convert-array-to-object-with-stdclass $posts = (object)

Re: [PHP] dev to production server

2011-09-07 Thread Mike Mackintosh
On Sep 7, 2011, at 0:24, Chris Stinemetz chrisstinem...@gmail.com wrote: Does anyone have a procedure or know of any tutorials that explain how to take a mac/apache/php/mysql dev environment and converting it to production environment? Basically I want to host my own web site on my local

[PHP] Opening Multiple Files

2011-09-07 Thread Ron Piggott
Hi Everyone I am trying to load an HTML book into mySQL. The book was distributed with each chapter being it’s own HTML file. The only way I know how to open a file is by specifying the file name. Such as: $myFile = B01C001.htm; $lines = file($myFile); foreach ($lines as $line_num =

RE: [PHP] Opening Multiple Files

2011-09-07 Thread Florian Müller
Why don't u solve it by iterating through all files and getting their filenames and then execute your file? From: ron.pigg...@actsministries.org To: php-general@lists.php.net Date: Wed, 7 Sep 2011 10:21:18 -0400 Subject: [PHP] Opening Multiple Files Hi Everyone I am trying to load

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Stuart Dallas
On 7 Sep 2011, at 15:21, Ron Piggott wrote: Hi Everyone I am trying to load an HTML book into mySQL. The book was distributed with each chapter being it’s own HTML file. The only way I know how to open a file is by specifying the file name. Such as: $myFile = B01C001.htm; $lines =

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Alex Nikitin
On Wed, Sep 7, 2011 at 10:21 AM, Ron Piggott ron.pigg...@actsministries.org wrote: Hi Everyone I am trying to load an HTML book into mySQL. The book was distributed with each chapter being it’s own HTML file. The only way I know how to open a file is by specifying the file name. Such

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Tim Streater
On 07 Sep 2011 at 15:21, Ron Piggott ron.pigg...@actsministries.org wrote: Hi Everyone I am trying to load an HTML book into mySQL. The book was distributed with each chapter being it’s own HTML file. The only way I know how to open a file is by specifying the file name. Such as:

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Frank Arensmeier
7 sep 2011 kl. 16.21 skrev Ron Piggott: Hi Everyone I am trying to load an HTML book into mySQL. The book was distributed with each chapter being it’s own HTML file. The only way I know how to open a file is by specifying the file name. Such as: $myFile = B01C001.htm; $lines =

Re: [PHP] dev to production server

2011-09-07 Thread Chris Stinemetz
By local, do you mean a local dedicated box, or an everyday use box? It is an everyday use box. The checklist varies quite a bit depending on the results. Also, is your site to be served by standard port 80 traffic? Does your Internet host allow inbound port 80? Yes it will be served by

Re: [PHP] dev to production server

2011-09-07 Thread Chris Stinemetz
On Wed, Sep 7, 2011 at 6:23 AM, James Yerge ja...@nixsecurity.org wrote: On 09/07/2011 12:24 AM, Chris Stinemetz wrote: Does anyone have a procedure or know of any tutorials that explain how to take a mac/apache/php/mysql dev environment and converting it to production environment?

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 13:42, Richard Quadling wrote: On 7 September 2011 12:32, Paul Waringp...@phpdeveloper.org.uk wrote: On 07/09/11 12:16, Richard Quadling wrote: On 7 September 2011 11:20, Paul Waringp...@phpdeveloper.org.ukwrote: Can anyone suggest things which I could try? I cannot work

Re: [PHP] dev to production server

2011-09-07 Thread Alex Nikitin
If you have to ask these questions, i don't think you should be the person to do it, i'm sorry. I wouldn't recommend doing it on a mac, or even one single box, i wouldnt recommend doig it on non-server hardware, infact most of the time i would recommend you just buy already pre-sertup servers so

RE: [PHP] dev to production server

2011-09-07 Thread Daevid Vincent
-Original Message- From: Alex Nikitin [mailto:niks...@gmail.com] Sent: Wednesday, September 07, 2011 8:47 AM To: Chris Stinemetz Cc: PHP General Subject: Re: [PHP] dev to production server If you have to ask these questions, i don't think you should be the person to do it, i'm