I am using the script include below to read the content
of a file and output it.
When I load this script with the adress of a plain html
file it outputs everything like expected, except there are
some extra characters spread over the file. They come in little
string like '40d' or '1000' and
Hi!
Can anybody explain to me why this script outputs:
oneone
instead of:
zeroone
???
Thanks,
stefan
?
class Cart {
var $items; // Items in our shopping cart
function add_item ($id,$text) {
$this-$items[$id] = $text;
}
function output($id){
Thanks Jack!
This was really driving me mad and it was such a little
thing
Stefan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Tim,
Check out the include() and require() function of php.
Stefan
-Original Message-
From: Tim Thorburn [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 5:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP] include files with PHP 3.0.16
Hi,
I'm currently working on a rather large
4 matches
Mail list logo