php.ini

XAMPP: I edited PHP.ini, and now Apache crashes

I'm trying to set up XDebug for PHP. I edited some settings in my apache\bin\php.ini file, and now Apache crashes every couple page requests. (I wish I had saved a copy of php.ini before editing it. der.) I was following instructions here: http://robsnotebook.com/php%5Fdebugger%5Fpdt%5Fxdebug Here is the only section I changed. Does an...

Enable the "redeclare" for PHP5, with .htaccess or php.ini

Hi friends, serious problem with an angry client :( i have an issue about "Cannot redeclare variable" etc. i had a website working on PHP4 then moved to PHP5 and i have this error: Fatal error: Cannot redeclare CSQLAdmin::$functions in /blabla/lib/sqladmin.php on line 45 I tried to clear the second declaration at the file, and it fi...

How to check where Apache is looking for a php.ini file?

I have a feeling that Apache is using a different php.ini file that the one I am editing. I make a change in my php.ini file, restart Apache, and the change doesn't take affect. So I don't know what to do anymore. Any ideas? Update: Found out it's using the right php.ini file...but I still don't know what to do! ...

PHP Command-line scripts are ignoring php.ini and ini_set('memory_limit',...) directives.

Hello, I am facing the common "Fatal error: Out of memory (allocated 30408704) (tried to allocate 24 bytes)..." PHP Fatal error. Pages served via Apache are not exhibiting this behavior. I've tried the following: Increasing the memory_limit in php.ini to a much larger value. Increasing memory_limit within the script itself via calls t...

Can I set a php.ini (upload_max_filesize) variable in .htaccess to only apply to one .php file?

I'm not sure if this is possible, but here's what I would like to do. I have a .php script that uploads and then manipulates the file. I only want that particular .php script to be allowed to upload large files, the php.ini settings should apply for all others. Can I edit the .htaccess file to affect only the one .php script? In pseu...

Can't get PHP session save handler sqlite working

I have set up a little server on an old XP Pro box, with php 5.3.1. In order to use it as a test box to mirror our hosted site, I need to get sqlite sessions working. While sqlite is definitely there in phpinfo(), I can't seem to get php.ini to use it as a save handler: Registered save handlers - files user In php.ini, I've got s...

Can't save php.ini

I have PHP for FastCGI installed on Windows 7 through the Web Platform Installer. I need to edit php.ini to enable logging, but I'm not able to overwrite the existing file, apparently because something has it open and/or locked. Stopping the server in IIS Manager doesn't help; stopping the Windows Process Activation Service and the Wor...

Unexpected Connection Reset: A PHP or an Apache issue?

Hello all, I have a PHP script that keeps stopping at the same place every time and my browser reports: The connection to the server was reset while the page was loading. I have tested this on Firefox and IE, same thing happens. So, I am guessing this is an Apache/PHP config problem. Here are few things I have set. PHP.ini max...

PHP log will not ignore repeated errors with ignore_repeated_errors = On

The title says it all. Although I have instructed php to only log an error once - i see the error over and over again in my log file. Any ideas why this directive would get ignored? I've restarted apache, etc. ...

log_errors_max_len = 1024 in php.ini, but php log keeps growing

As the title says, I've set the max length for the php error log, but it seems to keep growing much much larger than 1024. I am using the correct php.ini, I've restarted apache, etc. The permissions on the php log are 666. ...

Php CLI script ignoring memory_limit, crashing at much lower number than limit

Hello, for some reason, my one of my php scripts are ignoring the php.ini memory limit or ini_set. When i do a print_r(ini_get_all) it shows the global memory limit set to 100M (and local for that matter), when my script dies at Fatal error: Out of memory (allocated 24714304) (tried to allocate 571 bytes) Any tips on diagnosing this?...

How to change php.ini by PHP?

short_open_tag = On Is it possible? EDIT I tried this : <?php if (!ini_get('short_open_tag')) { ini_set('short_open_tag', 'On'); } $a=1; ?> <?=$a;?> which outputs <?=$a;?>,so it's not working. ...

How to serve gziped an otf font using htaccess+php.ini? (no mod gzip or deflate)

Im asking this here cause if i try more i think im going to lose my mind for sure it seems i can't use php_value or php_flag but linking a php.ini using suPHP_ConfigPath works (for php files) here's a list of stuff i tried in random order: AddHandler application/x-httpd-php .otf AddType default_mimetype application/vnd.oasis.opendocumen...

How can i write open_basedir like this -> open_basedir = 'var/home/*/'

As you know. You have to write open_basedir = '/var/home' etc I want to write like this: open_basedir = '/var/home/*/' Which i want is php should restrict every directory which is in home directory, for every different directories. Short question: How can i write open_basedir like this: open_basedir = 'var/home/*/'? Thank you very mu...

PHP script stops running arbitrarily with no errors.

I was working on a fairly long script that seemed to stop running after about 20 minutes. After days of trying to figure out why, I decided to make a very simple script to see how long it would run without any complex code to confuse me. I found that the same thing was happening with this simple infinite loop. At some point between 15 an...

PHP pass random data in .user.ini

Can I use a PHP 5.3 .user.ini file to pass information other than existing PHP settings? E.g. display_errors = On include_path = /usr/myapp/classes myapp_config_dir = /usr/myapp/config # <-- this is not a PHP setting ...

How to enable PHP short tags ?

I have a web application on a Linux server which starts with <? I needed to copy this application to a windows environment and everything is working fine except that an SQL statement is being rendered differently. I don't know if this has to do with the script beginning with <?php instead of <? because I don't know from where to enable ...

PHP: Server duplicating $_SESSION['Name'] data to '$Name' variable

I've just discovered a setting on the server I'm developing a site for that is different from my localhost settings, however, I can't track down where to change it. Here's a simple example of what's happening. $_SESSION['Animal'] = "Dog"; echo "#1: ".$_SESSION['Animal']."<br/>"; echo "#2: ".$Animal; On my localhost, the server return...

PHP ini date.timezone? Server or client location time zone?

I know this might sound a silly question, but I did not find in PHP documentation somewhere were they state loud and clear this one. I have got a web application. Users of my web appliations are in Europe, but the server running the web appliation is in US. How should I set the date.timezone php ini directive??? I suppose to where th...

PHP throwing XDebug errors ONLY in command line mode...

Hey, all! I've been having a few problems running PHP-based utilities within the command line ever since I enabled the XDebug. It runs just fine when executing script through a browser, but once I try an execute a script on the command line, it throws the following errors: h:\www\test>@php test.php PHP Warning: PHP Startup: Unable to ...