Current location: Hot Scripts Forums » Programming Languages » PHP » Pre-load Image Script then Redirect?


Pre-load Image Script then Redirect?

Reply
  #1 (permalink)  
Old 11-24-04, 03:16 PM
thefoxbox thefoxbox is offline
New Member
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Pre-load Image Script then Redirect?

Does anyone know of a script that I could load as an include at the top of every one of my pages (or just the homepage, I guess) so that if the person doesn't have a cookie saying "The images were already pre-loaded" it will go to the pre-load page then go back to either my index or the page they just requested?...

I've been searching but cannot find a script

Any help would be appreciated--thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-24-04, 05:59 PM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
maybe something like this:
PHP Code:

if($_ISSET($_COOKIE["in"]) AND $_COOKIE["in"] == "1"){

include(
"root.php");
}
else{
include(
"load_page.php");
setcookie("in"," 1"time()+3600);

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-24-04, 07:05 PM
thefoxbox thefoxbox is offline
New Member
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Eclipse
maybe something like this:
PHP Code:

if($_ISSET($_COOKIE["in"]) AND $_COOKIE["in"] == "1"){

include(
"root.php");
}
else{
include(
"load_page.php");
setcookie("in"," 1"time()+3600);

For some reason I got this error:

Fatal error: Function name must be a string in F:\xampp2\xampp\htdocs\index.php on line 3

I put that code first.

What did I do wrong? Heh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-25-04, 03:29 PM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
oh heh sorry here's the correct code:
PHP Code:

if(isset($_COOKIE["in"]) AND $_COOKIE["in"] == "1"){

include(
"root.php");
}
else{
include(
"load_page.php");
setcookie("in"," 1"time()+3600);

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Image Hosting / Script Sale 4n7hr4x Job Offers & Assistance 9 10-29-04 09:13 PM
Verification Image Script aditan22 Script Requests 2 08-15-04 09:36 PM
Complete Image Hosting Site Script ktools General Advertisements 0 07-19-04 10:08 AM
small image script needed. graham barnes Script Requests 0 06-18-04 04:06 AM
image load glitch bentley JavaScript 1 02-16-04 10:44 AM


All times are GMT -5. The time now is 01:58 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.