Avatar billede christianandersen Nybegynder
08. marts 2009 - 11:04 Der er 15 kommentarer og
1 løsning

php 5 -> php 6

hej,
Jeg har lige installeret appserv 2.6, som åbenbart inkludere php6.

Mit problem er, at mine gamle scripts som virkede fint i php5 ikke bliver læst.

f.eks. (index.php)

<?php
require_once("config.php");
require_once("kerne.php");
require_once("sideopbygning.php");
open_side("Nyheder");

$foresp = mysql_query("SELECT * FROM nyheder ORDER BY id DESC LIMIT 5") or die (mysql_error());

while($resultat = mysql_fetch_array($foresp)) {
  echo"<h2>".$resultat[overskrift]."</h2>";
  echo"<small>Forfatter: ".link_bruger($resultat[forfatter])." | ";
  echo date("d/m/Y - G:i", $resultat[dato]);
  if ($resultat[redigeret_af] != NULL) {
    echo" | Redigeret af ".link_bruger($resultat[redigeret_af])." | ";
    echo date("d/m/Y - G:i", $resultat[redigeret_dato]);
  }
  echo"</small>";
  echo"<br>";
  echo substr(nl2br($resultat[tekst]),0,100);
  echo"<div align='right'><a href='../nyheder.php?id=".$resultat[id]."'>Læs mere</a></div>";
  echo"<img src='/images/border.gif' height='1' width='100%'>";
}
echo"<div align='right'><a href='../nyheder.php'>Arkiv</a></div>";

close_side();
?>

Hvis der er en ekspert i php6, som kan se fejlen eller det der skal ændres, så vil jeg meget gerne høre fra jer.
Avatar billede Slater Ekspert
08. marts 2009 - 11:33 #1
Får du en fejlbesked? Noget der kunne indikere hvor problemet er?
Avatar billede christianandersen Nybegynder
08. marts 2009 - 11:46 #2
Nej den står bare i 30 sekunder (max_execution_time = 30)
Avatar billede showsource Seniormester
08. marts 2009 - 11:53 #3
Du kan prøve at bruge " i dine navne, f.eks.
echo"<h2>".$resultat["overskrift"]."</h2>";

Og du kan prøve at echo "undervejs", for at se "hvor langt du kommer"

F.eks. i dine includefiler, echo "filnavn<p>"; o.s.v.

Hvad får du vis du højreklikker og vælger "vis kilde" ?
Avatar billede christianandersen Nybegynder
08. marts 2009 - 12:05 #4
Der er ikke rigtig noget af det der hjælper.
Det kunne ikke være min mysql connection?

