• 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

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

Why isn't my PHP exception working?

PHPUnit (Phar) Fatal Error Only When Test Fails

how to sort by a custom appended relation to model

Split a string array into pieces

Can I use a WooCommerce function without any WooCommerce page?

Laravel websockets AWS EC2 - Connection failed

how to get value from array in laravel

json_encode turns array into an object

What will the best solution for this multiple optional filter?

Laravel no logout option from menu after successfull login

TesseractOCR not working for Laravel

How to get array values using foreach in laravel

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

About Contact Privacy policy Terms and conditions