php.de

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

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 06.03.2005, 16:20   #1 (permalink)
Gast
 
Beiträge: n/a
Standard [Erledigt] warum kann nicht SVG files laden?

dasselbe Programm an den URL /hotel ,macht noch ein Fehler:
wenn man sich als admin einlogt -->adminhaupt link waehlt und--->
addhotel.php files neues DB einfuhlt mit difrenet Country name und City name, dann kann nicht die .jpg und .svg files laden,gibt error:

"The type of the file is not correct!It must be with extension .jpg ,.png or .gif!Please go back and upload correct file!";

dann kann die .jpg file nicht in :
$uploaddir = "\\home\\localhost\\www\\"; ...laden??
wo soll diese Phad sein??
hier die ganze Code:
<?php
session_start();
if (!session_is_registered("valid_user")|| $valid_user!="admin")
{
echo "Only the administrator has permisions to visit this page!</br>";
exit();

}
include ("func.php");

ConectDb();

$flag=true;

if (!$hotel_name || !$hotel_addr || !$hotel_catagory || !$hotel_info || !$hotel_details || !$hotel_room)

{
echo "You didn't fill some field(s)!Please go back and fill all correct!";
$flag=0;
saveForm("hotelForm.php");
exit();

}

if (!(ereg("^[a-zA-Z0-9]+$",$hotel_name)))
{
echo "<tr><td>Notice:</td></tr>";
echo "<tr><td>The name of the hotel is maybe not correct!Please go back and try again!</td></tr></br>";
$flag=0;
saveForm("hotelForm.php");
exit();
}

$query="SELECT city.city_id FROM countries,city WHERE countries.country_name='$hotel_country' and city.city_name='$hotel_city' and city.c_id=countries.c_id;";
$res=mysql_query($query);
if (!$num_rows=@mysql_num_rows($res))
{

$query_country="SELECT countries.c_id FROM countries WHERE countries.country_name='$hotel_country';";
$res_country=mysql_query($query_country);
if (!$num_rows=@mysql_num_rows($res_country))
{
echo "<center>This country doesn't exist in the database!Please go back and enter it first!</center>";
saveForm("hotelForm.php?flag=NECountry");
exit();
/*$relative_url="addcountry.php?name=$hotel_country &kind=country";
header("Location: http://".$_SERVER['HTTP_HOST']
.dirname($_SERVER['PHP_SELF'])
."/".$relative_url);
exit();*/
}


else
{
$temparray=@mysql_fetch_array($res_country);
$c_id=$temparray["c_id"];
$query_city="SELECT city.city_id FROM city WHERE city.city_name='$hotel_city';";
$res_city=mysql_query($query_city);
if (!$num_rows=@mysql_num_rows($res_city))
{
echo "<center>This city doesn't exist in the database!Please go back and enter it first!</center>";
saveForm("hotelForm.php?flag=NECity&c_id=$c_id");
exit(); /*$relative_url="addcountry.php?name=$hotel_city&c_ id=$c_id&kind=city";
header("Location: http://".$_SERVER['HTTP_HOST']
.dirname($_SERVER['PHP_SELF'])
."/".$relative_url);


exit();*/
}
else
{
echo "<center>You have entered wrong city and country!Please go back and try again!</center></br>";
saveForm("hotelForm.php");
exit();
}
}
}

else
{
$temparray=@mysql_fetch_array($res);
$hotel_city_id=$temparray["city_id"];
$flag=1;
}


//PROVERKA NA VHODNITE DANNI OT hotelForm.php

