note 47884 added to language.variables
| From: | serch dot ml at RoyG dot Vib dot net dot mx | Date: | Fri, 03 Dec 2004 18:42:32 +0000 |
| Subject: | note 47884 added to language.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81335@lists.php.net to get a copy of this message | ||
I've found a problem using long strings in php, i didn't know what exactly php was doing,
but i found what was causing the problem.
I got an html formated text for sending an email like this:
<?
$var = "
doesn't matter...asdfu aldf hlasduf asdsd asd asd asda ilads lasd asdfu aldf hlasduf asd the
text doesn't matter... <a href="somelink.com">asasdasd </a></p>
<p> </p> ";
?>
Ok, my error was that i didnot remove (or put \ before ") the double qoutes (") in the
string, i wasn't aware of that... and the script wasn't showing anything, i was expecting
an error like Unexpected end of string or something, but it wasn't showing anything,
Always keep in mind the quotes when using them in strings..
----
Manual Page -- http://www.php.net/manual/en/language.variables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47884
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47884&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47884&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47884&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47884&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47884&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47884&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47884&report=yes
Search -- http://master.php.net/manage/user-notes.php