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

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 t

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 Waring wrote: On 07/09/11 12:16, Richard Quadling wrote: On 7 September 2011 11:20, Paul Waringwrote: Can anyone suggest things which I could try? I cannot work out why this problem is happening for some users bu

Re: [PHP] dev to production server

2011-09-07 Thread Chris Stinemetz
On Wed, Sep 7, 2011 at 6:23 AM, James Yerge 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? > > Basically I want to hos

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 ser

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";

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Tim Streater
On 07 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"; >

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Alex Nikitin
On Wed, Sep 7, 2011 at 10:21 AM, 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 = "B01C00

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";

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

[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 => $theD

Re: [PHP] dev to production server

2011-09-07 Thread Mike Mackintosh
On Sep 7, 2011, at 0:24, 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

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) $mongo->fin

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

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: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 http://www.phpdeveloper.org.u

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 on

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 wrote: > On 7 September 2011 11:20, Paul Waring wrote: > > Can anyone suggest things which I could try? I cannot work out why this > > prob

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Richard Quadling
On 7 September 2011 11:20, Paul Waring 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 retrieved). Is the poten

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Richard Quadling
On 7 September 2011 11:20, 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 minu

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 the

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

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