Click to See Complete Forum and Search --> : [RESOLVED] PHP not interpreted in HTTPS


cadkins23
12-19-2008, 06:34 PM
If I go to http://www.someserver.com/hello.php it works fine but if I upload the same php file to my httpsdocs folder and try https://www.someserver.com/hello.php the PHP isn't interpreted on the server.

Only the HTML output shows in my browser so when I use 'view source' I notice I can actually see the php code seen below. Why isn't this code being interpreted?

<?php
session_start();

$userid = $_SESSION['member_id'];
echo $userid;

echo "hello";
$today = date('Ymd')
?>

<FORM action="https://www.staging.yourpay.com/lpcentral/servlet/lppay" method="post">
<input type="hidden" name="storename" value="blahblah" />
<INPUT type="hidden" name="chargetotal" value="20.00" />
<input type="hidden" name="mode" value="payplus" />
<input type="hidden" name="txntype" value="sale" />
<input type="hidden" name="producttype" value="creditcard" />
<input type="hidden" name="submode" value="periodic" />
<input type="hidden" name="periodicity" value="m1" />
<input type="hidden" name="startdate" value="<?=$today?>" />
<input type="hidden" name="installments" value="-1" />
<input type="hidden" name="threshold" value="1" />
<input type="hidden" name="txntype" value="sale" />
<input type="hidden" name="member_id" value="<?=$_SESSION['member_id']?>" />
<input type="hidden" name="responseSuccessURL" value="http://www.someurl.com/isupport.php">
<input type="hidden" name="responseFailURL" value="http://www.someurl.com/isupport.php">
<INPUT type="submit" value="$20 per month" />
</Form>

As you can see it looks like it's showing the actual php file but this is from my browser when I choose 'view source'

If I view my php info I see curl is installed and mod_ssl and my ssl certificate is properly installed. I don't see much information on this in google, any information would be greatly appreciated. I have no idea where to begin.

cadkins23
12-20-2008, 02:29 AM
Not sure what my hosting company did. Supposively they made my IP address exclusive instead of shared, but this caused a different problem now (http://phpbuilder.com/board/showthread.php?t=10361519) and even after undoing their changes the problem it caused exists.