[PHP] reading from file

2001-07-25 Thread Stefan Kostopoulos
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

[PHP] Classes and arrays

2001-05-08 Thread Stefan Kostopoulos
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){

[PHP] Classes adn arrays

2001-05-08 Thread Stefan Kostopoulos
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]

RE: [PHP] include files with PHP 3.0.16

2001-04-16 Thread Stefan Kostopoulos
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