PDA

View Full Version : need some help please


Stu
06-01-2003, 09:54 PM
I've written a PHP script (unread.php) that collects some info from vB and my mail program. It stores this information in a variable called $unreadmail
If I run the script it collects the information and echo's it from the $unreadmail variable

I'd like to be able to place the variable anywhere in the vB templates, probably Postbit.

My question is what is the best way to go about making this variable available.

I'm assuming I'll need a line something like this
require("http://www.mydomain.com/unread.php");

is that correct? where should I put the line? and how do I make the variable global.

Thanks in advance for any help you can throw my way.

Kriek
06-01-2003, 11:35 PM
admin/functions.php
require('/pathtofile/unread.php');
postbit templates/postbit
$unreadmail

Xenon
06-02-2003, 06:44 PM
put the require line into phpincludetemplate would be better :)

Stu
06-02-2003, 08:19 PM
Hi Guys,
thanks for the quick replies.