Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Fri Sep 03, 2004 7:54 am Reply with quote

Hiya Folks...

Stupid question, but I’m stuck.

I'm posting content that I offered via an external link (now internally) and for some stupid reason, the block header is coming out BELOW the content (instead of the normal - above it situation)...


Here's the code:
Block-Camera.php
Code:
<?php


if (eregi("block-Camera.php", $_SERVER['S-CRIPT_NAME'])) {
    Header("Location: index.php");
    die("You cannot access this file directly...");
}
include("s-cripts/camera.txt");
$content = '<center>" Florida Emergency Operation Center - Rear - Wide Angle "</center>'
?>


/s-cripts/camera.txt
[code]<html>
You can see it demonstrated on my homepage. For the life of me, I can't figure out what is going on.

Ideas?

Thanks Folks!

NOTE: Everywhere that you see S-cript is just me adding the minus symbol so I could post this message since Sentinal/Nuke doesn't allow the S word!

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance.

Last edited by 64bitguy on Fri Sep 03, 2004 11:22 am; edited 1 time in total 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Sep 03, 2004 8:15 am Reply with quote

All block content must be placed in the $content variable. Yours is not. Try $content = file_get_contents("scripts/camera.txt"); instead of the include statement.
 
View user's profile Send private message
64bitguy







PostPosted: Fri Sep 03, 2004 8:21 am Reply with quote

!DOH Bang Head

Much thanks!
 
Doodle
Hangin' Around



Joined: Jan 26, 2004
Posts: 46
Location: 127.0.0.1

PostPosted: Fri Sep 03, 2004 11:03 am Reply with quote

Code:
$content = file_get_contents("scripts/camera.txt");


Wow that's a time saver! Thanks!

_________________
Independent Network Solutions [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©