Re: [PHP] Strtotime returns 02/09/2008 for "next Saturday"....

2008-01-31 Thread Mike Morton
t there's "this Saturday" coming up and "next > Saturday" the one after that? > > And if I can't figure it out, why would you expect PHP to figure it out? > > :-) > > On Thu, January 31, 2008 10:27 am, Mike Morton wrote: >> Ya - the other se

Re: [PHP] Strtotime returns 02/09/2008 for "next Saturday"....

2008-01-31 Thread Mike Morton
n of PHP,and it works ok. >> >> More info: >> >> Shell date: Thu Jan 31 09:44:50 EST 2008 >> echo date("Y-m-d g:i A T", time()); = 2008-01-31 10:00 AM EST >> echo date("Y-m-d g:i A T", strtotime("next saturday

[PHP] Strtotime returns 02/09/2008 for "next Saturday"....

2008-01-31 Thread Mike Morton
.9 (highest version we can have at the moment) I could not find this in the known bugs from this version So - is this something that is server or version specific? TIA! -- Cheers Mike Morton **

[PHP] Encryption in PHP - mcrypt and alternatives

2004-07-05 Thread Mike Morton
I missing another alternative for securely encrypting/decrypting data in PHP? Short of re-compiling or such. Thanks in advance! -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL

[PHP] Site slowdown, elminating possibilities.

2004-01-06 Thread Mike Morton
the database. Running PHP 4.3.2, Mysql 3.23.whatever The 'orders' database you see here is really light, 16K rows only, and the sessions_id field is indexed. I am seeing a number (50-60) sleeping processes in the mysql server, not sure ho

Re: [PHP] Apache 2 + PHP

2003-12-06 Thread Mike Morton
ards > :.. Martin Hudec > :.: > :.: =w= http://www.aeternal.net > :.: =m= +421.907.303393 > :.: [EMAIL PROTECTED] [EMAIL PROTECTED] > :.: > :.: "When you want something, all the universe > :.: con

Re: [PHP] Mail() Function on Cobalt Raq 4

2003-10-22 Thread Mike Morton
raber" <[EMAIL PROTECTED]> wrote: > Using a Cobalt Raq 4 w/php 4.3.1. The sendmail_path is : > /usr/sbin/sendmail -t -iThis seems to be right. > > Can't get mail to send. Script works on other servers without fail. > > PHP Info here: http://www.ncafp.com/cgi-

[PHP] PHP 4.3.3 and Apache 2

2003-10-14 Thread Mike Morton
2/php combo? Any suggestions are appreciated :) TIA -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * "Indeed, it would not be an exaggeration to describ

Re: [PHP] Brain cramp with arrays

2003-09-19 Thread Mike Morton
the help is called by the key, I need the index to call the array > MM> item in the url: > MM> Help.php?tip=onlinusignuphelp_password > > MM> I cannot seem to find a way to get even the current index number (i.e. 0) > so > M

[PHP] Brain cramp with arrays

2003-09-19 Thread Mike Morton
nd a way to get even the current index number (i.e. 0) so that I can add and subtract one to that index number... Can anyone help out with a pointer on how to get the next and prev keys? Thanks ;) -- Cheers Mike Morton * * Tel: 905-465-

Re: [PHP] Can't Connect Within Function?!

2003-09-01 Thread Mike Morton
zine - > http://www.rbdeveloper.com > Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames > > "When purchasing that gift for your Special Someone guys remember, girls > like cute things. If it makes you want to puke, your chick will totally > love it.&

[PHP] Mail() error in logs

2003-08-31 Thread Mike Morton
l server - still - this error is showing for ALL emails going out - not just the ones being delivered internally - and their internal mail server is running on an entirely different server anyhow. So - is there something that I am missing - and if it is not a php error just say so WITHOUT FLAMES an

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
get the result you want by doing: >> >>$array[] = array($k, $v); >> >> (with, of course, appropriate values for $array, $k and $v substituted to >> suit your code!). > > Shouldn't that be: > > $array[$k] = $v; -- Cheers Mike Morton

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
then concat'ing it to the target array. " On 8/29/03 11:18 AM, "Mike Morton" <[EMAIL PROTECTED]> wrote: > Look - David - I do appreciate your efforts to help - and I realize that > working blind on an email list is tough, but the question is not about the > s

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
cause it's > never faster to do it in software when you can push it all up into the > database instead. Thanks for the opinion - but I have tried it both ways. Software in this case is faster. 25 seconds execution in PHP, 3 mins in mysql. But this STILL does not answer the original q

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
>> seem to be taking the keys I just get a Parse error message for the >> line. (the first array_push) > > Ahem. Count the brackets? :) > > (On a style point, your code would be easier to read for bugs like this if > you added some whitespace.) -- Cheers Mike Morton

