php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2009

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 31.10.2009, 05:01  
Neuer Benutzer
 
Registriert seit: 31.10.2009
Beiträge: 6
PHP-Kenntnisse:
Anfänger
swsche befindet sich auf einem aufstrebenden Ast
Standard Probleme mit Bildgenerierung

Ich hoffe, dass ihr mir helfen könnt. Ich bin am verzweifel.

Habe seit einigen Wochen bei Host Europe einen Virtual Server mit ISS.

Bin nun mit meinem Forum dorthin umgezogen. Ich habe dort einen Generator, der nach Eingabe eines Textes, einen Smiley mit Schild erstellt. Auf diesem Schild ist der Text dann zu lesen. Bei meinem bisherigen Provider Strato hat das alles gut funktioniert. Nun aber leider nicht mehr.

Was muss ich evtl. in der PHP.ini umstellen/einstellen damit die Bilder wieder erzeugt werden. Das Bild wird über die smiley.php des Scripts ausgegeben.

Code:
smiley.php?text=Test&smiley=bye&fontcolor=000000&ss=1&font=&shadowcolor=&signcolor=&ext=.gif
Leider zeigt er mir nur den Pfad, nicht aber das Bild an.
swsche ist offline  
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 31.10.2009, 07:49  
Erfahrener Benutzer
 
Registriert seit: 21.12.2004
Beiträge: 5.234
PHP-Kenntnisse:
Fortgeschritten
mepeisen ist ein wunderbarer Anblickmepeisen ist ein wunderbarer Anblickmepeisen ist ein wunderbarer Anblickmepeisen ist ein wunderbarer Anblickmepeisen ist ein wunderbarer Anblickmepeisen ist ein wunderbarer Anblickmepeisen ist ein wunderbarer Anblick
mepeisen eine Nachricht über ICQ schicken mepeisen eine Nachricht über Skype™ schicken
Standard

Leider unzureichende Fehlerbeschreibung. Welches Forum hast du da installiert? Wie schaut smiley.php aus? Im Zweifel fehlt eine Grafikbibliothek.
__________________
www.php-maven.org PHP und Maven vereint: Build/Deploy/Produktion/Konfiguration, Projekt Management, CI, PHPUnit, zahlreiche Frameworks
Twitter @ https://twitter.com/#!/mepeisen und Facebook @ http://t.co/DZnKSUih
mepeisen ist offline  
Alt 31.10.2009, 12:11  
Neuer Benutzer
 
Registriert seit: 31.10.2009
Beiträge: 6
PHP-Kenntnisse:
Anfänger
swsche befindet sich auf einem aufstrebenden Ast
Standard

Entschuldige bitte, mein Fehler.

Also als Forum nutze ich VBulletin3.7.4.

Die GD-Library 2 ist installiert und in der PHP.ini aktiviert.

Der Code der Smiley.php
PHP-Code:
<?

ob_start
();
 require(
"stat.php");
ob_end_clean();
Header("Content-type: image/gif");

ini_set('magic_quotes_gpc'OFF);
ini_set('magic_quotes_sybase'OFF);

 
$path getCWD();

 if(isset(
$_REQUEST['smiley']) && ($_REQUEST['smiley'])!==''){
  
$smiley = ($_REQUEST['smiley']);
  } else {
  
$smiley 'bleh';
 }



 if(isset(
$_REQUEST['fontcolor']) && ($_REQUEST['fontcolor']) !==''){
  
$schriftfarbe =  ($_REQUEST['fontcolor']);
  
$schriftfarbe =  str_replace("#"""$schriftfarbe);

  } else {
  
$schriftfarbe '000000';
 }

 if(isset(
$_REQUEST['ss']) && ($_REQUEST['ss']) =='0'){
  
$schildschatten =  'false';
  } else {
  
$schildschatten =  'true';
 }


 if(isset(
$_REQUEST['font']) && ($_REQUEST['font']) !==''){
  
$schriftdatei =  ($_REQUEST['font']);
  } else {
  
#$schriftdatei = 'comicbook.ttf';
  
$schriftdatei '';
 }

  if(isset(
$_REQUEST['signcolor']) && ($_REQUEST['signcolor']) !==''){
   
$schcolor = ($_REQUEST['signcolor']);
   
$schcolor =  str_replace("#"""$schcolor);
   } else {
   
$schcolor 'FFFFFF';
  }

$defaulttext "Hello!";

 if (isset(
$_REQUEST['text']) &&  ($_REQUEST['text'])!==''){
  
$text stripslashes($_REQUEST['text']);
  } else {
  
$text "$defaulttext";
 }


 if (isset(
$_REQUEST['shadowcolor']) &&  ($_REQUEST['shadowcolor'])!==''){
  
$schattenfarbe = ($_REQUEST['shadowcolor']);
  
$schattenfarbe =  str_replace("#"""$schattenfarbe);
  } else {
  
$schattenfarbe '';
 }

 include(
"$path/config.php");

   
  
$base base64_encode("$text$smiley$schriftfarbe$schildschatten$schriftdatei$schattenfarbe$schcolor");
  
$base str_replace("="""$base);
  
