php-windows Digest 2 May 2006 08:44:30 -0000 Issue 2952

Topics (messages 26874 through 26880):

Getting Started
        26874 by: Travis Cooper
        26875 by: Frank M. Kromann
        26876 by: Travis Cooper
        26877 by: Armando

Re: Database Invalid
        26878 by: Harpreet
        26879 by: Armando
        26880 by: Stut

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi, I have never set up php, or a server for that matter, before and I am
having trouble getting php to work.  I have downloaded the latest files for
windows from the php website and I have the latest 2.0 version of Apache.  I
have followed all the instal text files, readmes, etc. and I still can't get
things set up.  I added in the loadmodule and addtype lines as instructed
and my php.ini file is in the c:\windows folder.  Now, when I load a page
with php script in it instead of executing that script it just shows up as
text on my webpage.  Any suggestions would be appreciated.

Thanks,
Travis J. Cooper

--- End Message ---
--- Begin Message ---
Did you restart apache after changing http.conf?

- Frank

> Hi, I have never set up php, or a server for that matter, before and I
am
> having trouble getting php to work.  I have downloaded the latest files
for
> windows from the php website and I have the latest 2.0 version of
Apache.  I
> have followed all the instal text files, readmes, etc. and I still can't
get
> things set up.  I added in the loadmodule and addtype lines as
instructed
> and my php.ini file is in the c:\windows folder.  Now, when I load a
page
> with php script in it instead of executing that script it just shows up
as
> text on my webpage.  Any suggestions would be appreciated.
> 
> Thanks,
> Travis J. Cooper
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message --- Okay, here is some more information that might help somebody help me. I am working on Windows XP Home. I have Apache 2.0.55 and php 5.1.2. These are the steps that I have tried. I used the .msi to install apache and then unzipped the php files to c:\php. In the php.ini file I changed the docs_root to point to the htdocs in apache and I set the extension_dir to point to c:\php\ext I then put this file in c:\Windows Next I edited the httpd.conf file to say LoadModule php5_module c:/php/php5apache2.dll also AddType application/x-httpd-php .php and the line PHPIniDir c:/windows Then I created a .php file in the htdocs folder that says <? phpinfo(); ?> and it is blank. If I am missing something vital please let me know. Is there maybe a problem with the versions of programs I am using?

Thanks,
Travis J. Cooper

--- End Message ---
--- Begin Message --- Don't put php.ini in the Windows folder.. put it back in the PHP folder and add "c:\php" to your PATH environment variable in Windows. Cheers.

Armando

Travis Cooper wrote:
Okay, here is some more information that might help somebody help me. I am working on Windows XP Home. I have Apache 2.0.55 and php 5.1.2. These are the steps that I have tried. I used the .msi to install apache and then unzipped the php files to c:\php. In the php.ini file I changed the docs_root to point to the htdocs in apache and I set the extension_dir to point to c:\php\ext I then put this file in c:\Windows Next I edited the httpd.conf file to say LoadModule php5_module c:/php/php5apache2.dll also AddType application/x-httpd-php .php and the line PHPIniDir c:/windows Then I created a .php file in the htdocs folder that says <? phpinfo(); ?> and it is blank. If I am missing something vital please let me know. Is there maybe a problem with the versions of programs I am using?

Thanks,
Travis J. Cooper


--- End Message ---
--- Begin Message ---
 I did not get any replies , I was wondering if you guys needed more
info or the question is not clear. Is there a way to check when a
session variable is ready to expire and rather then it breaking
connection to database give a message or take the user to login page

Please help

Regards
Harpreet
-----Original Message-----
From: Harpreet [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 01, 2006 2:23 PM
To: [email protected]
Subject: [PHP-WIN] Database Invalid

 
If a Session is left for an hour or so, the message "Database Invalid"
will be displayed on the next attempt to navigate to a page.  Would it
be possible to jump back to the login page?  Or better still, display a
popup with the text "Session has expired, pleas log in".  When OK is
pressed we would go back to the login screen.

Let me know if any one has nay ideas.

Regards
Harpreet Kaur

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--- End Message ---
--- Begin Message --- There's ways. A really simple way (though not necessarily the right one, or the only one) would be to just use an SSI that gets included at the top of each page it's required to be on to check for the validity of a session... if OK proceed, if not, punt to login.

Armando

Harpreet wrote:
 I did not get any replies , I was wondering if you guys needed more
info or the question is not clear. Is there a way to check when a
session variable is ready to expire and rather then it breaking
connection to database give a message or take the user to login page

Please help

Regards
Harpreet
-----Original Message-----
From: Harpreet [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 2:23 PM
To: [email protected]
Subject: [PHP-WIN] Database Invalid

If a Session is left for an hour or so, the message "Database Invalid"
will be displayed on the next attempt to navigate to a page.  Would it
be possible to jump back to the login page?  Or better still, display a
popup with the text "Session has expired, pleas log in".  When OK is
pressed we would go back to the login screen.

Let me know if any one has nay ideas.

Regards
Harpreet Kaur

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
Harpreet wrote:

If a Session is left for an hour or so, the message "Database Invalid"
will be displayed on the next attempt to navigate to a page.  Would it
be possible to jump back to the login page?  Or better still, display a
popup with the text "Session has expired, pleas log in".  When OK is
pressed we would go back to the login screen.

Let me know if any one has nay ideas.

Presumably when they log in you are storing something in the session to say they have logged in? If not then do. Then on each page check that that session variable exists. If it does you're fine, if not then they've either not logged in or the session has expired.

-Stut

--- End Message ---

Reply via email to