OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 30 Jan 2004 07:05:08 -0000 Issue 2560

php-general-digest-helplists.php.net
Date: Fri Jan 30 2004 - 01:05:08 CST


php-general Digest 30 Jan 2004 07:05:08 -0000 Issue 2560

Topics (messages 176249 through 176305):

Re: Encoding for uploaded files
        176249 by: memoimyself.yahoo.com.br

Re: shell_exec and accents
        176250 by: DvDmanDT

Re: Sessions not working.
        176251 by: Jeff McKeon
        176255 by: Jeff McKeon
        176256 by: Jas
        176257 by: John Nichel
        176259 by: Chris W. Parker
        176260 by: John Nichel
        176261 by: Jas
        176262 by: Daniel Clark

Re: Spell checker in PHP
        176252 by: Gryffyn, Trevor

Re: Integration between ASP & PHP.
        176253 by: Gryffyn, Trevor
        176267 by: francesco.automationsoft.biz
        176268 by: Gryffyn, Trevor

Re: index page not running and other woes (0t?)
        176254 by: Gryffyn, Trevor

Deleting cookies won't work
        176258 by: Andrew Wood
        176263 by: memoimyself.yahoo.com.br

Re: random?
        176264 by: Rob Adams
        176266 by: Chris
        176269 by: John Nichel
        176278 by: Chris
        176282 by: John Nichel

trim your posts
        176265 by: Chris W. Parker

don't want to belabor a point about session_start, but...
        176270 by: Rachael LaPorte Taylor
        176272 by: Rachael LaPorte Taylor
        176273 by: John Nichel
        176274 by: E. Stuart Hicks
        176275 by: Justin Patrin
        176276 by: Chris Shiflett

Re: sending a hex string as it is?
        176271 by: Gryffyn, Trevor
        176279 by: DvDmanDT
        176280 by: Gryffyn, Trevor

parsing variables inside a variable?
        176277 by: jimbo
        176285 by: Justin Patrin

Re: Googlebot (not another rtfm-mail)
        176281 by: Williams, Olwen - SAL

Re: random? SOLVED!
        176283 by: Chris

dates, time stamps, multiple servers, locale, etc
        176284 by: Justin French

Re: php to send emails using exim?
        176286 by: Raditha Dissanayake

Re: crypt() sources c# port
        176287 by: Raditha Dissanayake

exec won't pass arg with spaces
        176288 by: Raul Millan
        176290 by: Michal Migurski
        176303 by: Tom Rogers

Missing Var
        176289 by: Nicholas Fitzgerald
        176292 by: Chris

[php] search.php
        176291 by: John Taylor-Johnston
        176293 by: Raditha Dissanayake
        176294 by: John Taylor-Johnston
        176295 by: Raditha Dissanayake
        176297 by: Nicholas Fitzgerald

locking to domain
        176296 by: Ryan A

session management
        176298 by: ajay
        176299 by: Raditha Dissanayake
        176300 by: ajay
        176301 by: Raditha Dissanayake
        176302 by: ajay
        176304 by: Adam Bregenzer
        176305 by: Giz

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

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

attached mail follows:


On 29 Jan 2004 at 10:47, craig wrote:

> specifally, you want: $_FILES['userfile']['type'] = The mime type of
> the file, if the browser provided this information. An example would
> be "image/gif".

That's basically it and will work for common file types. However, it's the user's browser,
not PHP, that identifies the MIME type of the file and sends this information along with
the file. This means, first, that some browsers will send you the information (or the
*correct*) information while others may not, and, second, that some file types will not be
recognized by the user's browser and the file type available to PHP will be an empty
string. So, as you can see, you can't really rely on this kind of information for anything
critical to your application.

Cheers,

Erik

attached mail follows:


As I said somewhere else about an hour ago, use like Iconv or something like
that.. It's caused by different charsets.. Chances are quite big you want to
use iso-8859-1, but the shell command uses something else..

--
// DvDmanDT
MSN: dvdmandt?hotmail.com
Mail: dvdmandt?telia.com
"Phpdiscuss - Php Newsgroups And Mailing Lists" <timarmeshotmail.com> skrev
i meddelandet news:20040129142042.89063.qmailpb1.pair.com...
> Hi,
>
> I'm using shell_exec to call a command that can return accented
> characters. Unfortunately the accented characters are being transformed
> into other characters instead (for example, an acute e becomes a ',').
>
> How can I get the real output?
>
> I'm running on Windows 2000. In the command prompt the command returns
> the accents correctly.
>
> Tim

attached mail follows:


Ok, there seems to be some confusion about my setup so here it is
again..

I have 1 physical server runing win2k server with IIS-5

I have 4 virtual web servers configured in IIS-5, each with it's own IP
address.

Site1,Site2,Site1DEV,Site2DEV

All using the same php.ini and all set up identically in IIS (as far as
I can tell).

Site1 has no problems saving or passing $_session[] variables between
pages.

Site1DEV, currently and exact copy of Site1, will not pass $_session[]
variables between pages.

<EXAMPLE CODE>

Session_test.php

<?php
// Start session and set variable.
session_start();
$_SESSION['theSESSIONvarName'] = "is_set";
$_SESSION['user'] = 'jsm';
// Check if the session is set.
if(isset($_SESSION['theSESSIONvarName']))
{
$sid = session_id();
$text = $_SESSION['theSESSIONvarName'];
$userid = $_SESSION['user'];
echo "<html>";
echo "<head><title>PHP Session Is Set!</title></head>";
echo "<body><p>The session is set! The PHPSESSID is: $sid Text = $text
and userid = $userid</p>";
echo "<a href='session_test2.php'>link</a><br>";
echo "</body></html>";
}
else
{
echo "<html>";
echo "<head><title>PHP Session Is NOT Set!</title></head>";
echo "<body><p>The session is NOT set! Check your server configuration
or version.</p></body>";
echo "</html>";
}
?>

Session_test2.php

<?php
session_start();
?>
<html>

<head>
  <title></title>
</head>

<body>
<?php
$user = $_SESSION['user'];
echo "Hello! $user";

?>
</body>

</html>

<END CODE EXAMPLE>

On Site1 this works fine. You get the sessionID and a link to
session_test2.php. When you follow the link, session_test2.php displays
the contents of the $_SESSION['user'] variable.

On Site1DEV however, you see the sessionID on session_test.php and the
$_SESSION['user'] variable, but when you follow the link to
session_test2.php, the contents of the $_SESSION['user'] are blank.

What could be missing here in my server setup?

Thanks,

jeff

-----Original Message-----
From: Jeff McKeon
Sent: Thursday, January 29, 2004 11:49 AM
To: Gryffyn, Trevor; php-generallists.php.net
Subject: RE: [PHP] Sessions not working.

Further info.