if ((strlen($hotel_addr) < 3) || (strlen($hotel_addr) > 100))
{
echo "The addres of the hotel is maybe not correct!Please go back and try again!</br>";

$flag=0;
saveForm("hotelForm.php");
exit();
}
if (!(ereg("^[0-9]+$",$hotel_catagory)) || ($hotel_catagory > 5))
{
echo "<tr><td>The catagory of the hotel is not correct!Please go back and try again!</td></tr></br>";
$flag=0;
saveForm("hotelForm.php");
exit();
}
if (!empty($userfile))
{
if($userfile_size==0)
{
echo "Uploaded file is zero length";
$flag=0;
saveForm("hotelForm.php");
exit();
}
if(($userfile_type!="image/jpg") && ($userfile_type!="image/png") && ($userfile_type!="image/gif"))
{
echo "The type of the file is not correct!It must be with extension .jpg ,.png or .gif!Please go back and upload correct file!";
echo "$userfile_type";
$flag=0;
saveForm("hotelForm.php");
exit();
}
}
//echo "<form><input type='button' name='Back' value='Back' onclick='history.back();'></form>";
//KRAI NA PROVERKATA NA VHODNITE DANNI
if ($flag)
{
$hotel_name=trim($hotel_name);
$hotel_catagory=trim($hotel_catagory);
if (!empty($userfile))
{
$uploaddir = "\\home\\localhost\\www\\";
$uploadfile = $uploaddir.$userfile_name;
if (!move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile))
{
echo "Could not move file into directory!";
saveForm("hotelForm.php");
exit();
}
}
//$data=addslashes(fread(fopen($hotel_view, "rb"), filesize($hotel_view)));
$query_ins="INSERT INTO hotels (city_id,name,addr,stars,info,hoteldetails,roomama nity,h_pic) VALUES ('$hotel_city_id','$hotel_name','$hotel_addr','$ho tel_catagory','$hotel_info','$hotel_details','$hot el_room','$userfile_name')";
$res_ins=mysql_query($query_ins);
if (!$res_ins)
{
echo "The operation failed! Please try again later!";
exit();

}
else
{
//PREDAVANE KYM SCRIPT ZA VYVEJDANE NA TIPOVE STAI
//$query_sel="SELECT h_id FROM hotels WHERE name='$hotel_name';";
//$res_sel=mysql_query($query_sel);
//$temparray=@mysql_fetch_array($res_sel);
//$hotel_id=$temparray["h_id"];
$hotel_id=mysql_insert_id();


$relative_url="addroom.php?hotel_id=$hotel_id";
header("Location: http://".$_SERVER['HTTP_HOST']
.dirname($_SERVER['PHP_SELF'])
."/".$relative_url);
exit();
//echo "The information for the hotel was entered successful";



}

}
echo "<html>";
echo "<body link='#4040FF' vlink='#463FA3' bgcolor='#eeeeee' >";
TableAdmin();

?>

</body>

</html>
 
Sponsor Mitteilung
PHP Code Flüsterer

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

Alt 06.03.2005, 16:30   #2 (permalink)
Gast
 
Beiträge: n/a
Standard Re: warum kann nicht SVG files laden?

Zitat:
Zitat von ljubka
"The type of the file is not correct!It must be with extension .jpg ,.png or .gif!Please go back and upload correct file!";

