PHP script to convert XML to HTML

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aufkes
Forum Newbie
Posts: 3
Joined: Mon Aug 02, 2004 3:19 pm

PHP script to convert XML to HTML

Post by aufkes »

Hi folks,
I have two questions.

I'm looking for a PHP script to convet a XML file to a HTML file on the fly. Do you know where I can find this?.

On the other hand, I create a PDF file using PHP. When the PDF is open on a new web browser, and after a delay of 1 minute, the PDF file must be delete from the server directory. I've try with this PHP instructions:

sleep(60);
unlink("$result"); -->where $result has the link to the pdf file.

but something is worng because I can open the file before delete it (of course). Any ideas.

Thank
Post Reply