Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Small php question

Author
Message
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 16th Dec 2003 20:35 Edited at: 16th Dec 2003 20:35
I hope thisi s small enough to be allowed here

I'm making a mod ofr invision which will generate an XML / RSS feed with all the latest posts in - my problem is that an xml file starts with

<?xml version="1.0" ?>

however this is also used by PHP, so it is interpreted as php

I've tried this:



And this



And this



but after doing the last one I now get permanent Page Unavailable errors I've put the code back 2 how it was but the file seems inaccessible.

Anyway, does anybody know who to do what I'm after? Is there some escapce char involved? (like /")

"Nowadays more and more of our imports are coming from abroad" - George Bush

Mercenaries in Space demo @ http://www.davidtattersall.me.uk
adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 16th Dec 2003 20:39


short n sweet post

Can I ask you a Question?
What is it?
It's an interrogative form of sentence, used to test knowledge. But that's not important right now.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 16th Dec 2003 20:52 Edited at: 16th Dec 2003 20:56
thanks I'll try that, my only concern was that the <? and ?> might confuse the php compiler.

"Nowadays more and more of our imports are coming from abroad" - George Bush

Mercenaries in Space demo @ http://www.davidtattersall.me.uk
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Dec 2003 21:47
They are ignored inside strings.


BLUE GUI Plugin:http://blue.robert-knight.net / BLUE IDE http://blueide.sf.net-Free Replacement editor for DBPro
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 16th Dec 2003 22:12 Edited at: 16th Dec 2003 22:12
Thanks guys.

Well it worked for the first few times then I get a page cannot be displayed error again

if nebody can access [href]http//www.davidtattersall.me.uk/ibprss.php[/href] and get some XML when u do view -> source please tell me

switched into MSN mode then

"Nowadays more and more of our imports are coming from abroad" - George Bush

Mercenaries in Space demo @ http://www.davidtattersall.me.uk
Great Knight
21
Years of Service
User Offline
Joined: 25th Feb 2003
Location:
Posted: 17th Dec 2003 02:18
<script language="php"></script>
This is the way you do it if you are doing other scripts like XML in side your page.

AMD Atherlon 2400+ XP, 380 DDr memeory, ATI Radeon 9000 64 DDR, Windos XP home edition.
-----------------------And a Katana.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Dec 2003 11:51 Edited at: 17th Dec 2003 11:51
Though aren't most xml pages like this:

<?xml version="1.0">
<tag>
<info>
</info>
</tag>
</xml>

And the <script> tag is html, isn't it?

"Nowadays more and more of our imports are coming from abroad" - George Bush

Mercenaries in Space demo @ http://www.davidtattersall.me.uk

Login to post a reply

Server time is: 2024-11-24 08:39:57
Your offset time is: 2024-11-24 08:39:57