dann kann die .jpg file nicht in :
$uploaddir = "\\home\\localhost\\www\\"; ...laden??
wo soll diese Phad sein??
1. Einfach mal selbst suchen (Unterhalb von
Code:
//PROVERKA NA VHODNITE DANNI OT hotelForm.php 

if ((strlen($hotel_addr) < 3) || (strlen($hotel_addr) > 100))
2. Der Pfad/Path ist komplett falsch. Gib bitte einen Link auf Dein phpinfo an, damit man erst mal sehen kann, ob es Linux oder Windows ist, welche PHP Version usw.

3. Deine Reaktion auf HTTP Upload ist falsch. Lies bitte das durch:
11.11. Wie funktioniert ein Datei-Upload über HTML-Formulare?
http://www.php-faq.de/q/q-formular-upload-php4.html

4. und fomatiere Deine Scripte so, daß man sie lesen kann. So sieht das doch viel besser aus:

PHP-Code:
<?php
    session_start
();
    if (!
session_is_registered("valid_user")|| $valid_user!="admin")
    {
        echo 
"Only the administrator  has  permisions to visit this page!</br>";
        exit();
    
    }
    include (
"func.php");
            
    
ConectDb();

    
$flag=true;    

        if (!
$hotel_name || !$hotel_addr || !$hotel_catagory || !$hotel_info || !$hotel_details || !$hotel_room)
                
                {
                    echo 
"You didn't fill some field(s)!Please go back and fill all correct!";
                    
$flag=0;
                    
saveForm("hotelForm.php");
                    exit();
                
                }
                
                if (!(
ereg("^[a-zA-Z0-9]+$",$hotel_name)))
                {
                    echo 
"<tr><td>Notice:</td></tr>";
                    echo 
"<tr><td>The name of the hotel is maybe not correct!Please go back and try again!</td></tr></br>";
                    
$flag=0;
                    
saveForm("hotelForm.php");
                exit();
                }
                
          
$query="SELECT city.city_id FROM countries,city WHERE     countries.country_name='$hotel_country' and city.city_name='$hotel_city' and city.c_id=countries.c_id;";
            
$res=mysql_query($query);
            if (!
$num_rows=@mysql_num_rows($res))
            {
                    
                 
$query_country="SELECT countries.c_id FROM countries WHERE                                             countries.country_name='$hotel_country';";
                 
$res_country=mysql_query($query_country);
                    if (!
$num_rows=@mysql_num_rows($res_country))
                    {
                        echo 
"<center>This country doesn't exist in the database!Please go back and enter it first!</center>";
                        
saveForm("hotelForm.php?flag=NECountry");
                        exit();
                        
/*$relative_url="addcountry.php?name=$hotel_country&kind=country";
                        header("Location: http://".$_SERVER['HTTP_HOST']
                            .dirname($_SERVER['PHP_SELF'])
                            ."/".$relative_url);
                        exit();*/
                    
}
                    
                    
                    else
                    {
                        
$temparray=@mysql_fetch_array($res_country);
                        
$c_id=$temparray["c_id"];
                        
$query_city="SELECT city.city_id FROM city WHERE                                             city.city_name='$hotel_city';";
                         
$res_city=mysql_query($query_city);
                        if (!
$num_rows=@mysql_num_rows($res_city))
                        {
                            echo 
"<center>This city doesn't exist in the database!Please go back and enter it first!</center>";
                        
saveForm("hotelForm.php?flag=NECity&c_id=$c_id");
                        exit();    
/*$relative_url="addcountry.php?name=$hotel_city&c_id=$c_id&kind=city";
                            header("Location: http://".$_SERVER['HTTP_HOST']
                            .dirname($_SERVER['PHP_SELF'])
                            ."/".$relative_url);


                            exit();*/
                        
}
                        else
                        {
                            echo  
"<center>You have entered wrong city and country!Please go back and try again!</center></br>";
                            
saveForm("hotelForm.php");
                            exit();
                        }
                    }
            }
                            
            else
                {
                    
$temparray=@mysql_fetch_array($res);
                    
$hotel_city_id=$temparray["city_id"];
                    
$flag=1;
                }
            
        
//PROVERKA NA VHODNITE DANNI OT hotelForm.php        
                
            
if ((strlen($hotel_addr) < 3) || (strlen($hotel_addr) > 100))
            {    
                echo 
"The addres of the hotel is maybe not correct!Please go back and try again!</br>";
                
                
$flag=0;
                
saveForm("hotelForm.php");
                exit();
            }
            if (!(
ereg("^[0-9]+$",$hotel_catagory)) || ($hotel_catagory 5))
                {
                    echo 
"<tr><td>The catagory of the hotel is not correct!Please go back and try again!</td></tr></br>";
                    
$flag=0;
                
saveForm("hotelForm.php");
                exit();
                }
            if (!empty(
$userfile))
            {
                if(
$userfile_size==0)
                {
                    echo 
"Uploaded file is zero length";
                    
$flag=0;
                    
saveForm("hotelForm.php");
                    exit();
                }
                if((
$userfile_type!="image/jpg") && ($userfile_type!="image/png") && ($userfile_type!="image/gif"))
                {
                    echo 
"The type of the file is not correct!It must be with extension .jpg ,.png or .gif!Please go back and upload correct file!";
                    echo 
"$userfile_type";
                    
$flag=0;
                    
saveForm("hotelForm.php");
                    exit();
                }
            }
            
//echo "<form><input type='button' name='Back' value='Back' onclick='history.back();'></form>";
//KRAI NA PROVERKATA NA VHODNITE DANNI
        
if ($flag)
        {
            
$hotel_name=trim($hotel_name);
            
$hotel_catagory=trim($hotel_catagory);
                if (!empty(
$userfile))
            {
                
$uploaddir "\\home\\localhost\\www\\";
                
$uploadfile $uploaddir.$userfile_name;
                if (!
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile))
                {
                    echo 
"Could not move file into directory!";
                    
saveForm("hotelForm.php");
                    exit();
                }
            }
            
//$data=addslashes(fread(fopen($hotel_view, "rb"), filesize($hotel_view)));
            
$query_ins="INSERT INTO hotels (city_id,name,addr,stars,info,hoteldetails,roomamanity,h_pic) VALUES ('$hotel_city_id','$hotel_name','$hotel_addr','$hotel_catagory','$hotel_info','$hotel_details','$hotel_room','$userfile_name')";
            
$res_ins=mysql_query($query_ins);
                if (!
$res_ins)
                {
                    echo 
"The operation failed! Please try again later!";
                    exit();
                    
                }
                else
                {
            
//PREDAVANE KYM SCRIPT ZA VYVEJDANE NA TIPOVE STAI
                    //$query_sel="SELECT h_id FROM hotels WHERE name='$hotel_name';";
                    //$res_sel=mysql_query($query_sel);
                    //$temparray=@mysql_fetch_array($res_sel);
                    //$hotel_id=$temparray["h_id"];
                    
$hotel_id=mysql_insert_id();
                    
                    
                    
$relative_url="addroom.php?hotel_id=$hotel_id";
                        
header("Location: http://".$_SERVER['HTTP_HOST']
                        .
dirname($_SERVER['PHP_SELF'])
                        .
"/".$relative_url);
                    exit();
                    
//echo "The information for the hotel was entered successful";

                    
                    
                
}
        
        }
    echo 