[PHP] Array Push and Keys

2003-08-28 Thread Mike Morton
is a bug ;) ) or am I trying to do something that is better accomplished with another function? TIA. -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * "In

Re: [PHP] help with email problem

2003-08-14 Thread Mike Morton
#x27;anonymous' countries willing to > take >> money for server hosting in the world. > > Yes, but they're taking money *from* American companies, for the most > part. You don't have to punish the remailers if you prev

Re: [PHP] help with email problem

2003-08-14 Thread Mike Morton
> wrote: > >> and how will this be enforced. waste of legislation imo. > > The same way any law is: by filing criminal charges after the fact. > -- Cheers Mike Morton * *

[PHP] Container functions....

2003-08-10 Thread Mike Morton
eplace with a container function like this... TIA -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * "Indeed, it would not be an exaggeration to describe the hi

[PHP] Container Functions Continued.....

2003-08-10 Thread Mike Morton
ere the %body is the actual code represented by 'execute this code only' above. So, the question is, is there a way to create a function like an if function that does not only reply on the arguments between the ( and ) in the function call? Thanks ag

Re: [PHP] Container functions....

2003-08-10 Thread Mike Morton
want? > > if(ereg("192.168.0.",$_SERVER['SERVER_ADDR'])) > { > $local = 1; > } > else > { > $local = 0; > } > > > if($local) > { > // do whatever you want > } > > > Justin > > > On Monday, August 11, 2003, at 12:50 AM, Mike

Re: [PHP] Localization and Customization of Application

2003-07-22 Thread Mike Morton
; the template. Use a variable to define the language and use an assign to > dynamically change the language file in the template. > > Then build a function that displays a form, one input box per string, that > then writes to the language specific string file. > Chris > > &

[PHP] Localization and Customization of Application

2003-07-22 Thread Mike Morton
nistration is the key here, and the method above leaves some UI questions such as 'when viewing the administration page, how can the user relate the label called CART_EDIT to the edit button in the cart page?' If anyone has some experience in doing this, I would apprec

Re: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Mike Morton
> > and of course > fclose($found); //we dont want the rest of the page. > > > hmm.. I think I did to much.. just that other peoples code frighten me > sometimes > > btw, the above code is copyrighted so dont use it. > > cheers, > > Curt -- Cheers

[PHP] Array key names - can they be called as strings?

2003-07-17 Thread Mike Morton
o retrieve that in a loop? Foreach, for, while or otherwise? -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * "Indeed, it would not be an exaggeration to describe

Re: [PHP] PHP POS program

2003-07-16 Thread Mike Morton
netti napsal(a): >>> >>> >>>> Anyone know where I can download a demo point-of-sale program from? >>>> preferably written in php and preferably a point-of-sale designed for >>>> restaurants? any links etc will be great >>>> >

Re: [PHP] PHP POS program

2003-07-16 Thread Mike Morton
move to the future. And BTW - there is no such thing as CANNOT be done, only that some one has not done it yet On 7/16/03 9:04 AM, "Andrei Verovski (aka MacGuru)" <[EMAIL PROTECTED]> wrote: > > On Wednesday, Jul 16, 2003, at 15:58 Europe/Helsinki, Mike Morton wrot

Re: [PHP] PHP POS program

2003-07-16 Thread Mike Morton
POS) is too serious to be written in PHP(via browser). > Maybe in PHP-GTK or in PHP as CLI... But I've never heard about it. > -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] *

Re: [PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
y using the third optional paramater for the exec > function to retrieve the return status of the command you are executing. > > David. -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] *

