Ir para conteúdo
Fórum Script Brasil

portal do barulho

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Sobre portal do barulho

Contatos

  • Website URL
    http://www.portaldobarulho.com

Perfil

  • Gender
    Male

portal do barulho's Achievements

0

Reputação

  1. o fera este e o arquivo htacess ----> AddType application/x-httpd-php .php .xml este arquivo e para interpreta o codigo php dentro da xml que eu postei antes na verdade erro ele não da porque o player so aparecese o lups da musica não vai aparecer "or die" do mysql no mais ele funciona tudo sertinho ele pega faz o lupe do banco e joga todas as musicas dentro do player mais so no meu servidor local no servidor web ele não pega as musicas e joga no player o player fica vasio funciona no servidor local tudo certo não funciona no servidor web o player fica vasio o codigo que postei antes e um arquivo xml com codigos php dentro fazendo a conexao com o banco e fazendo o lup nas musicas para o player tocar no mais se voce conseguir me ajudar fique já a noite inteira tentando e nada
  2. portal do barulho

    xml com php

    ola galera vice configurei tudo sertinho funcionou no meu{ servidor local }ativei htacess tambem mais no meu {servidor web} não funcionou esta aplicação e um player xml que pega as musicas do banco de dados funciona so no servidor local não funciona no servidor web oque eu poderia fazer ele não esta funcionando o php dentro da xml <?php header("Content-type: application/xml"); echo '<?xml version="1.0" encoding="UTF-8"?>'; ?> <?php require_once('Connections/tabela.php'); ?> <?php $playertabela = 'tabela'; if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } mysql_select_db($database_player, $player); $query_player = "SELECT faixa, link FROM $playertabela ORDER BY id ASC"; $player = mysql_query($query_player, $player) or die(mysql_error()); $row_player = mysql_fetch_assoc($player); $totalRows_player = mysql_num_rows($player); ?> <playlist version="1"><trackList> <?php do { ?> <track><creator>portal do barulho</creator> <title><?php echo $row_player['faixa']; ?></title> <location><?php echo $row_player['link']; ?></location></track> <?php } while ($row_player = mysql_fetch_assoc($player)); ?> <?php mysql_free_result($player); ?> </trackList></playlist>
×
×
  • Criar Novo...