• 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

PHP: How to solve ob_start() in combination imagepng() issue?

PHP file_get_contents function

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

Check if string contains a value in array [duplicate]

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

How to create a cookie to store the timestamp of when a page is first loaded with php

protect my blog content

Adding Multiple Custom Post Types in Wordpress

calling server using nusoap with complextype

Laravel query builder binding parameters more than once

Is there a way to use Foundry Model for Authentification inside Functional Tests?

Manage independently the decimal number of the price of each product [duplicate]

Move a child array to parent array and change parent/child name

Pages are working fine on localhost but not running on the hosting server

About Contact Privacy policy Terms and conditions