php-windows Digest 19 Dec 2002 23:02:52 -0000 Issue 1495
Topics (messages 17489 through 17494):
Re: Cookies working on test but not my application
17489 by: Stephen Edmonds
pfpro on win2000
17490 by: Daniel Masson
GD Extension
17491 by: Mike Franks
17492 by: Christoph Grottolo
parallel processing
17493 by: M.
Yet another session.save_path issue
17494 by: Clare, Bruce W
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 ---
try using this:
setcookie ( "uid", $pid, time()+3600 );
I've removed the "" from the variable, so it should use its value. I have
also added a time feature. The time option is done in 'seconds since Jan 1st
1970. The time() feature gives you the current time in seconds from that
date. I then put +3600 on the end, so it adds 3600 seconds, or 1 hour
60 seconds per minute
60 minutes per hour
60 * 60
3600
Hope this solves your problem
Stephen
----- Original Message -----
From: "George Pitcher" <[EMAIL PROTECTED]>
To: "Stephen Edmonds" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 7:41 AM
Subject: RE: [PHP-WIN] Cookies working on test but not my application
> Stephen,
>
> Thanks for the feedback.
>
> There was no sign of the cookies in the variable list that the phpinfo
> provided.
>
> This is the code I am using:
>
> if (!isset($pid) || !isset($pwd)){
> header("Location: default.php");
> }else{
> setcookie ("uid","$pid");
> $query = "select * ";
> .... etc
>
> Now this doesn't dump me back into the default.php page so it is reading
the
> $pid. I have tried attaching an expiry but it makes no difference.
>
> I have created a simple test process which consists of 3 basic php pages.
> The first contains a link which passes some 'GET' info to the next page.
The
> second page sets a cookie using the 'GET' info and the third page displays
> the value of the cookie. I'm using PHP-4.0.6 an Register Globals is on so
I
> just do $cookiename to read the cookie.
>
> Now the test process works fine. I've added the phpinfo(32) into page 3
and
> sure enough the cookie comes up on the list of variables.
>
> So why, oh why, isn't it working on my calendar site?
>
> Hoping someone knows the answer.
>
> Regards
>
> George
>
>
> > -----Original Message-----
> > From: Stephen Edmonds [mailto:[EMAIL PROTECTED]]
> > Sent: 17 December 2002 5:57 pm
> > To: PHP Helplist Windows
> > Cc: George Pitcher
> > Subject: Re: [PHP-WIN] Cookies working on test but not my application
> >
> >
> > Frames are not the issue here, any page in a frame still gets the cookie
> > providing it is in a domain for which the cookie is set. I
> > suggest making a
> > page with the following
> >
> > <?
> > phpinfo(32);
> > ?>
> >
> > That will output ALL the variable data for your page. If your cookie has
> > been sent back by the browser, then you should see it in that page. If
you
> > don't, that means that the cookie has not been sent back to the browser.
> > This could be:
> >
> > 1) The cookie has expired. Check your temporary internet files for your
> > cookie, see if it is still there
> >
> > 2) The cookie has not been set to send data to your folder in the
domain.
> > When calling set_cookie( ), it is generally best only to give the first
3
> > arguments ( Variable Name, Variable Value, Expire time ).
> >
> > Good luck
> >
> > Stephen
> >
> > ----- Original Message -----
> > From: "George Pitcher" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 17, 2002 4:29 PM
> > Subject: [PHP-WIN] Cookies working on test but not my application
> >
> >
> > > hi again,
> > >
> > > No response to my 2 earlier posts so here goes again.
> > >
> > > I have an authentication script which sets up a cookie, but it is not
> > being
> > > created.
> > >
> > > I have created some test pages on the same server (NT/IIS4) setting
> > cookies
> > > with variable values and they work fine. It's just that they
> > won't work in
> > > my Calendar site.
> > >
> > > Thinking it might be a 'frames' issue, I have put a test into
> > the Frameset
> > > holder to redirect if the cookie is not being read and sure enough it
> > dumps
> > > me out of the frameset.
> > >
> > > Does anyone have any suggestions?
> > >
> > > Please!
> > >
> > > MTIA
> > >
> > > George
> > >
> > >
> > > ===
> > >
> > > George Pitcher
> > > HERON Technical Manager
> > > Ingenta plc
> > > 23-38 Hythe Bridge Street, Oxford, OX1 2ET
> > > T +44 (0)1865 799137 direct
> > > T +44 (0)1865 799000 switchboard
> > > F +44 (0)1865 799134
> > > E [EMAIL PROTECTED]
> > >
> > > www.ingenta.com
> > > Ingenta: Empowering the exchange of academic and professional content
> > > online.
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hello list !!!
Id like to know if theres a way to enable pfpro extension on windows
2000 ... Im currently usong 4.2.3 and i havnt seen any dll for this
extension in the distro ....
Thanks for your help ..
Regards.
Daniel.
--- End Message ---
--- Begin Message ---
I am having a problem with the extension php_gd.dll
When the script call for php_gd.dll the server console shows
Warning
Unable to load the dynamic library 'C:\WINNT\system32\php_gd.dll'-
The specified procedure could not be found.
Info;
Win2k Server
Service Pack 3
PHP 4.2.3
extension_dir="c:\winnt\system32\"
extension=php_gd.dll
Any ideas where to look for this problem?
Michael T. Franks, IT Manager
[EMAIL PROTECTED]
The Decor Group,Inc.
WWW.TheDecorGroup.Com
800-687-9551
806-722-9627 Fax
---
[This E-mail scanned for viruses by Declude Virus] The Decor Group
--- End Message ---
--- Begin Message ---
Hi
Mike Franks wrote:
> I am having a problem with the extension php_gd.dll
> When the script call for php_gd.dll the server console shows
>
> Warning
>
> Unable to load the dynamic library 'C:\WINNT\system32\php_gd.dll'-
> The specified procedure could not be found.
> Info;
>
> Win2k Server
> Service Pack 3
> PHP 4.2.3
>
> extension_dir="c:\winnt\system32\"
>
> extension=php_gd.dll
>
> Any ideas where to look for this problem?
>
Do you have php_gd.dll in your windows\system32?
Usually the extension dir is path to your-php-directory\extensions
Christoph
--- End Message ---
--- Begin Message ---
Hi all,
Can we use parallel processing in PHP?? if can, where can i find info about
that?
thanks a lot
--- End Message ---
--- Begin Message ---
Basic problem: I've edited my session.save_path in php.ini, but the
application
still fails in session_start() because it is still using /tmp. This is even
after I stop/restart
Apache. I know that the updated php.ini file is being read, because my
changes to the
include_path were successfully added.
I'm running Apache 2.0.43; PHP 4.3.0RC3 (also tried with an earlier stable
build).
on Win2K.
Question: Is there any way for session.save_path to get clobbered via an API
or environment variable?
==============
Errors from the Application:
Warning: session_start() [function.session-start
<http://www.php.net/function.session-start>]:
open(/tmp\sess_47e9f68197eac13f05e2e1fd93d1853c, O_RDWR) failed: No such
file or directory (2) in C:\Program Files\Apache
Group\Apache2\htdocs\php\tiki\setup.php on line 2
(*Stuff deleted*)
Warning: Unknown(): Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (/tmp) in Unknown on
line 0
<snip>
==============
session.* variables in php.ini:
--------------
[Session]
session.save_handler = files
session.save_path = d:\temp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = ./xxx
session.cookie_domain = eds.com
session.serialize_handler = php
session.gc_probability = 1
session.gc_dividend = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
--- End Message ---