[Xerte] Propblem exporting zip file (learning object) out of Xerte

Paul Swanson Paul.Swanson at harlandfs.com
Thu Aug 26 17:03:11 BST 2010


I didn't think you could block a specific function within PHP. It
doesn't actually change php.ini, just overrides it during script
execution. From the PHP Manual:

 

ini_set - Sets the value of a configuration option

Description

string ini_set ( string $varname , string $newvalue )

 

Sets the value of the given configuration option. The configuration
option will keep this new value during the script's execution, and will
be restored at the script's ending.

 

Seems like this is the perfect use for it.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick
Lockley
Sent: Thursday, August 26, 2010 8:46 AM
To: Xerte discussion list
Subject: RE: [Xerte] Propblem exporting zip file (learning object) out
of Xerte

 

I'm never sure ini_set is allowed?

 

If I ran a server I'd block it?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson
Sent: 26 August 2010 16:34
To: Xerte discussion list
Subject: RE: [Xerte] Propblem exporting zip file (learning object) out
of Xerte

 

Pat, what about using ini_set() in archive.php (and any other scripts
that upload files) to override the setting on a script-by-script basis?

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100826/477280ff/attachment.html


More information about the Xerte mailing list