Re: SecurePages with PHP5
Does any one know which file they had to change i went thorugh all of them and still its not working with PHP5 any ones help would be great i have an appl which is down at the min because of me portingthe app form php4 to php5
> Yes, it solves the problem.
> The variable names you must change are:
> $HTTP_SERVER_VARS ==> $_SERVER
> $HTTP_ENV_VARS ==> $_ENV
> $HTTP_GET_VARS ==> $_GET
> $HTTP_POST_VARS ==> $_POST
> $HTTP_SESSION_VARS ==> $_SESSION
> % yeah, I had the same problem.
> % I figured out the problem. The
> % variables in php > 4.1 changed.
> % it's things like $HTTP_GET_VARS
> % to $_GET and so on. See this page
> % details:
> % http://us3.php.net/reserved.variables
> % Then, grep for HTTP_ in all the php
> % files, and change the ones that you
> % to... it worked for me!
Same page- I want it to go to something different after login
I was searching the internet and found this. I like it, except when I go to test.php (renamed to login.php) it says access denied. I type the right password out. I found out, it uses my MD5 password.
Also, After users login I want them to go to a page like index.php . How can I make this happen? I want the login.php (formerly test.php) to be for logging in only. After a successful login, they go to index.php . On my site I would like to use a directory like http://schoolwatch.mradio105fm.com/login.php for logging in. Then after a successful login it goes to: http://schoolwatch.mradio105fm.com/closenet/index.php . How can I make this happen? Also, can you make a change password feature for users so they can change their passwords. Also, I want to have an Admin level (e.g. Level 10) and I want the admin level to be able to add and delete accounts and change levels. How do I do this?
Thanks so much!
Where is Paul? Paul... we *did* cough up 20 bucks for a
commercial license. Could you not offer even a small bit of
We are experiencing consistently dropped sessions when
reloading a secure page after a query. Can you help us
figure out what is happening?
We have installed the latest version. We are running PHP 4.
Sessions are being dropped and it is a pain.
See it all here:
Get in there and do a couple of sort/searches. Drops every
I like this project, but...
I really do like the way this script secures web pages with flexable group level access. What the project lacks is support. I've tried several times to get questions answered with no luck. Maybe someone could start a Forum for phpSP??
add function to change password
is it possible to add the function to change the password for usernames in mysql data base i created a mysql database using default settings all I need is to change a password for one username I need to change it frequently so i am trying to add that function into php page. any help would be appreciated
CREATE TABLE phpSP_users (
primary_key MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,
user VARCHAR(50) NOT NULL,
password VARCHAR(32) NOT NULL,
PRIMARY KEY (primary_key),
Re: SecurePages with PHP5
Yes, it solves the problem.
The variable names you must change are:
$HTTP_SERVER_VARS ==> $_SERVER
$HTTP_ENV_VARS ==> $_ENV
$HTTP_GET_VARS ==> $_GET
$HTTP_POST_VARS ==> $_POST
$HTTP_SESSION_VARS ==> $_SESSION
> yeah, I had the same problem. FINALLY,
> I figured out the problem. The
> variables in php > 4.1 changed. Mostly,
> it's things like $HTTP_GET_VARS changed
> to $_GET and so on. See this page for
> Then, grep for HTTP_ in all the php
> files, and change the ones that you need
> to... it worked for me!
Can we auto_prepend ??
I have been tryinig to use .htaccess to get PHP's auto_prepend function to do the include for phpSecurePages --so that I do not have to add code to every page on my site.
I can get the secure.php file included --but the login screen never displays :(
Has anyone got a trick for this???
Re: using PHPSecurePages to redirect
> Great little script. Does anybody have
> any clever ideas
> how I could modify it's implementation
> so that a user
> goes to one page to login and, based on
> that login,
> subsequently gets redirected to a custom
After phpSecurePages has run, there are several variables available to identify the user. I suggest using $user in combination with a redirect script to redirect the user to his own custom location.
Re: Fatal Error: Cannot redeclare admemail() in.....
This error happens when phpSecurePages is loaded more then once within a single page. This can happen when using frames or the include function.
In phpSecurePages v0.30 there will be an extra saveguard build in to prevent this error from happening.
Re: Keeping Session Information For Non-Login pages
> nevermind, i figured it out. thanks
I'm trying to figure out the same thing. What did you end up
An open, cross-platform journaling program.
A scientific plotting package.