"<html>";
    echo 
"<body link='#4040FF' vlink='#463FA3'  bgcolor='#eeeeee' >";
    
TableAdmin();
    
?>
    
    </body>
    
    </html>
 
Alt 08.03.2005, 13:58   #3 (permalink)
Gast
 
Beiträge: n/a
Standard

PHPInfo :
PHP Version 5.0.2

System Windows NT X-P 5.1 build 2600
Build Date Sep 24 2004 01:24:24
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\apachefriends\xampp\apache\bin\php.ini
PHP API 20031224
PHP Extension 20040412
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls

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

PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags On On
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap c:\apachefriends\xampp\php\browscap\browscap.ini c:\apachefriends\xampp\php\browscap\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 2039 2039
expose_php On On
extension_dir c:\apachefriends\xampp\php\ext\ c:\apachefriends\xampp\php\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 .;c:\apachefriends\xampp\php\pear\ .;c:\apachefriends\xampp\php\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 1200 1200
max_input_time 60 60
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 16M 16M
precision 14 14
register_argc_argv Off Off
register_globals On On
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 postmaster@localhost postmaster@localhost
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 16M 16M
upload_tmp_dir .;c:\apachefriends\xampp\tmp .;c:\apachefriends\xampp\tmp
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

apache2handler
Apache Version Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2
Apache API Version 20020903
Server Administrator admin@localhost
Hostname:Port localhost:0
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 0
Virtual Server No
Server Root C:/apachefriends/xampp/apache
Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dir mod_env mod_include mod_log_config mod_mime mod_setenvif mod_ssl mod_php5

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment
Variable Value
HTTP_HOST localhost
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
HTTP_REFERER http://localhost/xampp/navi.php
PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32 \Wbem;C:\PROGRA~1\COMMON~1\AUTODE~1;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\ASRAPI\BIN
SystemRoot C:\WINDOWS
COMSPEC C:\WINDOWS\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
WINDIR C:\WINDOWS
SERVER_SIGNATURE <address>Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2 Server at localhost Port 80</address>
SERVER_SOFTWARE Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2
SERVER_NAME localhost
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT C:/apachefriends/xampp/htdocs
SERVER_ADMIN admin@localhost
SCRIPT_FILENAME C:/apachefriends/xampp/htdocs/xampp/phpinfo.php
REMOTE_PORT 1372
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /xampp/phpinfo.php
SCRIPT_NAME /xampp/phpinfo.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /xampp/phpinfo.php HTTP/1.1
Host localhost
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer http://localhost/xampp/navi.php
HTTP Response Headers
X-Powered-By PHP/5.0.2
Keep-Alive timeout=15, max=95
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html; charset=ISO-8859-1

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

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

