[users@httpd] Re: Single quotes in ajax POST data getting prefixed with backslash

2013-12-10 Thread Tim Streater
On 09 Dec 2013 at 22:30, Yehuda Katz wrote: > That is a PHP configuration option called Magic Quotes ( > http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc) > that used to be on by default and is now off by default in recent PHP > releases. Thanks - that was it. -- Cheers

[users@httpd] Single quotes in ajax POST data getting prefixed with backslash

2013-12-09 Thread Tim Streater
I run an instance of apache under OS X which I use to pass data to PHP scripts using ajax. If I have a string such as "O'Toole" (without the double-quotes), then when the string (which I pass through encodeURIComponent in the browser) arrives in the PHP script, the single-quote is prefixed with

[users@httpd] Re: Stopping httpd.exe on windows

2013-12-02 Thread Tim Streater
On 02 Dec 2013 at 12:42, Jeff Trawick wrote: > On Mon, Dec 2, 2013 at 7:04 AM, Tim Streater wrote: > >> I start httpd.exe from a PHP script, using this command string on Win7: >> >> start /b "" /d "c:\Program Files (x86)\Apache Software >> Foundat

[users@httpd] Stopping httpd.exe on windows

2013-12-02 Thread Tim Streater
I start httpd.exe from a PHP script, using this command string on Win7: start /b "" /d "c:\Program Files (x86)\Apache Software Foundation"\Apache2.2\bin httpd.exe -f z:\path\to\my\httpd.conf where z: is some drive letter and the backslashes are doubled as they are within a PHP string. This ap

[users@httpd] Launching apache from a PHP script - fine under OS X, what about Windows7 ?

2013-11-24 Thread Tim Streater
I want to port my application, which runs fine under OS X, to Windows7. I have a PHP startup script, which launches httpd as follows: // Now attempt to start apache $cmd = '/usr/sbin/httpd -f "/path/to/my/config/file" 2>&1'; exec ($cmd, $results, $result); if ($result!=0) {

Re: Re: Re: [users@httpd] apache setup questions

2011-11-23 Thread Tim Streater
On 23 Nov 2011 at 21:45, Wade Evans wrote: > My naive recommendation is to stop using CGI, and use the PHP module > instead... to swim with the current, not against it. Wade, Thanks for that. Although it didn't answer my questions directly, it did give a me a clue to look at the PHP web site,

Re: Re: [users@httpd] apache setup questions

2011-11-23 Thread Tim Streater
On 23 Nov 2011 at 20:39, Wade Evans wrote: > If all you want to do is run PHP scripts to service AJAX requests, why not > load the php module, set the type handler, and move on to a more > interesting problem? To me, in my present star of ignorance, these *are* interesting questions. Admittedl

[users@httpd] apache setup questions

2011-11-23 Thread Tim Streater
I'm looking at how apache is set up under OS X Lion and Snow Leopard. It seems to me in both cases that, for the default apache config, fast-cgi is disabled as the corresponding LoadModule is commented out. Is there a particular reason why this should be? I notice that under SL, the fast-cgi mo