Re: Parsing... the hell of PHP

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

 



Hi,

Thank you all that answered my question.
It worked.

I think i'll never get used to this parsing PHP stuff :(

Warm Regards,
Mário Gamito



Martin.C.Austin@xxxxxxxxxxxxx wrote:
$url = "<a href =\".$url."\">.HtmlEntities($url)."\">".</a>";

It appears the parse error is at the end of your opening link tag, so PHP doesn't know what >.HtmlEntities($url) means. I'm at work so I can't test it, but that appears the culprit to me.

$url = "<a href=\"$url\">" . HtmlEntities($url) . "</a>"; should suffice.

Martin Austin





Mário Gamito <lists@xxxxxxxxxxx>
03/30/2005 07:51 AM
To: php-general@xxxxxxxxxxxxx
cc: Subject: Parsing... the hell of PHP



Hi,

I'm trying to transform a url taken from the DB from "plain text", to the same, but linkable url.

All i get is parse errors and alike.

Here is my last (of many) attempt:

$url = "<a href =\".$url."\">.HtmlEntities($url)."\">".</a>";

A warning and a parse error is what i get.
Can't get there :(

Any help would be apreciated.

Warm regards,
Mário Gamito


-- 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