Illyria: We cling to what is gone. Is there anything in this life but grief? Wesley: There's love. There's hope...for some. There's hope that you'll find something worthy...that your life will lead you to some joy...that after everything...you can still be surprised. Illyria: Is that enough? Is that enough to live on?

'Shells'


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!


Theodosia - Feb 15, 2007 2:20:42 pm PST #596 of 25496
'we all walk this earth feeling we are frauds. The trick is to be grateful and hope the caper doesn't end any time soon"

It could need a reset -- maybe its OS has crashed and so it won't turn on again enough to recharge? I've had to reset my mini a couple of times, and each time I've had to go to the Apple support pages in order to recall how you reset it (it's holding down a couple of the clicker-buttons, and I can never remember which). Worth a try!


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:

< ? } ? >