• 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

Match single unknown parameter php (Morse-code Regex)

How to set a domain name with php artisan serve

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

Display the WooCommerce product price inside a custom function

If you intend you use SMTP, add your SMTP Code after this Line

Laravel 5 session not persisting after user is logged in

PHP using str_starts_with for array to exclude same as with wildcard

Unable to match results of php hash_hmac() and coldfusion hmac()

Boolean assignment operators in PHP

Laravel eloquent update record without loading from database

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

Woocommerce product attributes with hierarchy like categories

Laravel lang slug in url

Phpunit partial mock + proxy Entity

Popup Window and PHP form

About Contact Privacy policy Terms and conditions