Re: My first xml try

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ronald,

On Nov 9, 2007 9:05 PM, Ronald Wiplinger <ronald@xxxxxxxxx> wrote:
> I tried to use echo statements for debugging and found that it seems I
> do not get the information of require().
>
> What do I need to change?

I'm not sure what error you're getting, but I would guess it can't
find the required file because mysql-config is spelled wrong in the
constructor for the class that you posted. It also looks like you are
using variables $dbname, $dbhost, $dbuname in your functions, but I
don't see how those variables could be defined. Even if you declare
them global in the constructor function, I'm pretty sure they would be
out of scope in any of your other functions.

I am guessing that your table webref_rss_details must only have one
row in it, because the block of XML you are outputing in getDetails()
is definitely something you only want to send once. Also, if you
aren't using any of the XML writers or DOM libraries to build your
document, you should account for the possibility of invalid XML
characters like ", <, >, and & in the content that you are writing and
make sure they are converted to the appropriate entities.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux