• 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

"There is no active transaction" when refreshing database in Laravel 8.0 test

Laravel Delete and Update

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

I cannot create a auto generated date time in mysql workbench

How to make a foreign key not using primary key

How to downgrade or install a specific version of Composer?

How can I get a div content in php

Using array_intersect on a multi-dimensional array

In PHP, which is faster: preg_split or explode?

codeigniter 4 running error first time with xampp

Sort a multidimensional array by integer inside of a string value which is two levels down

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

Php - Sum up the numbers in an array one by one

AJAX call fails with SyntaxError: Unexpected end of JSON input

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

About Contact Privacy policy Terms and conditions