$base str_replace(" """$base);



  
$file "temp/".$base."-final.gif";

 if(
file_exists($file)){
  
$file readfile($file);
  echo 
$file;
  } else {


 
$text stripslashes($text);



if(
$phpversion_nr >= 4.30$gd_info gd_info();
else{
        
$gd_info["FreeType Support"] = 1;
}

if((!
$gd_info["FreeType Support"]) || (!file_exists($schriftdatei))){
        
$schriftwidth 6;
        
$schriftheight 8;
}else{
        if((!
$schriftheight) || (!$schriftwidth)){
                
$schriftwidth imagefontwidth($schriftdatei);
                
$schriftheight imagefontheight($schriftdatei);
        }
}
$schriftheight += 3;



/*while(substr_count($text, "<")){
        $text = ereg_replace(substr($text, strpos($text, "<"), (strpos($text, ">") - strpos($text, "<") + 1)), "", $text);
}*/

if(!$text$text $defaulttext;

if(
strlen($text) > 33){
        
$worte split(" "$text);

        if(
is_array($worte)){
                
$i 0;
                foreach(
$worte as $wort){
                        if((
strlen($output[$i]." ".$wort) < 33) && (!substr_count($wort"[SM"))){
                                
$output[$i] .= " ".$wort;
                        }else{
                                if(
$i <= 11){
                                        if(
$zeichenzahl strlen($output[$i])) $zeichenzahl strlen($output[$i]);
                                        
$i++;
                                        
$output[$i] = $wort;
                                }
                        }
                }
        }else{
                
$zeichenzahl 33;
                
$output[0] = substr($text030)."...";
        }
}else{
        
$zeichenzahl strlen($text);
        
$output[0] = $text;
}

if(
count($output) > 12$output[12] = substr($output[12], 030)."...";

$width = ($zeichenzahl $schriftwidth) + 20;
$height = (count($output) * $schriftheight) + 34;
if(
$width 60$width 60;




#$smiley = imagecreatefrompng("modules/Forums/images/smiles/schild/smiley".$smiley.".png");


 
if($smiley =='mad'){
 
$schild imagecreatefrompng("sign/sign2.png");
 } else {
 
$schild imagecreatefrompng("sign/sign.png");
 }

 
$trans2 imagecolorallocate ($schild111252134);
 
imagefill($schild00$trans2);
 
imagecolortransparent($schild$trans2);  // Dummybg als transparenz setzen
 
imageinterlace$schild);



$img imagecreate($width,$height);

$bgcolor imagecolorallocate ($img111252134);
$txtcolor imagecolorallocate ($imghexdec(substr(str_replace("#","",$schriftfarbe),0,2)), hexdec(substr(str_replace("#","",$schriftfarbe),2,2)), hexdec(substr(str_replace("#","",$schriftfarbe),4,2)));
$txt2color imagecolorallocate ($imghexdec(substr(str_replace("#","",$schattenfarbe),0,2)), hexdec(substr(str_replace("#","",$schattenfarbe),2,2)), hexdec(substr(str_replace("#","",$schattenfarbe),4,2)));
$bocolor imagecolorallocate ($img000);

  if(
$schildschatten == 'true'){
    
$schcolor imagecolorallocate ($img255255255);
  } else {
  if(isset(
$_REQUEST['signcolor']) && ($_REQUEST['signcolor']) !==''){
   
$schcolor = ($_REQUEST['signcolor']);
   
$schcolor imagecolorallocate ($imghexdec(substr($schcolor ,0,2)), hexdec(substr($schcolor,2,2)), hexdec(substr($schcolor,4,2)));
   } else {
   
$schcolor imagecolorallocate ($img255255255);
   }
  }


$schatten1color imagecolorallocate ($img235235235);
$schatten2color imagecolorallocate ($img219219219);



 if(
$smiley =='doh'){
  
$h "29";
  } else {
  
$h "24";
 }
imagecopy ($img$schild, ($width 3), 00064); // Bildteil kopieren
imagecopy ($img$schild, ($width 3), ($height 24), 05917); // Bildteil kopieren
#imagecopy ($img, $smiley, ($width / 2 + 6), ($height - 24), 0, 0, 23, 23); // Bildteil kopieren

imagefilledrectangle($img04$width, ($height 25), $bocolor);
imagefilledrectangle($img15, ($width 2), ($height 26), $schcolor);

if(
$schildschatten == 'true'){
        
imagefilledpolygon($img, array((($width 2) / + ((($width 2) / 4) - 3)), 5, (($width 2) / + ((($width 2) / 4) + 3)), 5, (($width 2) / - ((($width 2) / 4) - 3)), ($height 26), (($width 2) / - ((($width 2) / 4) + 3)), ($height 26)), 4$schatten1color);
        
imagefilledpolygon($img, array((($width 2) / + ((($width 2) / 4) + 4)), 5, ($width 2), 5, ($width 2), ($height 26), (($width 2) / - ((($width 2) / 4) - 4)), ($height 26)), 4$schatten2color);
}

$i 0;
while(
$i count($output)){
        if(((!
$gd_info["FreeType Support"]) || (!file_exists($schriftdatei)))){
                if(
$schattenfarbe <>''){
                 
imagestring($img2, (($width - (strlen(trim($output[$i])) * $schriftwidth) - 2) / 1), ($i $schriftheight 6), trim($output[$i]), $txt2color);
                 }
                
imagestring($img2, (($width - (strlen(trim($output[$i])) * $schriftwidth) - 2) / 2), ($i $schriftheight 5), trim($output[$i]), $txtcolor);
        }else{
                if(
$schattenfarbe <>''){
                 
imagettftext($img$schriftheight0, (($width - (strlen(trim($output[$i])) * $schriftwidth) - 2) / 1), ($i $schriftheight $schriftheight 4), $txt2color$schriftdateitrim($output[$i]));
                 }
                
imagettftext($img$schriftheight0, (($width - (strlen(trim($output[$i])) * $schriftwidth) - 5) / 2), ($i $schriftheight $schriftheight 3), $txtcolor$schriftdateitrim($output[$i]));
        }
        
$i++;
}


imagecolortransparent($img$bgcolor);  // Dummybg als transparenz setzen
imageinterlace($img1);




 foreach (
glob("$smiley/*.res") as $filename) {

  
$smiley2 imagecreatefromgif("$filename");
  
$canvas imagecreate($width$height);
  
$trans imagecolorallocate ($canvas111252134);
   
imagecolortransparent($canvas$trans);  // Dummybg als transparenz setzen
   
imageinterlace$canvas);
   
imagecopymerge($canvas$img0000$width$height100);
   
imagecopymerge ($canvas$smiley2, ($width 3), ($height $h), 00$x$y100); // Bildteil kopieren

 
$frame str_replace("$smiley/"""$filename);
 
$frame str_replace(".res"""$frame);

 
Imagegif($canvas"temp/$base.$frame.gif"100);
 
 
ImageDestroy($smiley2);
 
ImageDestroy($canvas);

 }
 
ImageDestroy($img);
 
ImageDestroy($schild);


 require(
"$smiley/cmd.php");

        
exec("$cmd 2>&1"$output);
         foreach(
$output as $outputline){
        }

   
$file2 readfile("temp/".$base."-final.gif");
   echo 
$file2;
  }
?>

Geändert von swsche (31.10.2009 um 12:32 Uhr).
swsche ist offline  
Alt 31.10.2009, 12:16  
Neuer Benutzer
 
Registriert seit: 31.10.2009
Beiträge: 6
PHP-Kenntnisse:
Anfänger
swsche befindet sich auf einem aufstrebenden Ast
Standard

Hier ist der Inhalt der PHP.ini.

Code:
PHP Version 5.2.6

System 	Windows NT VPS23579 5.2 build 3790
Build Date 	May 2 2008 18:01:20
Configure Command 	cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"
Server API 	ISAPI
Virtual Directory Support 	enabled
Configuration File (php.ini) Path 	C:\WINDOWS
Loaded Configuration File 	C:\Parallels\Plesk\Additional\PleskPHP5\php.ini
PHP API 	20041225
PHP Extension 	20060613
Zend Extension 	220060519
Debug Build 	no
Thread Safety 	enabled
Zend Memory Manager 	enabled
IPv6 Support 	enabled
Registered PHP Streams 	php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports 	tcp, udp
Registered Stream Filters 	convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

PHP Credits
Configuration
PHP Core
Directive	Local Value	Master Value
allow_call_time_pass_reference	On	On
allow_url_fopen	On	On
allow_url_include	On	On
always_populate_raw_post_data	Off	Off
arg_separator.input	&	&
arg_separator.output	&	&
asp_tags	Off	Off
auto_append_file	no value	no value
auto_globals_jit	On	On
auto_prepend_file	no value	no value
browscap	C:\WINDOWS\system32\inetsrv\browscap.ini	C:\WINDOWS\system32\inetsrv\browscap.ini
default_charset	no value	no value
default_mimetype	text/html	text/html
define_syslog_variables	Off	Off
disable_classes	no value	no value
disable_functions	no value	no value
display_errors	On	On
display_startup_errors	Off	Off
doc_root	no value	no value
docref_ext	no value	no value
docref_root	no value	no value
enable_dl	On	On
error_append_string	no value	no value
error_log	no value	no value
error_prepend_string	no value	no value
error_reporting	6135	6135
expose_php	On	On
extension_dir	C:\Parallels\Plesk\Additional\PleskPHP5\ext	C:\Parallels\Plesk\Additional\PleskPHP5\ext
file_uploads	On	On
highlight.bg	#FFFFFF	#FFFFFF
highlight.comment	#FF8000	#FF8000
highlight.default	#0000BB	#0000BB
highlight.html	#000000	#000000
highlight.keyword	#007700	#007700
highlight.string	#DD0000	#DD0000
html_errors	On	On
ignore_repeated_errors	Off	Off
ignore_repeated_source	Off	Off
ignore_user_abort	Off	Off
implicit_flush	Off	Off
include_path	.;./includes;./pear	.;./includes;./pear
log_errors	Off	Off
log_errors_max_len	1024	1024
magic_quotes_gpc	On	On
magic_quotes_runtime	Off	Off
magic_quotes_sybase	Off	Off
mail.force_extra_parameters	no value	no value
max_execution_time	120	120
max_input_nesting_level	64	64
max_input_time	60	60
memory_limit	128M	128M
open_basedir	no value	no value
output_buffering	no value	no value
output_handler	no value	no value
post_max_size	8M	8M
precision	12	12
realpath_cache_size	16K	16K
realpath_cache_ttl	120	120
register_argc_argv	On	On
register_globals	Off	Off
register_long_arrays	On	On
report_memleaks	On	On
report_zend_debug	On	On
safe_mode	Off	Off
safe_mode_exec_dir	no value	no value
safe_mode_gid	Off	Off
safe_mode_include_dir	no value	no value
sendmail_from	info@stephan-waesche.de	info@stephan-waesche.de
sendmail_path	no value	no value
serialize_precision	100	100
short_open_tag	On	On
SMTP	localhost	localhost
smtp_port	25	25
sql.safe_mode	Off	Off
track_errors	Off	Off
unserialize_callback_func	no value	no value
upload_max_filesize	8M	8M
upload_tmp_dir	C:\WINDOWS\Temp	C:\WINDOWS\Temp
user_dir	no value	no value
variables_order	EGPCS	EGPCS
xmlrpc_error_number	0	0
xmlrpc_errors	Off	Off
y2k_compliance	On	On
zend.ze1_compatibility_mode	Off	Off

bcmath
BCMath support 	enabled

calendar
Calendar support 	enabled

com_dotnet
COM support	enabled
DCOM support	disabled
.Net support	enabled

Directive	Local Value	Master Value
com.allow_dcom	0	0
com.autoregister_casesensitive	1	1
com.autoregister_typelib	0	0
com.autoregister_verbose	0	0
com.code_page	no value	no value
com.typelib_file	no value	no value

ctype
ctype functions 	enabled

curl
cURL support 	enabled
cURL Information 	libcurl/7.16.0 OpenSSL/0.9.8e zlib/1.2.3

date
date/time support 	enabled
"Olson" Timezone Database Version 	2008.2
Timezone Database 	internal
Default timezone 	Europe/Paris

Directive	Local Value	Master Value
date.default_latitude	31.7667	31.7667
date.default_longitude	35.2333	35.2333
date.sunrise_zenith	90.583333	90.583333
date.sunset_zenith	90.583333	90.583333
date.timezone	no value	no value

dom
DOM/XML 	enabled
DOM/XML API Version 	20031129
libxml Version 	2.6.32
HTML Support 	enabled
XPath Support 	enabled
XPointer Support 	enabled
Schema Support 	enabled
RelaxNG Support 	enabled

filter
Input Validation and Filtering 	enabled
Revision 	$Revision: 1.52.2.42 $

Directive	Local Value	Master Value
filter.default	unsafe_raw	unsafe_raw
filter.default_flags	no value	no value

ftp
FTP support 	enabled

gd
GD Support 	enabled
GD Version 	bundled (2.0.34 compatible)
FreeType Support 	enabled
FreeType Linkage 	with freetype
FreeType Version 	2.1.9
T1Lib Support 	enabled
GIF Read Support 	enabled
GIF Create Support 	enabled
JPG Support 	enabled
PNG Support 	enabled
WBMP Support 	enabled
XBM Support 	enabled

gettext
GetText Support 	enabled

hash
hash support 	enabled
Hashing Engines 	md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv
iconv support 	enabled
iconv implementation 	"libiconv"
iconv library version 	1.11

Directive	Local Value	Master Value
iconv.input_encoding	ISO-8859-1	ISO-8859-1
iconv.internal_encoding	ISO-8859-1	ISO-8859-1
iconv.output_encoding	ISO-8859-1	ISO-8859-1

imap
IMAP c-Client Version 	2004
SSL Support 	enabled

ISAPI
Server Variable	Value
CONTENT_LENGTH 	0
PATH_TRANSLATED 	C:\Inetpub\vhosts\erotik-auktion-24.com\httpdocs\info.php
REMOTE_ADDR 	88.134.166.113
REMOTE_HOST 	88.134.166.113
REQUEST_METHOD 	GET
SERVER_NAME 	www.erotik-auktion-24.com
SERVER_PORT 	80
SERVER_PROTOCOL 	HTTP/1.1
SERVER_SOFTWARE 	Microsoft-IIS/6.0
APPL_MD_PATH 	/LM/W3SVC/32334/Root
APPL_PHYSICAL_PATH 	C:\Inetpub\vhosts\erotik-auktion-24.com\httpdocs\
INSTANCE_ID 	32334
INSTANCE_META_PATH 	/LM/W3SVC/32334
URL 	/info.php
ALL_HTTP 	HTTP_CONNECTION:keep-alive HTTP_KEEP_ALIVE:300 HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip,deflate HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 HTTP_COOKIE:PHPSESSID=c084e60a56aefe7d1543fe711ccdd9d3 HTTP_HOST:www.erotik-auktion-24.com HTTP_USER_AGENT:Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 (.NET CLR 3.5.30729)
HTTPS 	off
SCRIPT_NAME 	/info.php
SERVER_PORT_SECURE 	0

json
json support 	enabled
json version 	1.2.1

libxml
libXML support 	active
libXML Version 	2.6.32
libXML streams 	enabled

mbstring
Multibyte Support 	enabled
Multibyte string engine 	libmbfl
Multibyte (japanese) regex support 	enabled
Multibyte regex (oniguruma) version 	4.4.4
Multibyte regex (oniguruma) backtrack check 	On

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive	Local Value	Master Value
mbstring.detect_order	no value	no value
mbstring.encoding_translation	Off	Off
mbstring.func_overload	0	0
mbstring.http_input	pass	pass
mbstring.http_output	pass	pass
mbstring.internal_encoding	no value	no value
mbstring.language	neutral	neutral
mbstring.strict_detection	Off	Off
mbstring.substitute_character	no value	no value

mssql
MSSQL Support	enabled
Active Persistent Links 	0
Active Links 	0
Library version 	7.0

Directive	Local Value	Master Value
mssql.allow_persistent	On	On
mssql.batchsize	0	0
mssql.compatability_mode	Off	Off
mssql.connect_timeout	5	5
mssql.datetimeconvert	On	On
mssql.max_links	Unlimited	Unlimited
mssql.max_persistent	Unlimited	Unlimited
mssql.max_procs	Unlimited	Unlimited
mssql.min_error_severity	10	10
mssql.min_message_severity	10	10
mssql.secure_connection	Off	Off
mssql.textlimit	Server default	Server default
mssql.textsize	Server default	Server default
mssql.timeout	60	60

mysql
MySQL Support	enabled
Active Persistent Links 	0
Active Links 	0
Client API version 	5.0.22

Directive	Local Value	Master Value
mysql.allow_persistent	On	On
mysql.connect_timeout	60	60
mysql.default_host	no value	no value
mysql.default_password	no value	no value
mysql.default_port	no value	no value
mysql.default_socket	no value	no value
mysql.default_user	no value	no value
mysql.max_links	Unlimited	Unlimited
mysql.max_persistent	Unlimited	Unlimited
mysql.trace_mode	Off	Off

odbc
ODBC Support	enabled
Active Persistent Links 	0
Active Links 	0
ODBC library 	Win32

Directive	Local Value	Master Value
odbc.allow_persistent	On	On
odbc.check_persistent	On	On
odbc.default_db	no value	no value
odbc.default_pw	no value	no value
odbc.default_user	no value	no value
odbc.defaultbinmode	return as is	return as is
odbc.defaultlrl	return up to 4096 bytes	return up to 4096 bytes
odbc.max_links	Unlimited	Unlimited
odbc.max_persistent	Unlimited	Unlimited

pcre
PCRE (Perl Compatible Regular Expressions) Support 	enabled
PCRE Library Version 	7.6 2008-01-28

Directive	Local Value	Master Value
pcre.backtrack_limit	100000	100000
pcre.recursion_limit	100000	100000

PDO
PDO support	enabled
PDO drivers 	sqlite, sqlite2

pdo_sqlite
PDO Driver for SQLite 3.x	enabled
PECL Module version 	1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.3 2007/12/31 07:20:10 sebastian Exp $
SQLite Library 	3.3.7undefined

Reflection
Reflection	enabled
Version 	$Id: php_reflection.c,v 1.164.2.33.2.50 2008/03/13 15:56:21 iliaa Exp $

session
Session Support 	enabled
Registered save handlers 	files user sqlite
Registered serializer handlers 	php php_binary wddx

Directive	Local Value	Master Value
session.auto_start	Off	Off
session.bug_compat_42	On	On
session.bug_compat_warn	On	On
session.cache_expire	180	180
session.cache_limiter	nocache	nocache
session.cookie_domain	no value	no value
session.cookie_httponly	Off	Off
session.cookie_lifetime	0	0
session.cookie_path	/	/
session.cookie_secure	Off	Off
session.entropy_file	no value	no value
session.entropy_length	0	0
session.gc_divisor	100	100
session.gc_maxlifetime	1440	1440
session.gc_probability	1	1
session.hash_bits_per_character	4	4
session.hash_function	0	0
session.name	PHPSESSID	PHPSESSID
session.referer_check	no value	no value
session.save_handler	files	files
session.save_path	C:\WINDOWS\Temp	C:\WINDOWS\Temp
session.serialize_handler	php	php
session.use_cookies	On	On
session.use_only_cookies	Off	Off
session.use_trans_sid	0	0

SimpleXML
Simplexml support	enabled
Revision 	$Revision: 1.151.2.22.2.39 $
Schema support 	enabled

sockets
Sockets Support 	enabled

SPL
SPL support	enabled
Interfaces 	Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes 	AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

SQLite
SQLite support	enabled
PECL Module version 	2.0-dev $Id: sqlite.c,v 1.166.2.13.2.10 2007/12/31 07:20:11 sebastian Exp $
SQLite Library 	2.8.17
SQLite Encoding 	iso8859

Directive	Local Value	Master Value
sqlite.assoc_case	0	0

standard
Regex Library 	Bundled library enabled
Dynamic Library Support 	enabled
Internal Sendmail Support for Windows 	enabled

Directive	Local Value	Master Value
assert.active	1	1
assert.bail	0	0
assert.callback	no value	no value
assert.quiet_eval	0	0
assert.warning	1	1
auto_detect_line_endings	0	0
default_socket_timeout	60	60
safe_mode_allowed_env_vars	PHP_	PHP_
safe_mode_protected_env_vars	LD_LIBRARY_PATH	LD_LIBRARY_PATH
url_rewriter.tags	a=href,area=href,frame=src,input=src,form=,fieldset=	a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent	no value	no value

tokenizer
Tokenizer Support 	enabled

wddx
WDDX Support	enabled
WDDX Session Serializer 	enabled

xml
XML Support 	active
XML Namespace Support 	active
libxml2 Version 	2.6.32

xmlreader
XMLReader 	enabled

xmlwriter
XMLWriter 	enabled

xsl
XSL 	enabled
libxslt Version 	1.1.23
libxslt compiled against libxml Version 	2.6.32
EXSLT 	enabled
libexslt Version 	0.8.13

zlib
ZLib Support 	enabled
Stream Wrapper support 	compress.zlib://
Stream Filter support 	zlib.inflate, zlib.deflate
Compiled Version 	1.2.3
Linked Version 	1.2.3

Directive	Local Value	Master Value
zlib.output_compression	Off	Off
zlib.output_compression_level	-1	-1
zlib.output_handler	no value	no value

Additional Modules
Module Name

Environment
Variable	Value
ALLUSERSPROFILE 	C:\Documents and Settings\All Users
ClusterLog 	C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles 	C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) 	C:\Program Files (x86)\Common Files
CommonProgramW6432 	C:\Program Files\Common Files
COMPUTERNAME 	VPS23579
ComSpec 	C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK 	NO
MAILENABLE_PATH 	C:\PARALL~1\Plesk\MAILSE~1\MAILEN~1
NUMBER_OF_PROCESSORS 	8
OS 	Windows_NT
Path 	C:\PARALL~1\Plesk\ADDITI~1\Perl\bin\;C:\Parallels\Plesk\Mail Servers\Mail Enable\BIN;C:\PARALL~1\Plesk\ADDITI~1\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
PATHEXT 	.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
plesk_bin 	C:\Parallels\Plesk\admin\bin
plesk_dir 	C:\Parallels\Plesk\
plesk_vhosts 	C:\inetpub\vhosts\
PROCESSOR_ARCHITECTURE 	x86
PROCESSOR_ARCHITEW6432 	AMD64
PROCESSOR_IDENTIFIER 	EM64T Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL 	6
PROCESSOR_REVISION 	1706
ProgramFiles 	C:\Program Files (x86)
ProgramFiles(x86) 	C:\Program Files (x86)
ProgramW6432 	C:\Program Files
SystemDrive 	C:
SystemRoot 	C:\WINDOWS
TEMP 	C:\WINDOWS\TEMP
TMP 	C:\WINDOWS\TEMP
USERPROFILE 	C:\Documents and Settings\Default User
windir 	C:\WINDOWS

PHP Variables
Variable	Value
_REQUEST["PHPSESSID"]	c084e60a56aefe7d1543fe711ccdd9d3
_COOKIE["PHPSESSID"]	c084e60a56aefe7d1543fe711ccdd9d3
_SERVER["ALL_HTTP"]	HTTP_CONNECTION:keep-alive HTTP_KEEP_ALIVE:300 HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip,deflate HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 HTTP_COOKIE:PHPSESSID=c084e60a56aefe7d1543fe711ccdd9d3 HTTP_HOST:www.erotik-auktion-24.com HTTP_USER_AGENT:Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 (.NET CLR 3.5.30729)
_SERVER["HTTPS"]	off
_SERVER["SCRIPT_NAME"]	/info.php
_SERVER["HTTP_COOKIE"]	PHPSESSID=c084e60a56aefe7d1543fe711ccdd9d3
_SERVER["AUTH_PASSWORD"]	no value
_SERVER["AUTH_TYPE"]	no value
_SERVER["AUTH_USER"]	no value
_SERVER["CONTENT_LENGTH"]	0
_SERVER["CONTENT_TYPE"]	no value
_SERVER["PATH_TRANSLATED"]	C:\Inetpub\vhosts\elvispresley-community.de\httpdocs
_SERVER["QUERY_STRING"]	no value
_SERVER["REMOTE_ADDR"]	88.134.166.113
_SERVER["REMOTE_HOST"]	88.134.166.113
_SERVER["REMOTE_USER"]	no value
_SERVER["REQUEST_METHOD"]	GET
_SERVER["SERVER_NAME"]	www.elvispresley-community.de
_SERVER["SERVER_PORT"]	80
_SERVER["SERVER_PROTOCOL"]	HTTP/1.1
_SERVER["SERVER_SOFTWARE"]	Microsoft-IIS/6.0
_SERVER["APPL_MD_PATH"]	/LM/W3SVC/32334/Root
_SERVER["APPL_PHYSICAL_PATH"]	C:\Inetpub\vhosts\elvispresley-community.de\httpdocs\
_SERVER["INSTANCE_ID"]	32334
_SERVER["INSTANCE_META_PATH"]	/LM/W3SVC/32334
_SERVER["LOGON_USER"]	no value
_SERVER["REQUEST_URI"]	/info.php
_SERVER["URL"]	/info.php
_SERVER["SCRIPT_FILENAME"]	C:\Inetpub\vhosts\elvispresley-community.de\httpdocs\info.php
_SERVER["ORIG_PATH_INFO"]	/info.php
_SERVER["PATH_INFO"]	no value
_SERVER["ORIG_PATH_TRANSLATED"]	C:\Inetpub\vhosts\elvispresley-community.de\httpdocs\info.php
_SERVER["DOCUMENT_ROOT"]	C:\Inetpub\vhosts\elvispresley-community.de\httpdocs
_SERVER["PHP_SELF"]	/info.php
_SERVER["HTTP_CONNECTION"]	keep-alive
_SERVER["HTTP_KEEP_ALIVE"]	300
_SERVER["HTTP_ACCEPT"]	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_CHARSET"]	ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_ACCEPT_ENCODING"]	gzip,deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"]	de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
_SERVER["HTTP_HOST"]	www.elvispresley-community.de
_SERVER["HTTP_USER_AGENT"]	Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 (.NET CLR 3.5.30729)
_SERVER["REQUEST_TIME"]	1256987656
_SERVER["argv"]	

