Jump to content

rltamm

New Members
  • Posts

    2
  • Joined

  • Last visited

rltamm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I want to create a link on my site I want that link to open to http://mysite.com/enter.php I want that link to only open if required fields are met from stored infomation in my SQL DB if requirements are not met to redirect to http;//mysite.com/noenter.php gather information like.. (below) to decide if entrance is permitted. USER FIRST NAME LAST NAME ZIPCODE
  2. I downloaded a PHP login & redirect from http://www.mpdolan.com/downloads.php they unfortunately do not have a HELP guide or anything to troubleshoot the errors that may occur. after install you are asked to copy and create a config.php and add a PHP code to any page you wish to have login protection. Here is my problem I am getting this error. Warning: Cannot modify header information - headers already sent by (output started at /home/content/76/8773476/html/eahtml/studentcenter.php:1) in /home/content/76/8773476/html/eahtml/studentcenter.php on line 4 Warning: Cannot modify header information - headers already sent by (output started at /home/content/76/8773476/html/eahtml/studentcenter.php:1) in /home/content/76/8773476/html/eahtml/studentcenter.php on line 5 Warning: Cannot modify header information - headers already sent by (output started at /home/content/76/8773476/html/eahtml/studentcenter.php:1) in /home/content/76/8773476/html/eahtml/studentcenter.php on line 6 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/76/8773476/html/eahtml/studentcenter.php:1) in /home/content/76/8773476/html/eahtml/studentcenter.php on line 9 I have looked and cannot find "white areas" in the following code If I remove the "header " sections from the script i am to add on each page.. the script clearly comes with no errors.. so it mush be in it... When i get the script running without header info I get a loop... goes right back to log-in not to the redirect page... [/background][/size][/font][/color] <?php //prevents caching header("Expires: Sat, 01 Jan 2000 00:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: post-check=0, pre-check=0",false); session_cache_limiter(); session_start(); require('config.php'); require('functions.php'); //this is group name or username of the group or person that you wish to allow access to // - please be advise that the Administrators Groups has access to all pages. if (allow_access(Administrators) != "yes") { include ('no_access.html'); exit; } ?> [color=#000000][font=Verdana, Arial, Helvetica, sans-serif][size=3][background=rgb(231, 234, 239)] If more info is needed please ask i can provide anything i have or know.
  3. I have been working with PHP for about 5 hours.. lol... I find it very disturbing because I can never get what I am trying to work.. to actually work.. frustration is making my head hurt.. Any advice or help ?
×
×
  • 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.