php.ini

What is wrong with setting my PHP extensions?

I have the following problem. When I state some extensions in my php.ini and try to restart Apache it refuses to work. I assume that I have made a mistake in my extension_dir or in adding extensions themselves. When I run a server with an extension path and no extensions set, all works fine and I get my phpinfo page. But when extensions ...

Set allow_url_include on SINGLE file

I've created a php file called pagebase.php that I'm quite proud of. It contains a class that created the whole html file for me from input such as css links and js links. In any case, this file is several hundred lines long, as it includes several helper functions such as cleanHTML() that removes all whitespace from the html code then, ...

What is PHP track_errors ?

Hi, I was just glancing through my Cpanel's php.ini EZConfig (basically php.ini; it just allows me to change some settings in php.ini through Cpanel) and noticed track_errors , Can someone tell me what this means, i have searched the php website and google and cannot find out what it means exactly? Thanks PHPLOVER ...

PHP upload_max_filesize

How can you set upload_max_filesize to no limit? Could you say upload_max_filesize = -1 (As you can with other things)? ...

PHP File Upload greater than upload_max_filesize and error

How can I catch an error on a file uploaded to my web server that is greater than php upload_max_filesize? My question is similar to so/large-file-upload-errors-with-php although my memory limit is set to 512M so the resolution that question used will not help me. I am trying to upload a file 6.9MB for example and my upload_max_files...

PHP GTK module in php.ini

I installed PHP GTK in C:\php-gtk but when I go to run it like from the command line like this cd C:\php-gtk2 php demos\phpgtk2-demo.php It gives this error Please load the php-gtk2 module in your php.ini My ini file has this content (it is called php-cli.ini) [PHP] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; About the php.ini in PHP-GTK ...

PHP closes connection after 10sec without data beeing echoed

I have a PHP webpage, that generates statistics and takes about 15sec to generate them, before sending them to the Browser. The issue I have is that the browser ends up loading with a blank page. Unfortunately I don't have access to the error_log file. But I figured, that if I start sending data in the foreach-loop which consumes most ...

How to find out the optimal memory limit in a web server for a Drupal based site

I have a multisite Drupal based magazine sites and I would like to know is how can I choose the optimal memory limit to be set so that maximum numbers of users can access the site without affecting the speed and the server is also able to handle the requests. ...

disabling php magic_quotes_gpc

Hi there, I have a site, locally setup. It's application development framework is Kohana. I have an error displaying the following: Unknown Error An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator. system/core/Kohana.php [98]: Function set_magic_quotes...

how to link ffmpeg to php.ini

hi i am using mac osx with mamp and i was wondering how i can link ffmpeg to php.ini so that i can use it with php exec() ? the directory that ffmpeg got installed in is /users/sarmenhb/ffmpeg although i wish it didnt get installed here and got installed somewhere more appropriate, i sadly have no clue how to change the system to know w...

php.ini problems? Increasing post_max_size and upload_max_filesize causes php to ignore POSTs?

I have this weird problem. Whenever i try to increase the post_max_size & upload_max_filesize to 2500M, my website seems to hang on me. Pages will continue to load, but any attempt to login or submit forms will not work. It simply ignores the POST as if it never was sent. But, when i change post_max_size & upload_max_filesize back to 2...

How to switch hash_algos() on ? I'm with Php 5.2.11

My PHP version is 5.2.11 which is higher than the required version for hash_algos. however, when I run it either via web or command line, it returns Fatal error: Call to undefined function hash_algos() So as for other Hash functions. Do i have to turn anything on in the php.inin or what should I do? I have checked the php --re has...

include_path gets ignored? Or...

Hi all, Recently my ISP added imap functionality to my webserver. After the installation they recompiled PHP. But the hostingclients on my server are including from a specific hostingaccount on the server. By adding an extra include_path to the CMS folder the websites are able to communicate with the CMS and database. The strange thing ...

Trying to upload large mp4 to amazon s3. All other files work, but the ones im uploading.

Hello all, I have built an s3 uploader to select a file and upload it via amazon's s3 class. I have it working and it uploads all other media except for these particular mp4 files that im am building this for. I have even tested it with larger sized files. It only seems to be these mp4 files. File: MP4 AVC/H.264 1280x764 (60M average ...

what happens if php.ini is missing?

What happens if php.ini is missing? Does PHP load with a default configuration? In phpinfo(), it says the configuration file path is /etc, however it also says Loaded Configuration File (none). I went into /etc, and noticed there is no php.ini, only php.ini.default. PHP is working though, so I'm guessing it must load with default set...

How to check which cache features are turned on? [PHP/MYSQL]

Is there an application or a code I can use to check which cache functions are turned on? On this app I'm working on, I thought there was mysql cacheing, but since I started using the SELECT SQL_NO_CACHE in one of my queries (applied yesterday), the cacheing has not stopped. This leads me to assume it's a php cache function that's occ...