You are here: Re: call to undefined function php5 « PHP Programming Language « IT news, forums, messages
Re: call to undefined function php5

Posted by Andy Hassall on 03/01/06 00:59

On 28 Feb 2006 13:31:52 -0800, "Cruella DeVille" <siv.hansen@gmail.com> wrote:

>include_once('FileIO.php');
>$myFileIO = new FileIO('siv.txt');
>$myFileIO.writeURL("siv", "nibbler.no");

"." is the string concatenation operator.

You want "->", which can be used to call object methods (and dereference
object variables).

WHat you've written tries to string concatenate $myFileIO with the results of
a call to the global-scope function "writeURL" - which doesn't exist - and then
it ignores the actual result as it's not assigned to anything.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация