Re: [PHP] Is there a PHP based authentication library?

2013-04-02 Thread Mark
that as their password. Like I said, let me know if anyone wants to see it... I'm unemployed right now, and a project to work on this week (or next... this week is kind of busy) might be a good thing. -Andy McKenzie On Mon, Apr 1, 2013 at 6:49 PM, Mark mark...@gmail.com wrote: On Tue, Apr 2, 2013

Re: [PHP] Is there a PHP based authentication library?

2013-04-02 Thread Mark
PM, Mark mark...@gmail.com wrote: Hi Andy, To be honest, that's also not what i'm looking for, but might be a good starting point to extend on. Depends on how you made it :) I cant promise that i'ill be working on it. I might be for some future project in my company but it might very well

[PHP] Is there a PHP based authentication library?

2013-04-01 Thread Mark
... Is there such a library in existence? I'm especially looking for one with mozilla persona implemented. Kind regards, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Mark
On Tue, Apr 2, 2013 at 12:25 AM, David OBrien dgobr...@gmail.com wrote: On Mon, Apr 1, 2013 at 5:26 PM, Mark mark...@gmail.com wrote: Hi, I stumbled upon this payment library: http://ci-merchant.org/ which abstracts the different payment backends away and exposes a new easy to use

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Mark
On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea sorin.bade...@gmail.com wrote: Hi Mark, I think a simple Google search would be faster. Anyway, an unified way for 3rd party authentication doesn't exist from my knowledge, but for Persona you could use the sample from mozilla github account https

[PHP] Recommendation request: Use Magento or build my own eCommerce?

2012-10-22 Thread Mark
Magento? or another option that i didn't even consider yet? Kind regards, Mark

[PHP] Re: Recommendation request: Use Magento or build my own eCommerce?

2012-10-22 Thread Mark
On Mon, Oct 22, 2012 at 4:06 PM, Mark mark...@gmail.com wrote: Hi, I'm in a difficult situation here. I have a list of requirements for an eCommerce system (Magento) where i'm getting mixed opinions about what to do. Note: i do consider myself to be a quite experienced PHP programmer

Re: [PHP] Re: Recommendation request: Use Magento or build my own eCommerce?

2012-10-22 Thread Mark
On Mon, Oct 22, 2012 at 4:51 PM, Marc Guay marc.g...@gmail.com wrote: Why not just use the entire OpenCart package? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Well, i was basing my choice of Magento on the internet opinion and

Re: [PHP] What's the best way to make a dynamic plugin architecture?

2012-08-31 Thread Mark
On Tue, Aug 28, 2012 at 1:43 PM, Matijn Woudt tijn...@gmail.com wrote: On Tue, Aug 28, 2012 at 1:16 AM, Larry Garfield la...@garfieldtech.com wrote: On 8/27/12 6:11 PM, Matijn Woudt wrote: You should never be calling require() yourself. Just follow the PSR-0 naming standard and use an

Re: [PHP] What's the best way to make a dynamic plugin architecture?

2012-08-27 Thread Mark
On Mon, Aug 27, 2012 at 12:41 PM, Stuart Dallas stu...@3ft9.com wrote: On 26 Aug 2012, at 19:42, Mark mark...@gmail.com wrote: Envision the following plugin architecture: class PluginLoader { } interface PluginInterface { .. some function definitions .. } class PluginOne implements

Re: [PHP] What's the best way to make a dynamic plugin architecture?

2012-08-27 Thread Mark
On Mon, Aug 27, 2012 at 3:46 PM, Stuart Dallas stu...@3ft9.com wrote: On 27 Aug 2012, at 14:29, Mark mark...@gmail.com wrote: On Mon, Aug 27, 2012 at 12:41 PM, Stuart Dallas stu...@3ft9.com wrote: On 26 Aug 2012, at 19:42, Mark mark...@gmail.com wrote: 2. Let the plugin itself (so

Re: [PHP] What's the best way to make a dynamic plugin architecture?

2012-08-27 Thread Mark
On Mon, Aug 27, 2012 at 4:26 PM, Stuart Dallas stu...@3ft9.com wrote: On 27 Aug 2012, at 14:52, Mark mark...@gmail.com wrote: On Mon, Aug 27, 2012 at 3:46 PM, Stuart Dallas stu...@3ft9.com wrote: On 27 Aug 2012, at 14:29, Mark mark...@gmail.com wrote: On Mon, Aug 27, 2012 at 12:41 PM, Stuart

[PHP] What's the best way to make a dynamic plugin architecture?

2012-08-26 Thread Mark
towards the second option now since that seems to be quite stable and not very error prone. The eval one is much easier to break :p Cheers, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] If PHP Were British

2012-06-22 Thread Mark Rousell
On 22/06/2012 22:07, Daevid Vincent wrote: http://www.addedbytes.com/blog/if-php-were-british/ LOL! -- Mark Rousell PGP public key: http://www.signal100.com/markr/pgp Key ID: C9C5C162 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Mark Rousell
On 22/05/2012 19:15, Gates, Jeff wrote: Can anyone tell me what differences I might encounter by working with PHP on a Unix server verses working with PHP on a Windows server. We use Windows production servers here but many of us would like to get more LAMP environments. So, I'm

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Mark Rousell
On 22/05/2012 19:32, Ashley Sheridan wrote: After that, you have file permissions. In Unix, you have file, owner and group permissions; Windows has read/write permissions and I believe on newer versions you can get something similar to what Unix/Linux has had for the last however many years

Re: [PHP] Howto detect the hostname of the server?

2011-11-25 Thread Mark Kelly
, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Secure data management

2011-10-05 Thread Mark Kelly
Hi. On Wednesday 05 Oct 2011 at 00:04 Mark Kelly wrote: I'd be interested in any ideas folk have about these issues, or any others they can envisage with this proposal. Thank you all for joining in here - it's been a fascinating read so far. Mark -- PHP General Mailing List (http

Re: [PHP] Re: Secure data management

2011-10-04 Thread Mark Kelly
? I'd be interested in any ideas folk have about these issues, or any others they can envisage with this proposal. Cheers, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: dynamic copyright in page footer?

2011-04-30 Thread Mark Kelly
On Saturday 30 Apr 2011 at 14:28 Nathan Rixham wrote: echo implode(,, range(2011,date(Y))); What an elegant solution! Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regex for extracting quoted strings

2011-03-05 Thread Mark Kelly
'This is it' and 'Nope, that is the wrong colour'. Can anyone help? Cheers, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Regex for extracting quoted strings

2011-03-05 Thread Mark Kelly
copy of each phrase. I'm just trimming the quotes afterwards. Thanks for all the advice. Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Custom function

2011-02-16 Thread Mark Kelly
to keeping my mouth shut in future :) Cheers guys, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Custom function

2011-02-15 Thread Mark Kelly
) { if ($z) { // do stuff with $z } } In this way almost any value in $z will trigger the conditional code, including 0 or an empty string. The exceptions are FALSE and NULL. If you explicitly need to react to a NULL value, use is_null() to detect it. Cheers, Mark -- PHP General Mailing

[PHP] Re: Including files on NFS mount slow with APC enabled

2010-08-18 Thread Mark Hunting
Bug reported, see http://pecl.php.net/bugs/bug.php?id=18154 On 08/17/2010 01:13 PM, Colin Guthrie wrote: I don't know the internals of APC but that smells like a bug to me. Can you post the bug number here if you report one? Cheers Col -- PHP General Mailing List

Re: [PHP] Including files on NFS mount slow with APC enabled

2010-08-17 Thread Mark Hunting
I now notice that when I replace include_once with include the open() call disappears. That's very nice, but why does include_once need to open the file, even when apc.include_once_override is enabled? Is this a bug? On 08/16/2010 03:21 PM, Mark Hunting wrote: I am struggling

[PHP] Including files on NFS mount slow with APC enabled

2010-08-16 Thread Mark Hunting
, MAP_SHARED, 1440, 0) = 0x7faf3f068000 0.000395 stat(/[removed]/library/Zend/Application.php, {st_mode=S_IFREG|0755, st_size=11365, ...}) = 0 0.000219 munmap(0x7faf3f068000, 11365) = 0 0.000151 close(1440) = 0 0.000845 Thanks, Mark -- PHP General Mailing List (http

Re: [PHP] Including files on NFS mount slow with APC enabled

2010-08-16 Thread Mark Hunting
file, since APC won't detect that it was modified. Regards, Jonathan On Mon, Aug 16, 2010 at 10:21 AM, Mark Hunting m...@netexpo.nl wrote: I am struggling with the performance of some websites that use a lot of includes (using include_once). The files are on a NFS mount (NFSv4), and I use

Re: [PHP] NetBeans Question

2010-05-30 Thread Mark Kelly
turned to this list. Just in case you didn't spot it, there is a mailing list specifically for PHP development using netbeans that I have found very useful. You can sign up here: http://netbeans.org/community/lists/top.html#technologies Cheers, Mark -- PHP General Mailing List (http

Re: [PHP] NetBeans Question

2010-05-30 Thread Mark Kelly
Hi Brandon. You sent your reply directly to me, instead of to the mailing list. Also I don't agree - netbeans is an excellent IDE and to call it a text editor is not doing it justice at all. Cheers, Mark On Monday 31 May 2010 at 02:03 you wrote: Dreamweaver is better if you want a real

Re: [PHP] NetBeans Question

2010-05-30 Thread Mark Kelly
. Cheers, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need login suggestions

2010-05-02 Thread Mark Kelly
guess) in the session and check it in every secured page to control who sees what. I've done several variations on this particular theme; it's simple to manage, especially if you have a page initialisation function/method you can put the $userType check into. HTH, Mark -- PHP General

[PHP] Re: HipHop and other PHP compiler performance evaluation

2010-02-24 Thread Mark Cilissen
Manuel Lemos schreef: FYI http://digg.com/programming/PHP_compiler_performance A nice article, thank you for the information! -- Kind regards, Mark Cilissen / Pixlism -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Login Script: mysql_num_rows(): supplied argument is not a valid MySQL result resource

2010-02-19 Thread Mark Cilissen
SQL Injection, as your script contains a huge vulnerability. This can be fixed using mysql_real_escape_string, so it is this: ELECT * FROM `userinfo` WHERE `user` = '.mysql_real_escape_string($user).' AND `pass` = '.mysql_real_escape_string($pass).' -- Kind regards, Mark Cilissen / Pixlism

Re: [PHP] Re: Login Script: mysql_num_rows(): supplied argument isnot a valid MySQL result resource

2010-02-19 Thread Mark Cilissen
Ashley Sheridan schreef: On Fri, 2010-02-19 at 18:30 +0100, Mark Cilissen wrote: David Hutto schreef: --- On Fri, 2/19/10, David Hutto dwightdhu...@yahoo.com wrote: From: David Hutto dwightdhu...@yahoo.com Subject: Login Script: mysql_num_rows(): supplied argument is not a valid MySQL

[PHP] Checking correct usage of fopen(), stream_set_timeout() and fread() [newbie]

2010-02-11 Thread Mark White
is has 1024 bytes (in this example) and then return that, unless EOF is encountered when the data up to and including EOF is returned. I'm not sure what he's trying to say. Many thanks for any advice on this. Mark... Code: (The intentions are: used for downloading very large files while avoiding

[PHP] Intermittent etwork connection errors with apache. Restarting apache temporarily fixes the problem. PHP or apache problem?

2010-01-04 Thread Mark London
the problem, i.e. to see if connections are left opened in some way? I'm running redhat 5, httpd-2.2.3-31.el5_4.2 php-5.1.6-23.2.el5_3 Thanks. - Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recognizing double clicks

2009-11-22 Thread Mark Kelly
Hi. On Sunday 22 Nov 2009 at 05:34 Skip Evans wrote: It just dawned on me the button may be disabled right when it's clicked to prevent a double submit? Is that doable? To mark a button as disabled after it has been clicked to prevent it being clicked twice just add some simple code

Re: [PHP] Re: shell_exec fails to compile java class?

2009-11-12 Thread Mark Cilissen
Hello, You should execute: C:\\Java\bin\javac.exe Tester.java 1test.txt 21 This will redirect normal messages as well as errors to your text file. -- Kind regards, Mark Cilissen / Pixlism -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Assignment in Conditional - How are they evaluated?

2009-10-29 Thread Mark Skilbeck
How is the following evaluated: [code] if ($data = somefunc()) ... [/code] Ignoring the 'assignment inside condition' arguments, is the return value of somefunc() assigned to $data, and then $data's value is evaluated (to true or false), or is the actual assignment tested (does the

[PHP] Re: What would stop header(Location...) from working?

2009-10-28 Thread Mark Cilissen
is output. -- Kind regards, Mark Cilissen / Pixlism -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unsuscribe

2009-10-27 Thread Mark Cilissen
Manuel Morini schreef: I want a list in spanish about PHP Thank you Manuel.morini Try php.general.es. -- Mark Cilissen / Pixlism http://www.ninyou.nl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: simple xml object

2009-10-27 Thread Mark Cilissen
is an object, wouldn't $Result-0 do the trick? -- Kind regards, Mark Cilissen / Pixlism http://www.ninyou.nl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unsuscribe

2009-10-27 Thread Mark Cilissen
Manuel Morini schreef: I want a list in spanish about PHP Thank you Manuel.morini Try php.general.es. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] putting variables in a variable

2009-07-21 Thread Mark Kelly
/table ; Cheers, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: preg_replace problem

2009-06-14 Thread Mark Kelly
as that was just to remove the br / for easy reading): Before: After: Before: test After: test Before: testtest After: testamp;test Before: testamp;test After: testamp;test The only conclusion is that something else in your code is converting the quotes. Have a look around. HTH Mark

Re: [PHP] Fractions

2009-05-24 Thread Mark Kelly
to write your own function, but maybe someone else knows better. HTH Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what to use instead of foreach

2009-04-14 Thread Mark Kelly
Hi Phil. On Monday 13 April 2009, PJ wrote: Thanks for the suggestion, Mark. I've already experimented with count; you're close, but there is still a small glitch and that's in count(); foreach doesn't give a damn about count so you can't use that - it is reset once inside the foreach loop

Re: [PHP] what to use instead of foreach

2009-04-13 Thread Mark Kelly
the loop to update a counter instead. HTH Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_GET

2009-04-11 Thread Mark Kelly
Hi. On Sunday 12 April 2009, Ron Piggott wrote: At the very start of my index.php I have the following lines of code: foreach($_GET as $key = $val) { $$key = $_GET[$val]; echo $_GET[$val] . br /; } Try: echo $_GET[$key] . br /; HTH Mark -- PHP General Mailing List (http://www.php.net

Re: [PHP] IE8 and HTML5

2008-12-19 Thread Mark Weaver
. Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR Help

2008-12-07 Thread Mark Wiesemann
by using local filename instead of the package name, e.g.: pear install OLE.tgz Regards, Mark -- http://www.markwiesemann.eu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-08-29 Thread Mark Weaver
with this, or can you point me to a resource that could help me code a solution? thanks, -- Mark It was good to be the fire... Better by far than to crawl and mew and suck and $h1t and die! 'Arthur C. Clarke' -- PHP General Mailing List (http://www.php.net

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

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

[PHP] Counting Occurrences within an If statement

2008-07-20 Thread Mark Bomgardner
I have been working on the something for the last day and can't figure it out. I am pulling 7500 rows from a MySQL database, but I only want to display a certain numbers of rows based up an if statement. I want to count the rows within the if statement. mysql query result if(x y){

Re: [PHP] Search thoughts

2008-07-19 Thread Mark Kelly
though. The apps get quite heavy use but I'm with Tedd on the results issue, we only see maybe 10% of the users going to page 2, but these are internal users searching company data, so the pattern may not be typical. Hope you find something you're happy with, Mark -- PHP General Mailing List

[PHP] Log files

2008-07-02 Thread Mark Bomgardner
I am writing an application in which I want to create log files. I am weighing the difference between using text files and using a database to house the data. It appears to me that there is really no advantage either way or is there? There are pros and cons to both methods, but I am concerned

[PHP] String to date

2008-06-30 Thread Mark Bomgardner
I need to convert a date retrieved from user input to a mysql date. Here the problem, I need to convert one of three possible combinations, either 01/01/2008,01-01-2008 or 01.01.2008. I can't use explode because it's limited to one character to explode on. I would prefer not to use regexp, but

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 current month as well

Re: [PHP] SOLVED: Calendar Date Help

2008-05-29 Thread Mark Weaver
to definitely needs to be re factored, however at the moment I don't know enough about php to accomplish that. I think one of the bad habits I got into early on was coding verbosely so I wouldn't have to comment as much. That definitely doesn't serve very well at times. -- Mark

[PHP] Calendar Date Help

2008-05-28 Thread Mark Weaver
($dateStr,$dayVal=1){ return date('U',mktime(0,0,0, $dateStr,$dayVal,date('Y'))); } -- 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] Calendar Date Help

2008-05-28 Thread Mark Weaver
in the $_SESSION['calendar'] as either 'current', 'prev', or 'next'. -- 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 by CentOS5 (RHEL5) -- PHP

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 current month as well

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

2008-05-28 Thread Mark Weaver
or future outside the current year. (value being passed to getStamp() inside $dateStr is 'date('Y')-1') When I can understand what I'm currently doing wrong premise changing will likely make a lot more sense. -- Mark - the rule of law is good, however the rule of tyrants

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

2008-05-28 Thread Mark Weaver
where to go from here. -- 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 by CentOS5 (RHEL5) -- PHP General Mailing List (http

[PHP] Two word array Value

2008-05-14 Thread Mark Bomgardner
I am trying to use array's to populate a group of check boxes for a form. I am getting the checkboxes to print OK, but when the form is posted I am only getting part of the array. Form Page: $vars = array(Main Classroom = Main Classroom, Break Out Classroom = Break Out Classroom, Gym =

Re: [PHP] Re: Where to start!

2008-05-08 Thread Mark Weaver
relate to one another. That way when I do actually create the db I'm usually at 3NF. -- 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] Could someone tell me what a tilde(~) in PHP does ?

2008-04-08 Thread Mark J. Reed
? which turns off E_DEBUG while leaving the other bits in $flag unchanged. -- Mark J. Reed [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Could someone tell me what a tilde(~) in PHP does ?

2008-04-08 Thread Mark J. Reed
On Tue, Apr 8, 2008 at 8:50 AM, Mark J. Reed [EMAIL PROTECTED] wrote: That is, the number 47 in binary is 110001, ... or 10, if you want to be technical. 110001 is 49. :) The important thing is to understand what you're doing, rather than to get the right answer. --Tom Lehrer -- Mark J

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

2008-04-08 Thread Mark Weaver
in advance. /Ryan Hi Ryan, Since I'm relatively new to PHP I could be off on this, but I'd say yes, $_REQUEST is wrong. I would think you'd want to use $_POST to receive the incoming values from a form. -- Mark - the rule of law is good, however the rule of tyrants just

Re: [PHP] joins issues again

2008-04-08 Thread Mark J. Reed
the count of records from sales. So why are you joining in the first place? -- Mark J. Reed [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string

2008-04-07 Thread Mark J. Reed
-- Mark J. Reed [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date comparison Question

2008-04-07 Thread Mark J. Reed
minutes and seconds, you have to do the math yourself. $interval_min = floor($interval/60); $interval_sec = $interval % 60; echo $interval_min:$interval_sec; -- Mark J. Reed [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] objects stored in sessions

2008-04-06 Thread Mark Weaver
the application from the session? thanks, -- 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 by CentOS5 (RHEL5) -- PHP General Mailing List (http

Re: [PHP] objects stored in sessions

2008-04-06 Thread Mark Weaver
on subsequent pages, otherwise you will encounter problems. Or alternatively use __autoload() to allow the class code to be loaded when you start the session. sweet! thank you Richard. -- Mark - the rule of law is good, however the rule of tyrants just plain sucks! Real

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Mark J. Reed
As far as languages with two-way relation go, there are many; perhaps the most prototypical is Lisp, in that either member of a pair within an alist can be used to look the pair up, with no extra function or second map definition required. But PHP has pretty good support, too, actually. If you

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Mark J. Reed
: color.inject([]) { |a,p| a p[0] if p[1] == :red; a } In Perl5 I don't have a better solution than the first one above: my %color = ( apple = 'red', ruby = 'red', banana = 'yellow'); grep { $color{$_} eq 'red' } keys %color; -- Mark J. Reed [EMAIL PROTECTED] -- PHP General Mailing List (http

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] 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

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

2008-03-25 Thread Mark Weaver
shit and go blind cause I haven't got a clue as to which part of the FM to read concerning this. :) thanks, -- 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

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[cookiename])){ list($first

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 works, so it's the same

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 specific to PHP. It's

Re: [PHP] question about linux editor

2008-03-24 Thread Mark Weaver
i would need to connect to the server. please advice. thanks. Putty! er... no... he said from Linux! :) -- 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

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

2008-03-23 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 also if this behavior

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
and debug logging is a habit I got into when I learned PERL to help tell me where things were failing. Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
. Thank you!! Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
then nothing gets displayed. Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-03-22 Thread Mark Weaver
specifically there for responding to the list based on whether or not there is a list-header in the header information but that isn't an available option with Thunderbird. Is anyone else seeing this behavior or is there something I'm missing? Mark -- PHP General Mailing List (http://www.php.net

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

2008-03-22 Thread Mark Weaver
admin simply add that reply-to header. As far as I know Sendmail adds that auto-magically by default. (I'm assuming they're not using Sendmail as the lists' MTA). It sure would make life easier wouldn't it? How long has it been this way? -- Mark If you have found a very wise man, then you've

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

2008-03-22 Thread Mark Weaver
Orther Boy! is this tempting... I've got a sendmail server running with Mailman installed on it that I'm already running lists on it. -- Mark If you have found a very wise man, then you've found a man that at one time was an idiot and lived long enough to learn from his own stupidity

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

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 respond

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

2008-03-22 Thread Mark Weaver
until I get procmail setup to do it for me. -- Mark If you have found a very wise man, then you've found a man that at one time was an idiot and lived long enough to learn from his own stupidity. == Powered by CentOS5 (RHEL5) -- PHP General Mailing

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
* ^Received:.*from lists.php.net |formail -I Reply-To: php-general@lists.php.net -- Mark If you have found a very wise man, then you've found a man that at one time was an idiot and lived long enough to learn from his own stupidity. == Powered by CentOS5

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 very simple and only

[PHP] fwrite/fclose troubles

2008-03-19 Thread Mark Weaver
: */ $pl_log-writeLog(getDateTime(): Incoming values from Login Form: blah...blah...blah\n); Any help with this would be most appreciated. (be gentle... I'm a PERL program learning PHP OOP) -- Mark If you have found a very wise man, then you've found a man

[PHP] Re: Alternative to Quickforms - Not Use Tables

2008-03-06 Thread Mark Wiesemann
/HTML_QuickForm_Renderer_Tableless Regards, Mark -- http://www.markwiesemann.eu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] forms and php

2008-01-24 Thread Mark Pashia
. Thanks, Mark Pashia

  1   2   3   4   5   6   7   8   9   10   >