php-windows Digest 13 Oct 2002 07:18:10 -0000 Issue 1385

Topics (messages 16349 through 16352):

Re: Sessions
        16349 by: Uttam

Re: UNC document roots -- possible?
        16350 by: Christoph Grottolo

PHP_SELF
        16351 by: Rodrigo San Martin
        16352 by: toby z

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 ---
use absolute path like including the last slash in php.ini:

session.save_path=c:\temp\phpsess\

regds,
-----Original Message-----
From: Nick Chorley [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 12, 2002 17:11
To: [EMAIL PROTECTED]
Subject: Sessions


How can I use session functions on Windows? The PHP Manual says this:
session.save_path defines the argument which is passed to the save
handler.
If you choose the default files handler, this is the path where the
files
are created. Defaults to /tmp. If session.save_path's path depth is more
than 2, garbage collection will not be performed

Note: Windows users have to change this variable in order to use PHP's
session functions. Make sure to specify a valid path, e.g.: c:/temp.

I tried this. I removed /tmp from my php.ini file and specified another
directory and then saved the file. When I try to run a script with
sessions
in it, I get:

Warning: Failed to write session data. Please check that the current
setting
of session.save_path is correct (/tmp) in Unknown on line 0.

phpinfo() has the local and master value of session.save_path as being
/tmp.
How can I get it to work?

Thanx,
NC



--- End Message ---
--- Begin Message ---
Hi Rick

What we've done to get PHP/IIS working with an UNC path as root is

- check the permissions for the IIS user (you've done that)
- check 'check that file exists' in IIS control panel where you set up the
script mapping for .php files (without this it doesn't work because php
running as local system doesn't get the permission)
- adding the path to the root to include_path in php.ini with forward
instead of back slashes.

For us, this works in an environment quite similar to yours (PHP as CGI).

There has been a bug report for 4.2.3 and 4.3dev about php not beeing able
to detect include paths correctly; I don't know how serious this is and if
it has any impact on your problem

Christoph

Rick Osborne wrote:

> I've seen several solutions for getting UNC files to work with
> fopen(), but I can't seem to find any solutions for getting PHP to
> work with UNC document roots.  Can anyone help me on this?  Or at
> least give me a pointer?
>
> Thanks,
> -R


--- End Message ---
--- Begin Message ---
Hi

Have a problem. Need to pass a multiple array through a form using a
PHP_SELF.
I pass it whith a hidden variabel but i get an error warning.

"Warning: Supplied argument is not a valid MySQL result resource in..."

The code is:

$qu2             ="SELECT * FROM test_tabel ;";
$result       = mysql_query($qu2);
$num         = mysql_num_rows($result);

i take out some info from test_table (there are some questions in the table
that the user need to answer), the user does some operation, clicks submit
and is supposed to be presented whith the next question in the table. I pass
the variable like this:

<INPUT TYPE='hidden' VALUE='$result' NAME='result'>

But no way josey. I get that warning.

Anybody got i nice solution please.





------------------------------------------
Rodrigo San Martin
Institutt for datateknologi og informatikk

http://www.idi.ntnu.no/~rodrigo



--- End Message ---
--- Begin Message ---
hi rodrigo

i tried this a few months bak but it didn work wirh
forms i alwayz got silly errors which i KNEW ver rong

anyway i used $PHP_SELF with links 

what u can do is u can make a submit LINK n make it
look like a button (if u preffer buttons :S) and pass
ur variables thru

but then there cud be security risks :S

well i hope dis helps

luck

toby ....

 --- Rodrigo San Martin <[EMAIL PROTECTED]> wrote:
> Hi
> 
> Have a problem. Need to pass a multiple array
> through a form using a
> PHP_SELF.
> I pass it whith a hidden variabel but i get an error
> warning.
> 
> "Warning: Supplied argument is not a valid MySQL
> result resource in..."
> 
> The code is:
> 
> $qu2             ="SELECT * FROM test_tabel ;";
> $result       = mysql_query($qu2);
> $num         = mysql_num_rows($result);
> 
> i take out some info from test_table (there are some
> questions in the table
> that the user need to answer), the user does some
> operation, clicks submit
> and is supposed to be presented whith the next
> question in the table. I pass
> the variable like this:
> 
> <INPUT TYPE='hidden' VALUE='$result' NAME='result'>
> 
> But no way josey. I get that warning.
> 
> Anybody got i nice solution please.
> 
> 
> 
> 
> 
> ------------------------------------------
> Rodrigo San Martin
> Institutt for datateknologi og informatikk
> 
> http://www.idi.ntnu.no/~rodrigo
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---

Reply via email to