• 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

Parsing JSON File to array in PHP

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

Check if user online laravel

How to get values inside <![CDATA[values]] > using php DOM?

hidden INPUT value not available in $_POST

Can't exclude directories from .htaccess mobile redirect?

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

How to get Laravel's CSRF Token from Another Website?

Elasticsearch - Want to sort by field in all indices where that particular field available or not if not then avoid it

PHP Find Array Index value in multi-line array

PHPExcel file download using AJAX call

Fatal error: Array callback has to contain indices 0 and 1

renameColumn migration fails for existing column with columns does not exist error

Refresh specific HTML content that retrieves data from MySQL

About Contact Privacy policy Terms and conditions