• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

php echo xml documents with header

phpxml


PHP Snippet 1:

<?php header("Content-type: text/xml"); ?>
<?php
    $xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

PHP Snippet 2:

<?php 
    header("Content-type: text/xml"); 
    $xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

PHP Snippet 3:

echo '';print_r($output);echo '';die;

Related Snippets

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

PHP Form Not Inserting

Select option menu read from database and use it's values

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

Transfer data between JavaScript and PHP through JSON

Xdebug can't connect back to Docker host

Laravel MSSQL Server Connection not working

Split array into 4-element chunks then implode into strings

How can I get data from PHP to Android TextView?

Adding the custom page with add_menu_page function on Wordpress

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

Hi, I am making a contact form thingy, and my php isn't working any reason why?

Shortcode or PHP inside a shortcode in Wordpress

Undefined Array Key error when uploading image on php

How can i update or reset my password without entering email field in laravel-8?

About Contact Privacy policy Terms and conditions