Warning: mysql_connect() [function.mysql-connect]: [2002] Et forbindelsesforsøg mislykkedes, fordi den, der tilsluttede, i (trying to connect via tcp://localhost:3306) in C:\AppServ\www\config.php on line 3

Warning: mysql_connect() [function.mysql-connect]: Et forbindelsesforsøg mislykkedes, fordi den, der tilsluttede, ikke svarede korrekt efter en periode, eller forbindelsen mislykkedes, fordi den tilsluttede vært ikke svarede. in C:\AppServ\www\config.php on line 3

Fatal error: Maximum execution time of 60 seconds exceeded in C:\AppServ\www\config.php on line 4

config.php:
<?php
mysql_connect("localhost", "root", "password");
mysql_select_db("test");
?>
Avatar billede showsource Seniormester
08. marts 2009 - 12:08 #5
Jow da !
tjek at mysql kører
Avatar billede showsource Seniormester
08. marts 2009 - 12:11 #6
Måske du mangler at loade lib_mysql.dll i php.ini ?

Hvad siger en
<?php phpinfo(); ?>
om mysql ?
Avatar billede christianandersen Nybegynder
08. marts 2009 - 12:13 #7
C:\AppServ\MySQL\bin\mysql.exe kører
Avatar billede christianandersen Nybegynder
08. marts 2009 - 12:15 #8
mysql
MySQL Support enabled
Active Persistent Links  0 
Active Links  0 
Client API version  mysqlnd 5.0.4-dev - 080501 - $Revision: 1.17 $ 
Persistent cache enabled
put_hits  0 
put_misses  0 
get_hits  0 
get_misses  0 
size  2000 
free_items  2000 
references  3 

Directive Local Value Master Value
mysql.allow_local_infile On On
mysql.allow_persistent On On
mysql.cache_size 2000 2000
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


mysqli
MysqlI Support enabled
Client API library version  mysqlnd 5.0.4-dev - 080501 - $Revision: 1.17 $ 
Active Persistent Links  0 
Inactive Persistent Links  0 
Active Links  0 
Persistent cache enabled
put_hits  0 
put_misses  0 
get_hits  0 
get_misses  0 
size  2000 
free_items  2000 
references  3 

Directive Local Value Master Value
mysqli.allow_local_infile On On
mysqli.allow_persistent On On
mysqli.cache_size 2000 2000
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.max_persistent Unlimited Unlimited
mysqli.reconnect Off Off


mysqlnd
mysqlnd enabled
Version  mysqlnd 5.0.4-dev - 080501 - $Revision: 1.17 $ 
Client statistics 
bytes_sent  0 
bytes_received  0 
packets_sent  0 
packets_received  0 
protocol_overhead_in  0 
protocol_overhead_out  0 
result_set_queries  0 
non_result_set_queries  0 
no_index_used  0 
bad_index_used  0 
slow_queries  0 
buffered_sets  0 
unbuffered_sets  0 
ps_buffered_sets  0 
ps_unbuffered_sets  0 
flushed_normal_sets  0 
flushed_ps_sets  0 
ps_prepared_never_executed  0 
ps_prepared_once_executed  0 
rows_fetched_from_server_normal  0 
rows_fetched_from_server_ps  0 
rows_buffered_from_client_normal  0 
rows_buffered_from_client_ps  0 
rows_fetched_from_client_normal_buffered  0 
rows_fetched_from_client_normal_unbuffered  0 
rows_fetched_from_client_ps_buffered  0 
rows_fetched_from_client_ps_unbuffered  0 
rows_fetched_from_client_ps_cursor  0 
rows_skipped_normal  0 
rows_skipped_ps  0 
copy_on_write_saved  0 
copy_on_write_performed  0 
command_buffer_too_small  0 
connect_success  0 
connect_failure  19 
connection_reused  0 
reconnect  0 
pconnect_success  0 
active_connections  18446744073709551597 
active_persistent_connections  0 
explicit_close  0 
implicit_close  0 
disconnect_close  19 
in_middle_of_command_close  0 
explicit_free_result  0 
implicit_free_result  0 
explicit_stmt_close  0 
implicit_stmt_close  0 
mem_emalloc_count  0 
mem_emalloc_ammount  0 
mem_ecalloc_count  0 
mem_ecalloc_ammount  0 
mem_erealloc_count  0 
mem_erealloc_ammount  0 
mem_efree_count  0 
mem_malloc_count  0 
mem_malloc_ammount  0 
mem_calloc_count  0 
mem_calloc_ammount  0 
mem_realloc_calloc  0 
mem_realloc_ammount  0 
mem_free_count  0 
Collecting statistics  Yes 
Collecting memory statistics  No 
Command buffer size  2048 
Read buffer size  32768
Avatar billede christianandersen Nybegynder
08. marts 2009 - 12:19 #9
er dette kommandoen til at loade lib_mysql.dll?

extension=lib_mysql.dll
Avatar billede showsource Seniormester
08. marts 2009 - 12:38 #10
Ja, og hvis du postede hvad en phpinfo sagde, så skulle den virke.
Men prøv med

<?php
mysql_connect("localhost", "root", "password") or die (mysql_error());
mysql_select_db("test") or die (mysql_error());
?>
Avatar billede christianandersen Nybegynder
08. marts 2009 - 12:42 #11
PHP Version 6.0.0-dev

System  Windows NT CHRISTIAN-PC 6.0 build 6001 
Build Date  May 8 2008 02:04:20 
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:\Windows 
Loaded Configuration File  C:\Windows\php.ini 
PHP API  20070116 
PHP Extension  20070729 
Zend Extension  320070729 
Debug Build  no 
Thread Safety  enabled 
Zend Memory Manager  enabled 
Unicode Support  Based on Copyright (C) 2005, International Business Machines Corporation and others. All Rights Reserved. . ICU Version 3.4. 
IPv6 Support  enabled 
Registered PHP Streams php, file, glob, data, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters unicode.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.0.0-dev, Copyright (c) 1998-2008 Zend Technologies



--------------------------------------------------------------------------------

PHP Credits

--------------------------------------------------------------------------------

Configuration
PHP Core
Directive Local Value Master Value
allow_url_fopen On On
allow_url_include Off Off
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 no value no value
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
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 16375 16375
exit_on_timeout Off Off
expose_php On On
extension_dir C:\AppServ\php6\ext C:\AppServ\php6\ext
file_uploads On On
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:\php6\pear .;C:\php6\pear
log_errors Off Off
log_errors_max_len 1024 1024
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 24M 24M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 80M 80M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
report_memleaks On On
report_zend_debug On On
request_order no value no value
sendmail_from no value no value
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
unicode.fallback_encoding no value no value
unicode.filesystem_encoding no value no value
unicode.http_input_encoding no value no value
unicode.output_encoding no value no value
unicode.runtime_encoding no value no value
unicode.script_encoding no value no value
unicode.semantics Off Off
unicode.stream_encoding UTF-8 UTF-8
unserialize_callback_func no value no value
upload_max_filesize 200M 200M
upload_tmp_dir no value no value
user_dir no value no value
user_ini.cache_ttl 300 300
user_ini.filename .user.ini .user.ini
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.enable_gc On On


apache2handler
Apache Version  Apache/2.2.8 (Win32) PHP/6.0.0-dev 
Apache API Version  20051115 
Server Administrator  chr_moa@hotmail.com 
Hostname:Port  christian-pc:80 
Max Requests  Per Child: 0 - Keep Alive: on - Max Per Connection: 100 
Timeouts  Connection: 300 - Keep-Alive: 5 
Virtual Server  No 
Server Root  C:/AppServ/Apache2.2 
Loaded Modules  core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_imagemap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_userdir mod_php6 

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


Apache Environment
Variable Value
HTTP_ACCEPT  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* 
HTTP_ACCEPT_LANGUAGE  da 
HTTP_UA_CPU  x86 
HTTP_ACCEPT_ENCODING  gzip, deflate 
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322) 
HTTP_HOST  localhost 
HTTP_CONNECTION  Keep-Alive 
HTTP_COOKIE  PHPSESSID=a75a3c430036a2fef5f93ed3acc41068 
PATH  C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\AppServ\Apache2.2\bin;C:\AppServ\php6;C:\AppServ\MySQL\bin 
SystemRoot  C:\Windows 
COMSPEC  C:\Windows\system32\cmd.exe 
PATHEXT  .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC 
WINDIR  C:\Windows 
SERVER_SIGNATURE  <address>Apache/2.2.8 (Win32) PHP/6.0.0-dev Server at localhost Port 80</address> 
SERVER_SOFTWARE  Apache/2.2.8 (Win32) PHP/6.0.0-dev 
SERVER_NAME  localhost 
SERVER_ADDR  127.0.0.1 
SERVER_PORT  80 
REMOTE_ADDR  127.0.0.1 
DOCUMENT_ROOT  C:/AppServ/www 
SERVER_ADMIN  chr_moa@hotmail.com 
SCRIPT_FILENAME  C:/AppServ/www/phpinfo.php 
REMOTE_PORT  50229 
GATEWAY_INTERFACE  CGI/1.1 
SERVER_PROTOCOL  HTTP/1.1 
REQUEST_METHOD  GET 
QUERY_STRING  no value 
REQUEST_URI  /phpinfo.php 
SCRIPT_NAME  /phpinfo.php 


