Jump to content

PHP not working on SSL


Schlo_50

Recommended Posts

Hi guys,

 

I uploaded some php based software of mine onto a secure server (SSL) and it used to work locally and on a non secure server although it doesn't seem to want to work on the SSL.

 

I can login which works but when i get greeted with the admin page none of the links work?? I've tried includingthe php itself but nothing.. I've no idea why it doesn't work with a SSL server. In the address bar, if i delete the 's' from 'https' the page loads further but still doesn't load because the next page will also begin with https.

 

I'll show you the page include code: (I am also running PHP 5)

 

<?php
if(!empty($HTTP_GET_VARS[pid]) and file_exists("./$HTTP_GET_VARS[pid].php")) { 
  include("./$HTTP_GET_VARS[pid].php"); 
} else { 
  include("config.php");

 

I have also tried using $_GET instead of $HTTP_GET_VARS but to no avail!

 

Can someone help?

 

Thanks!

Link to comment
Share on other sites

this looks like your server setup.

 

some servers will have a separate folder for ssl and henc eyou would need you site to 'split' so that the protected pages were in that directory.

 

However, you should investigate the differences in php settings on the server and the development machine - the secure socket layer should not have any bearing on the performance of the php engine...

 

The fact you are still using $HTTP_GET_VARS (and expecting arrays to work as vars in a double quoted string across platforms) is a little disturbing...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.