[PHP] Re: How define if javascript is on with php

2010-04-17 Thread Manuel Lemos
Hello, on 04/16/2010 08:50 AM Paulo-WORK said the following: > Hello and thanks for any replies that this message may get. > I have a issue to solve regarding PHP. > My website relies heavlly on jquery and does not dowgrade properly. > I use codeigniter framework as this website has a backend . >

[PHP] Re: PHP include security

2010-04-17 Thread Micky Hulse
> What do ya'll think? Any suggestions? Sorry for the duplicate posting... I had some problems signing-up for the list. :( Also, I moved my test code to sniplr: TIA! Cheers M -- PHP General Mailing List (http://www.php.net/

Re: [PHP] PHP include security

2010-04-17 Thread Micky Hulse
Hi Michiel! Thanks for the help, I really appreciate it. :) > It depends. What's exactly do you want to prevent? It doesn't seem like a > .. > include, say, additional HTML content, use file_get_contents() instead. Very good points. My goal was to write a plugin that would allow me to include

Re: [PHP] How define if javascript is on with php

2010-04-17 Thread Paulo-WORK
On 17/04/2010 23:13, tedd wrote: At 11:43 AM +0200 4/17/10, Michiel Sikma wrote: By having regular content and overriding it with Javascript It's probably best that you use the term "progressive enhancement" rather than "overriding". The point being is that you have a site that delivers it'

Re: [PHP] How define if javascript is on with php

2010-04-17 Thread tedd
At 11:43 AM +0200 4/17/10, Michiel Sikma wrote: By having regular content and overriding it with Javascript It's probably best that you use the term "progressive enhancement" rather than "overriding". The point being is that you have a site that delivers it's content for those with javascri

Re: [PHP] solution

2010-04-17 Thread lala
Paulo-WORK wrote: I have reached a solution for my problem with js. Following all the sugestions and using jquery turned out to be quite simple. using .ide( ) and .show( ) i am able to change the #div with Js enabled content and no js. So defining with css for example: #main{display:none;} #m

[PHP] solution

2010-04-17 Thread Paulo-WORK
I have reached a solution for my problem with js. Following all the sugestions and using jquery turned out to be quite simple. using .ide( ) and .show( ) i am able to change the #div with Js enabled content and no js. So defining with css for example: #main{display:none;} #main_nojs{display:blo

Re: [PHP] How define if javascript is on with php

2010-04-17 Thread Ashley Sheridan
On Sat, 2010-04-17 at 11:43 +0200, Michiel Sikma wrote: > On 16 April 2010 19:02, tedd wrote: > > > At 3:46 PM +0200 4/16/10, Michiel Sikma wrote: > > > >> On 16 April 2010 14:06, Paulo-WORK wrote: > >> > >> -snip- > >> > > > > Paulo: > > > > I agree. Here's a working example with everything yo

Re: [PHP] limit to var_dump?

2010-04-17 Thread Michiel Sikma
On 16 April 2010 16:15, Ashley Sheridan wrote: > I'm seeing some strange behaviour with var_dump. Is there a limit to how > many levels deep that var_dump can display? > > -snip- > > However, when I var_dump the top-most object (the Gantt object) the > predecessors array for Gantt_Task 1.2 just s

Re: [PHP] PHP include security

2010-04-17 Thread Michiel Sikma
On 16 April 2010 06:57, Micky Hulse wrote: > Hi, > > -snip- > > The above code snippet is used in a class which would allow developers > (of a specific CMS) to include files without having to put php include > tags on the template view. > > The include path will be using the server root path, and

Re: [PHP] How define if javascript is on with php

2010-04-17 Thread Michiel Sikma
On 16 April 2010 19:02, tedd wrote: > At 3:46 PM +0200 4/16/10, Michiel Sikma wrote: > >> On 16 April 2010 14:06, Paulo-WORK wrote: >> >> -snip- >> > > Paulo: > > I agree. Here's a working example with everything you need: > > http://sperling.com/examples/javascript-detection/ > > Cheers, > > te