#!/usr/bin/php and https:

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
lisamarie_tt
Forum Commoner
Posts: 32
Joined: Fri Jul 15, 2005 8:20 am

#!/usr/bin/php and https:

Post by lisamarie_tt »

Hi,
I am relatively new to PHP and need some help. I understand the the use of the line #!/usr/bin/php is for php congiguration. I am using an Apachee Web Server and the above mentioned config line to process my php files, (This is working fine).

I have however made the following observation that when using https: and the #!/usr/bin/php line in a file that has a setcookie function, the cookie is not being set or i have problems retriving information belonging to a particular cookie.

Has this occured before with anyone?
Do you that it has to do with my configuration?

Any insight or suggestions in this would be welcome.
:)
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Nothing wrong with your config at all. Session cookies set on an unencrypted page are not valid for encrypted pages. The solution: viewtopic.php?t=14994

P.S.: Welcome to the forum
Post Reply