ftp
FTP support enabled

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

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

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

libxml
libXML support active
libXML Version 2.6.11
libXML streams enabled

ming
Ming SWF output library enabled
Version 0.2a

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 25 25
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 3.23.57

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout -1 -1
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

openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7c 30 Sep 2003

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003

pdf
PDF Support enabled
PDFlib GmbH Binary-Version 5.0.3
Revision $Revision: 1.134 $

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 Off Off
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_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:\apachefriends\xampp\tmp .;c:\apachefriends\xampp\tmp
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.139.2.4 $
Schema support enabled

SPL
SPL support enabled
Interfaces RecursiveIterator, SeekableIterator
Classes ArrayObject, ArrayIterator, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator

SQLite
SQLite support enabled
PECL Module version 2.0-dev $Id: sqlite.c,v 1.146.2.2 2004/08/02 22:43:42 iliaa Exp $
SQLite Library 2.8.14
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
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.83 90.83
date.sunset_zenith 90.83 90.83
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=,fieldse t= a=href,area=href,frame=src,input=src,form=,fieldse t=
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.11

xsl
XSL enabled
libxslt Version 1.1.7
libxslt compiled against libxml Version 2.6.11
EXSLT enabled
libexslt Version 0.8.5

zip
Zip support enabled

zlib
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4

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
APPDATA C:\Documents and Settings\X\Application Data
CLASSPATH C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables
CLIENTNAME Console
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME X-P
ComSpec C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK NO
HOMEDRIVE C:
HOMEPATH \Documents and Settings\X
LOGONSERVER \\X-P
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32 \Wbem;C:\PROGRA~1\COMMON~1\AUTODE~1;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\ASRAPI\BIN
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 1, AuthenticAMD
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 0801
ProgramFiles C:\Program Files
PS5ROOT C:\Program Files\Roxio\PhotoSuite\
SESSIONNAME Console
SystemDrive C:
SystemRoot C:\WINDOWS
TEMP C:\DOCUME~1\X\LOCALS~1\Temp
TMP C:\DOCUME~1\X\LOCALS~1\Temp
USERDOMAIN X-P
USERNAME X
USERPROFILE C:\Documents and Settings\X
windir C:\WINDOWS
AP_PARENT_PID 248

