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
https://forums.phpfreaks.com/topic/78528-php-not-working-on-ssl/
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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.