Justtechjobs.com Find a programming school near you






Online Campus Both


php-windows | 2002071

Re: [PHP-WIN] case-sensitive From: Scott Hurring (scottspam <email protected>)
Date: 07/02/02

The following script:
$noVar = "Hey";
print "1: $noVar \n";
print "2: $novar \n";

produces this output:
1: Hey
2:

on my Win2k box with PHP 4.2.1.
i can't see why your machine would output any
differently.... AFAIK, PHP has always been
case-sensitive for variables..... what version of
PHP are you using?

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Chris Schmidt" <cschmidt <email protected>> wrote in message
news:20020702204840.33975.qmail <email protected>
> Yes includes work My problem is with case of vars
>
> if I have this on my  Win2k
>
>
> $includePath ="test";
> echo $includepath;
>
> the output is test
>
> if I  do the same on a unix box the output is nothing
>
> Case Sesitivaty seems to have been turned of on my Win2K box.  I would like
> it back on.
>
> "Scott Hurring" <scottspam <email protected>> wrote in message
> news:20020702201401.81555.qmail <email protected>
> > I assure you, include() does work ;-)
> >
> > Verify that the file is indeed present in the 'include_path' (as set
> > manually by ini_set() or in 'php.ini'), and make sure that the
> > server is actually parsing PHP files correctly.
> >
> > --
> > Scott Hurring
> > Systems Programmer
> > EAC Corporation
> > scott (*) eac.com
> > --
> > "Chris Schmidt" <cschmidt <email protected>> wrote in message
> > news:20020702001402.52274.qmail <email protected>
> > > include("config.php");
> > > does not work;
> > >
> > > "Peter" <newsaddress <email protected>> wrote in message
> > > news:20020625213620.45536.qmail <email protected>
> > > > PHP variable names are case sensitive aren't they?
> > > >
> > > > It might just be that config.php can be found by Win2000 without the
> > > > $includepath-as if you were typing include("config.php");
> > > >
> > > >
> > > > "Chris Schmidt" <cschmidt <email protected>> wrote in message
> > > > news:20020625212839.40893.qmail <email protected>
> > > > > Sorry.
> > > > >
> > > > > I have an Windows 2000 box running PHP as CGI
> > > > >
> > > > > I use this
> > > > > $includePath ="../";
> > > > > include($includepath."config.php");
> > > > >
> > > > > Works on my Windows 2000
> > > > >
> > > > > not on unix.
> > > > >
> > > > > I change $includePath to $includepath and it works on both.
> > > > >
> > > > > "Stuart Dallas" <stuart <email protected>> wrote in message
> > > > > news:359854910.20020625221644 <email protected>
> > > > > > On Tuesday, June 25, 2002 at 9:27:42 PM, "Chris Schmidt" wrote:
> > > > > >
> > > > > > > Why on windows is PHP not case-sensitive but on Unix it is?  And
> can
> > > > > this be
> > > > > > > configured
> > > > > >
> > > > > > If you mean filenames, this is a choice the filesystem designers
> made
> > > > and
> > > > > there
> > > > > > is no way to change it. If this is not what you mean, please be
> more
> > > > > specific.
> > > > > >
> > > > > > --
> > > > > > Stuart
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>

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