[Xitami] Xitami And PHP
SandMan
xitami@lists.xitami.org
Fri, 21 Dec 2001 13:07:57 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_035E_01C18A20.826331D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Forgot to Mention I'm on Win 2K Server and Using Xitami 2.5B5
~SandMan
----- Original Message -----=20
From: SandMan=20
To: Xitami@lists.xitami.org=20
Sent: Friday, December 21, 2001 12:32 PM
Subject: [Xitami] Xitami And PHP
I'm having a slight problem getting this to run properly. I've set =
the filter's up, .php =3D source of php.exe, and have the latest version =
of php 4.1.0
My problem is this, I have a "Picture Gallery" page written in php =
that you can upload images to, and it is supposed to show these images =
in the image index upon a succesful upload. I've tested this script on =
IIS 5.0 and it was working fine. Now when I run it, after the upload, =
it doesn't show the image I just uploaded. The only way to get the =
images to appear is to open the script, edit it, say add a comment //a =
or something like that, save the script, then refresh the browser. It's =
almost as if Xitami is not allowing php.exe to be recalled. It's very =
strange behaviour and I've found no way around it beyond my little edit =
the source code/refresh fixer. Any ideas on why it would be doing this? =
Think it could possibly be the Xitami server? =20
I've also noticed that the $PHP_SELF function, doesn't call the =
path/filename, the whole weblink + php script, it only calls the root =
directory. Here's an Example.
Say: http://www.someplace.com/picture.php is called. Within =
picture.php is a call to $PHP_SELF, which is just supposed to be the =
previous link. This is not the case tho in Xitami, it ends up being =
http://www.someplace.com/ without the picture.php So I've had to edit =
a lot of scripts to add the actual file name. Not sure if this would be =
PHP related, or Xitmai related, but I'd figured I'd mention that too. =
Any idea's on either of these issues would be greatly appreciated.
Thanks for your time,
~SandMan
------=_NextPart_000_035E_01C18A20.826331D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Forgot to Mention I'm on Win 2K Server =
and Using=20
Xitami 2.5B5</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>~SandMan</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dlinkmaster2003@yahoo.com=20
href=3D"mailto:linkmaster2003@yahoo.com">SandMan</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DXitami@lists.xitami.org=20
href=3D"mailto:Xitami@lists.xitami.org">Xitami@lists.xitami.org</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, December 21, 2001 =
12:32=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Xitami] Xitami And =
PHP</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>I'm having a slight problem getting =
this to run=20
properly. I've set the filter's up, .php =3D source of php.exe, =
and have=20
the latest version of php 4.1.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>My problem is this, I have a "Picture =
Gallery"=20
page written in php that you can upload images to, and it is supposed =
to show=20
these images in the image index upon a succesful upload. =
I've=20
tested this script on IIS 5.0 and it was working fine. Now when =
I run=20
it, after the upload, it doesn't show the image I just uploaded. =
The=20
only way to get the images to appear is to open the script, edit it, =
say add a=20
comment //a or something like that, save the script, then refresh the=20
browser. It's almost as if Xitami is not allowing php.exe to be=20
recalled. It's very strange behaviour and I've found no way =
around it=20
beyond my little edit the source code/refresh fixer. Any ideas =
on why it=20
would be doing this? Think it could possibly be =
the=20
Xitami server? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I've also noticed that the $PHP_SELF =
function,=20
doesn't call the path/filename, the whole weblink + php script, it =
only calls=20
the root directory. Here's an Example.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Say: <A=20
=
href=3D"http://www.someplace.com/picture.php">http://www.someplace.com/pi=
cture.php</A> =20
is called. Within picture.php is a call to $PHP_SELF, =
which is=20
just supposed to be the previous link. This is not the case tho =
in=20
Xitami, it ends up being <A=20
href=3D"http://www.someplace.com/">http://www.someplace.com/</A> =
without=20
the picture.php So I've had to edit a lot of scripts to add the =
actual=20
file name. Not sure if this would be PHP related, or Xitmai =
related, but=20
I'd figured I'd mention that too. Any idea's on either of these =
issues=20
would be greatly appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your time,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>~SandMan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_035E_01C18A20.826331D0--
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com