Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is this possible in HTML?
#11
And just remember, HTML isn't good for anything but making things pretty. It's not a programming language.
ammit potato!
Reply
#12
Quote:And just remember, HTML isn't good for anything but making things pretty. It's not a programming language.
:roll:
Then why don't they call it "HTMS"?
I'd knock on wood, but my desk is particle board.
Reply
#13
Because the "L" in HTML stands for "language", not "programming language."
Reply
#14
@zap: I already do that Wink. But *some* browsers...

Neo: LOL

Haven't you heard of the trim() function??? Or the str_replace() function?

[syntax="php"]function readLine ($fhandle, $maxchars)
{
$buffer = fgets($fhandle, $maxchars);
return trim(str_replace(array("\r", "\n", "\0"), '', $buffer));
}[/syntax]
Reply
#15
neo, next time have a look at the string functions on php.net. Its a very good resource for finding new commands Wink. BTW trim is very universal, two variants of it exist in qb too =P(LTRIM$, RTRIM$) Wink.
Reply
#16
Oh sorry :oops: When I wrote that code I didn't have internet Wink I had to do with the things that were in my stupid manual Wink
Reply
#17
Quote:Oh sorry :oops: When I wrote that code I didn't have internet Wink I had to do with the things that were in my stupid manual Wink

which manual were you using?
Reply
#18
PHP4 without stress: [Image: boek_9.gif]

Wink
Reply
#19
and it didnt have any function reference? :o
Reply
#20
Yeah... but no trim() or str_replace() Sad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)