[Xitami] Problems running phpadsnew under Xitami

TW xitami@lists.xitami.org
Mon, 24 Feb 2003 13:01:12 +0100


--=====================_6821178==_.ALT
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable

At 19:13 23.02.2003 -0800, you wrote:
>So how would I go about changing the relative URL to an absolute URL?

???
Okay, here we go:

1) Load the file in question into your favourite text editor (e.g. Notepad,=
=20
Textpad, vi, MS Word, ...)

2) locate the occurences of relative URIs in header("Location:=20
blablablah.xyz") where blahblahblah.xyz _IS_ the relative URI

3) find out the the name of your webserver and the path to your script=20
(blahblahblah.xyz) relative to the document root of your webserver (you=20
probably have some knowledge of the hostname where you want to deploy your=
=20
application to, if not, ask someone next to you; when you try to deploy=20
your app, you probably already found out where your webserver's document=20
root is - otherwise you couldn't deploy it all)

3 a) (altenative to 3) ) learn some php, it provides you with variables &=20
functions, finding out your hostname and the path to your script, in case=20
3) didn't give you the desired results or in case you think of a more=20
generic approach to our task in question

4) from step 3 or 3a we get something like=20
http://www.myhost.org/nested/path/to/my/script/called/blahblahblahblah.xyz=
=20
. In your editor move the cursor in front of blahblahblah.xyz and type=20
http://www.myhost.org/nested/path/to/my/script/called/ .

5) Save your file in question.

6) Reload it in the browser.

7) Voil=E1

Actually, it is less difficult than it looks at first sight. Give it a try=
=20
and'you're on your way to a cool IT expert.

Regards,
tony
--=====================_6821178==_.ALT
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
At 19:13 23.02.2003 -0800, you wrote:<br>
<blockquote type=3Dcite class=3Dcite cite><font face=3D"arial" size=3D2 colo=
r=3D"#0000FF">So
how would I go about changing the relative URL to an absolute
URL?</font></blockquote><font size=3D2><br>
???<br>
Okay, here we go:<br><br>
1) Load the file in question into your favourite text editor (e.g.
Notepad, Textpad, vi, MS Word, ...)<br><br>
2) locate the occurences of relative URIs in header(&quot;Location:
blablablah.xyz&quot;) where blahblahblah.xyz _IS_ the relative
URI<br><br>
3) find out the the name of your webserver and the path to your script
(blahblahblah.xyz) relative to the document root of your webserver (you
probably have some knowledge of the hostname where you want to deploy
your application to, if not, ask someone next to you; when you try to
deploy your app, you probably already found out where your webserver's
document root is - otherwise you couldn't deploy it all)<br><br>
3 a) (altenative to 3) ) learn some php, it provides you with variables
&amp; functions, finding out your hostname and the path to your script,
in case 3) didn't give you the desired results or in case you think of a
more generic approach to our task in question<br><br>
4) from step 3 or 3a we get something like
<a=
 href=3D"http://www.myhost.org/nested/path/to/my/script/called/blahblahblahb=
lah.xyz" eudora=3D"autourl">http://www.myhost.org/nested/path/to/my/script/c=
alled/blahblahblahblah.xyz</a>
. In your editor move the cursor in front of blahblahblah.xyz and type <a=
 href=3D"http://www.myhost.org/nested/path/to/my/script/called/"=
 eudora=3D"autourl">http://www.myhost.org/nested/path/to/my/script/called/</=
a> .<br><br>
5) Save your file in question.<br><br>
6) Reload it in the browser.<br><br>
7) Voil=E1<br><br>
Actually, it is less difficult than it looks at first sight. Give it a try=
 and'you're on your way to a cool IT expert.<br><br>
Regards,<br>
tony</font></html>

--=====================_6821178==_.ALT--