Connecting Tech Pros Worldwide Help | Site Map

Re php4.3.4

  #1  
Old July 17th, 2005, 02:37 AM
Geoff
Guest
 
Posts: n/a
Re previous problem
Thanks to Alvaro, I solved the original problem on php version 4.3.4
However, I now have another one.

I have an admin panel which requires a password to access it from a previous
page. With the site live on an ISP server, everything is OK.
On my local server running Apache and php 4.3.4, when the correct p/w is
entered on the previous page, instead of going to the correct page (which
consists of 2 frames, it simply reproduces the previous page in both frames.

The script being used is:
#-----REDIRECT AUTH USER----------
if($HTTP_SESSION_VARS['sessadmin']){
Header('Location:admin.index.php');
}
#------AUTHENTICATE PASSWORD-------
if($HTTP_POST_VARS['pass']){
if(crypt($HTTP_POST_VARS['pass'],
$HTTP_POST_VARS['pass'])=='wiOgiun64DE9.'){
session_register('sessadmin');
$sessadmin='set';
$done=1;
}

Because it works OK on an ISP, I assume it must be a setting in my local
apache/php set up.

Any help much appreciated.

Geoff.


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
php4 end of life Drazen Gemic answers 12 February 24th, 2007 02:55 AM
php4-cgi doesn't read -c /path/to/config, php5-cgi does Stefan Huber answers 2 July 13th, 2006 02:45 PM
PHP4 or PHP5, and apache: pros/cons sinister answers 5 April 25th, 2006 09:25 PM
PHP4 + PHP5 + ZendStudio porneL answers 1 July 17th, 2005 11:46 AM
PHP4 *and* PHP5 Tim Tyler answers 5 July 17th, 2005 05:06 AM