Re: [PHP] IE8 and HTML5

2008-12-19 Thread Mark Weaver
Richard Heyes wrote: I have less issues with Chrome and its beta Not thrashing my HDD is also kinda basic, but Chrome 0.2 was more than happy to do that. Thrashing? That's not a bug... it's a feature and that thrashing was chrome indexing (read harvesting information) your hard drive. Mar

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Mark Weaver
tedd wrote: At 2:40 PM -0400 8/29/08, Mark Weaver wrote: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Mark Weaver
Jochem Maas wrote: Mark Weaver schreef: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I

[PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Mark Weaver
Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I haven't a clue as to how this might be accomp

Re: [PHP] SOLVED: Calendar Date Help

2008-05-29 Thread Mark Weaver
Robert Cummings wrote: function setCal($h=0,$m=0,$s=0,$offset,$dayVal=1){ $stamp = date('U',mktime($h,$m,$s, $offset,$dayVal,date('Y'))); I don't really want to say "I told you so", but that's one of the two lines I denoted as

Re: [PHP] SOLVED: Calendar Date Help

2008-05-29 Thread Mark Weaver
Mark Weaver wrote: Hi all, I've put this off as long as possible, however I think I've reached an impasse. I've got an application that I've been writing. One of the modules for this app is an event calendar. I've got the calendar to the place where it displays the

Re: [PHP] In case this helps... (Calendar Date Help)

2008-05-28 Thread Mark Weaver
Robert Cummings wrote: On Wed, 2008-05-28 at 16:47 -0400, Robert Cummings wrote: Out of curiosity.. have you thought about reworking your premise? Using prev, current, and next is extremely sloppy IMHO. Additionally, it prevents bookmarking a specific calendar date. Why don't you have a date par

Re: [PHP] In case this helps... (Calendar Date Help)

2008-05-28 Thread Mark Weaver
Robert Cummings wrote: Out of curiosity.. have you thought about reworking your premise? Using prev, current, and next is extremely sloppy IMHO. Additionally, it prevents bookmarking a specific calendar date. Why don't you have a date parameter that indicates the year and month? If no such field

Re: [PHP] In case this helps... (Calendar Date Help)

2008-05-28 Thread Mark Weaver
Mark Weaver wrote: Hi all, I've put this off as long as possible, however I think I've reached an impasse. I've got an application that I've been writing. One of the modules for this app is an event calendar. I've got the calendar to the place where it displays the

Re: [PHP] Calendar Date Help

2008-05-28 Thread Mark Weaver
Robert Cummings wrote: function getStamp($dateStr,$dayVal=1){ return date('U',mktime(0,0,0, $dateStr,$dayVal,date('Y'))); } ^ ^

[PHP] Calendar Date Help

2008-05-28 Thread Mark Weaver
Hi all, I've put this off as long as possible, however I think I've reached an impasse. I've got an application that I've been writing. One of the modules for this app is an event calendar. I've got the calendar to the place where it displays the current month as well as previous and future

Re: [PHP] Re: Where to start!

2008-05-08 Thread Mark Weaver
Richard Heyes wrote: I do not agree that creating a database which is normalised to3NF is a waste of time. It isn't always, but it is sometimes. When time is a (significant) factor, getting something up and running (which has acceptable performance) may be more impotant than creating a techni

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Mark Weaver
Ryan S wrote: Hey everyone, A bit of a puzzle here, dont know if this is a JS problem or PHP or FF or just me. (My money is on the last one :p ) Here's what I am trying to do: In a form I have a listbox with the values 1-5, and under the listbox i have a with the id of "recips" (like

Re: [PHP] objects stored in sessions

2008-04-06 Thread Mark Weaver
Richard Heyes wrote: So, if I create a user object, set the properties of said user object and store that object in the user session will that object be available throughout the application from the session? Yes. Just remember to include the class definition before you start the session on su

[PHP] objects stored in sessions

2008-04-06 Thread Mark Weaver
Hi All, I've got something on my little mind, and please keep in mind I'm still somewhat new to PHP Oop, so please excuse my silly ass if I ask something that should be obvious. I've got an application that I'm re-writing from PERL to PHP Oop. At the beginning of the application, at log in,

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Mark Weaver
tedd wrote: Mark: You said: I'm gonna shit and go blind cause I haven't got a clue... and The only thing preventing me from gouging out my eyes right now is ... Are you sure that programming is right for you? It sounds like you're going to hurt yourself. This was just a cookie. :-)

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Mark Weaver
Jim Lucas wrote: Mark Weaver wrote: Andrew Ballard wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver <[EMAIL PROTECTED]> wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not speci

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Mark Weaver
Andrew Ballard wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver <[EMAIL PROTECTED]> wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not specific to PHP. It's just how http wo

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Mark Weaver
Andrew Ballard wrote: On Tue, Mar 25, 2008 at 9:31 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: On Tue, Mar 25, 2008 at 9:11 PM, Mark Weaver <[EMAIL PROTECTED]> wrote: > Hi all, [snip!] > Cookie Test Page > == > if (isset($_COOKIE["co

[PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Mark Weaver
Hi all, I suspect I already know part of the answer to this, but I'm not sure which way to go with it. I've got a project I'm working on and one of the things it's got to do is set cookies and then read them later. When the app was first written I was doing everything in PERL and cookies are

Re: [PHP] testing

2008-03-25 Thread Mark Weaver
PHP General Users Mailing List wrote: testing so I wasn't imagining things then? -- Mark - the rule of law is good, however the rule of tyrants just plain sucks! Real Tax Reform begins with getting rid of the IRS. == Powered

Re: [PHP] question about linux editor

2008-03-24 Thread Mark Weaver
Casey wrote: On Mon, Mar 24, 2008 at 7:28 PM, Sudhakar <[EMAIL PROTECTED]> wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other detail

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and a

Re: [PHP] Procmail Recipe to INSERT reply-to header (was: strange list behavior when replying to message on list)

2008-03-22 Thread Mark Weaver
tedd wrote: At 11:22 AM -0400 3/22/08, Greg Bowser wrote: Yeah. I always forget to reply to all. I always reply to all and then cut out everything that isn't [EMAIL PROTECTED] I know, there's probably a better way, but that's what I do. Cheers, tedd Just in case you "Do" have access to

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
tedd wrote: At 11:22 AM -0400 3/22/08, Greg Bowser wrote: Yeah. I always forget to reply to all. I always reply to all and then cut out everything that isn't [EMAIL PROTECTED] I know, there's probably a better way, but that's what I do. Cheers, tedd That's what I've been doing as well

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to r

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: The list admin, if uses a program called ezlm (or something similar), it adds the List-Id or the Newsgroups header which also helps. They must have it. hmmm... I wonder if Sylpheed for Windows will handle this? I'll have to take a look. -- Mark "If you have fo

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Brandon Orther wrote: I just signed back up to the list recently, but it was like this 5 years ago when I was still on it. I have always wondered why they didn't have that. It seems like they are pushing people to submit their solutions to the person with the question. Kind Regards, Brandon Ort

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: Greg Bowser wrote: Yeah. I always forget to reply to all. The problem is with the headers. Whereas other lists have a reply-to: in the email headers, this list does not. It annoys the hell out of me. Why in the bloody hell doesn't the list admin simply "add" t

[PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a message most of the time the actual sender's address is the one the message is being sent to rath

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
Al wrote: Seems like this does what you are attempting. if(DEBUG_MODE) // TRUE for debug only { ini_set("display_errors", "on"); //use off if users will see them error_reporting(E_ALL); echo 'Error display and logging on '; } If I understand this correctly this "if" statement di

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
Al wrote: int file_put_contents ( string $filename, mixed $data [, int $flags [, resource $context]] ) This function is identical to calling fopen(), fwrite() and fclose() successively to write data to a file. This native function does it for you Very nice! I wasn't aware of this one. Tha

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
Dave Goodchild wrote: Why are you writing a logging class? Why not use error_log and enable error logging? two reasons actually, 1. learning OOP for PHP, so the more I practice at it the better I get. 2. the logging that's being done with this class is done primarily for debugging during th

Re: [PHP] Re: fwrite/fclose troubles

2008-03-20 Thread Mark Weaver
Peter Ford wrote: Mark Weaver wrote: Hi all, I've been lurking and reading now for some time, but have decided to come out of the shadows cause I've got an issue that's gonna drive me crazy! I'm developing an application and within this application is a class that is

[PHP] fwrite/fclose troubles

2008-03-19 Thread Mark Weaver
Hi all, I've been lurking and reading now for some time, but have decided to come out of the shadows cause I've got an issue that's gonna drive me crazy! I'm developing an application and within this application is a class that is very simple and only serves a singular purpose - to make log entr