If I echo the session_id() onto the page I do get an id returned.
So (correct me if I'm wrong) the session has started correctly with the
session_start() at the top of the page.

It just doesn't seem to save any of the session variables I set, or if
they are set, it can't retrieve them.

I get this error when trying to grab the $session['userid'] variable...

Notice: Undefined index: userid in C:\Inetpub\wwwOpSupDev\main.php on
line 37

-----Original Message-----
From: Gryffyn, Trevor [mailto:TGryffynair-cargo-inc.com]
Sent: Thursday, January 29, 2004 9:19 AM
To: php-generallists.php.net
Subject: RE: [PHP] Sessions not working.

Random thought.. Did you check your PHP.INI on the 'bad' server to make
sure that it's configured the same as the 'good' server?

Some things to check:

Session.use_cookies = 1
Session.auto_start = 0 // This is the first one I'd check. If you have
it set to =1 on the good server and aren't doing a session_start(), that
could do it I think

There are a bunch of other Session related parameters in PHP.INI..
Default timeout value.. If that's set too low, the session might
vaporize before you get a chance to see the info, etc.

Good luck!

-TG

> -----Original Message-----
> From: Jeff McKeon [mailto:jmckeontelaurus.com]
> Sent: Wednesday, January 28, 2004 7:44 PM
> To: php-generallists.php.net
> Subject: [PHP] Sessions not working.
>
>
> Pulling my hair out here.
>
> I've got an IIS5 webserver running a php website just fine.
>
> I created another web for a dev version of the first website.
> Installed PHP ect...
> When I load up the old websites files on the new site sessions won't
> work on the new site.
>
> For some reason on the new site's phpinfo.php page, there is no
> HTTP_COOKIE variable set under the "environmental" section.
>
> Also, under the PHP Variables section, there is no
> _REQUEST["PHPSESSID"] or _COOKIE["PHPSESSID"] variable.
>
> What have I missed!???
>
> Here is a section of the phpinfo() for both sites.
>
> Good Site:
>
> Environment
> Variable Value
> ALLUSERSPROFILE C:\Documents and Settings\All Users
> CommonProgramFiles C:\Program Files\Common Files
> COMPUTERNAME WS02TC07927
> ComSpec C:\WINNT\system32\cmd.exe
> CONTENT_LENGTH 0
> GATEWAY_INTERFACE CGI/1.1
> HTTPS off
> HTTP_ACCEPT */*
> HTTP_ACCEPT_LANGUAGE en-us
> HTTP_CONNECTION Keep-Alive
> HTTP_HOST opsup.telaurus.net
> HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
> HTTP_COOKIE PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
> HTTP_ACCEPT_ENCODING gzip, deflate
> INSTANCE_ID 3
> LOCAL_ADDR 10.16.1.21
> NUMBER_OF_PROCESSORS 1
> Os2LibPath C:\WINNT\system32\os2\dll;
> OS Windows_NT
> Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
> PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> PATH_INFO /phpinfo.php
> PATH_TRANSLATED C:\Inetpub\wwwOpSup\phpinfo.php
> PROCESSOR_ARCHITECTURE x86
> PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 10, GenuineIntel
> PROCESSOR_LEVEL 6
> PROCESSOR_REVISION 080a
> ProgramFiles C:\Program Files
> REMOTE_ADDR 10.16.2.55
> REMOTE_HOST 10.16.2.55
> REQUEST_METHOD GET
> SCRIPT_NAME /phpinfo.php
> SERVER_NAME opsup.telaurus.net
> SERVER_PORT 80
> SERVER_PORT_SECURE 0
> SERVER_PROTOCOL HTTP/1.1
> SERVER_SOFTWARE Microsoft-IIS/5.0
> SystemDrive C:
> SystemRoot C:\WINNT
> TEMP C:\WINNT\TEMP
> TMP C:\WINNT\TEMP
> USERPROFILE C:\Documents and Settings\NetShowServices
> windir C:\WINNT
>
>
> PHP Variables
> Variable Value
> _REQUEST["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f
> _COOKIE["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f
> _SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
> _SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files
> _SERVER["COMPUTERNAME"] WS02TC07927
> _SERVER["ComSpec"] C:\\WINNT\\system32\\cmd.exe
> _SERVER["CONTENT_LENGTH"] 0
> _SERVER["GATEWAY_INTERFACE"] CGI/1.1
> _SERVER["HTTPS"] off
> _SERVER["HTTP_ACCEPT"] */*
> _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
> _SERVER["HTTP_CONNECTION"] Keep-Alive
> _SERVER["HTTP_HOST"] opsup.telaurus.net
> _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0;
> Windows NT
> 5.1)
> _SERVER["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
> _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
> _SERVER["INSTANCE_ID"] 3
> _SERVER["LOCAL_ADDR"] 10.16.1.21
> _SERVER["NUMBER_OF_PROCESSORS"] 1
> _SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
> _SERVER["OS"] Windows_NT
> _SERVER["Path"]
> C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
> _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> _SERVER["PATH_INFO"] /phpinfo.php
> _SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php
> _SERVER["PROCESSOR_ARCHITECTURE"] x86
> _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
> GenuineIntel
> _SERVER["PROCESSOR_LEVEL"] 6
> _SERVER["PROCESSOR_REVISION"] 080a
> _SERVER["ProgramFiles"] C:\\Program Files
> _SERVER["REMOTE_ADDR"] 10.16.2.55
> _SERVER["REMOTE_HOST"] 10.16.2.55
> _SERVER["REQUEST_METHOD"] GET
> _SERVER["SCRIPT_NAME"] /phpinfo.php
> _SERVER["SERVER_NAME"] opsup.telaurus.net
> _SERVER["SERVER_PORT"] 80
> _SERVER["SERVER_PORT_SECURE"] 0
> _SERVER["SERVER_PROTOCOL"] HTTP/1.1
> _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
> _SERVER["SystemDrive"] C:
> _SERVER["SystemRoot"] C:\\WINNT
> _SERVER["TEMP"] C:\\WINNT\\TEMP
> _SERVER["TMP"] C:\\WINNT\\TEMP
> _SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
> _SERVER["windir"] C:\\WINNT
> _SERVER["PHP_SELF"] /phpinfo.php
> _SERVER["argv"] Array
> (
> )
>
> _SERVER["argc"] 0
> _ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
> _ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
> _ENV["COMPUTERNAME"] WS02TC07927
> _ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe
> _ENV["CONTENT_LENGTH"] 0
> _ENV["GATEWAY_INTERFACE"] CGI/1.1
> _ENV["HTTPS"] off
> _ENV["HTTP_ACCEPT"] */*
> _ENV["HTTP_ACCEPT_LANGUAGE"] en-us
> _ENV["HTTP_CONNECTION"] Keep-Alive
> _ENV["HTTP_HOST"] opsup.telaurus.net
> _ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
> 5.1)
> _ENV["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
> _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
> _ENV["INSTANCE_ID"] 3
> _ENV["LOCAL_ADDR"] 10.16.1.21
> _ENV["NUMBER_OF_PROCESSORS"] 1
> _ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
> _ENV["OS"] Windows_NT
> _ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
> _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> _ENV["PATH_INFO"] /phpinfo.php
> _ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php
> _ENV["PROCESSOR_ARCHITECTURE"] x86
> _ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
> GenuineIntel
> _ENV["PROCESSOR_LEVEL"] 6
> _ENV["PROCESSOR_REVISION"] 080a
> _ENV["ProgramFiles"] C:\\Program Files
> _ENV["REMOTE_ADDR"] 10.16.2.55
> _ENV["REMOTE_HOST"] 10.16.2.55
> _ENV["REQUEST_METHOD"] GET
> _ENV["SCRIPT_NAME"] /phpinfo.php
> _ENV["SERVER_NAME"] opsup.telaurus.net
> _ENV["SERVER_PORT"] 80
> _ENV["SERVER_PORT_SECURE"] 0
> _ENV["SERVER_PROTOCOL"] HTTP/1.1
> _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0
> _ENV["SystemDrive"] C:
> _ENV["SystemRoot"] C:\\WINNT
> _ENV["TEMP"] C:\\WINNT\\TEMP
> _ENV["TMP"] C:\\WINNT\\TEMP
> _ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
> _ENV["windir"] C:\\WINNT
>
> BAD site:
>
> Environment
> Variable Value
> ALLUSERSPROFILE C:\Documents and Settings\All Users
> CommonProgramFiles C:\Program Files\Common Files
> COMPUTERNAME WS02TC07927
> ComSpec C:\WINNT\system32\cmd.exe
> CONTENT_LENGTH 0
> GATEWAY_INTERFACE CGI/1.1
> HTTPS off
> HTTP_ACCEPT */*
> HTTP_ACCEPT_LANGUAGE en-us
> HTTP_CONNECTION Keep-Alive
> HTTP_HOST opsup_dev.telaurus.net
> HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
> HTTP_ACCEPT_ENCODING gzip, deflate
> INSTANCE_ID 6
> LOCAL_ADDR 10.16.1.24
> NUMBER_OF_PROCESSORS 1
> Os2LibPath C:\WINNT\system32\os2\dll;
> OS Windows_NT
> Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
> PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> PATH_INFO /phpinfo.php
> PATH_TRANSLATED C:\Inetpub\wwwOpSupDev\phpinfo.php
> PROCESSOR_ARCHITECTURE x86
> PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 10, GenuineIntel
> PROCESSOR_LEVEL 6
> PROCESSOR_REVISION 080a
> ProgramFiles C:\Program Files
> REMOTE_ADDR 10.16.2.55
> REMOTE_HOST 10.16.2.55
> REQUEST_METHOD GET
> SCRIPT_NAME /phpinfo.php
> SERVER_NAME opsup_dev.telaurus.net
> SERVER_PORT 80
> SERVER_PORT_SECURE 0
> SERVER_PROTOCOL HTTP/1.1
> SERVER_SOFTWARE Microsoft-IIS/5.0
> SystemDrive C:
> SystemRoot C:\WINNT
> TEMP C:\WINNT\TEMP
> TMP C:\WINNT\TEMP
> USERPROFILE C:\Documents and Settings\NetShowServices
> windir C:\WINNT
>
>
> PHP Variables
> Variable Value
> _SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
> _SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files
> _SERVER["COMPUTERNAME"] WS02TC07927
> _SERVER["ComSpec"] C:\\WINNT\\system32\\cmd.exe
> _SERVER["CONTENT_LENGTH"] 0
> _SERVER["GATEWAY_INTERFACE"] CGI/1.1
> _SERVER["HTTPS"] off
> _SERVER["HTTP_ACCEPT"] */*
> _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
> _SERVER["HTTP_CONNECTION"] Keep-Alive
> _SERVER["HTTP_HOST"] opsup_dev.telaurus.net
> _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0;
> Windows NT
> 5.1)
> _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
> _SERVER["INSTANCE_ID"] 6
> _SERVER["LOCAL_ADDR"] 10.16.1.24
> _SERVER["NUMBER_OF_PROCESSORS"] 1
> _SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
> _SERVER["OS"] Windows_NT
> _SERVER["Path"]
> C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
> _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> _SERVER["PATH_INFO"] /phpinfo.php
> _SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php
> _SERVER["PROCESSOR_ARCHITECTURE"] x86
> _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
> GenuineIntel
> _SERVER["PROCESSOR_LEVEL"] 6
> _SERVER["PROCESSOR_REVISION"] 080a
> _SERVER["ProgramFiles"] C:\\Program Files
> _SERVER["REMOTE_ADDR"] 10.16.2.55
> _SERVER["REMOTE_HOST"] 10.16.2.55
> _SERVER["REQUEST_METHOD"] GET
> _SERVER["SCRIPT_NAME"] /phpinfo.php
> _SERVER["SERVER_NAME"] opsup_dev.telaurus.net
> _SERVER["SERVER_PORT"] 80
> _SERVER["SERVER_PORT_SECURE"] 0
> _SERVER["SERVER_PROTOCOL"] HTTP/1.1
> _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
> _SERVER["SystemDrive"] C:
> _SERVER["SystemRoot"] C:\\WINNT
> _SERVER["TEMP"] C:\\WINNT\\TEMP
> _SERVER["TMP"] C:\\WINNT\\TEMP
> _SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
> _SERVER["windir"] C:\\WINNT
> _SERVER["PHP_SELF"] /phpinfo.php
> _SERVER["argv"] Array
> (
> )
>
> _SERVER["argc"] 0
> _ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
> _ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
> _ENV["COMPUTERNAME"] WS02TC07927
> _ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe
> _ENV["CONTENT_LENGTH"] 0
> _ENV["GATEWAY_INTERFACE"] CGI/1.1
> _ENV["HTTPS"] off
> _ENV["HTTP_ACCEPT"] */*
> _ENV["HTTP_ACCEPT_LANGUAGE"] en-us
> _ENV["HTTP_CONNECTION"] Keep-Alive
> _ENV["HTTP_HOST"] opsup_dev.telaurus.net
> _ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
> 5.1)
> _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
> _ENV["INSTANCE_ID"] 6
> _ENV["LOCAL_ADDR"] 10.16.1.24
> _ENV["NUMBER_OF_PROCESSORS"] 1
> _ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
> _ENV["OS"] Windows_NT
> _ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
> _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> _ENV["PATH_INFO"] /phpinfo.php
> _ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php
> _ENV["PROCESSOR_ARCHITECTURE"] x86
> _ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
> GenuineIntel
> _ENV["PROCESSOR_LEVEL"] 6
> _ENV["PROCESSOR_REVISION"] 080a
> _ENV["ProgramFiles"] C:\\Program Files
> _ENV["REMOTE_ADDR"] 10.16.2.55
> _ENV["REMOTE_HOST"] 10.16.2.55
> _ENV["REQUEST_METHOD"] GET
> _ENV["SCRIPT_NAME"] /phpinfo.php
> _ENV["SERVER_NAME"] opsup_dev.telaurus.net
> _ENV["SERVER_PORT"] 80
> _ENV["SERVER_PORT_SECURE"] 0
> _ENV["SERVER_PROTOCOL"] HTTP/1.1
> _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0
> _ENV["SystemDrive"] C:
> _ENV["SystemRoot"] C:\\WINNT
> _ENV["TEMP"] C:\\WINNT\\TEMP
> _ENV["TMP"] C:\\WINNT\\TEMP
> _ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
> _ENV["windir"] C:\\WINNT
>
> Jeff McKeon
> IT Manager
> Telaurus Communications LLC
> jmckeontelaurus.com
> (973) 889-8990 ex 209
>
> ***The information contained in this communication is confidential. It