HTTP Headers Information
HTTP Request Headers
HTTP Request  GET /phpinfo.php HTTP/1.1 
Accept  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* 
Accept-Language  da 
UA-CPU  x86 
Accept-Encoding  gzip, deflate 
User-Agent  Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322) 
Host  localhost 
Connection  Keep-Alive 
Cookie  PHPSESSID=a75a3c430036a2fef5f93ed3acc41068 
HTTP Response Headers
X-Powered-By  PHP/6.0.0-dev 


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.8g zlib/1.2.3 


date
date/time support  enabled 
"Olson" Timezone Database Version  2008.2 
Timezone Database  internal 

Strict Standards: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '1.0/no DST' instead in C:\AppServ\www\phpinfo.php on line 2
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 


ereg
Regex Library  Bundled library enabled 


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

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.28 compatible) 
FreeType Support  enabled 
FreeType Linkage  with freetype 
FreeType Version  2.1.9 
FreeType Linkage  with unknown library 
T1Lib Support  enabled 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM 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


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  3.7.1 

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


mysql
MySQL Support enabled
Active Persistent Links  0 
Active Links  0 
Client API version  mysqlnd 5.0.4-dev - 080501 - $Revision: 1.17 $ 
Persistent cache enabled
put_hits  0 
put_misses  0 
get_hits  0 
get_misses  0 
size  2000 
free_items  2000 
references  2 

