php-windows Digest 5 Sep 2002 16:13:08 -0000 Issue 1324
Topics (messages 15668 through 15681):
Re: thickbook.com Form
15668 by: Julie Meloni
15670 by: Dorothy Vankoughnett
15671 by: Julie Meloni
problem with sessions...
15669 by: Luis Ferro
Re: PHP 4 Apache 2 and Windows XP
15672 by: Matt Carlson
15675 by: Rich Gray
15676 by: Matt Carlson
15677 by: Matt Carlson
Re: IIS 3 Install
15673 by: David Hollister
15674 by: dash php
Re: cookie problems...
15678 by: George Nicolae
15679 by: Angie Tollerson
15680 by: Nicholas Stuart
mkdir problem
15681 by: Jochem
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 ---
DV> It just for some reason is not recognizing the php extension ... any other
DV> things to test without sending you the conf file ???
Yes, verify the 2 changes that were to be made, plus verify that the
build process put the .so in the correct place, and finally verify
that you restarted your server.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
thank you for the tutorial, i noticed that when i reversed the .php and
.phtml ( see below )that it now works ...( originally had .phtml .php ) ...
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
thanks again!
Dorothy
-----Original Message-----
From: Julie Meloni [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 8:03 AM
To: Dorothy Vankoughnett
Cc: Php-Windows
Subject: [PHP-WIN] Re[3]: thickbook.com Form
DV>> It just for some reason is not recognizing the php extension ... any
other
DV>> things to test without sending you the conf file ???
JM> Yes, verify the 2 changes that were to be made, plus verify that the
JM> build process put the .so in the correct place, and finally verify
JM> that you restarted your server.
belay that; I see you sent this to a Windows list so you are using
Windows. In that case, simply verify that the changes were made as
instructed, and _you_ put any executables or dlls in the correct
place, and that you restarted the server. I would also check again
that you do not have a hidden file extension.
The installation tutorials at
http://www.thickbook.com/extra/index.html?t=in do provide instructions
for updated software versions.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
DV> thank you for the tutorial, i noticed that when i reversed the .php and
DV> .phtml ( see below )that it now works ...( originally had .phtml .php ) ...
DV> AddType application/x-httpd-php .php .phtml
DV> AddType application/x-httpd-php-source .phps
The order of extensions in the AddType makes no difference at all.
You probably missed something else and inadvertently fixed it. I
would recommend reading through the explanations of the changes to
understand what they are doing, otherwise you've just made it work but
no really understood why.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
Hi everyone...
I've an web applications with several directories and a session to keep
them all together...
The problem is that when i make a link to a file like:
<a href="../directory/file.php">sjdhfjsd</a>
The current session in the isn't passed to the file.php...
But if i make a link to a file as:
<a href="directory/file.php">sjdhfjsd</a>
The session is passed correctly...
To make a workarround i can make a file like:
<?php
include_once("../directory/file.php");
?>
And instead of linking directly to the file as in the first example, i
just link to the workarround file which reside in the same directory as
the current file...
I would like to know is why aren't the sessions kept when one moves the
current directory up in the directory tree, but the same session is kept
when one moves down in it, or up by using include directives...
Keep in mind that the session.cookie_path is set to "/"...
This figures like a serious problem in the session management sistem
that php 4 uses... [or a nasty configuration trick (or a
mishunderstanding on how it should work on my part)]...
Thanx for all the help...
Luis Ferro
Teladigital
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
I would have thought the same thing. Over about 2 hours, i did nearly 200
nslookups all resolving back to the correct IP. And I also did many in
succession to see if an error would produce itself.
When all it produces is the blank page, the source reveals this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
And that is it.
I cant figure why it is not parsing php or whatnot.
Again, thanks for the help you guys offer
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> PHP is nowhere near any of the gear that affects this, so I can't see how
> PHP could possibly cause this. Sounds like the dyndns lookup isn't always
> working. Try manually looking up your dyndns address and see if you
> always get the right ip.
>
> -Rasmus
>
> On Tue, 3 Sep 2002, Matt Carlson wrote:
>
> > I cant figure out whether this is a PHP problem, apache problem or the
board
> > that im using.
> >
> > I am posting this to each respective place.
> >
> > I am using dyndns's services, and heres the problem
> >
> > If I access my website through localhost or the ip of the internal
machine,
> > there is no problem. But when I use dyndns's host, the pages dont load
HALF
> > the time. Sometimes I get the correct page, and sometimes I get the
page I
> > should. there doesnt seem to be any real corellation between getting it
and
> > not getting it. Hit reload a couple of times and it pops up.
> >
> > If anyone has any thoughts, or anything to try, please let me know
> >
> > Thanks
> > Matt Carlson
> > [EMAIL PROTECTED]
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002
--- End Message ---
--- Begin Message ---
Matt
Is anything logged in the Apache/PHP error log?
Rich
-----Original Message-----
From: Matt Carlson [mailto:[EMAIL PROTECTED]]
Sent: 04 September 2002 17:29
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP 4 Apache 2 and Windows XP
I would have thought the same thing. Over about 2 hours, i did nearly 200
nslookups all resolving back to the correct IP. And I also did many in
succession to see if an error would produce itself.
When all it produces is the blank page, the source reveals this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
And that is it.
I cant figure why it is not parsing php or whatnot.
Again, thanks for the help you guys offer
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> PHP is nowhere near any of the gear that affects this, so I can't see how
> PHP could possibly cause this. Sounds like the dyndns lookup isn't always
> working. Try manually looking up your dyndns address and see if you
> always get the right ip.
>
> -Rasmus
>
> On Tue, 3 Sep 2002, Matt Carlson wrote:
>
> > I cant figure out whether this is a PHP problem, apache problem or the
board
> > that im using.
> >
> > I am posting this to each respective place.
> >
> > I am using dyndns's services, and heres the problem
> >
> > If I access my website through localhost or the ip of the internal
machine,
> > there is no problem. But when I use dyndns's host, the pages dont load
HALF
> > the time. Sometimes I get the correct page, and sometimes I get the
page I
> > should. there doesnt seem to be any real corellation between getting it
and
> > not getting it. Hit reload a couple of times and it pops up.
> >
> > If anyone has any thoughts, or anything to try, please let me know
> >
> > Thanks
> > Matt Carlson
> > [EMAIL PROTECTED]
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Unfortunatly no. There isnt. What I have found out from another source,
that windows xp has problems in a Afd.sys and there is an update for it,
unfortunatly it wont come out until SP-1. I do thank you very much for your
assisstance.
Matt
----- Original Message -----
From: "Rich Gray" <[EMAIL PROTECTED]>
To: "Matt Carlson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 11:53 AM
Subject: RE: [PHP-WIN] PHP 4 Apache 2 and Windows XP
> Matt
> Is anything logged in the Apache/PHP error log?
> Rich
> -----Original Message-----
> From: Matt Carlson [mailto:[EMAIL PROTECTED]]
> Sent: 04 September 2002 17:29
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] PHP 4 Apache 2 and Windows XP
>
>
> I would have thought the same thing. Over about 2 hours, i did nearly 200
> nslookups all resolving back to the correct IP. And I also did many in
> succession to see if an error would produce itself.
>
> When all it produces is the blank page, the source reveals this
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY></BODY></HTML>
> And that is it.
> I cant figure why it is not parsing php or whatnot.
>
> Again, thanks for the help you guys offer
>
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > PHP is nowhere near any of the gear that affects this, so I can't see
how
> > PHP could possibly cause this. Sounds like the dyndns lookup isn't
always
> > working. Try manually looking up your dyndns address and see if you
> > always get the right ip.
> >
> > -Rasmus
> >
> > On Tue, 3 Sep 2002, Matt Carlson wrote:
> >
> > > I cant figure out whether this is a PHP problem, apache problem or the
> board
> > > that im using.
> > >
> > > I am posting this to each respective place.
> > >
> > > I am using dyndns's services, and heres the problem
> > >
> > > If I access my website through localhost or the ip of the internal
> machine,
> > > there is no problem. But when I use dyndns's host, the pages dont
load
> HALF
> > > the time. Sometimes I get the correct page, and sometimes I get the
> page I
> > > should. there doesnt seem to be any real corellation between getting
it
> and
> > > not getting it. Hit reload a couple of times and it pops up.
> > >
> > > If anyone has any thoughts, or anything to try, please let me know
> > >
> > > Thanks
> > > Matt Carlson
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002
--- End Message ---
--- Begin Message ---
I thought for a second. The microsoft link is
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q317949
refernecing QB article Q317949 in case anyone else has the problem
Matt
"Matt" <[EMAIL PROTECTED]> wrote in message
000b01c25435$8eb93ee0$6501a8c0@DION">news:000b01c25435$8eb93ee0$6501a8c0@DION...
> Unfortunatly no. There isnt. What I have found out from another source,
> that windows xp has problems in a Afd.sys and there is an update for it,
> unfortunatly it wont come out until SP-1. I do thank you very much for
your
> assisstance.
>
> Matt
>
> ----- Original Message -----
> From: "Rich Gray" <[EMAIL PROTECTED]>
> To: "Matt Carlson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, September 04, 2002 11:53 AM
> Subject: RE: [PHP-WIN] PHP 4 Apache 2 and Windows XP
>
>
> > Matt
> > Is anything logged in the Apache/PHP error log?
> > Rich
> > -----Original Message-----
> > From: Matt Carlson [mailto:[EMAIL PROTECTED]]
> > Sent: 04 September 2002 17:29
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] PHP 4 Apache 2 and Windows XP
> >
> >
> > I would have thought the same thing. Over about 2 hours, i did nearly
200
> > nslookups all resolving back to the correct IP. And I also did many in
> > succession to see if an error would produce itself.
> >
> > When all it produces is the blank page, the source reveals this
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML><HEAD>
> > <META http-equiv=Content-Type content="text/html;
> > charset=windows-1252"></HEAD>
> > <BODY></BODY></HTML>
> > And that is it.
> > I cant figure why it is not parsing php or whatnot.
> >
> > Again, thanks for the help you guys offer
> >
> >
> > "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > PHP is nowhere near any of the gear that affects this, so I can't see
> how
> > > PHP could possibly cause this. Sounds like the dyndns lookup isn't
> always
> > > working. Try manually looking up your dyndns address and see if you
> > > always get the right ip.
> > >
> > > -Rasmus
> > >
> > > On Tue, 3 Sep 2002, Matt Carlson wrote:
> > >
> > > > I cant figure out whether this is a PHP problem, apache problem or
the
> > board
> > > > that im using.
> > > >
> > > > I am posting this to each respective place.
> > > >
> > > > I am using dyndns's services, and heres the problem
> > > >
> > > > If I access my website through localhost or the ip of the internal
> > machine,
> > > > there is no problem. But when I use dyndns's host, the pages dont
> load
> > HALF
> > > > the time. Sometimes I get the correct page, and sometimes I get the
> > page I
> > > > should. there doesnt seem to be any real corellation between
getting
> it
> > and
> > > > not getting it. Hit reload a couple of times and it pops up.
> > > >
> > > > If anyone has any thoughts, or anything to try, please let me know
> > > >
> > > > Thanks
> > > > Matt Carlson
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002
--- End Message ---
--- Begin Message ---
My suggestion would be to upgrade IIS. Is there a reason you need IIS3?
All is not the same between web server versions.
Check this out
http://www.php.net/manual/sv/printwn/install.iis.php#install.iis.iis4
-----Original Message-----
From: Kerry Kobashi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 5:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] IIS 3 Install
Ok so I downloaded the windows PHP version onto my IIS3 NT4 Server system...
Ran the installation program
created a simple hello world program...
then did a localhost/hello.php and nothing came up except a HTTP 404
error...
Any thoughts/suggestions?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I once installed PHP on IIS3. From what I recall, it was not a pretty
excersize. I had to go registry hunting! It is so much easier on Apache.
-Dash
-----Original Message-----
From: David Hollister [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 9:40 AM
To: 'Kerry Kobashi'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] IIS 3 Install
My suggestion would be to upgrade IIS. Is there a reason you need IIS3?
All is not the same between web server versions.
Check this out
http://www.php.net/manual/sv/printwn/install.iis.php#install.iis.iis4
-----Original Message-----
From: Kerry Kobashi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 5:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] IIS 3 Install
Ok so I downloaded the windows PHP version onto my IIS3 NT4 Server system...
Ran the installation program
created a simple hello world program...
then did a localhost/hello.php and nothing came up except a HTTP 404
error...
Any thoughts/suggestions?
--
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 ---
You can't set a cookie in a page and use it immediately. From the manual:
"Cookies will not become visible until the next loading of a page that the
cookie should be visible for. To test if a cookie was successfully set,
check for the cookie on a next loading page before the cookie expires. "
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Nicholas Stuart" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all, I seem to be having problems with getting cookies to set
> correctly. I use the following code:
> ___________________________________________________
>
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> header("Cache-Control: no-store, no-cache, must-revalidate");
> header("Cache-Control: post-check=1, pre-check=1", false);
> header("Pragma: no-cache");
>
> setcookie("User", $_POST['user']);
> setcookie("FirstName", $row["first_name"]);
> setcookie("LastName", $row["last_name"]);
> setcookie("Ext", $row["EXT"]);
> setcookie("Department", $row["dept"]);
>
> \\and to display it:
> <TABLE border = 1>
> <TR>
> <TH>First Name:</TH>
> <TH>Last Name:</TH>
> <TH>Extension:</TH>
> <TH>Department:</TH>
> </TR>
> <TR>
> <TD><?=$_COOKIE['FirstName']?></TD>
> <TD><?=$_COOKIE['LastName']?></TD>
> <TD><?=$_COOKIE['Ext']?></TD>
> <TD><?=$_COOKIE['Department']?></TD>
> </TR>
> </TABLE>
> ___________________________________________________
> The problem it that the cookie does not set itself the first time the page
> is loaded. It gives the following error:
> Notice: Undefined index: FirstName in c:\inetpub\wwwroot\helpdesk\menu.php
> on line 37
> Once you hit the reload button it works fine.
> And if the cookie is set and the user logs back into the page with a
> different user name then the old info is still set in the cookie until you
> hit the reload button.
> Thanks for the help!
> -Nick
>
>
--- End Message ---
--- Begin Message ---
Also, Please keep in mind that on windows, you will not be able to
successfully set a cookie if your script redirects to another page using
the typical header("Location:.."); command. Instead, you have to print
out headers to the page that uses meta tag refresh to refresh the page
to a new url location. Then the cookie properly sets. Otherwise...it
won't.
Angie Tollerson
Alliance Technologies
Web Programmer
(515)245-7628
[EMAIL PROTECTED]
>>> "George Nicolae" <[EMAIL PROTECTED]> 09/04/02 12:35PM >>>
You can't set a cookie in a page and use it immediately. From the
manual:
"Cookies will not become visible until the next loading of a page that
the
cookie should be visible for. To test if a cookie was successfully
set,
check for the cookie on a next loading page before the cookie expires.
"
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Nicholas Stuart" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all, I seem to be having problems with getting cookies to set
> correctly. I use the following code:
> ___________________________________________________
>
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> header("Cache-Control: no-store, no-cache, must-revalidate");
> header("Cache-Control: post-check=1, pre-check=1", false);
> header("Pragma: no-cache");
>
> setcookie("User", $_POST['user']);
> setcookie("FirstName", $row["first_name"]);
> setcookie("LastName", $row["last_name"]);
> setcookie("Ext", $row["EXT"]);
> setcookie("Department", $row["dept"]);
>
> \\and to display it:
> <TABLE border = 1>
> <TR>
> <TH>First Name:</TH>
> <TH>Last Name:</TH>
> <TH>Extension:</TH>
> <TH>Department:</TH>
> </TR>
> <TR>
> <TD><?=$_COOKIE['FirstName']?></TD>
> <TD><?=$_COOKIE['LastName']?></TD>
> <TD><?=$_COOKIE['Ext']?></TD>
> <TD><?=$_COOKIE['Department']?></TD>
> </TR>
> </TABLE>
> ___________________________________________________
> The problem it that the cookie does not set itself the first time the
page
> is loaded. It gives the following error:
> Notice: Undefined index: FirstName in
c:\inetpub\wwwroot\helpdesk\menu.php
> on line 37
> Once you hit the reload button it works fine.
> And if the cookie is set and the user logs back into the page with a
> different user name then the old info is still set in the cookie
until you
> hit the reload button.
> Thanks for the help!
> -Nick
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Thanks Angie, I was just in the process of seperating out my cookie
setting and that is just what I needed. Works like a charm.
Thanks again.
-Nick
> Also, Please keep in mind that on windows, you will not be able to
> successfully set a cookie if your script redirects to another page using
> the typical header("Location:.."); command. Instead, you have to print
> out headers to the page that uses meta tag refresh to refresh the page
> to a new url location. Then the cookie properly sets. Otherwise...it
> won't.
>
> Angie Tollerson
> Alliance Technologies
> Web Programmer
> (515)245-7628
> [EMAIL PROTECTED]
>
>>>> "George Nicolae" <[EMAIL PROTECTED]> 09/04/02 12:35PM >>>
> You can't set a cookie in a page and use it immediately. From the
> manual:
> "Cookies will not become visible until the next loading of a page that
> the
> cookie should be visible for. To test if a cookie was successfully
> set,
> check for the cookie on a next loading page before the cookie expires.
> "
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___________________
> PaginiWeb.com - Professional Web Design
> www.PaginiWeb.com
>
>
> "Nicholas Stuart" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hello all, I seem to be having problems with getting cookies to set
>> correctly. I use the following code:
>> ___________________________________________________
>>
>> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
>> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
>> header("Cache-Control: no-store, no-cache, must-revalidate");
>> header("Cache-Control: post-check=1, pre-check=1", false);
>> header("Pragma: no-cache");
>>
>> setcookie("User", $_POST['user']);
>> setcookie("FirstName", $row["first_name"]);
>> setcookie("LastName", $row["last_name"]);
>> setcookie("Ext", $row["EXT"]);
>> setcookie("Department", $row["dept"]);
>>
>> \\and to display it:
>> <TABLE border = 1>
>> <TR>
>> <TH>First Name:</TH>
>> <TH>Last Name:</TH>
>> <TH>Extension:</TH>
>> <TH>Department:</TH>
>> </TR>
>> <TR>
>> <TD><?=$_COOKIE['FirstName']?></TD>
>> <TD><?=$_COOKIE['LastName']?></TD>
>> <TD><?=$_COOKIE['Ext']?></TD>
>> <TD><?=$_COOKIE['Department']?></TD>
>> </TR>
>> </TABLE>
>> ___________________________________________________
>> The problem it that the cookie does not set itself the first time the
> page
>> is loaded. It gives the following error:
>> Notice: Undefined index: FirstName in
> c:\inetpub\wwwroot\helpdesk\menu.php
>> on line 37
>> Once you hit the reload button it works fine.
>> And if the cookie is set and the user logs back into the page with a
>> different user name then the old info is still set in the cookie
> until you
>> hit the reload button.
>> Thanks for the help!
>> -Nick
>>
>>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
When I make a directory from within a php-file I don't have the right to
delete it or files in it with a ftp-progam. I use the command below:
mkdir($dir, 0777);
I first tried 0755 and later 0777, but neither of them worked.
Does anyone know how to solve this problem?
Jochem
The Netherlands
--- End Message ---