> is intended only for the sole use of the recipient named above and may

> be legally privileged. If the reader of this message is not the
> intended recipient, you are hereby notified that any dissemination,
> distribution
> or copying of this communication, or any of its contents or
> attachments,
> is expressly prohibited. If you have received this communication in
> error, please re-send it to the sender and delete the
> original message,
> and any copy of it, from your computer system. Thank You.***
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Figured it out, I think.

PHP doesn't like the underscore in my website name.

http://site_dev.foo.com/ doesn't work but
http://192.168.2.50/ does.

If I rename the site in DNS to siteDEV.foo.com then it works fine.

Any ideas why?

-----Original Message-----
From: Jeff McKeon
Sent: Thursday, January 29, 2004 2:48 PM
To: Jeff McKeon; Gryffyn, Trevor; php-generallists.php.net
Subject: RE: [PHP] Sessions not working.

Ok, there seems to be some confusion about my setup so here it is
again..

I have 1 physical server runing win2k server with IIS-5

I have 4 virtual web servers configured in IIS-5, each with it's own IP
address.

Site1,Site2,Site1DEV,Site2DEV

All using the same php.ini and all set up identically in IIS (as far as
I can tell).

Site1 has no problems saving or passing $_session[] variables between
pages.

Site1DEV, currently and exact copy of Site1, will not pass $_session[]
variables between pages.

<EXAMPLE CODE>

Session_test.php