Array
(
)

_SERVER["argc"]	0
_ENV["ALLUSERSPROFILE"]	C:\Documents and Settings\All Users
_ENV["ClusterLog"]	C:\WINDOWS\Cluster\cluster.log
_ENV["CommonProgramFiles"]	C:\Program Files (x86)\Common Files
_ENV["CommonProgramFiles(x86)"]	C:\Program Files (x86)\Common Files
_ENV["CommonProgramW6432"]	C:\Program Files\Common Files
_ENV["COMPUTERNAME"]	VPS23579
_ENV["ComSpec"]	C:\WINDOWS\system32\cmd.exe
_ENV["FP_NO_HOST_CHECK"]	NO
_ENV["MAILENABLE_PATH"]	C:\PARALL~1\Plesk\MAILSE~1\MAILEN~1
_ENV["NUMBER_OF_PROCESSORS"]	8
_ENV["OS"]	Windows_NT
_ENV["Path"]	C:\PARALL~1\Plesk\ADDITI~1\Perl\bin\;C:\Parallels\Plesk\Mail Servers\Mail Enable\BIN;C:\PARALL~1\Plesk\ADDITI~1\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
_ENV["PATHEXT"]	.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["plesk_bin"]	C:\Parallels\Plesk\admin\bin
_ENV["plesk_dir"]	C:\Parallels\Plesk\
_ENV["plesk_vhosts"]	C:\inetpub\vhosts\
_ENV["PROCESSOR_ARCHITECTURE"]	x86
_ENV["PROCESSOR_ARCHITEW6432"]	AMD64
_ENV["PROCESSOR_IDENTIFIER"]	EM64T Family 6 Model 23 Stepping 6, GenuineIntel
_ENV["PROCESSOR_LEVEL"]	6
_ENV["PROCESSOR_REVISION"]	1706
_ENV["ProgramFiles"]	C:\Program Files (x86)
_ENV["ProgramFiles(x86)"]	C:\Program Files (x86)
_ENV["ProgramW6432"]	C:\Program Files
_ENV["SystemDrive"]	C:
_ENV["SystemRoot"]	C:\WINDOWS
_ENV["TEMP"]	C:\WINDOWS\TEMP
_ENV["TMP"]	C:\WINDOWS\TEMP
_ENV["USERPROFILE"]	C:\Documents and Settings\Default User
_ENV["windir"]	C:\WINDOWS
swsche ist offline  
Alt 31.10.2009, 12:30  
Neuer Benutzer
 