PHP Variables
Variable Value
PHP_SELF /xampp/phpinfo.php
_SERVER["HTTP_HOST"] localhost
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
_SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_REFERER"] http://localhost/xampp/navi.php
_SERVER["PATH"] C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32 \Wbem;C:\PROGRA~1\COMMON~1\AUTODE~1;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\ASRAPI\BIN
_SERVER["SystemRoot"] C:\WINDOWS
_SERVER["COMSPEC"] C:\WINDOWS\system32\cmd.exe
_SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_SERVER["WINDIR"] C:\WINDOWS
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2 Server at localhost Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2
_SERVER["SERVER_NAME"] localhost
_SERVER["SERVER_ADDR"] 127.0.0.1
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 127.0.0.1
_SERVER["DOCUMENT_ROOT"] C:/apachefriends/xampp/htdocs
_SERVER["SERVER_ADMIN"] admin@localhost
_SERVER["SCRIPT_FILENAME"] C:/apachefriends/xampp/htdocs/xampp/phpinfo.php
_SERVER["REMOTE_PORT"] 1372
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /xampp/phpinfo.php
_SERVER["SCRIPT_NAME"] /xampp/phpinfo.php
_SERVER["PHP_SELF"] /xampp/phpinfo.php
_ENV["ALLUSERSPROFILE"] C:\Documents and Settings\All Users
_ENV["APPDATA"] C:\Documents and Settings\X\Application Data
_ENV["CLASSPATH"] C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables
_ENV["CLIENTNAME"] Console
_ENV["CommonProgramFiles"] C:\Program Files\Common Files
_ENV["COMPUTERNAME"] X-P
_ENV["ComSpec"] C:\WINDOWS\system32\cmd.exe
_ENV["FP_NO_HOST_CHECK"] NO
_ENV["HOMEDRIVE"] C:
_ENV["HOMEPATH"] \Documents and Settings\X
_ENV["LOGONSERVER"] \\X-P
_ENV["NUMBER_OF_PROCESSORS"] 1
_ENV["OS"] Windows_NT
_ENV["Path"] C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32 \Wbem;C:\PROGRA~1\COMMON~1\AUTODE~1;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\ASRAPI\BIN
_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["PROCESSOR_ARCHITECTURE"] x86
_ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 1, AuthenticAMD
_ENV["PROCESSOR_LEVEL"] 6
_ENV["PROCESSOR_REVISION"] 0801
_ENV["ProgramFiles"] C:\Program Files
_ENV["PS5ROOT"] C:\Program Files\Roxio\PhotoSuite\
_ENV["SESSIONNAME"] Console
_ENV["SystemDrive"] C:
_ENV["SystemRoot"] C:\WINDOWS
_ENV["TEMP"] C:\DOCUME~1\X\LOCALS~1\Temp
_ENV["TMP"] C:\DOCUME~1\X\LOCALS~1\Temp
_ENV["USERDOMAIN"] X-P
_ENV["USERNAME"] X
_ENV["USERPROFILE"] C:\Documents and Settings\X
_ENV["windir"] C:\WINDOWS
_ENV["AP_PARENT_PID"] 248

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

 
Alt 08.03.2005, 14:06   #4 (permalink)
Gast
 
Beiträge: n/a
Standard

@meikel
die php info ist da.
dias leuft unter Windows mit SVG Viewer 3.0. PHP5 an XAMPP Server...
wenn du noch helfen kannst und willst ,dann sende dich die php.files wo ich die errors bekomme, sind 2-3 .
Noch wenn du kannst probiere den URL wo das Programm stehet als user und admin und sage ob du alles korrekt bekommst und alle svg files siehst und laden kannst!
Maile mir!
Ljubka
DANKE
 
Alt 08.03.2005, 14:20   #5 (permalink)
Erfahrener Benutzer
 
Benutzerbild von robo47
 
Registriert seit: 03.09.2004
Beiträge: 11.592
PHP-Kenntnisse:
Fortgeschritten
robo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblick
Standard

Ich würde von SVG abraten, weil jeder benutzer der sich die Seite anschauen will braucht dieses Plugin. Das schreckt mit Sicherheit viele Benutzer ab. Und bitte unterlass das doppelposting überall.

mfg
Robo47
robo47 ist offline  
Alt 08.03.2005, 17:47   #6 (permalink)
Gast
 
Beiträge: n/a
Standard

Zitat:
Zitat von ljubka
PHPInfo :
PHP Version 5.0.2

System Windows NT X-P 5.1 build 2600
Update auf 5.0.3 Die v5.0.2 hatte meines Wissens noch ein paar häßliche Macken.

Hoffentlich verwendest Du die Windowsversion ausschließlich nur zum Entwickeln.
 
Alt 08.03.2005, 17:48   #7 (permalink)
Erfahrener Benutzer
 
Benutzerbild von robo47
 
Registriert seit: 03.09.2004
Beiträge: 11.592
PHP-Kenntnisse:
Fortgeschritten
robo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblickrobo47 ist ein wunderbarer Anblick
Standard

Zitat:
Zitat von meikel
Zitat:
Zitat von ljubka
PHPInfo :
PHP Version 5.0.2

System Windows NT X-P 5.1 build 2600
Update auf 5.0.3 Die v5.0.2 hatte meines Wissens noch ein paar häßliche Macken.

