RE: [PHP] Detecting HTTPS connections under Apache

2011-05-26 Thread admin
So when you echo $_SERVER['SERVER_PORT']; You get port 80 even if the url currently is https://www.yoursite.com ? If this is the case good luck. Because you have serious issues. Richard L. Buskirk -Original Message- From: Geoff Shang [mailto:ge...@quitelikely.com] Sent: Thursday, May

RE: [PHP] Detecting HTTPS connections under Apache

2011-05-26 Thread Geoff Shang
On Thu, 26 May 2011, ad...@buskirkgraphics.com wrote: The %{HTTPS} variable is not an Apache core variable. A more-portable solution is to check %{SERVER_PORT} for port 80 or port 443 -- or for "not port 80" or "not port 443." ah but this doesn't actually work for me, I get 80 regardless of wh

RE: [PHP] Detecting HTTPS connections under Apache

2011-05-26 Thread admin
The %{HTTPS} variable is not an Apache core variable. A more-portable solution is to check %{SERVER_PORT} for port 80 or port 443 -- or for "not port 80" or "not port 443." Also, you're requiring an *exact* match on "not /user" or "not /admin," meaning that directory and file paths below these di

[PHP] Detecting HTTPS connections under Apache

2011-05-26 Thread Geoff Shang
Hi, Apologies if this is covered somewhere but I've searched fairly extensively and not found anything. I'm working on an application which has a function for redirecting to a given URL. This is generally used for redirecting after a form has been submitted. Right now it sends an HTTP URL

Re: [PHP] PHP to Java integration using : shell_exec function

2011-05-26 Thread Robert Williams
On 2011-05-26 12:00, "Eli Orr (Office)" wrote: > $EncXML = shell_exec(""/usr/bin/java/java -jar MyApp.jar -XML ><$XML_toEnc>); <<== ??? How can I pass parameters like a large string of >let say XML? You're missing the shell escaping. Try something like this: $xml = 'hello'; $xml_shell = e

[PHP] PHP to Java integration using : shell_exec function

2011-05-26 Thread Eli Orr (Office)
Hi, Please advise if the following is possible and how can pass parameters from the PHP to the Java application. Thanks. Here's my script draft: // The XML_toEnc is a string and shall be urlencoded ! $EncXML = shell_exec(""/usr/bin