Directive Local Value Master Value
mysql.allow_local_infile On On
mysql.allow_persistent On On
mysql.cache_size 2000 2000
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


mysqli
MysqlI Support enabled
Client API library version  mysqlnd 5.0.4-dev - 080501 - $Revision: 1.17 $ 
Active Persistent Links  0 
Inactive Persistent Links  0 
Active Links  0 
Persistent cache enabled
put_hits  0 
put_misses  0 
get_hits  0 
get_misses  0 
size  2000 
free_items  2000 
references  2 

Directive Local Value Master Value
mysqli.allow_local_infile On On
mysqli.allow_persistent On On
mysqli.cache_size 2000 2000
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.max_persistent Unlimited Unlimited
mysqli.reconnect Off Off


mysqlnd
mysqlnd enabled
Version  mysqlnd 5.0.4-dev - 080501 - $Revision: 1.17 $ 
Client statistics 
bytes_sent  0 
bytes_received  0 
packets_sent  0 
packets_received  0 
protocol_overhead_in  0 
protocol_overhead_out  0 
result_set_queries  0 
non_result_set_queries  0 
no_index_used  0 
bad_index_used  0 
slow_queries  0 
buffered_sets  0 
unbuffered_sets  0 
ps_buffered_sets  0 
ps_unbuffered_sets  0 
flushed_normal_sets  0 
flushed_ps_sets  0 
ps_prepared_never_executed  0 
ps_prepared_once_executed  0 
rows_fetched_from_server_normal  0 
rows_fetched_from_server_ps  0 
rows_buffered_from_client_normal  0 
rows_buffered_from_client_ps  0 
rows_fetched_from_client_normal_buffered  0 
rows_fetched_from_client_normal_unbuffered  0 
rows_fetched_from_client_ps_buffered  0 
rows_fetched_from_client_ps_unbuffered  0 
rows_fetched_from_client_ps_cursor  0 
rows_skipped_normal  0 
rows_skipped_ps  0 
copy_on_write_saved  0 
copy_on_write_performed  0 
command_buffer_too_small  0 
connect_success  0 
connect_failure  28 
connection_reused  0 
reconnect  0 
pconnect_success  0 
active_connections  18446744073709551588 
active_persistent_connections  0 
explicit_close  0 
implicit_close  0 
disconnect_close  28 
in_middle_of_command_close  0 
explicit_free_result  0 
implicit_free_result  0 
explicit_stmt_close  0 
implicit_stmt_close  0 
mem_emalloc_count  0 
mem_emalloc_ammount  0 
mem_ecalloc_count  0 
mem_ecalloc_ammount  0 
mem_erealloc_count  0 
mem_erealloc_ammount  0 
mem_efree_count  0 
mem_malloc_count  0 
mem_malloc_ammount  0 
mem_calloc_count  0 
mem_calloc_ammount  0 
mem_realloc_calloc  0 
mem_realloc_ammount  0 
mem_free_count  0 
Collecting statistics  Yes 
Collecting memory statistics  No 
Command buffer size  2048 
Read buffer size  32768 


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


