You're a bloody puppet! You're a wee little puppet man!

Spike ,'Smile Time'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


tommyrot - Feb 16, 2007 9:46:20 am PST #599 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Gawd, I'm so rusty at php...

If you start a block comment in some php and end it in some other php, will the server just ignore everything in between? Or will it still send the html to the client?


Jon B. - Feb 16, 2007 10:01:34 am PST #600 of 25496
A turkey in every toilet -- only in America!

Or will it still send the html to the client?

That\'s the problem -- it still sends the html to the client.


tommyrot - Feb 16, 2007 11:25:11 am PST #601 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Then I think you'd have to comment out the php and html separately. I've had to do that with ASP.


Jon B. - Feb 16, 2007 11:45:09 am PST #602 of 25496
A turkey in every toilet -- only in America!

That\'s what I was afraid of. It\'s a pain because there\'s a lot of back and forth, using php echo commands within the html. Eh, I\'ll just delete the code. I have a test version that still contains it.


Eddie - Feb 16, 2007 1:02:01 pm PST #603 of 25496
Your tag here.

Well, if you're just trying to not display the html generated by the php code (and the normal html), then using html-style comment tags will work:

< h t m l > < b o d y >

< ! - -

< ? = "hi"; ? >

< p >foo< / p >

< ? = "there" ? >

< p > asdf < / p >

- - >

< / b o d y > < / h t m l >

[spaces added to code to get it to play nice with b.org]

But if you're trying to comment out the php to prevent it from executing... yeah, offhand I'd say you'd have to comment separately.


Jon B. - Feb 16, 2007 1:23:50 pm PST #604 of 25496
A turkey in every toilet -- only in America!

Thanks, Eddie. That's better than nothing.


Eddie - Feb 16, 2007 1:50:42 pm PST #605 of 25496
Your tag here.

Got it!

To begin the "block comment" use:

< ? i f ( FALSE ) { ? >

then to end the "block comment" use:

< ? } ? >


Jon B. - Feb 16, 2007 2:10:31 pm PST #606 of 25496
A turkey in every toilet -- only in America!

Clever!


Zenkitty - Feb 16, 2007 3:51:21 pm PST #607 of 25496
Every now and then, I think I might actually be a little odd.

Um, is someone around to help me out? To save my brand-new monitor from being hurled through a wall?


Tom Scola - Feb 16, 2007 3:53:25 pm PST #608 of 25496
Mr. Scola’s wardrobe by Botany 500

save my brand-new monitor from being hurled through a wall?

Open the window first.