<?php
// Start session and set variable.
session_start();
$_SESSION['theSESSIONvarName'] = "is_set";
$_SESSION['user'] = 'jsm';
// Check if the session is set.
if(isset($_SESSION['theSESSIONvarName']))
{
$sid = session_id();
$text = $_SESSION['theSESSIONvarName'];
$userid = $_SESSION['user'];
echo "<html>";
echo "<head><title>PHP Session Is Set!</title></head>";
echo "<body><p>The session is set! The PHPSESSID is: $sid Text = $text
and userid = $userid</p>"; echo "<a
href='session_test2.php'>link</a><br>";
echo "</body></html>";
}
else
{
echo "<html>";
echo "<head><title>PHP Session Is NOT Set!</title></head>"; echo
"<body><p>The session is NOT set! Check your server configuration or
version.</p></body>"; echo "</html>"; } ?>

Session_test2.php

<?php
session_start();
?>
<html>

<head>
  <title></title>
</head>

<body>
<?php
$user = $_SESSION['user'];
echo "Hello! $user";

?>
</body>

</html>

<END CODE EXAMPLE>

On Site1 this works fine. You get the sessionID and a link to
session_test2.php. When you follow the link, session_test2.php displays
the contents of the $_SESSION['user'] variable.

On Site1DEV however, you see the sessionID on session_test.php and the
$_SESSION['user'] variable, but when you follow the link to
session_test2.php, the contents of the $_SESSION['user'] are blank.

What could be missing here in my server setup?

Thanks,

jeff

-----Original Message-----
From: Jeff McKeon
Sent: Thursday, January 29, 2004 11:49 AM
To: Gryffyn, Trevor; php-generallists.php.net
Subject: RE: [PHP] Sessions not working.

Further info.

If I echo the session_id() onto the page I do get an id returned.
So (correct me if I'm wrong) the session has started correctly with the
session_start() at the top of the page.

It just doesn't seem to save any of the session variables I set, or if
they are set, it can't retrieve them.

I get this error when trying to grab the $session['userid'] variable...

Notice: Undefined index: userid in C:\Inetpub\wwwOpSupDev\main.php on
line 37

-----Original Message-----
From: Gryffyn, Trevor [mailto:TGryffynair-cargo-inc.com]
Sent: Thursday, January 29, 2004 9:19 AM
To: php-generallists.php.net
Subject: RE: [PHP] Sessions not working.

Random thought.. Did you check your PHP.INI on the 'bad' server to make
sure that it's configured the same as the 'good' server?

Some things to check:

Session.use_cookies = 1
Session.auto_start = 0 // This is the first one I'd check. If you have
it set to =1 on the good server and aren't doing a session_start(), that
could do it I think

There are a bunch of other Session related parameters in PHP.INI..
Default timeout value.. If that's set too low, the session might
vaporize before you get a chance to see the info, etc.

Good luck!

-TG

> -----Original Message-----
> From: Jeff McKeon [mailto:jmckeontelaurus.com]
> Sent: Wednesday, January 28, 2004 7:44 PM
> To: php-generallists.php.net
> Subject: [PHP] Sessions not working.
>
>
> Pulling my hair out here.
>
> I've got an IIS5 webserver running a php website just fine.
>
> I created another web for a dev version of the first website.
> Installed PHP ect...
> When I load up the old websites files on the new site sessions won't
> work on the new site.
>
> For some reason on the new site's phpinfo.php page, there is no
> HTTP_COOKIE variable set under the "environmental" section.
>
> Also, under the PHP Variables section, there is no
> _REQUEST["PHPSESSID"] or _COOKIE["PHPSESSID"] variable.
>
> What have I missed!???
>
> Here is a section of the phpinfo() for both sites.
>
> Good Site:
>
> Environment
> Variable Value
> ALLUSERSPROFILE C:\Documents and Settings\All Users
> CommonProgramFiles C:\Program Files\Common Files
> COMPUTERNAME WS02TC07927
> ComSpec C:\WINNT\system32\cmd.exe
> CONTENT_LENGTH 0
> GATEWAY_INTERFACE CGI/1.1
> HTTPS off
> HTTP_ACCEPT */*
> HTTP_ACCEPT_LANGUAGE en-us
> HTTP_CONNECTION Keep-Alive
> HTTP_HOST opsup.telaurus.net
> HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
> HTTP_COOKIE PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
> HTTP_ACCEPT_ENCODING gzip, deflate
> INSTANCE_ID 3
> LOCAL_ADDR 10.16.1.21
> NUMBER_OF_PROCESSORS 1
> Os2LibPath C:\WINNT\system32\os2\dll;
> OS Windows_NT
> Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
> PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> PATH_INFO /phpinfo.php
> PATH_TRANSLATED C:\Inetpub\wwwOpSup\phpinfo.php
> PROCESSOR_ARCHITECTURE x86
> PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 10, GenuineIntel
> PROCESSOR_LEVEL 6
> PROCESSOR_REVISION 080a
> ProgramFiles C:\Program Files
> REMOTE_ADDR 10.16.2.55
> REMOTE_HOST 10.16.2.55
> REQUEST_METHOD GET
> SCRIPT_NAME /phpinfo.php
> SERVER_NAME opsup.telaurus.net
> SERVER_PORT 80
> SERVER_PORT_SECURE 0
> SERVER_PROTOCOL HTTP/1.1
> SERVER_SOFTWARE Microsoft-IIS/5.0
> SystemDrive C:
> SystemRoot C:\WINNT
> TEMP C:\WINNT\TEMP
> TMP C:\WINNT\TEMP
> USERPROFILE C:\Documents and Settings\NetShowServices
> windir C:\WINNT
>
>
> PHP Variables
> Variable Value
> _REQUEST["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f
> _COOKIE["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f
> _SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
> _SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files
> _SERVER["COMPUTERNAME"] WS02TC07927 _SERVER["ComSpec"]
> C:\\WINNT\\system32\\cmd.exe _SERVER["CONTENT_LENGTH"] 0
> _SERVER["GATEWAY_INTERFACE"] CGI/1.1
> _SERVER["HTTPS"] off
> _SERVER["HTTP_ACCEPT"] */*
> _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
> _SERVER["HTTP_CONNECTION"] Keep-Alive
> _SERVER["HTTP_HOST"] opsup.telaurus.net
> _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0;
> Windows NT
> 5.1)
> _SERVER["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
> _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
> _SERVER["INSTANCE_ID"] 3
> _SERVER["LOCAL_ADDR"] 10.16.1.21
> _SERVER["NUMBER_OF_PROCESSORS"] 1
> _SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
> _SERVER["OS"] Windows_NT
> _SERVER["Path"]
> C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
> _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> _SERVER["PATH_INFO"] /phpinfo.php
> _SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php
> _SERVER["PROCESSOR_ARCHITECTURE"] x86
> _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
> GenuineIntel
> _SERVER["PROCESSOR_LEVEL"] 6
> _SERVER["PROCESSOR_REVISION"] 080a
> _SERVER["ProgramFiles"] C:\\Program Files
> _SERVER["REMOTE_ADDR"] 10.16.2.55
> _SERVER["REMOTE_HOST"] 10.16.2.55
> _SERVER["REQUEST_METHOD"] GET
> _SERVER["SCRIPT_NAME"] /phpinfo.php
> _SERVER["SERVER_NAME"] opsup.telaurus.net
> _SERVER["SERVER_PORT"] 80
> _SERVER["SERVER_PORT_SECURE"] 0
> _SERVER["SERVER_PROTOCOL"] HTTP/1.1
> _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
> _SERVER["SystemDrive"] C:
> _SERVER["SystemRoot"] C:\\WINNT
> _SERVER["TEMP"] C:\\WINNT\\TEMP
> _SERVER["TMP"] C:\\WINNT\\TEMP
> _SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
> _SERVER["windir"] C:\\WINNT
> _SERVER["PHP_SELF"] /phpinfo.php
> _SERVER["argv"] Array
> (
> )
>
> _SERVER["argc"] 0
> _ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
> _ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
> _ENV["COMPUTERNAME"] WS02TC07927 _ENV["ComSpec"]
> C:\\WINNT\\system32\\cmd.exe _ENV["CONTENT_LENGTH"] 0
> _ENV["GATEWAY_INTERFACE"] CGI/1.1
> _ENV["HTTPS"] off
> _ENV["HTTP_ACCEPT"] */*
> _ENV["HTTP_ACCEPT_LANGUAGE"] en-us
> _ENV["HTTP_CONNECTION"] Keep-Alive
> _ENV["HTTP_HOST"] opsup.telaurus.net
> _ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
> 5.1)
> _ENV["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
> _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
> _ENV["INSTANCE_ID"] 3
> _ENV["LOCAL_ADDR"] 10.16.1.21
> _ENV["NUMBER_OF_PROCESSORS"] 1
> _ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
> _ENV["OS"] Windows_NT
> _ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
> _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> _ENV["PATH_INFO"] /phpinfo.php
> _ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php
> _ENV["PROCESSOR_ARCHITECTURE"] x86
> _ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
> GenuineIntel
> _ENV["PROCESSOR_LEVEL"] 6
> _ENV["PROCESSOR_REVISION"] 080a
> _ENV["ProgramFiles"] C:\\Program Files
> _ENV["REMOTE_ADDR"] 10.16.2.55
> _ENV["REMOTE_HOST"] 10.16.2.55
> _ENV["REQUEST_METHOD"] GET
> _ENV["SCRIPT_NAME"] /phpinfo.php
> _ENV["SERVER_NAME"] opsup.telaurus.net
> _ENV["SERVER_PORT"] 80
> _ENV["SERVER_PORT_SECURE"] 0
> _ENV["SERVER_PROTOCOL"] HTTP/1.1
> _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0
> _ENV["SystemDrive"] C:
> _ENV["SystemRoot"] C:\\WINNT
> _ENV["TEMP"] C:\\WINNT\\TEMP
> _ENV["TMP"] C:\\WINNT\\TEMP
> _ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
> _ENV["windir"] C:\\WINNT
>
> BAD site:
>
> Environment
> Variable Value
> ALLUSERSPROFILE C:\Documents and Settings\All Users
> CommonProgramFiles C:\Program Files\Common Files
> COMPUTERNAME WS02TC07927
> ComSpec C:\WINNT\system32\cmd.exe
> CONTENT_LENGTH 0
> GATEWAY_INTERFACE CGI/1.1
> HTTPS off
> HTTP_ACCEPT */*
> HTTP_ACCEPT_LANGUAGE en-us
> HTTP_CONNECTION Keep-Alive
> HTTP_HOST opsup_dev.telaurus.net
> HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
> HTTP_ACCEPT_ENCODING gzip, deflate
> INSTANCE_ID 6
> LOCAL_ADDR 10.16.1.24
> NUMBER_OF_PROCESSORS 1
> Os2LibPath C:\WINNT\system32\os2\dll;
> OS Windows_NT
> Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
> PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> PATH_INFO /phpinfo.php
> PATH_TRANSLATED C:\Inetpub\wwwOpSupDev\phpinfo.php
> PROCESSOR_ARCHITECTURE x86
> PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 10, GenuineIntel
> PROCESSOR_LEVEL 6
> PROCESSOR_REVISION 080a
> ProgramFiles C:\Program Files
> REMOTE_ADDR 10.16.2.55
> REMOTE_HOST 10.16.2.55
> REQUEST_METHOD GET
> SCRIPT_NAME /phpinfo.php
> SERVER_NAME opsup_dev.telaurus.net
> SERVER_PORT 80
> SERVER_PORT_SECURE 0
> SERVER_PROTOCOL HTTP/1.1
> SERVER_SOFTWARE Microsoft-IIS/5.0
> SystemDrive C:
> SystemRoot C:\WINNT
> TEMP C:\WINNT\TEMP
> TMP C:\WINNT\TEMP
> USERPROFILE C:\Documents and Settings\NetShowServices
> windir C:\WINNT
>
>
> PHP Variables
> Variable Value
> _SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
> _SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files
> _SERVER["COMPUTERNAME"] WS02TC07927 _SERVER["ComSpec"]
> C:\\WINNT\\system32\\cmd.exe _SERVER["CONTENT_LENGTH"] 0
> _SERVER["GATEWAY_INTERFACE"] CGI/1.1
> _SERVER["HTTPS"] off
> _SERVER["HTTP_ACCEPT"] */*
> _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
> _SERVER["HTTP_CONNECTION"] Keep-Alive
> _SERVER["HTTP_HOST"] opsup_dev.telaurus.net
> _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0;
> Windows NT
> 5.1)
> _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
> _SERVER["INSTANCE_ID"] 6
> _SERVER["LOCAL_ADDR"] 10.16.1.24
> _SERVER["NUMBER_OF_PROCESSORS"] 1
> _SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
> _SERVER["OS"] Windows_NT
> _SERVER["Path"]
> C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
> _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> _SERVER["PATH_INFO"] /phpinfo.php
> _SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php
> _SERVER["PROCESSOR_ARCHITECTURE"] x86
> _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
> GenuineIntel
> _SERVER["PROCESSOR_LEVEL"] 6
> _SERVER["PROCESSOR_REVISION"] 080a
> _SERVER["ProgramFiles"] C:\\Program Files
> _SERVER["REMOTE_ADDR"] 10.16.2.55
> _SERVER["REMOTE_HOST"] 10.16.2.55
> _SERVER["REQUEST_METHOD"] GET
> _SERVER["SCRIPT_NAME"] /phpinfo.php
> _SERVER["SERVER_NAME"] opsup_dev.telaurus.net
> _SERVER["SERVER_PORT"] 80
> _SERVER["SERVER_PORT_SECURE"] 0
> _SERVER["SERVER_PROTOCOL"] HTTP/1.1
> _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
> _SERVER["SystemDrive"] C:
> _SERVER["SystemRoot"] C:\\WINNT
> _SERVER["TEMP"] C:\\WINNT\\TEMP
> _SERVER["TMP"] C:\\WINNT\\TEMP
> _SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
> _SERVER["windir"] C:\\WINNT
> _SERVER["PHP_SELF"] /phpinfo.php
> _SERVER["argv"] Array
> (
> )
>
> _SERVER["argc"] 0
> _ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
> _ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
> _ENV["COMPUTERNAME"] WS02TC07927 _ENV["ComSpec"]
> C:\\WINNT\\system32\\cmd.exe _ENV["CONTENT_LENGTH"] 0
> _ENV["GATEWAY_INTERFACE"] CGI/1.1
> _ENV["HTTPS"] off
> _ENV["HTTP_ACCEPT"] */*
> _ENV["HTTP_ACCEPT_LANGUAGE"] en-us
> _ENV["HTTP_CONNECTION"] Keep-Alive
> _ENV["HTTP_HOST"] opsup_dev.telaurus.net
> _ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
> 5.1)
> _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
> _ENV["INSTANCE_ID"] 6
> _ENV["LOCAL_ADDR"] 10.16.1.24
> _ENV["NUMBER_OF_PROCESSORS"] 1
> _ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
> _ENV["OS"] Windows_NT
> _ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
> _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> _ENV["PATH_INFO"] /phpinfo.php
> _ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php
> _ENV["PROCESSOR_ARCHITECTURE"] x86
> _ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
> GenuineIntel
> _ENV["PROCESSOR_LEVEL"] 6
> _ENV["PROCESSOR_REVISION"] 080a
> _ENV["ProgramFiles"] C:\\Program Files
> _ENV["REMOTE_ADDR"] 10.16.2.55
> _ENV["REMOTE_HOST"] 10.16.2.55
> _ENV["REQUEST_METHOD"] GET
> _ENV["SCRIPT_NAME"] /phpinfo.php
> _ENV["SERVER_NAME"] opsup_dev.telaurus.net
> _ENV["SERVER_PORT"] 80
> _ENV["SERVER_PORT_SECURE"] 0
> _ENV["SERVER_PROTOCOL"] HTTP/1.1
> _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0
> _ENV["SystemDrive"] C:
> _ENV["SystemRoot"] C:\\WINNT
> _ENV["TEMP"] C:\\WINNT\\TEMP
> _ENV["TMP"] C:\\WINNT\\TEMP
> _ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
> _ENV["windir"] C:\\WINNT
>
> Jeff McKeon
> IT Manager
> Telaurus Communications LLC
> jmckeontelaurus.com
> (973) 889-8990 ex 209
>
> ***The information contained in this communication is confidential. It

> is intended only for the sole use of the recipient named above and may

> be legally privileged. If the reader of this message is not the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication, or any of its contents
> or attachments,
> is expressly prohibited. If you have received this communication in
> error, please re-send it to the sender and delete the
> original message,
> and any copy of it, from your computer system. Thank You.***
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Jeff McKeon wrote:
> Ok, there seems to be some confusion about my setup so here it is
> again..
>
> I have 1 physical server runing win2k server with IIS-5
>
> I have 4 virtual web servers configured in IIS-5, each with it's own IP
> address.
>
> Site1,Site2,Site1DEV,Site2DEV
>
> All using the same php.ini and all set up identically in IIS (as far as
> I can tell).
>
> Site1 has no problems saving or passing $_session[] variables between
> pages.
>
> Site1DEV, currently and exact copy of Site1, will not pass $_session[]
> variables between pages.
>
> <EXAMPLE CODE>
>
> Session_test.php
>
> <?php
> // Start session and set variable.
> session_start();
> $_SESSION['theSESSIONvarName'] = "is_set";
> $_SESSION['user'] = 'jsm';
> // Check if the session is set.
> if(isset($_SESSION['theSESSIONvarName']))
> {
> $sid = session_id();
> $text = $_SESSION['theSESSIONvarName'];
> $userid = $_SESSION['user'];
> echo "<html>";
> echo "<head><title>PHP Session Is Set!</title></head>";
> echo "<body><p>The session is set! The PHPSESSID is: $sid Text = $text
> and userid = $userid</p>";
> echo "<a href='session_test2.php'>link</a><br>";
> echo "</body></html>";
> }
> else
> {
> echo "<html>";
> echo "<head><title>PHP Session Is NOT Set!</title></head>";
> echo "<body><p>The session is NOT set! Check your server configuration
> or version.</p></body>";
> echo "</html>";
> }
> ?>
>
> Session_test2.php
>
> <?php
> session_start();
> ?>
> <html>
>
> <head>
> <title></title>
> </head>
>
> <body>
> <?php
> $user = $_SESSION['user'];
> echo "Hello! $user";
>
> ?>
> </body>
>
> </html>
>
> <END CODE EXAMPLE>
>
> On Site1 this works fine. You get the sessionID and a link to
> session_test2.php. When you follow the link, session_test2.php displays
> the contents of the $_SESSION['user'] variable.
>
> On Site1DEV however, you see the sessionID on session_test.php and the
> $_SESSION['user'] variable, but when you follow the link to
> session_test2.php, the contents of the $_SESSION['user'] are blank.
>
> What could be missing here in my server setup?
>
> Thanks,
>
> jeff
>
> -----Original Message-----
> From: Jeff McKeon
> Sent: Thursday, January 29, 2004 11:49 AM
> To: Gryffyn, Trevor; php-generallists.php.net
> Subject: RE: [PHP] Sessions not working.
>
>
> Further info.
>
> If I echo the session_id() onto the page I do get an id returned.
> So (correct me if I'm wrong) the session has started correctly with the
> session_start() at the top of the page.
>
> It just doesn't seem to save any of the session variables I set, or if
> they are set, it can't retrieve them.
>
> I get this error when trying to grab the $session['userid'] variable...
>
> Notice: Undefined index: userid in C:\Inetpub\wwwOpSupDev\main.php on
> line 37
>
> -----Original Message-----
> From: Gryffyn, Trevor [mailto:TGryffynair-cargo-inc.com]
> Sent: Thursday, January 29, 2004 9:19 AM
> To: php-generallists.php.net
> Subject: RE: [PHP] Sessions not working.
>
>
> Random thought.. Did you check your PHP.INI on the 'bad' server to make
> sure that it's configured the same as the 'good' server?
>
> Some things to check:
>
> Session.use_cookies = 1
> Session.auto_start = 0 // This is the first one I'd check. If you have
> it set to =1 on the good server and aren't doing a session_start(), that
> could do it I think
>
> There are a bunch of other Session related parameters in PHP.INI..
> Default timeout value.. If that's set too low, the session might
> vaporize before you get a chance to see the info, etc.
>
> Good luck!
>
> -TG
>
>
>>-----Original Message-----
>>From: Jeff McKeon [mailto:jmckeontelaurus.com]
>>Sent: Wednesday, January 28, 2004 7:44 PM
>>To: php-generallists.php.net
>>Subject: [PHP] Sessions not working.
>>
>>
>>Pulling my hair out here.
>>
>>I've got an IIS5 webserver running a php website just fine.
>>
>>I created another web for a dev version of the first website.
>>Installed PHP ect...
>>When I load up the old websites files on the new site sessions won't
>>work on the new site.
>>
>>For some reason on the new site's phpinfo.php page, there is no
>>HTTP_COOKIE variable set under the "environmental" section.
>>
>>Also, under the PHP Variables section, there is no
>>_REQUEST["PHPSESSID"] or _COOKIE["PHPSESSID"] variable.
>>
>>What have I missed!???
>>
>>Here is a section of the phpinfo() for both sites.
>>
>>Good Site:
>>
>>Environment
>>Variable Value
>>ALLUSERSPROFILE C:\Documents and Settings\All Users
>>CommonProgramFiles C:\Program Files\Common Files
>>COMPUTERNAME WS02TC07927
>>ComSpec C:\WINNT\system32\cmd.exe
>>CONTENT_LENGTH 0
>>GATEWAY_INTERFACE CGI/1.1
>>HTTPS off
>>HTTP_ACCEPT */*
>>HTTP_ACCEPT_LANGUAGE en-us
>>HTTP_CONNECTION Keep-Alive
>>HTTP_HOST opsup.telaurus.net
>>HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
>>HTTP_COOKIE PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
>>HTTP_ACCEPT_ENCODING gzip, deflate
>>INSTANCE_ID 3
>>LOCAL_ADDR 10.16.1.21
>>NUMBER_OF_PROCESSORS 1
>>Os2LibPath C:\WINNT\system32\os2\dll;
>>OS Windows_NT
>>Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
>>PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>>PATH_INFO /phpinfo.php
>>PATH_TRANSLATED C:\Inetpub\wwwOpSup\phpinfo.php
>>PROCESSOR_ARCHITECTURE x86
>>PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 10, GenuineIntel
>>PROCESSOR_LEVEL 6
>>PROCESSOR_REVISION 080a
>>ProgramFiles C:\Program Files
>>REMOTE_ADDR 10.16.2.55
>>REMOTE_HOST 10.16.2.55
>>REQUEST_METHOD GET
>>SCRIPT_NAME /phpinfo.php
>>SERVER_NAME opsup.telaurus.net
>>SERVER_PORT 80
>>SERVER_PORT_SECURE 0
>>SERVER_PROTOCOL HTTP/1.1
>>SERVER_SOFTWARE Microsoft-IIS/5.0
>>SystemDrive C:
>>SystemRoot C:\WINNT
>>TEMP C:\WINNT\TEMP
>>TMP C:\WINNT\TEMP
>>USERPROFILE C:\Documents and Settings\NetShowServices
>>windir C:\WINNT
>>
>>
>>PHP Variables
>>Variable Value
>>_REQUEST["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f
>>_COOKIE["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f
>>_SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
>>_SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files
>>_SERVER["COMPUTERNAME"] WS02TC07927
>>_SERVER["ComSpec"] C:\\WINNT\\system32\\cmd.exe
>>_SERVER["CONTENT_LENGTH"] 0
>>_SERVER["GATEWAY_INTERFACE"] CGI/1.1
>>_SERVER["HTTPS"] off
>>_SERVER["HTTP_ACCEPT"] */*
>>_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
>>_SERVER["HTTP_CONNECTION"] Keep-Alive
>>_SERVER["HTTP_HOST"] opsup.telaurus.net
>>_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0;
>>Windows NT
>>5.1)
>>_SERVER["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
>>_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
>>_SERVER["INSTANCE_ID"] 3
>>_SERVER["LOCAL_ADDR"] 10.16.1.21
>>_SERVER["NUMBER_OF_PROCESSORS"] 1
>>_SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
>>_SERVER["OS"] Windows_NT
>>_SERVER["Path"]
>>C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
>>_SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>>_SERVER["PATH_INFO"] /phpinfo.php
>>_SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php
>>_SERVER["PROCESSOR_ARCHITECTURE"] x86
>>_SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
>>GenuineIntel
>>_SERVER["PROCESSOR_LEVEL"] 6
>>_SERVER["PROCESSOR_REVISION"] 080a
>>_SERVER["ProgramFiles"] C:\\Program Files
>>_SERVER["REMOTE_ADDR"] 10.16.2.55
>>_SERVER["REMOTE_HOST"] 10.16.2.55
>>_SERVER["REQUEST_METHOD"] GET
>>_SERVER["SCRIPT_NAME"] /phpinfo.php
>>_SERVER["SERVER_NAME"] opsup.telaurus.net
>>_SERVER["SERVER_PORT"] 80
>>_SERVER["SERVER_PORT_SECURE"] 0
>>_SERVER["SERVER_PROTOCOL"] HTTP/1.1
>>_SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
>>_SERVER["SystemDrive"] C:
>>_SERVER["SystemRoot"] C:\\WINNT
>>_SERVER["TEMP"] C:\\WINNT\\TEMP
>>_SERVER["TMP"] C:\\WINNT\\TEMP
>>_SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
>>_SERVER["windir"] C:\\WINNT
>>_SERVER["PHP_SELF"] /phpinfo.php
>>_SERVER["argv"] Array
>>(
>>)
>>
>>_SERVER["argc"] 0
>>_ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
>>_ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
>>_ENV["COMPUTERNAME"] WS02TC07927
>>_ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe
>>_ENV["CONTENT_LENGTH"] 0
>>_ENV["GATEWAY_INTERFACE"] CGI/1.1
>>_ENV["HTTPS"] off
>>_ENV["HTTP_ACCEPT"] */*
>>_ENV["HTTP_ACCEPT_LANGUAGE"] en-us
>>_ENV["HTTP_CONNECTION"] Keep-Alive
>>_ENV["HTTP_HOST"] opsup.telaurus.net
>>_ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
>>5.1)
>>_ENV["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
>>_ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
>>_ENV["INSTANCE_ID"] 3
>>_ENV["LOCAL_ADDR"] 10.16.1.21
>>_ENV["NUMBER_OF_PROCESSORS"] 1
>>_ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
>>_ENV["OS"] Windows_NT
>>_ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
>>_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>>_ENV["PATH_INFO"] /phpinfo.php
>>_ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php
>>_ENV["PROCESSOR_ARCHITECTURE"] x86
>>_ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
>>GenuineIntel
>>_ENV["PROCESSOR_LEVEL"] 6
>>_ENV["PROCESSOR_REVISION"] 080a
>>_ENV["ProgramFiles"] C:\\Program Files
>>_ENV["REMOTE_ADDR"] 10.16.2.55
>>_ENV["REMOTE_HOST"] 10.16.2.55
>>_ENV["REQUEST_METHOD"] GET
>>_ENV["SCRIPT_NAME"] /phpinfo.php
>>_ENV["SERVER_NAME"] opsup.telaurus.net
>>_ENV["SERVER_PORT"] 80
>>_ENV["SERVER_PORT_SECURE"] 0
>>_ENV["SERVER_PROTOCOL"] HTTP/1.1
>>_ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0
>>_ENV["SystemDrive"] C:
>>_ENV["SystemRoot"] C:\\WINNT
>>_ENV["TEMP"] C:\\WINNT\\TEMP
>>_ENV["TMP"] C:\\WINNT\\TEMP
>>_ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
>>_ENV["windir"] C:\\WINNT
>>
>>BAD site:
>>
>>Environment
>>Variable Value
>>ALLUSERSPROFILE C:\Documents and Settings\All Users
>>CommonProgramFiles C:\Program Files\Common Files
>>COMPUTERNAME WS02TC07927
>>ComSpec C:\WINNT\system32\cmd.exe
>>CONTENT_LENGTH 0
>>GATEWAY_INTERFACE CGI/1.1
>>HTTPS off
>>HTTP_ACCEPT */*
>>HTTP_ACCEPT_LANGUAGE en-us
>>HTTP_CONNECTION Keep-Alive
>>HTTP_HOST opsup_dev.telaurus.net
>>HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
>>HTTP_ACCEPT_ENCODING gzip, deflate
>>INSTANCE_ID 6
>>LOCAL_ADDR 10.16.1.24
>>NUMBER_OF_PROCESSORS 1
>>Os2LibPath C:\WINNT\system32\os2\dll;
>>OS Windows_NT
>>Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
>>PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>>PATH_INFO /phpinfo.php
>>PATH_TRANSLATED C:\Inetpub\wwwOpSupDev\phpinfo.php
>>PROCESSOR_ARCHITECTURE x86
>>PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 10, GenuineIntel
>>PROCESSOR_LEVEL 6
>>PROCESSOR_REVISION 080a
>>ProgramFiles C:\Program Files
>>REMOTE_ADDR 10.16.2.55
>>REMOTE_HOST 10.16.2.55
>>REQUEST_METHOD GET
>>SCRIPT_NAME /phpinfo.php
>>SERVER_NAME opsup_dev.telaurus.net
>>SERVER_PORT 80
>>SERVER_PORT_SECURE 0
>>SERVER_PROTOCOL HTTP/1.1
>>SERVER_SOFTWARE Microsoft-IIS/5.0
>>SystemDrive C:
>>SystemRoot C:\WINNT
>>TEMP C:\WINNT\TEMP
>>TMP C:\WINNT\TEMP
>>USERPROFILE C:\Documents and Settings\NetShowServices
>>windir C:\WINNT
>>
>>
>>PHP Variables
>>Variable Value
>>_SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
>>_SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files
>>_SERVER["COMPUTERNAME"] WS02TC07927
>>_SERVER["ComSpec"] C:\\WINNT\\system32\\cmd.exe
>>_SERVER["CONTENT_LENGTH"] 0
>>_SERVER["GATEWAY_INTERFACE"] CGI/1.1
>>_SERVER["HTTPS"] off
>>_SERVER["HTTP_ACCEPT"] */*
>>_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
>>_SERVER["HTTP_CONNECTION"] Keep-Alive
>>_SERVER["HTTP_HOST"] opsup_dev.telaurus.net
>>_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0;
>>Windows NT
>>5.1)
>>_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
>>_SERVER["INSTANCE_ID"] 6
>>_SERVER["LOCAL_ADDR"] 10.16.1.24
>>_SERVER["NUMBER_OF_PROCESSORS"] 1
>>_SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
>>_SERVER["OS"] Windows_NT
>>_SERVER["Path"]
>>C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
>>_SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>>_SERVER["PATH_INFO"] /phpinfo.php
>>_SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php
>>_SERVER["PROCESSOR_ARCHITECTURE"] x86
>>_SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
>>GenuineIntel
>>_SERVER["PROCESSOR_LEVEL"] 6
>>_SERVER["PROCESSOR_REVISION"] 080a
>>_SERVER["ProgramFiles"] C:\\Program Files
>>_SERVER["REMOTE_ADDR"] 10.16.2.55
>>_SERVER["REMOTE_HOST"] 10.16.2.55
>>_SERVER["REQUEST_METHOD"] GET
>>_SERVER["SCRIPT_NAME"] /phpinfo.php
>>_SERVER["SERVER_NAME"] opsup_dev.telaurus.net
>>_SERVER["SERVER_PORT"] 80
>>_SERVER["SERVER_PORT_SECURE"] 0
>>_SERVER["SERVER_PROTOCOL"] HTTP/1.1
>>_SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
>>_SERVER["SystemDrive"] C:
>>_SERVER["SystemRoot"] C:\\WINNT
>>_SERVER["TEMP"] C:\\WINNT\\TEMP
>>_SERVER["TMP"] C:\\WINNT\\TEMP
>>_SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
>>_SERVER["windir"] C:\\WINNT
>>_SERVER["PHP_SELF"] /phpinfo.php
>>_SERVER["argv"] Array
>>(
>>)
>>
>>_SERVER["argc"] 0
>>_ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
>>_ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
>>_ENV["COMPUTERNAME"] WS02TC07927
>>_ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe
>>_ENV["CONTENT_LENGTH"] 0
>>_ENV["GATEWAY_INTERFACE"] CGI/1.1
>>_ENV["HTTPS"] off
>>_ENV["HTTP_ACCEPT"] */*
>>_ENV["HTTP_ACCEPT_LANGUAGE"] en-us
>>_ENV["HTTP_CONNECTION"] Keep-Alive
>>_ENV["HTTP_HOST"] opsup_dev.telaurus.net
>>_ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
>>5.1)
>>_ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
>>_ENV["INSTANCE_ID"] 6
>>_ENV["LOCAL_ADDR"] 10.16.1.24
>>_ENV["NUMBER_OF_PROCESSORS"] 1
>>_ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
>>_ENV["OS"] Windows_NT
>>_ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
>>_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>>_ENV["PATH_INFO"] /phpinfo.php
>>_ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php
>>_ENV["PROCESSOR_ARCHITECTURE"] x86
>>_ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
>>GenuineIntel
>>_ENV["PROCESSOR_LEVEL"] 6
>>_ENV["PROCESSOR_REVISION"] 080a
>>_ENV["ProgramFiles"] C:\\Program Files
>>_ENV["REMOTE_ADDR"] 10.16.2.55
>>_ENV["REMOTE_HOST"] 10.16.2.55
>>_ENV["REQUEST_METHOD"] GET
>>_ENV["SCRIPT_NAME"] /phpinfo.php
>>_ENV["SERVER_NAME"] opsup_dev.telaurus.net
>>_ENV["SERVER_PORT"] 80
>>_ENV["SERVER_PORT_SECURE"] 0
>>_ENV["SERVER_PROTOCOL"] HTTP/1.1
>>_ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0
>>_ENV["SystemDrive"] C:
>>_ENV["SystemRoot"] C:\\WINNT
>>_ENV["TEMP"] C:\\WINNT\\TEMP
>>_ENV["TMP"] C:\\WINNT\\TEMP
>>_ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
>>_ENV["windir"] C:\\WINNT
>>
>>Jeff McKeon
>>IT Manager
>>Telaurus Communications LLC
>>jmckeontelaurus.com
>>(973) 889-8990 ex 209
>>
>>***The information contained in this communication is confidential. It
>
>
>>is intended only for the sole use of the recipient named above and may
>
>
>>be legally privileged. If the reader of this message is not the
>>intended recipient, you are hereby notified that any dissemination,
>>distribution
>>or copying of this communication, or any of its contents or
>>attachments,
>>is expressly prohibited. If you have received this communication in
>>error, please re-send it to the sender and delete the
>>original message,
>>and any copy of it, from your computer system. Thank You.***
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
Well in that case do a dump_vars($_session[],$_session[]) for each
session variable you register and see if anything is listed.
Jas

attached mail follows:


Jeff McKeon wrote:

> Figured it out, I think.
>
> PHP doesn't like the underscore in my website name.
>
> http://site_dev.foo.com/ doesn't work but
> http://192.168.2.50/ does.
>
> If I rename the site in DNS to siteDEV.foo.com then it works fine.
>
> Any ideas why?
<snip>

The underscore (_) is not a valid character in URL's.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

attached mail follows:


Jas <mailto:jason.gerfenscl.utah.edu>
    on Thursday, January 29, 2004 1:06 PM said:

[snipped about 425 useless lines]

> Well in that case do a dump_vars($_session[],$_session[]) for each
> session variable you register and see if anything is listed.
> Jas

C'mon dude. Some of use are on dialup (not me now, but when I get home)
and that email REALLY needed to be trimmed.

Chris.

attached mail follows:


Chris W. Parker wrote:
> C'mon dude. Some of use are on dialup (not me now, but when I get home)
> and that email REALLY needed to be trimmed.
>
>
>
> Chris.

I remember back in the day....

We used to do stuff like this.....

To the people who were using.....

a 300 baud modem or slower......

when we had 900 or better.....

Just to mess with them.

Sorry, couldn't resist. ;)

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

attached mail follows:


John Nichel wrote:

> Chris W. Parker wrote:
>
>> C'mon dude. Some of use are on dialup (not me now, but when I get home)
>> and that email REALLY needed to be trimmed.
>>
>>
>>
>> Chris.
>
>
> I remember back in the day....
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> We used to do stuff like this.....
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> To the people who were using.....
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> a 300 baud modem or slower......
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> when we had 900 or better.....
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Just to mess with them.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Sorry, couldn't resist. ;)
>
lmao!

attached mail follows:


That's GREAT ! :-)

> I remember back in the day....
>
>

<BIG SNIP>

> Sorry, couldn't resist. ;)

attached mail follows:


There are a lot of words in the spelling checking in Microsoft products
that isn't part of what you'd consider a standard 'dictionary', like
city names and such.

I think for spell checking, using the internal spell check in Word would
be best, but if you ever decided to work on Word<->PHP integration, look
into COM.

I havn't played around with it a lot, but someone at my work doubted I
could use PHP to control Microsoft MapPoint. I got just far enough to
prove them wrong before getting busy.

$mappoint = new COM("mappoint.application") or die("Unable to
instanciate mappoint");
print "Loaded mappoint, version {$mappoint->Version}\n";

$map = new COM("mappoint.map") or die ("Unable to instanciate map");
$map = $mappoint->NewMap or die ("Unable to NewMap");
$map->Name = "Test" or die ("Unable to Name");;
$mappoint->Visible = 1;

You should be able to do similar things with almost all the latest
Microsoft applications, even if they don't have an obvious VBA editor
built in like Access and Excel do.

-TG

> -----Original Message-----
> From: Alex King [mailto:rabbitsonthewebhotmail.com]
> Sent: Thursday, January 29, 2004 1:52 PM
> To: php-generallists.php.net
> Subject: Re: [PHP] Spell checker in PHP
>
>
> Justin,
>
> I don't know what version of Word you have, but XP seems to
> do fine with
> correcting city names.
>
> Alex
>
> "Justin French" <justinindent.com.au> wrote in message
> news:2E959506-4432-11D8-9491-000A9579CE3Aindent.com.au...
> > On Saturday, January 10, 2004, at 06:57 AM, Robin Kopetzky wrote:
> >
> > > Good afternoon!
> > >
> > > I know aspell and pspell are available but pspell won't work in my
> > > Windows
> > > environment. Does anyone know how to tie into Word's spell checker
> > > using php
> > > or another spell check option? What I need is a way to
> check spelling
> > > on
> > > city/state names and select the most appropriate if the
> user mangles
> > > the