3v4l.org

run code in 300+ PHP versions simultaneously
<?php include("cabecalho.php"); include ("conecta.php"); include ("banco-fornecedor.php");?> <?php $razao_social = $_GET["razao_social"]; $nome_fantasia = $_GET["nome_fantasia"]; $cpf_cnpj = $_GET["cpf_cnpj"]; $ie = $_GET["ie"]; $endereco = $_GET["endereco"]; $bairro = $_GET["bairro"]; $cidade = $_GET["cidade"]; $estado = $_GET["estado"]; $email_contato = $_GET["email_contato"]; $telefone = $_GET["telefone"]; $celular = $_GET["celular"]; $obs = $_GET["obs"]; // abre a conecção no mysql - devolve a conexão com o banco de dados if(insereFornecedor($conexao, $razao_social, $nome_fantasia, $cpf_cnpj, $ie, $endereco, $bairro, $cidade, $estado, $email_contato, $telefone, $celular, $obs)){ // verifica se a inserção foi completa ?><!-- Se sim, exibe a mensagem abaixo --> <p class="text-success">Fornecedor: <?= $razao_social; ?>,Nome Fantasia: <?= $nome_fantasia?> adicionado sucesso!</p> <?php }else{ $msg=mysqli_error($conexao); ?> <!-- Se nao, exibe a mensagem abaixo --> <p class="text-danger">Produto <?= $nome_fantasia; ?> não foi registrado com sucesso: <?= $msg ?></p> <?php } ?> <?php include("rodape.php"); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(cabecalho.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/HXLrv on line 1 Warning: include(cabecalho.php): Failed to open stream: Operation not permitted in /in/HXLrv on line 1 Warning: include(): Failed opening 'cabecalho.php' for inclusion (include_path='.:') in /in/HXLrv on line 1 Warning: include(): open_basedir restriction in effect. File(conecta.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/HXLrv on line 2 Warning: include(conecta.php): Failed to open stream: Operation not permitted in /in/HXLrv on line 2 Warning: include(): Failed opening 'conecta.php' for inclusion (include_path='.:') in /in/HXLrv on line 2 Warning: include(): open_basedir restriction in effect. File(banco-fornecedor.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/HXLrv on line 3 Warning: include(banco-fornecedor.php): Failed to open stream: Operation not permitted in /in/HXLrv on line 3 Warning: include(): Failed opening 'banco-fornecedor.php' for inclusion (include_path='.:') in /in/HXLrv on line 3 Warning: Undefined array key "razao_social" in /in/HXLrv on line 8 Warning: Undefined array key "nome_fantasia" in /in/HXLrv on line 9 Warning: Undefined array key "cpf_cnpj" in /in/HXLrv on line 10 Warning: Undefined array key "ie" in /in/HXLrv on line 11 Warning: Undefined array key "endereco" in /in/HXLrv on line 12 Warning: Undefined array key "bairro" in /in/HXLrv on line 13 Warning: Undefined array key "cidade" in /in/HXLrv on line 14 Warning: Undefined array key "estado" in /in/HXLrv on line 15 Warning: Undefined array key "email_contato" in /in/HXLrv on line 16 Warning: Undefined array key "telefone" in /in/HXLrv on line 17 Warning: Undefined array key "celular" in /in/HXLrv on line 18 Warning: Undefined array key "obs" in /in/HXLrv on line 19 Fatal error: Uncaught Error: Call to undefined function insereFornecedor() in /in/HXLrv:22 Stack trace: #0 {main} thrown in /in/HXLrv on line 22
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.29 ms | 403 KiB | 8 Q