php error on winxp
Posted: Wed Jun 18, 2003 1:02 am
hope this is the right place to post...
since i moved my webserver to winxp pro i get the following error
warning: use of undefined constant mon assumed 'mon' in i:\http\index.inc online x
the soure is like this
if ($date[mon]==1) { $date[mon]=01;}
so what ... it worked in win98 and i just copied it over!
here is what i use to serve:
php: 4.1.1
apache: 1.3.27
php is loaded in apache via cgi binary (install.txt)
if iam using the newest php this error goes away and a new one comes up:
if i write a link like <a href='index.php?ref=link'>link</a>
and the sourece is like this:
switch ($ref) {
case 'link': include ("data/link.inc");
break;
}
it simply dont work
this one is also just copyed from win98
so if anyone knows what php / apache versions i should use with winxp pro and how to include php in apache
please write back! ... you may also write if you know a solution for the problems.
greetings from germany
netter
since i moved my webserver to winxp pro i get the following error
warning: use of undefined constant mon assumed 'mon' in i:\http\index.inc online x
the soure is like this
if ($date[mon]==1) { $date[mon]=01;}
so what ... it worked in win98 and i just copied it over!
here is what i use to serve:
php: 4.1.1
apache: 1.3.27
php is loaded in apache via cgi binary (install.txt)
if iam using the newest php this error goes away and a new one comes up:
if i write a link like <a href='index.php?ref=link'>link</a>
and the sourece is like this:
switch ($ref) {
case 'link': include ("data/link.inc");
break;
}
it simply dont work
this one is also just copyed from win98
so if anyone knows what php / apache versions i should use with winxp pro and how to include php in apache
please write back! ... you may also write if you know a solution for the problems.
greetings from germany
netter