And we live to fight another day.

Mal ,'Objects In Space'


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!


askye - Feb 15, 2007 4:54:39 pm PST #597 of 25496
Thrive to spite them

I checked through the all the R options but not only will the Nano not come on but when it's plugged to the computer it doesn't show up on the iTunes source list so I can't restore.

I've drained the battery before and when I plugged it in iTunes recognized it and the Nano turned on.

I've been looking on the Apple website and it looks like maybe it is the battery.


Jon B. - Feb 16, 2007 9:40:33 am PST #598 of 25496
A turkey in every toilet -- only in America!

I\'ve got a php file in which I want to comment out a block of code. The code is a mix of php and html with lots of to-and-fro between the two. Is there an easy way to comment out the block?


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!