PDA

View Full Version : How do i add this php code to headers


Powerless
08 Aug 2002, 11:43
How do add this Php code to headers in other to read from a file, thanx in advance


<?php
$fp = fopen ("/home/theplacement/public_html/forum/storepl.cpl", "r");
$bytes = 900000;
$buffer = fread($fp, $bytes);
fclose ($fp);
print $buffer;


?>

Chen
08 Aug 2002, 12:32
Powerless, please go to this (http://www.vbulletin.com/members/vbulletin.org.php) page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.

cybrcyfr
08 Aug 2002, 18:08
I recently purchased vB and have the same issue!

I need to have a conditional statement in the header...



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Help! :)

cybrcyfr
08 Aug 2002, 18:47
Ok, got it working after a few hours.

Had to do everything in the "PHP Parsed Code", and create a bunch of string variables and write them out to the headers. It doesn't really follow the development style of the site, but I guess it works...

Parsed Code


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Header Code


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------