Date: 10/15/01
- Next message: Mike Eheler: "Re: [PHP] Switch syntax"
- Previous message: Philip Olson: "Re: [PHP] Switch syntax"
- In reply to: Emile Bosch: "[PHP] Re: protect files and view temporary"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thanks Emil!
It works great.
Jan
Emile Bosch wrote:
> instead of doing that you could also use readfile
>
>
> readfile("blah.inc") //wich is actually an xml file it displays the xml
> directly to the browser
> u can also use header in front of it..
>
> IE:
>
> header("content-type: text/xml");
> readfile("blah.inc");
>
>
> warm regards,
> mielz
>
>
> "Jan Grafström" <jan <email protected>> schreef in bericht
> news:3BCAFCCF.7040809 <email protected>
>
>>Hi!
>>I am saving some xml-files on server with the extension .inc and use
>>this script to view the files:
>><?
>>if (file_exists("$filename".".inc")) {
>>rename ("$filename".".inc", "$filename".".xml");
>>}
>>Header("Location: http://www.myserver.com/".$filnamn.".xml");
>>}
>>?>
>>Now I wonder how to rename the files back to .inc after I have viewed
>>them, is it possible to do this in the same script with a timer or
>>something? I have tried to include the .inc files instead of renameing
>>them but PHP seams not to handle xml with xsl stylesheets for direct
>>output to browser.
>>Thanks for any help.
>>Regards Jan
>>
>>Jan Grafström
>>Lillemanshus AB
>>Sweden
>>
>>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mike Eheler: "Re: [PHP] Switch syntax"
- Previous message: Philip Olson: "Re: [PHP] Switch syntax"
- In reply to: Emile Bosch: "[PHP] Re: protect files and view temporary"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