Reflection
Reflection enabled
Version  $Id: php_reflection.c,v 1.295 2008/02/18 14:31:01 dmitry Exp $ 


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

Directive Local Value Master Value
session.auto_start Off Off
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:/Users/CHRIST~1/AppData/Local/Temp C:/Users/CHRIST~1/AppData/Local/Temp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies On On
session.use_trans_sid 0 0


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


sockets
Sockets Support  enabled 


SPL
SPL support enabled
Interfaces  Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject 
Classes  AppendIterator, ArrayIterator, ArrayObject, SplDoublyLinkedList, SplQueue, SplStack, SplHeap, SplMinHeap, SplMaxHeap, SplPriorityQueue, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, 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 


standard
Dynamic Library Support  enabled 
Path to sendmail  no value 

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


unicode

ICU API extension  enabled 
Based on ICU library  Copyright (C) 2005, International Business Machines Corporation and others. All Rights Reserved. 
ICU Version  3.4 


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 


zlib
ZLib Support enabled
Stream Wrapper  compress.zlib:// 
Stream Filter  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
dbase


Environment
Variable Value
no value  ::=::\ 
ALLUSERSPROFILE  C:\ProgramData 
APPDATA  C:\Users\Christian\AppData\Roaming 
CommonProgramFiles  C:\Program Files\Common Files 
COMPUTERNAME  CHRISTIAN-PC 
ComSpec  C:\Windows\system32\cmd.exe 
FP_NO_HOST_CHECK  NO 
HOMEDRIVE  C: 
HOMEPATH  \Users\Christian 
LOCALAPPDATA  C:\Users\Christian\AppData\Local 
LOGONSERVER  \\CHRISTIAN-PC 
NUMBER_OF_PROCESSORS  4 
OS  Windows_NT 
Path  C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\AppServ\Apache2.2\bin;C:\AppServ\php6;C:\AppServ\MySQL\bin 
PATHEXT  .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC 
PROCESSOR_ARCHITECTURE  x86 
PROCESSOR_IDENTIFIER  x86 Family 6 Model 15 Stepping 11, GenuineIntel 
PROCESSOR_LEVEL  6 
PROCESSOR_REVISION  0f0b 
ProgramData  C:\ProgramData 
ProgramFiles  C:\Program Files 
PUBLIC  C:\Users\Public 
SESSIONNAME  Console 
SystemDrive  C: 
SystemRoot  C:\Windows 
TEMP  C:\Users\CHRIST~1\AppData\Local\Temp 
TMP  C:\Users\CHRIST~1\AppData\Local\Temp 
USERDOMAIN  Christian-PC 
USERNAME  Christian 
USERPROFILE  C:\Users\Christian 
windir  C:\Windows 
AP_PARENT_PID  4432 


PHP Variables
Variable Value
_REQUEST["PHPSESSID"] a75a3c430036a2fef5f93ed3acc41068
_COOKIE["PHPSESSID"] a75a3c430036a2fef5f93ed3acc41068
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
_SERVER["HTTP_ACCEPT_LANGUAGE"] da
_SERVER["HTTP_UA_CPU"] x86
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
_SERVER["HTTP_HOST"] localhost
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_COOKIE"] PHPSESSID=a75a3c430036a2fef5f93ed3acc41068
_SERVER["PATH"] C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\AppServ\Apache2.2\bin;C:\AppServ\php6;C:\AppServ\MySQL\bin
_SERVER["SystemRoot"] C:\Windows
_SERVER["COMSPEC"] C:\Windows\system32\cmd.exe
_SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
_SERVER["WINDIR"] C:\Windows
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.2.8 (Win32) PHP/6.0.0-dev Server at localhost Port 80</address> 
_SERVER["SERVER_SOFTWARE"] Apache/2.2.8 (Win32) PHP/6.0.0-dev
_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:/AppServ/www
_SERVER["SERVER_ADMIN"] chr_moa@hotmail.com
_SERVER["SCRIPT_FILENAME"] C:/AppServ/www/phpinfo.php
_SERVER["REMOTE_PORT"] 50229
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /phpinfo.php
_SERVER["SCRIPT_NAME"] /phpinfo.php
_SERVER["PHP_SELF"] /phpinfo.php
_SERVER["REQUEST_TIME"] 1236512342
_SERVER["argv"] Array
(
)

