php-windows Digest 12 Oct 2002 11:37:32 -0000 Issue 1384

Topics (messages 16345 through 16348):

Re: Creating files with PHP - need help
        16345 by: M.B.

Re: passing variables part 2
        16346 by: Cam Dunstan
        16347 by: db

Sessions
        16348 by: Nick Chorley

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 ---
Whell, try using for the path:
your excample: "/nef/articles/54.txt"
my excample: "../nef/articles/54.txt"

"Sviss" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi NG.
>
> I'm having problems creating files at a certain location.
> If I attemt to create a file it gets created in the rootdir (htdocs) even
> though I add a path infront of the file name. I've tried severel ways of
> adding a path but nothing works.
>
> eksample: "/nef/articles/54.txt"
>
> File 54.txt gets created but not at the intented location, instead it gets
> created in htdocs.
>
> Can anyone help me by telling me how I'm suppose to do this?
> I'm running PHP on Win98 with Apache.
>
> ~ Sviss
>
>
>


--- End Message ---
--- Begin Message ---
db
Far  as I know it would - without the quotes of course.


----- Original Message ----- 
From: "db" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 12, 2002 7:40 AM
Subject: [PHP-WIN] Re: passing variables part 2


> another roadblock: how would you pass a variable containing a path like
> $i="C:/pics/albums/album1"?  is it possible?
> 
> thanks.
> 
> 


--- End Message ---
--- Begin Message ---
this is so weird.  it didn't at first, but now it does.  i must have had a
typo in there someplace and just didn't catch it.

thanks!

"Cam Dunstan" <[EMAIL PROTECTED]> wrote in message
001d01c2717a$b2171080$7866a8c0@camhome">news:001d01c2717a$b2171080$7866a8c0@camhome...
> db
> Far  as I know it would - without the quotes of course.
>
>
> ----- Original Message -----
> From: "db" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, October 12, 2002 7:40 AM
> Subject: [PHP-WIN] Re: passing variables part 2
>
>
> > another roadblock: how would you pass a variable containing a path like
> > $i="C:/pics/albums/album1"?  is it possible?
> >
> > thanks.
> >
> >
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 10/9/2002


--- End Message ---
--- Begin Message ---
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 ---

Reply via email to