php.ini

php application works on windows server but doesn't work on linux server,why?

Hi, i have a php web application.This application works on windows server but doesn't work on linux server.I think this is about php.ini or file permissions.Whta can be other reasons for this situaion?What must be the basic php.ini configurations for this situation?Thanks for advance... ...

.htaccess and php.ini Internal Server Error and slowing problem..

I have a godaddy hosting account and i am using php 5. I saw a tutorial on their website about making a .htaccess and php.ini and php5.ini page from the root folder to tweak values and what not.. so I did... Lately, there has been Internal Server Errors and a very slow response in browsing the site.... I stripped down pages to just html ...

Keep Accounts Logged In

We have an internal control panel that all employees in the office are logged into all day, including customer service. I'd like for it to be setup so that it keeps you logged in for 1 hour before your session expires. How can I change this in the PHP.ini? I made a change before I understood would keep the session open until the brows...

PHP Sockets Not Working

Hi, I switched from Lighttpd server to WAMP and then found sockets in php are not working. But php is configured and working. (phpinfo() works) I removed the comment for the php_sockets.dll in php.ini @ C:\wamp\bin\php\php5.2.5.but still gives the error "Fatal error: Call to undefined function socket_create()". Any more configurations t...

Failed to connect to mailserver at "localhost" port 25

I have a little problem. When I click send on my contact form I get the following warning: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() I use 64bit Win7, but I have no idea what should I set up to make this work. ...

php Contact Form on website and reply-to email

I have a PHP Contact form on a site I am hosing on our mediatemple grid server that was made with Rapidweaver. It works well except that the email it generates to our [email protected] is sent as [email protected]. I think the server is just using the trash/blackhole address. Any way to adjust my php or better yet, the server...

Changing 'memory_limit', 'post_max_size', and 'upload_max_filesize' in .htaccess file

I know there are a lot of questions on here about this, but most of them seem to be from people who don't know that 'memory_limit', 'post_max_size', and 'upload_max_filesize' are PHP_INI_PERDIR (i.e. they can't be changed using ini_set()). I already learned that the hard way. However, everything indicates that I should be able to change...

Enabling mod_rewrite on php.ini

Hello, If I understand correctly, I need to put something in php.ini to enable mod_rewrite. If this is true, what do I need to put in php.ini? Thanks in advance, John ...

[PHP.ini] Can't load mcrypt.dll dynamic library.

Hey guys, I'm trying to load this module: php_mcrypt.dll' Everything in the php.ini file is correct, see for yourself: extension_dir = "C:/PHP/5.2.13/ext" extension=php_mcrypt.dll The file exists in this path. And other modules are in there as well and are loaded successfully. It only has a problem with this particular module. I hav...

What is the register_globals warning message that is appearing?

I have one of my pages redirect to a page called customproofs.php. When it redirects to that page, the following Warning message appears: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a...

Getting error reports about the php.ini file itself

Good day all. I am trying to cajole my new office into having Correct Procedures. I'm trying to prove that everyone can have a local checkout of the code and it will all be OK, but PHP is not playing along. I have set up my Apache vhost to load a specific php.ini for the site, and it looks like this: [php] include_path = ".:/home/alas...

php.ini has no effect? (XAMPP)

I can't seem to increase the max_execution_time variable in Apache. I found php.ini in xampp/php and increased the variable, (tried both -1 to negate, and 30000000000000, neither changed the time from 60). phpinfo() returns Configuration File (php.ini) Path no value. I tried copying php.ini into xampp/apache/bin to no avail. I tried ap...

Testing with varying system ini settings

Ok, so here's the issue I've run into. On some of our production systems, we have magic quotes gpc enabled. There's nothing I can do about that. So, I've built my request data handing classes to compensate: protected static function clean($var) { if (get_magic_quotes_gpc()) { if (is_array($var)) { foreach ($v...

MySQL and PHP communication problem in Mac OS X 10.6.3

I followed this instruction but not worked for me. I just wanna install and config cakephp in my new MacBook Pro and that's why I'm tried to rename my php.ini.default to php.ini. Before that, I had no problem in communicating between my MySQL and Mac pre-installed PHP. What's wrong with that instruction. ( specially "Getting MySQL and ...

memory_limit=80M. what is the maximum image size for imagecreateformjpeg() ?

i have a webhosting that gives maximum memory_limit of 80M (i.e. ini_set("memory_limit","80M");). I'm using photo upload that uses the function imagecreatefromjpeg(); When i upload large images it gives the error "Fatal error: Allowed memory size of 83886080 bytes exhausted" What maximum size (in bytes) for the image i can restrict to th...

php.ini: what i must change, to write <? instead <?php?

in my local hosting the script doesn't work, if i wrote <? instead of <?php. what i must change in php.ini to correct it? Thanks ...

where the heck is this php.ini file anyways?

I'm running php vs. 4.1.14 on yahoo with phpMyAdmin. it says the file is at /usr/lib/php/php4.ini but I can't find this anywhere. Is it in the phpMyAdmin folder? I really need to find this and turn of magic_quotes soon or I'm gonna go postal. Thanks. Okay So i guess It wasn't that clear. I did phpinfo(). I don't know how to find that ...

php.ini config issue - testing file upload on 3 different servers

Hi, hope someone can help as I'm not sure what's going on here - I have a live site where I want to allow file uploads of over 2MB. I have set the standard config options in php.ini as follows (running phpinfo() shows these settings fine): upload_max_filesize 25M 25M post_max_size 25M 25M max_input_time 60 60 memory_limit 32M 32M...

how to access php.ini file of server?

My application was working fine, I dont know what happened suddenly image upload function stoped functioning.It gives this error- URL file-access is disabled in the server configuration in D:\Hosting\6448289\html\upload.php on line 112 for any file access allow_url_fopen must be ON but this is OFF now. if you open this link - www.shi...

Can the php.ini default file be downloaded by itself for different versions?

Instead of copying php.ini files over from old PHP versions whenever I upgrade PHP, I would like to be able to download the newest php-recommended.ini file from somewhere by itself. I have searched for this option on php.net but I could not find it. It seems like it should be an easy question, but I have not been able to answer it. Th...