_SERVER["argc"] 0
_ENV["ALLUSERSPROFILE"] C:\ProgramData
_ENV["APPDATA"] C:\Users\Christian\AppData\Roaming
_ENV["CommonProgramFiles"] C:\Program Files\Common Files
_ENV["COMPUTERNAME"] CHRISTIAN-PC
_ENV["ComSpec"] C:\Windows\system32\cmd.exe
_ENV["FP_NO_HOST_CHECK"] NO
_ENV["HOMEDRIVE"] C:
_ENV["HOMEPATH"] \Users\Christian
_ENV["LOCALAPPDATA"] C:\Users\Christian\AppData\Local
_ENV["LOGONSERVER"] \\CHRISTIAN-PC
_ENV["NUMBER_OF_PROCESSORS"] 4
_ENV["OS"] Windows_NT
_ENV["Path"] C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\AppServ\Apache2.2\bin;C:\AppServ\php6;C:\AppServ\MySQL\bin
_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
_ENV["PROCESSOR_ARCHITECTURE"] x86
_ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 15 Stepping 11, GenuineIntel
_ENV["PROCESSOR_LEVEL"] 6
_ENV["PROCESSOR_REVISION"] 0f0b
_ENV["ProgramData"] C:\ProgramData
_ENV["ProgramFiles"] C:\Program Files
_ENV["PUBLIC"] C:\Users\Public
_ENV["SESSIONNAME"] Console
_ENV["SystemDrive"] C:
_ENV["SystemRoot"] C:\Windows
_ENV["TEMP"] C:\Users\CHRIST~1\AppData\Local\Temp
_ENV["TMP"] C:\Users\CHRIST~1\AppData\Local\Temp
_ENV["USERDOMAIN"] Christian-PC
_ENV["USERNAME"] Christian
_ENV["USERPROFILE"] C:\Users\Christian
_ENV["windir"] C:\Windows
_ENV["AP_PARENT_PID"] 4432


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.
Avatar billede showsource Seniormester
08. marts 2009 - 12:53 #12
Well, hvad får du af fejl hvis du smider or die (mysql_error()) på  din connection ?

Og php 6 er jo stadig en beta halløj. ?
Avatar billede christianandersen Nybegynder
08. marts 2009 - 12:57 #13
Warning: mysql_connect() [function.mysql-connect]: [2002] Et forbindelsesforsøg mislykkedes, fordi den, der tilsluttede, i (trying to connect via tcp://localhost:3306) in C:\AppServ\www\config.php on line 2

Warning: mysql_connect() [function.mysql-connect]: Et forbindelsesforsøg mislykkedes, fordi den, der tilsluttede, ikke svarede korrekt efter en periode, eller forbindelsen mislykkedes, fordi den tilsluttede vært ikke svarede. in C:\AppServ\www\config.php on line 2

Fatal error: Maximum execution time of 60 seconds exceeded in C:\AppServ\www\config.php on line 2
Avatar billede christianandersen Nybegynder
08. marts 2009 - 13:08 #14
smid lige et svar i

ps. jeg installere bare php5 igen
Avatar billede showsource Seniormester
08. marts 2009 - 13:55 #15
Jeg er ikke kommet med en løsning, så jeg svarer ikke :O)
Avatar billede christianandersen Nybegynder
08. marts 2009 - 14:04 #16
Tjo du gad bruge din tid på det.
Det ville jeg da mene var et par point værd ;)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester