coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: burnblack on February 29, 2008, 01:27:59 AM

Title: [Solved]: UPLOAD ERROR
Post by: burnblack on February 29, 2008, 01:27:59 AM
I´m tryin to upload photos via URL but it is not uploading =s

USER:
------------------
Array
(
    [ID] => d2c7befcea60ace4cf3ba6f25338eee1
    [am] => 1
    [lang] => brazilian_portuguese
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => xxxx
    [groups] => Array
        (
           
Title: Re: UPLOAD ERROR
Post by: Nibbler on February 29, 2008, 01:40:36 AM
It's probably disabled by your webhost. Check phpinfo.php for the allow_url_fopen setting.
Title: Re: UPLOAD ERROR
Post by: burnblack on February 29, 2008, 01:48:48 AM
yes =\ that´s what i think  >:(
i will check it and tell u
thanx  :-*
Title: Re: UPLOAD ERROR
Post by: burnblack on February 29, 2008, 01:55:19 AM
can´t find it =\

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2008 Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
 
  ********************************************
  Coppermine version: 1.4.16
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/phpinfo.php $
  $Revision: 4233 $
  $Author: gaugau $
  $Date: 2008-02-02 09:23:58 +0100 (Sa, 02 Feb 2008) $
**********************************************/

error_reporting (E_ALL ^ E_NOTICE);
define('IN_COPPERMINE', true);
define('PHPINFO_PHP', true);
require('include/init.inc.php');

$CONFIG['debug_mode']=0;

if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied']);

pageheader($lang_cpg_debug_output['phpinfo']);

ob_start();
phpinfo();
$string = ob_get_contents();
$string = strchr($string, '</style>');
$string = str_replace('</style>','',$string);
$string = str_replace('class="p"','',$string);
$string = str_replace('class="e"','class="tableb"',$string);
$string = str_replace('class="v"','class="tablef"',$string);
$string = str_replace('class="h"','class="tableh2"',$string);
$string = str_replace('class="center"','',$string);
ob_end_clean();

print '<div align="left" style="overflow:hidden;width:800px;text-align:left;">';
starttable('100%', $lang_phpinfo_php['php_info'], 1);
print '<tr><td class="tableb">';
print $lang_phpinfo_php['explanation'];
print '<br />';
print $lang_phpinfo_php['no_link'];
print '</td></tr>';
endtable();
print '<br />';


print $string;
print "</div>\n";


pagefooter();
ob_end_flush();

?>
Title: Re: UPLOAD ERROR
Post by: Nibbler on February 29, 2008, 02:16:16 AM
Check the page in your web browser, not the source code.
Title: Re: UPLOAD ERROR
Post by: burnblack on February 29, 2008, 02:59:34 AM
it´s the server :-[

allow_url_fopen   Off   Off
Title: Re: UPLOAD ERROR
Post by: burnblack on February 29, 2008, 03:01:10 AM
Quote from: burnblack on February 29, 2008, 02:59:34 AM
it´s the server :-[

allow_url_fopen   Off   Off


THANKS :D