Re: [PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
ear it! > > Put this line of code in your script: > > echo "/bin/sed -f $GLOBALS[TMP_MAIL_DIR]"."cmdfile > $GLOBALS[TMP_MAIL_DIR]"."$mailid > > $GLOBALS[TMP_MAIL_DIR]"."$mailid"."tmp"; > > and check that it contains wha

[PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
no problem. If anyone has run into this with exec commands before or can suggest a different way to run this command, I would love to hear it! TIA -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * *

Re: [PHP] Setting Cookie Going Nuts

2003-07-08 Thread Mike Morton
ll have to check the other scripts to see if they were modified to a redirect, but I do not think that they were... Thanks George :) > > Hope this solves your problem. > > Cheers > > George in Oxford > >> -Original Message- >> From: Boaz Yahav [mai

Re: [PHP] Setting Cookie Going Nuts

2003-07-08 Thread Mike Morton
> > Sincerely > > berber > > Visit http://www.weberdev.com/ Today!!! > To see where PHP might take you tomorrow. > > > -Original Message- > From: Mike Morton [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 03, 2003 4:03 PM > To: [PHP - GENERAL]

[PHP] Setting Cookie Going Nuts

2003-07-03 Thread Mike Morton
- 30 mins from now. $cookieexpiry=time()+$COOKIE_EXPIRY; setcookie($ADMIN_COOKIE_NAME,"$cookieid",$cookieexpiry,"/",$_SERVER["HTTP_HO ST"],0); unset($cookieexpiry); } unset($cookieid); } adminCookie(); //issue the cookie -- Cheers Mi

Re: [PHP] web site security: how to hide login info formysql-connection

2003-06-29 Thread Mike Morton
ories setting, and the webserver must have read permissions for that file. -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * "Indeed, it would not be an e

Re: [PHP] Re: Securing PHP code

2003-06-26 Thread Mike Morton
aving never setup a multi-server web environment before, I'm a bit >> curious. How would the public server communicate with the private >> server, passing in database queries and getting results, if it can't >> connect directly to the database? Are we talking abo

Re: [PHP] Securing PHP code

2003-06-25 Thread Mike Morton
them to httpd.conf on production: > > http://httpd.apache.org/docs/mod/mod_env.html#setenv > http://php.net/getenv > > Also it helps with version control, since you can keep the > environment-specific stuff out of CVS (and PHP entirely). > >

Re: [PHP] Securing PHP code

2003-06-25 Thread Mike Morton
> --- Mike Morton <[EMAIL PROTECTED]> wrote: >> That is precisely my point - if the user has shell access of any >> type you are compromised - but if they do not get server access - >> how could they possibly get the dotabase.inc.php? If that is >> called direct

Re: [PHP] Securing PHP code

2003-06-25 Thread Mike Morton
tly then it will be parsed, and as long as you are not outputting anything in this page, they will not see the user/pass that you have in there... > > ----- > michal migurski- contact info and pgp key: > sf/cahttp://mi

Re: [PHP] Securing PHP code

2003-06-25 Thread Mike Morton
ng something totally obvious, but if the server is set up to properly parse php files - having configs outside of the doc root should not make much of a security difference? -- Cheers Mike Morton * * Tel: 90

Re: [PHP] Best Merchant Account For PHP Users

2003-06-25 Thread Mike Morton
yone know of a website (for dummies) that can teach me how to start > enabling my website into an e-commerce website? > > Thanks in advance guys! :) > -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * **

Re: [PHP] php.ini

2003-06-25 Thread Mike Morton
gt;> been discussing the location of the php.ini all morning long? I thought >> we were, but I could be mistaken. >> >> Jay >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >

[PHP] Another hosting question....

2003-06-18 Thread Mike Morton
sorting to this point anyhow!) TIA -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * "Indeed, it would not be an exaggeration to describe the history of the com

Re: [PHP] .htaccess files

2003-06-18 Thread Mike Morton
point me in the direction of some info on .htaccess files? > Could someone send me one, tell me where to put it in my > server? I hope this is not a stupid question. I am running Apache on a Mac > with Jaguar OSX. > > Thanks for your help, > >

Re: [PHP] Ini_set with mutiple include directories

