You are not logged in.
Pages: 1
Topic closed
A la recherche de meilleur perf je cherche à controler la valeur de memory_limit.
dans le php.ini je l'ai mis à 128, mais je voulais controler cette valeur avec phpinfo(). le problem c'est que cette valeur n'apparait pas!
de même en modifiant le script phpinfo()
<?php
ini_set('memory_limit','128');
ini_alter('memory_limit','128');
print "memory_limit ".ini_get('memory_limit')."\n";
phpinfo();
?>
resultat:
memory_limit
PHP Logo
PHP Version 5.2.0
System Windows NT JURIDGEL 5.2 build 3790
Build Date Nov 2 2006 11:50:55
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
etc.....
Le server est sous 2003 serveur
Une petite idée?
GReg
Offline
ouais d'accord et la version de php? y en a pas ?
Offline
Si je l'ai mise : PHP Version 5.2.0 c'est ca que tu veux?
je colle le resultat du php info (le debut).
memory_limit
PHP Logo
PHP Version 5.2.0
System Windows NT JURIDGEL 5.2 build 3790
Build Date Nov 2 2006 11:50:55
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:\OCS Inventory NG\xampp\apache\bin\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, https, ftps, zip
Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls
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-2006 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 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 C:\OCS Inventory NG\xampp\php\browscap\browscap.ini C:\OCS Inventory NG\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 6135 6135
expose_php On On
extension_dir C:\OCS Inventory NG\xampp\php\ext\ C:\OCS Inventory NG\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:\OCS Inventory NG\xampp\php\pear\ .;C:\OCS Inventory NG\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 60 60
max_input_time 60 60
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 16M 16M
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 no value no value
sendmail_path no value no value
serialize_precision 100 100
short_open_tag On On
SMTP 10.208.88.40 10.208.88.40
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:\OCS Inventory NG\xampp\tmp C:\OCS Inventory NG\xampp\tmp
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
apache2handler
Apache Version Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0 mod_perl/2.0.2 Perl/v5.8.8
Apache API Version 20051115
Server Administrator webmaster@dummy-host.example.com
Hostname:Port portailmitel:0
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server Yes
Server Root C:/OCS Inventory NG/xampp/apache
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_authnz_ldap mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_cgi mod_dav mod_dav_fs mod_dir mod_env mod_include mod_info mod_isapi util_ldap mod_log_config mod_mime mod_negotiation mod_setenvif mod_status mod_ssl mod_autoindex_color mod_auth_mysql mod_php5 mod_perl
Offline
Ah vi, je suis fatigué je crois
T'as peut être pas le droit de modifier les valeurs dans ton script php.
As-tu bien modifier le bon php.ini car sous windows il y a en a 3 ou 4 dont un dans le c:\windows\system32
Offline
Dans le doute j'ai change la valeur max_execution_time = 62, et effectivement je corrige bien le bon fichier, je peux voir la valeur changer dans le phpinfo
une autre idée?
Offline
Visiblement c'est un probleme dans la version de php!
En écrasant les 3 dll
php5isapi.dll
php5isapi.dll
php5isapi.dll
d'une version plus recente j'ai plus eu le probleme
On peut donc fermer le ticket
Offline
Pages: 1
Topic closed