You are here: class and global « PHP « IT news, forums, messages
class and global

Posted by Pooly on 03/19/05 03:07

Hi,

I'm trying to use a global object (declared at a upper level), but all I
got is :
Call to a member function on a non-object in
/home/pooly/public_html/templeet/modules/freedb.php on line 16

part of the code is :
$freedb =& new freedbaxs();
Function return_freedb_search($array)
{
global $freedb;
[snip]
$freedb->freedb_search($txt);

so, can I access an object allocated outside a function ? this
functionis meant to be a wrapper for that class, because I cannot access
directly.
thanks for you help,

--
Pooly ;)
http://www.w-fenec.org/

 

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

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