[Xerte-dev] Re: Problems with xampp install
David Goodwin
david at palepurple.co.uk
Fri Jan 25 11:49:17 GMT 2013
On 25 Jan 2013, at 11:25, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
> Am I right in saying that we don’t actually need lines (in this diagram) 14 15 and 16 as file_put_contents will create the file if it doesn’t exist?
I think the 'is_writeable' will fail without a touch() - if the file doesn't exist to start with.
The solution is to either :
a. Check to see if we're on Windows, and if so, try to write to e.g. c:/debug.log or somewhere instead of '/tmp/debug.log'.
or
b. Prefixing the 'touch' call with an @ sign to silence it on error (as the file_put_contents is already doing).
David.
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
> Sent: 25 January 2013 11:21
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Problems with xampp install
>
> This is a problem David has introduced: the file tmp/debug.log doesn’t exist. Comment out line 21 and it works OK, but what is the real fix please?
>
> <image001.png>
>
>
>
Pale Purple Ltd. (Company No: 5580814)
'Web and Mobile Application Development for Business'
http://www.palepurple.co.uk
Office: 0845 0046746 Mobile: 07792380669
Follow us on Twitter: @PalePurpleLtd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130125/57b3cf58/attachment.html>
More information about the Xerte-dev
mailing list