Hoffentlich verwendest Du die Windowsversion ausschließlich nur zum Entwickeln.
denkst du das bringt ihr bei seinem/ihrem problem weiter? diese SVG's sind doch grafiken, die werden ja nciht übers php erstellt oder irre ich mich ?

mfg
robo47
robo47 ist offline  
Alt 08.03.2005, 18:07   #8 (permalink)
Gast
 
Beiträge: n/a
Standard

Hmmm:

SVG steht für Scalable Vector Grafics und ist das standardisierte Vektorgrafikformat fürs Web.
Mit PHP hat das garnichts zu tun.
Leider ist diese Art und Weise noch nicht so verbreitet, sodass man ohne nachinstallieren von einen Plugin nicht herumkommt.
 
Alt 08.03.2005, 18:16   #9 (permalink)
Gast
 
Beiträge: n/a
Standard

Zitat:
Zitat von robo47
oder irre ich mich ?
KA. Für SVG bin ich nicht zuständig. Davon habe ich genauso wenig Ahnung wie von Flash. In diesem Forum gehts um PHP.
 
Alt 08.03.2005, 18:17   #10 (permalink)
Gast
 
Beiträge: n/a
Standard

Stimmt,
nur SVG Viere 3.0 free downloaden,

und dann bitte als user ,oder admin mal ausprobieren!



wer kann dann die errors 2-3 korrigieren??
 
Sponsor Mitteilung
PHP Code Flüsterer

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

 


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
2. Bild laden ohne die seite neu zu laden andrew22 HTML, Usability und Barrierefreiheit 3 21.10.2006 23:37
[Erledigt] warum kann nicht SVG files laden? phpbeginner HTML, Usability und Barrierefreiheit 6 18.08.2005 16:03
Seite nicht mit F5 oder über den Browser neu laden lassen? PHP Tipps 2005-2 4 09.08.2005 00:58
files anzeigen die nur .pdf heissen PHP Tipps 2005-2 6 08.08.2005 19:42
Je Auswahl Laden einer Datenbanktabelle PHP Tipps 2005-2 0 05.08.2005 14:15
Je Auswahl Laden einer Datenbanktabelle PHP Tipps 2005-2 0 05.08.2005 14:15
Je nach Auswahl eine Tabelle aus einer Datenbank laden PHP Tipps 2005-2 0 05.08.2005 14:14
Je nach Auswahl eine Tabelle aus einer Datenbank laden PHP Tipps 2005-2 0 05.08.2005 14:14
phpMyAdmin: Benutzertabellen neu laden -> Datenbanken weg PHP Tipps 2005-2 2 22.07.2005 08:52
Systemfont laden um im Image zu schreiben HStev PHP Tipps 2005-2 2 11.07.2005 19:13
Bestimmte Dateien am Anfang der Seite laden HTML, Usability und Barrierefreiheit 8 10.07.2005 22:30
Download Files bzw. Upload files !! PHP Tipps 2005 2 29.03.2005 20:20
Files zippen mit ftp_exec()?! - Hilfe PHP-Fortgeschrittene 0 24.01.2005 10:39
.php5 files Server, Hosting und Workstations 11 31.08.2004 19:29
*.txt beim laden einer php leeren? PHP Tipps 2004 4 03.07.2004 22:40

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
xampp svg, svg files, c:\\documents and settings\\all users\\application data\\ phpmyadmin, hilfe wie kann ich svg downloaden?, svg txt markieren, xampp pear module laden, svg xampp, wo kann ich svg-files download, svg php, regex,svg, header(\location: http://\.$_server[\'http_host\'].$_server[\'php_self\'].\?cmd=\.$cmd);, where i can share upload svg files, php pear file lesen von %userprofil%, \asrapi.ini could not be updated\, svg server formular, \fread(fopen(\ image iconv, netscape logo.svg - wikimedia commons, free svg files, operation7server connection failed, svg plugin not enabled

Alle Zeitangaben in WEZ +2. Es ist jetzt 09:58 Uhr.




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

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.