daily pastebin goal
38%
SHARE
TWEET

siteParam.php

a guest Jul 10th, 2012 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $xml = simplexml_load_file('siteParam.xml');
  3. print_r($xml);
  4.  
  5. foreach($xml->parametros as $parametro) {
  6.                 $nome = $parametro->nome;
  7.                 $http = $parametro->http;
  8.                 $www = $parametro->www;
  9.                 $dominio = $parametro->dominio;
  10.                 $email = $parametro->email;
  11.                 $telefone = $parametro->telefone;
  12.                 $endereco = $parametro->endereco;
  13.         }
  14.  
  15. echo "debug";
  16.                 echo $nome;
  17.                 echo $http;
  18.                 echo $www;
  19.                 echo $dominio;
  20.                 echo $email;
  21.                 echo $telefone;
  22.                 echo $endereco;
  23.  
  24. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top