Registriert seit: 31.10.2009
Beiträge: 6
PHP-Kenntnisse:
Anfänger
swsche befindet sich auf einem aufstrebenden Ast
Standard

Wie ich soeben bemerke tritt der selbe Fehler auch bei einem weiteren Script auf.

Hier sollen Thumbnails durch eine thumbnail.php dargestellt werden. Leider wird aber ausser dem Alt-Text nichts angezeigt.

Die URL sieht folgendermaße aus.
Code:
thumbnail.php?pic=uplimg/img__5b6b95a4ab98db2b8cc163c49c03f718.jpg&w=500&sq=Y&b=Y


Der Coder der thumbnails.php lautet:

PHP-Code:
<?


include_once('includes/class_image.php');

$image = new image();

(string) 
$pic null;

$pic eregi_replace(' ','%20',$_GET['pic']);

$thumbnail_width abs(intval($_GET['w']));
$is_square = ($_GET['sq']=='Y')? true false;
$is_border = ($_GET['b']=='Y') ? true false;

(array) 
$info null;

$info = @getimagesize($pic);
list(
$im_width$im_height$im_type$im_attr) = $info;

if (empty(
$info)||$im_type>3$pic 'images/broken.gif';

$pic_no_spaces eregi_replace('%20','',$pic);

$pic_cached eregi_replace($image->image_basedir,'',$pic_no_spaces);

if (
$_GET['check']=='phpinfo')
{
    
phpinfo();
}
else
{
    
$allowed_extension $image->allowed_extension($pic);

    if (isset(
$pic) && $thumbnail_width>&& $allowed_extension)
    {
        
/* check to see if file already exists in cache, and output it with no processing if it does */
        
$cached_filename $image->set_cache_filename($pic_cached$thumbnail_width$is_square$is_border);

        if (
is_file($cached_filename)) /* display cached filename */
        
{
            
header('Content-type: image/jpeg');
            
header('Location: ' $cached_filename '?' rand(2,9999));
        }
        else 
/* create new thumbnail, and add it into the cache directory as well */
        
{
            
header('Content-type: image/jpeg');

            
$cache_output $image->set_cache_filename($pic_cached$thumbnail_width$is_square$is_border);
            
$image->generate_thumb($pic$thumbnail_width$is_square$is_border$cache_output);

            
header('Location: ' $cache_output '?' rand(2,9999));
        }
    }
    else if (!isset(
$pic))
    {
        echo 
"<strong>ERROR:</strong> No image submitted";
    }
    else if (
$thumbnail_width<=0)
    {
        echo 
"<strong>ERROR:</strong> Invalid resizing option";
    }
    else if (!
$allowed_extension)
    {
        echo 
"<strong>ERROR:</strong> Prohibited file extension";
    }
}
?>
Ich gehe also davon aus, des es sich um eine Einstellungssache mit PHP handelt.
swsche ist offline  
Alt 31.10.2009, 13:05  
Neuer Benutzer
 
Registriert seit: 31.10.2009
Beiträge: 6
PHP-Kenntnisse:
Anfänger
swsche befindet sich auf einem aufstrebenden Ast
Standard

Irre ich mich, oder sollte nicht in den Element-Eigenschaften als Typ JPEG-Grafik und nicht wie oben zu sehen text/html stehen?
swsche ist offline  
Alt 31.10.2009, 14:05  
moderatives Dielektrikum
 
Benutzerbild von nikosch
 
Registriert seit: 21.05.2008
Beiträge: 35.987
PHP-Kenntnisse:
Fortgeschritten
nikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunft
Standard

Das kann alles mögliche sein, schon angefangen von short open tags.

Nimm den header vorübergehend raus und füge error_reporting in das Thumbnailscript ein und rufe es mit der Bild-URL direkt auf.
__________________
--
One pixel is still too big. Please make it smaller. ASAP.

Initiative Mittelstand.
Die wichtigste Gestaltungsregel im Screendesign ist Pi mal Daumen des Arbeitgebers.
--
nikosch ist offline  
Alt 31.10.2009, 14:12  
Neuer Benutzer
 
Registriert seit: 31.10.2009
Beiträge: 6
PHP-Kenntnisse:
Anfänger
swsche befindet sich auf einem aufstrebenden Ast
Standard

Danke für den Tip. Bin leider nicht so fit in PHP. Wie mache ich das?
swsche ist offline  
Alt 31.10.2009, 14:49  
Erfahrener Benutzer
 
Registriert seit: 05.02.2009
Beiträge: 1.401
PHP-Kenntnisse:
Fortgeschritten
Destruction ist zur Zeit noch ein unbeschriebenes Blatt
Standard

4 Posts hintereinander?
Wow... Das nenne ich Multiposting lol^^
__________________
"Dummheit redet viel..Klugheit denkt und schweigt.." [Amgervinus]
Destruction ist offline  
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
CHarset und Probleme mit IE KeKs0r HTML, Usability und Barrierefreiheit 10 26.01.2010 21:59
[Erledigt] fopen() Probleme jN^ PHP Tipps 2009 2 18.08.2009 12:31
[Erledigt] Firefox / IE - Probleme HTML, Usability und Barrierefreiheit 5 20.07.2009 17:04
Win+Firefox alles ok, IE oder Linux: Probleme vollderdude PHP Tipps 2009 6 02.01.2009 16:17
[Erledigt] Probleme mit iFrame rocco HTML, Usability und Barrierefreiheit 1 28.12.2008 17:44
Probleme bei Speicherung von serialize() Strings Manni2k PHP Tipps 2006 13 15.10.2006 15:06
Probleme mit mbstring extension unter Debian HStev Server, Hosting und Workstations 3 30.08.2006 20:55
Probleme mit Rechteverteilung chmod() per script!!!??? Funky_ PHP Tipps 2006 7 17.06.2006 17:10
Probleme bei der Installation von Turck MMCache tomx992 PHP-Fortgeschrittene 2 27.09.2005 20:31
Probleme mit Sonderzeichen... Datenbanken 1 02.08.2005 23:37
[Erledigt] CSV Größe macht Probleme mit php PHP Tipps 2005 5 15.03.2005 21:29
Zwei Rechner ins Netz - Router - Hub - Probleme... imported_Ben Off-Topic Diskussionen 37 13.01.2005 21:36
[Erledigt] Technische Probleme mit Sessions PHP-Fortgeschrittene 4 18.11.2004 14:45
[Erledigt] Probleme mit Fremdsprachen HTML, Usability und Barrierefreiheit 2 21.09.2004 17:11
PHP Bilder in DB / Probleme bei Änderung PHP-Fortgeschrittene 1 05.06.2004 11:20

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
bildgenerierung, php png auf udp streamen, http_keep_alive php.ini, ini_set(\'max_execution_time\', 180); \host europe\, \plesk 10\ upload_max_filesize, plesk imagecreate, \plesk 10\ \enable_dl\, strato php gettext, perl programw6432, php bildgenerierung, stephan wäsche, php imagecreate schatten, php appl_physical_path ausgeben, php enable_dl in parallels ändern, php ini remote_user aktivieren, bytearray encoder.append form variables host europe, c:\\program files (x86)\\parallels\\plesk\\isapi\\system\\connection.php on line 45 deutsch, plesk 10 gdlib php windows, plesk gd lib windows, plesk10 strato server image gd

Alle Zeitangaben in WEZ +2. Es ist jetzt 16:49 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum