You are here: Re: How can a php class read from a properties file? « PHP Programming Language « IT news, forums, messages
Re: How can a php class read from a properties file?

Posted by Jerry Stuckle on 01/11/08 22:28

Anthony Smith wrote:
> I have a class that calls some web services. I did not want the url of
> the web services to be hardcoded in the class. What is the best way to
> go about doing this?
>

Set the url as a property and initialize it via the constructor or a set
function (or give the ability to do both).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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