Jump to content
Fórum Script Brasil
  • 0

Problema de upload


Rogerio haselein

Question

Prezados amigos peço ajuda para o seguinte

Meu script de portal tem um recurso fotos extras na notícia, mas quando tento fazer o upload via form dá o erro abaixo

Warning: include(../noticias/enviar_fotos_cod.php) [function.include]: failed to open stream: No such file or directory in /home/storage/7/dc/2a/asstbm/public_html/admin/query_string.php on line 7

Warning: include(../noticias/enviar_fotos_cod.php) [function.include]: failed to open stream: No such file or directory in /home/storage/7/dc/2a/asstbm/public_html/admin/query_string.php on line 7

Warning: include() [function.include]: Failed opening '../noticias/enviar_fotos_cod.php' for inclusion (include_path=.:/usr/share/pear') in /home/storage/7/dc/2a/asstbm/public_html/admin/query_string.php on line 7

O ARQUIVO query_string está assim

<?

$var = "../paginas/principal_admin.php";

$pg = "$_GET[pg]";

if(empty($_SERVER["QUERY_STRING])) {

//include($var);

} else {

include("$pg");

}

?>

alguém PODE ME AJUDAR ONDE ESTÁ O ERRO

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Primeiro vou te comunicar que é bom dar inicio no php com

<?php

e não

<?

o teu problema e no include do arquivo enviar_fotos_cod.php

você está incluido ele porem ele não achar o arquivo php para incluir .. ou o caminho esta errado ou você escreveu o nome do arqiuvo errado.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...