Click to See Complete Forum and Search --> : strange code copying problem in phpbuilder


thessoro
06-04-2003, 02:06 PM
it really disturbs me...
when somebody post php code in any of the phpbuilder forums... if i want to check the problem or copying some interesting script i simply copy & paste it into a xterm or quanta.
But this code never works! It gives a parse error in the very first line although there is no error at all. It happens with every script (even with the ones i post and have previously checked)
Does anybody know why? If it's somehow helpful the browser i'm trying to copy from is Opera (maybe try again later using mozilla)

dalecosp
06-05-2003, 11:48 PM
Got a specific example?

thessoro
06-06-2003, 09:47 AM
no matter how simple the code is:
for example, i post the following code:

<?
$var="Hello word";
echo $var;
?>


EDIT1: I obtain the following error: Parse error: parse error in /var/www/foro/testing.php on line 5
Line 5 is "echo $var" because of the empty lines...
just because I deleted the empty lines, but the error now is:
Parse error: parse error in /var/www/foro/testing.php on line 3

EDIT2: That is copy&pasting in Quanta, but the same occurs when copy&pasting to a xterm.
Now, i delete the whole content of testing.php, and rewrite the code by typing it.
And magically: "Hello world" and no error

Strange!! isn't it???

dalecosp
06-06-2003, 10:02 AM
Seems a little weird indeed.

No such problems here with IE6/PuTTY... :(