2003-06-17 Thread Mike Morton
Ah ha - the semi colon does not work - but colon does - thanks Jason! On 6/17/03 5:04 PM, "Jason Wong" <[EMAIL PROTECTED]> wrote: > On Wednesday 18 June 2003 03:08, Mike Morton wrote: >> I have an application that I set the include directory using the ini_set >>

[PHP] Ini_set with mutiple include directories

2003-06-17 Thread Mike Morton
do I set additional paths like in the ini file? If I try to do another ini set, then it replaces the initial one, and I cannot seem to find any way to set more than one path in the initial ini_set above Does anyone know how this can be done? Thanks :) --

Re: [PHP] Sessions can be dangerous

2003-05-30 Thread Mike Morton
particular > search/list/select sequence. > > This is one, among many possible, examples of how, by establishing a > hidden, private, relationship between php scripts, session data > automatically and inevitably reduces the

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Mike Morton
ter? Teaching someone the answer to a problem, or teaching > someone how to find the answer (and future answers) themselves? > > "Search google" may not be a detailed answer, or even a polite one, but in > many cases (not necessarily this OP of this thread) a lazy question

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Mike Morton
cool, by try to use some restraint on the list why don't you! That is all, back to our regular programming :) On 5/29/03 10:28 AM, "Jason Wong" <[EMAIL PROTECTED]> wrote: > On Thursday 29 May 2003 21:49, Mike Morton wrote: >> I have to get this off my chest, and I t

Re: [PHP] Netbilling PHP Script

2003-05-29 Thread Mike Morton
ng with Netbilling.com, >> does anybody know of a PHP based Netbilling gateway script or class? > > Have you searched google? -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] *

Re: [PHP] strtr question

2003-05-29 Thread Mike Morton
lso like a single quote to be removed > if it is in the filename. I think it has to be escaped in the command > though. How do I do this? > > TIA, > > Ed > > -- Cheers Mike Morton

Re: [PHP] Client Side PHP

2003-02-06 Thread Mike Morton
vb?? >>> >>> One language across the whole web ;-) >>> >>> Posted this question in the evangelism so I'd be interested in more >>> reaction: >>> >>> Pete >>> >>> >

[PHP] Reading Posted variable names

2003-02-05 Thread Mike Morton
usands of previous emails for what may take someone a quick 5 min to write it. :) Thanks :) -- Cheers Mike Morton * * E-Commerce for Small Business * http://www.dxstorm.com * * DXSTORM.COM * 824 Winston Churchill Blvd, * Oakville, ON, CA L6J

Re: [PHP] Encryption using MMCrypt - whats the point?

2003-01-30 Thread Mike Morton
p://www.ioncube.com/ > > Encrypt PHP scripts (there pretty cheap to). > > On Thu, 2003-01-30 at 09:30, Mike Morton wrote: > I want to use the mcrypt functions to encrypt credit card numbers for > storage in a mysql database, which mycrypt does admirably: > > $key = "thi

[PHP] Encryption using MMCrypt - whats the point?

2003-01-30 Thread Mike Morton
through PHP as opposed to a compiled binary? Can anyone suggest a solution to this problem? Thanks :) -- Cheers Mike Morton * * E-Commerce for Small Business * http://www.dxstorm.com * * DXSTORM.COM * 824 Winston Churchill Blvd, * Oakvi

[PHP] Perl Includes when executed with php....

2003-01-26 Thread Mike Morton
t{'Oid'}; Etc... } Specifically the use ClearLink line. I know that this is not a perl list - but if anyone has suggestions on how to get that file included, or executed properly through php, I would appreciate it - keeping in mind that I have no access to perl library directorie

Re: [PHP] PHP Books

2003-01-20 Thread Mike Morton
As well as books there are some great PHP/MYSQL tutorials that cover all aspects that the book do in a more visual way. http://www.vtc.com - there are mysql and php tutorials there - you can view the first few tutorials online to see if that is what you are looking for. On 1/19/03 11:31 PM, "Arm

Re: [PHP] Redirecting - here is the code

2003-01-16 Thread Mike Morton
rce Software Systems Integrators >> * Web Design & Hosting * Internet & Intranet Applications Development * >> >> /* >> Stenderup's Law: >> The sooner you fall behind, the more time you will have to catch up. >> */ >> >> >> -- >&g