Welcome Guest, Not a member yet? Register   Sign In
Best place to have ini_set
#1

[eluser]Unknown[/eluser]
I'm currently working on a project with heavy SOAP WebServices integration.

I will use php stubs generated from the WDSLs.

To keep track of changes in the WDSLs I have the wsdl cache disabled for development. For performance reasons I will have the wsdl cache enabled for the live version.

Now here's the question: We're is the best place to put the
Code:
ini_set('soap.wsdl_cache_enabled', 1);

Put it in config.php ?
Put it in a custom config file ?
Put it into the Library (which uses the php stub) ?
Put it into the model using the library ?

Thanks in advance
Peter
#2

[eluser]Derek Allard[/eluser]
It would probably just be easiest to drop it into the main index.php file. Welcome to CodeIgniter peter.
#3

[eluser]Max Binshtok[/eluser]
I am going mad here...

A while ago I was trying to set

Code:
set_time_limit(0);
ini_set('post_max_size', '100000');
ini_set('upload_max_filesize', '100000');
ini_set('memory_limit', -1);
ini_set('max_input_time', -1);
        
echo  ini_get('post_max_size');
echo  ini_get('upload_max_filesize');
echo  ini_get('max_input_time');
echo  ini_get('memory_limit');
I one of the methods of my controllers - but I KEEP getting the values set in php.ini

Now I've seen that some say it is impossible to set "upload_max_filesize" with ini_set and I have to use .htaccess - ok whatever. Maybe.
max_input_time works btw (!!!)

I already gave up on this, but now I want to issue the
Code:
ini_set('max_execution_time',-1);
echo ini_get('max_execution_time');
and if I place it inside CI (and I mean in index.php, in Controller.php, in my controllers that inherit from Controler - pretty much I tried everything) it does NOT work.
BUT if I create a file outside of CI directory and issue the same command - works like a charm.

PLEASE HELP! I am starting to go completely mad about this...
#4

[eluser]Max Binshtok[/eluser]
OMG I am an IDIOT!!!

I had a custom php.ini that I brought to try and tackle the upload problem and I turned safe mode on there...




Theme © iAndrew 2016 - Forum software by © MyBB