[Xitami] Xitami And PHP

SandMan xitami@lists.xitami.org
Fri, 21 Dec 2001 12:32:55 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_012D_01C18A1B.9D594D30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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_012D_01C18A1B.9D594D30
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>I'm having a slight problem getting =
this to run=20
properly.&nbsp; I've set the filter's up, .php =3D source of php.exe, =
and have the=20
latest version of php 4.1.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My problem is this, I have a "Picture =
Gallery" page=20
written in php that you can upload images to, and it is supposed to show =
these=20
images&nbsp;in the image index upon a succesful upload.&nbsp; I've =
tested this=20
script on IIS 5.0 and it was working fine.&nbsp; Now when I run it, =
after the=20
upload, it doesn't show the image I just uploaded.&nbsp; The only way to =
get the=20
images to appear is to open the script, edit it, say add a comment //a =
or=20
something like that, save the script, then refresh the browser.&nbsp; =
It's=20
almost as if Xitami is not allowing php.exe to be recalled.&nbsp; It's =
very=20
strange behaviour and I've found no way around it beyond my little edit =
the=20
source code/refresh fixer.&nbsp; Any ideas on why it would be doing=20
this?&nbsp;&nbsp;&nbsp;Think it could possibly&nbsp;be the Xitami =
server?&nbsp;=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT>&nbsp;</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.&nbsp; Here's an Example.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Say:&nbsp;&nbsp; <A=20
href=3D"http://www.someplace.com/picture.php">http://www.someplace.com/pi=
cture.php</A>&nbsp;=20
is called.&nbsp;&nbsp; Within picture.php is a call to $PHP_SELF, which =
is just=20
supposed to be the previous link.&nbsp; This is not the case tho in =
Xitami, it=20
ends up being <A=20
href=3D"http://www.someplace.com/">http://www.someplace.com/</A>&nbsp; =
without the=20
picture.php&nbsp; So I've had to edit a lot of scripts to add the actual =
file=20
name.&nbsp; Not sure if this would be PHP related, or Xitmai related, =
but I'd=20
figured I'd mention that too.&nbsp; Any idea's on either of these issues =
would=20
be greatly appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your time,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>~SandMan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_012D_01C18A1B.9D594D30--


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com