Reply to Re: [PHP] Parsing... the hell of PHP

Your name:

Reply:


Posted by Mαrio Gamito on 03/30/05 19:15

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@supervalu.com 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@tuxdoit.com>
> 03/30/2005 07:51 AM
>
> To: php-general@lists.php.net
> cc: Subject: [PHP] 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
>

[Back to original 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация