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

2013-04-02 Thread Mark
Hi Bastien, That is indeed getting very close to what i was looking for. Thanks a lot! On Tue, Apr 2, 2013 at 9:46 PM, Bastien wrote: > Check out > http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php from > Phil sturgeon. > > Bastien Koert > > On 2013-04

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

2013-04-02 Thread Mark
ecking to see if the user actually had 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 > &g

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

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 wrote: > > > > On Mon, Apr 1, 2013 at 5:26 PM, Mark wrote: >> >> Hi, >> >> I stumbled upon this payment library: http://ci-merchant.org/ which >> abstracts the different payment backends away and exposes

[PHP] Is there a PHP based authentication library?

2013-04-01 Thread Mark
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] 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 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 magento seems the

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

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

2012-10-22 Thread Mark
sier to maintain since i know every single line of it. What is your recommendation? Build it myself? Use Magento? or another option that i didn't even consider yet? Kind regards, Mark

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 wrote: > On Tue, Aug 28, 2012 at 1:16 AM, Larry Garfield > 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 autoloader, then you don't hav

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 wrote: > On 27 Aug 2012, at 14:52, Mark wrote: > >> On Mon, Aug 27, 2012 at 3:46 PM, Stuart Dallas wrote: >>> On 27 Aug 2012, at 14:29, Mark wrote: >>> >>>> On Mon, Aug 27, 2012 at 12:41 PM, Stuart Dal

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 wrote: > On 27 Aug 2012, at 14:29, Mark wrote: > >> On Mon, Aug 27, 2012 at 12:41 PM, Stuart Dallas wrote: >>> On 26 Aug 2012, at 19:42, Mark wrote: >>> >>>> 2. Let the plugin itself (so in this case Plugi

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 wrote: > On 26 Aug 2012, at 19:42, Mark wrote: > >> Envision the following plugin architecture: >> >> class PluginLoader >> { >> } >> >> interface PluginInterface >> { >> .. some f

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

2012-08-26 Thread Mark
mitation there :) I'm kinda leaning 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.

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

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

2011-11-25 Thread Mark Kelly
.net/manual/en/reserved.variables.server.php Cheers, 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 Ma

Re: [PHP] Re: Secure data management

2011-10-04 Thread Mark Kelly
ing text? 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] Object Query Language optimization

2011-05-21 Thread Mark Kelly
e complex than this. Anyway, I can't help directly with the code, other than to suggest that you take a look at other projects that do the same thing and see how they do it. There's a starter list at: http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software#PHP HTH,

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

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

2011-03-05 Thread Mark Kelly
is still leaves the quotes in the phrases, but at least I only get one 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

[PHP] Regex for extracting quoted strings

2011-03-05 Thread Mark Kelly
I want $phrases to contain '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] Custom function

2011-02-16 Thread Mark Kelly
27;ll go back 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
: function MyFunction ($x, $y, $z = FALSE) { 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 d

[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 (http://www

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

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

2010-08-16 Thread Mark Hunting
he every time you modify a PHP file, since > APC won't detect that it was modified. > > Regards, > > Jonathan > > On Mon, Aug 16, 2010 at 10:21 AM, Mark Hunting wrote: > >> I am struggling with the performance of some websites that use a lot of >> inclu

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

2010-08-16 Thread Mark Hunting
<0.000133> mmap(NULL, 11365, PROT_READ, 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)

Re: [PHP] NetBeans Question

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

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 wan

Re: [PHP] NetBeans Question

2010-05-30 Thread Mark Kelly
just want answers -- so I 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 Gene

Re: [PHP] Need login suggestions

2010-05-02 Thread Mark Kelly
y log in stick $userType (from the database I 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 th

[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

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 wrote: From: David Hutto Subject: Login Script: mysql_num_rows(): supplied argument is not a valid MySQL result resource To: php-general@lists.php.net

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

2010-02-19 Thread Mark Cilissen
The query should be: SELECT * FROM `userinfo` WHERE `user` = '$user' AND `pass` = '$pass' Remember: ` for tables and columns, ' for strings. Also, look up SQL Injection, as your script contains a huge vulnerability. This can be fixed using mysql_real_es

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

2010-02-11 Thread Mark White
vertheless." My understanding is the fread() will wait until 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...

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

2010-01-04 Thread Mark London
to debug 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 so

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

2009-11-12 Thread Mark Cilissen
he account php runs under may come in to play? nathan Hello, You should execute: C:\\Java\bin\javac.exe Tester.java 1>test.txt 2>&1 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/unsub.php

[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 assignment

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

2009-10-28 Thread Mark Cilissen
ecause it returns an error if anything 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. -- 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
04871678' Attr: lastinspected = '8/28/2009 0:00' How do I read the [0] value? $Result[0] gives me nothing. Although I'm not that familiar with SimpleXML, since the value returned 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. -- Mark Cilissen / Pixlism http://www.ninyou.nl -- 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
Ross, If I understand correctly what you want to do, you're almost there... You need: $myimage1 = "image1.jpg"; $myimage2 = "image2.jpg"; $myimage3 = "image3.jpg"; $body .=" "; Cheers, Mark -- PHP General Mail

Re: [PHP] Re: preg_replace problem

2009-06-14 Thread Mark Kelly
27;'; ?> outputs (ignoring as that was just to remove the for easy reading): Before: " After: " Before: "test" After: "test" Before: "test&test" After: "test&test" Before: "test&test" After: "test&t

Re: [PHP] Fractions

2009-05-24 Thread Mark Kelly
spect you'd have 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

Re: [PHP] what to use instead of foreach

2009-04-13 Thread Mark Kelly
associative you can drop the $lastIndex calc and adjust 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] . ""; > } Try: echo $_GET[$key] . ""; HTH

Re: [PHP] IE8 and HTML5

2008-12-19 Thread Mark Weaver
hard drive. 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
e > contents. You can install them 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

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
can assist 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

[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){ d

Re: [PHP] Search thoughts

2008-07-19 Thread Mark Kelly
I don't imagine it's anything spectacular 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 somethin

[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 ab

[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 t

Re: [PHP] SOLVED: Calendar Date Help

2008-05-29 Thread Mark Weaver
months. Cheers, Rob. The particular block of code you're referring 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

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
nderstanding fully what I'm doing; I'm just not sure 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. == Power

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

2008-05-28 Thread Mark Weaver
7;)-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 just plain sucks! Real Tax Reform begins with getting rid of the IRS. ==

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
ue accordingly. $offset contain either date('n',$timestamp)-1 or date('n',$timestamp)+1 The $timestamp value comes from the array being stored in the $_SESSION['calendar'] as either 'current', 'prev', or 'next'. -- Mark --

[PHP] Calendar Date Help

2008-05-28 Thread Mark Weaver
#x27;prev'] = $prev; $calpos['next'] = $next; $_SESSION['calendar'] = $calpos; } <> function setCal($h=0,$m=0,$s=0,$offset,$dayVal=1){

[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",

Re: [PHP] Re: Where to start!

2008-05-08 Thread Mark Weaver
l view of the tables I'll need, how they relate or don't 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 ju

Re: [PHP] joins issues again

2008-04-08 Thread Mark J. Reed
SC > > However, i do not want those join records to be appended, only to return 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] dynamic boxes problem... JS and PHP

2008-04-08 Thread Mark Weaver
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 th

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 rig

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

2008-04-08 Thread Mark J. Reed
ular bit off, as in 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] Date comparison Question

2008-04-07 Thread Mark J. Reed
> Am I looking at this all wrong for time difference? strtotime returns an integer number of seconds. The difference between $time1 and $time2 is 105. If you want minutes and seconds, you have to do the math yourself. $interval_min = floor($interval/60); $interval_sec = $interval % 60; ech

Re: [PHP] string

2008-04-07 Thread Mark J. Reed
g 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 > > -- Mark J. Reed <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-04-06 Thread Mark J. Reed
ess elegant than it could be, IMO: 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 '

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 ha

Re: [PHP] objects stored in sessions

2008-04-06 Thread Mark Weaver
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

[PHP] objects stored in sessions

2008-04-06 Thread Mark Weaver
able throughout 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 Genera

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 wa

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
reloading the page and seeing the "if" block being displayed I'm thoroughly confused. It's gotta something simple I'm missing. and I swear if someone tells me to RTFM I'm gonna shit and go blind cause I haven't got a clue as to "wh

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. == Po

Re: [PHP] question about linux editor

2008-03-24 Thread Mark Weaver
other details 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 t

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
s # This adds a Reply-To: header :0 fhw * ^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.

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

2008-03-22 Thread Mark Weaver
x27;ve been doing as well 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." == Po

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 "I

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

2008-03-22 Thread Mark Weaver
andon 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 lea

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

2008-03-22 Thread Mark Weaver
"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 ver

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

2008-03-22 Thread Mark Weaver
l clients there is a menu item 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? Mar

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
ing to the screen then nothing gets displayed. 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
s one. 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
ded at the time 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-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
['secret']; /** * (debugging) logging incoming values from form: */ $pl_log->writeLog("getDateTime(): Incoming values from Login Form: blah...blah...blah\n"); Any help with this would be most

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

2008-03-06 Thread Mark Wiesemann
tp://pear.php.net/package/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

  1   2   3   4   5   6   7   8   9   10   >