Current location: Hot Scripts Forums » Programming Languages » PHP » oh,no,why cant dispaly demo.php?


oh,no,why cant dispaly demo.php?

Reply
  #1 (permalink)  
Old 04-26-04, 08:58 AM
inso inso is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
oh,no,why cant dispaly demo.jpg?

http://t.5v6.com/img.php
here is ****.php
PHP Code:

<?php


$ADMIN
[defaulturl] = "img/no.gif";
$okaysites = array("http://www.5v6.com/","http://t.5v6.com/");    
$ADMIN[url_1] = "http://t.5v6.com/";

$reffer $HTTP_REFERER;
if(
$reffer) {
$yes 0;
while(list(
$domain$subarray) = each($okaysites)) {
if (
ereg("$reffer",$subarray)) {
$yes 1;
}
}
$theu "url"."_"."$site";
if (
$ADMIN[$theu] AND $yes == 1) {
header("Location: $ADMIN[$theu]/$file");
} else {
header("Location: $ADMIN[defaulturl]");
}
} else {
header("Location: $ADMIN[defaulturl]");
}

?>
img.php
PHP Code:

<img src="****.php?site=1&file=demo.jpg> 

Why didnt img.php display demo.jpg
http://up.5v6.com/files/04426_2039.jpg

Last edited by inso; 04-26-04 at 09:30 AM.
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


All times are GMT -5. The time now is 07:12 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.