Re: [PHP] Help needed with calculation

2009-11-15 Thread Adam Shannon
php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- - Adam Shannon ( http://ashannon.us ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] to a css file requires .css ???

2009-08-16 Thread Adam Shannon
ce, > dK > ` > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Oh, I think it's part of the spec. You could always use .htaccess rules to parse .css files as .php, this will keep search engines happy and browsers happy as well. -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] Include Paths

2009-08-12 Thread Adam Shannon
20 records has suddenly turned > into > something of a matter of a minute rather then seconds. > > Has anyone ever experienced such an issue? > > Can anyone please advise? > > Thanks I wonder if loading the script/page with an absolute path would fix the problem. -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Adam Shannon
er("Content-Type: image/png"); > header("Pragma: no-cache"); > header("Expires: 0"); > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Take the if (!headers_sent()) out and always send the headers. -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] need to get .html files parsed by PHP. -- WAS: why does PHP parse "*.html" files in one subdir/ but not in another?

2009-07-19 Thread Adam Shannon
; > what does this one ^^^ do exactly ? It turns off the "Powered By: PHP v5.30" on Apache/IIS Error messages. > > > * You turn display_errors off in your php.ini >> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] need to get .html files parsed by PHP. -- WAS: why does PHP parse "*.html" files in one subdir/ but not in another?

2009-07-19 Thread Adam Shannon
mselves. It's certainly the > de-factor standard that .html files only contain flat markup, but > that's by no means a rule or anything, but it's common practice > (mostly because programmers are lazy). > > Sorry if I sound rude, just quit smoking :) > --Eddie > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Eddie your exactly right, changing file MIME types is often used for security and protection. It is harder to know what is behind the "show" when you don't visually expose it. (A simple curl will give you the HTTP headers often with PHP as a/the agent.) -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] why does PHP parse "*.html" files in one subdir/ but not in another?

2009-07-18 Thread Adam Shannon
On Sat, Jul 18, 2009 at 7:54 PM, Govinda wrote: > > On Jul 18, 2009, at 6:36 PM, Adam Shannon wrote: > > > > On Sat, Jul 18, 2009 at 7:01 PM, Govinda wrote: > >> Hi all, >> >> ..sitting here thinking this is so easy, and I must have been over this >>

Re: [PHP] why does PHP parse "*.html" files in one subdir/ but not in another?

2009-07-18 Thread Adam Shannon
e telling .html files in a /sub/directory/ to treat .html files as .php Just add this to your root .htaccess AddType x-mapp-php5 .html > > Thank you > -Govinda > > > > > Govinda > govinda.webdnat...@gmail.com > > -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] Re: RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-11 Thread Adam Shannon
ds. I found the list by the link on php.net (lists.php.net), I mainly joined to grow in my experience with PHP. -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Adam Shannon
upported? > > > > Thanks! > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- - Adam Shannon ( http://ashannon.us )

Re: [PHP] Split up Date Range

2009-07-01 Thread Adam Shannon
09 and 8/20/2009 but > > I think its as safe as any assumption that "regular people" wouldn't > > enter that as a date range. > > > > If you have more than three elements then split on the dash and as > > long as you have have only two elements then