• 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

echo language construct is discouraged. (PHP)

How to get multiple values with same key from an array PHP

PHP and WebView - Cookie doesn't are the same

XML to CSV with PHP converter [problem with images grabing]

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

Boolean assignment operators in PHP

Getting output of MS stored procedure on php call

How to send image,audio or video through the WhatsApp API - PHP

woocommerce change position of price

add " ? " in url via htaccess RewriteRule

Laravel MSSQL Server Connection not working

Adding Multiple Custom Post Types in Wordpress

How do I pass the dynamic output of a php variable or php function to a CSS variable?

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

passwordless LDAP login and get user information using Kerberos ticket in PHP

About Contact Privacy policy Terms and conditions