php-windows Digest 7 Apr 2001 16:52:43 -0000 Issue 532

Topics (messages 6557 through 6562):

How can I judge a sessionid is being used or not?
        6557 by: yanshuldg
        6558 by: yanshuldg

Re: Instaling PHP in windows with Apache
        6559 by: Gaylen Fraley
        6561 by: Giro De Roover

How to access windows username ?
        6560 by: sunker

Looping through records and finding the next
        6562 by: Lars Eirik Rønning

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]


----------------------------------------------------------------------


I mean that I have a onlineuser table,which contains two columns,
sessionid and username.
When the user is online,I insert his sessionid(created by php) and username into the 
sessionid table,and I want to delete the record when the user is offline,That's:
How can I judge a sessionid is being used or not?
or:How can I judge a user is online or not by  his sessionid?






I mean that I have a onlineuser table,which contains two columns,
sessionid and username.
When the user is online,I insert his sessionid(created by php) and username into the 
sessionid table,and I want to delete the record when the user is offline,That's:
How can I judge a sessionid is being used or not?
or:How can I judge a user is online or not by  his sessionid?





Try a couple of things to try to debug this.

1.) View the source of the blank page.  Is any of the script coming across?
2.) Review your server error log.  is there anything in it?


--
Gaylen

""Margarida"" <[EMAIL PROTECTED]> wrote in message
9alm10$euu$[EMAIL PROTECTED]">news:9alm10$euu$[EMAIL PROTECTED]...
> Dear All
>
> I've installed Apache Server in my PC  (windows9*) and it is running ok. I
> get an answer when I ping my own machine and I can see apache's default
> homepage. I've made the changes necessary in the httpd.conf file.
>
> I've configured my php.ini and copied the dlls to the windows directory.
>
> Still when I try to  see the result of a simple code such as the one below
> on a browser...
> <html>
> <head></head>
> <body>
> <?
> echo("hello world!")
> ?>
> </body>
> </html>
>
> ...I get black page
>
> Has anyone gone through the same problem?
> Can anyone point out a solution?
>
> Thank you!
>
> Margarida
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Dear Margarida,
I don't know what exactly you have done so far but this is a clear
explanation that help me when I started, it is basic I don't mean to insult
your knowledge but sometimes we miss a little thing and it's gone. Tell me
if this works, otherwise i can mail you my php.ini and httpd.conf because
this is where you should look at.

If I recall the 2 dlls are going the windows/system not just windows, one of
them (msccrt.dll)you most likely already have it and the computer tell you
that it is existing, keep the existing one.The other one (php4ts.dll) goes
to windows/system.
Also don't forget to add a couple of line in apache open httpd.conf with a
text editor
1/ Find a line that said :
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
and add right under it:
ScriptAlias /php4/  "c:/php4/"
2/Find a line that said:
#AddType application/x-httpd-php3 .phtml
#AddType application/x-httpd-php3-source .phps
and add right under it:
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
3/Find a line that said:
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#
and add right under it:
Action application/x-httpd-php /php4/php.exe

That's it you are done,
Now first restart Apache and test
Write a script that you will name phpinfo.php
<?  phpinfo(); ?>
Open you browswer and type :
http://localhost/phpinfo.php
It will normally works.

Another think if you run under win95 make sure you have winsock2 install if
not download it at microsoft.com

""Margarida"" <[EMAIL PROTECTED]> wrote in message
9alm10$euu$[EMAIL PROTECTED]">news:9alm10$euu$[EMAIL PROTECTED]...
> Dear All
>
> I've installed Apache Server in my PC  (windows9*) and it is running ok. I
> get an answer when I ping my own machine and I can see apache's default
> homepage. I've made the changes necessary in the httpd.conf file.
>
> I've configured my php.ini and copied the dlls to the windows directory.
>
> Still when I try to  see the result of a simple code such as the one below
> on a browser...
> <html>
> <head></head>
> <body>
> <?
> echo("hello world!")
> ?>
> </body>
> </html>
>
> ...I get black page
>
> Has anyone gone through the same problem?
> Can anyone point out a solution?
>
> Thank you!
>
> Margarida
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Dear all,

how to access the window username like as the NT base user ?.

Thank you

sunker





Is there a way to use count a recordset in php.
I realize ASP has a seperate object which is called recorset and then you
can run thruogh all the records before it reaches the end

I have successfully done this with while looping through the record. Is
there a way to say that the next page should contain the next row in a
recordset.

if i loop through the table and currently am at position 2. Is there a way
to set the pointer to 1 more and automatically subdiving the webpages so
that page 1 = row 2 and the next row should be page 2. (i hope you
understand me)

lars E



Reply via email to