Re: [PHP] Testing HTTPS without certificate

2008-04-23 Thread mike
just use a self-signed cert. there should be a lot of examples out there for that. On 4/23/08, Ken Kixmoeller <[EMAIL PROTECTED]> wrote: > Hi - - - - -- > > I have a typical setup -- my development machine, a testing server and, of > course, the production server. My development machine, of

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-23 Thread mike
On 4/23/08, paragasu <[EMAIL PROTECTED]> wrote: > But one project using php in a very clean way. The codeis look so simple. > yet do so much thing. > Personally, i vote for www.eyeos.org project for the best php code. Anyone > know better? Yes: mine. :) -- PHP General Mailing List (http://www.

Re: [PHP] Big companies that use PHP?

2008-04-23 Thread mike
We're using it at Intel on a handful of sites... I think my team is the only one though :) The apps aren't really "big" but we are a "big" company using it. On 4/23/08, Thiago Pojda <[EMAIL PROTECTED]> wrote: > Hey guys, > > I've been asked this common question: What big companies use PHP in big >

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread mike
this also should not be an issue if you have output buffering turned on. PHP is great, it will make sure to send the headers *first* then. but yes, whitespace sucks as well. it makes IE's CSS flake out weird sometimes. there's multiple reasons to write clean code :) > > On Mon, Apr 21, 2008 at 1

RE: [PHP] & performance issues

2008-04-18 Thread Ford, Mike
t->me RESULT2; $s = 'String'; $copy_s = $s; $ref_s = &$s; $copy_s = 'String Copy'; echo << Original: $s Copy: $copy_s Reference: $ref_s RESULT3; $ref_s = 'String Reference';

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Ford, Mike
t, so this whole thread is really very OT...!! ;) However, this being the case, it suggests you have a static .html file on your site claiming to be charset=utf-8, but not saved in UTF-8! There are two obvious ways to solve this: (i) convert the file into UTF-8, or (ii) edit it to have the correct

Re: [PHP] SERVER_PORT always at 80 ?

2008-04-14 Thread mike
]> wrote: > Ok I did that, but it's the same. > HTTP_HOST says myhost:81 , but SERVER_PORT still says 80 > > Cheers > Julien.P > > 2008/4/14 mike <[EMAIL PROTECTED]>: > > > I would think PHP is just passing through what it receives from > > Apache

Re: [PHP] SERVER_PORT always at 80 ?

2008-04-14 Thread mike
I would think PHP is just passing through what it receives from Apache. I assume it's just passing through environment variables it gets from the server. Can you disable all the other ports and only have :81 running to ensure there is no confusion? On 4/14/08, Julien Pauli <[EMAIL PROTECTED]> wro

Re: [PHP] File Upload Security

2008-04-11 Thread mike
How was it "hacked"? That will help determine what kind of exploit might have been used. On 4/11/08, Al <[EMAIL PROTECTED]> wrote: > One of my sites has been hacked and I'm trying to find the hole. The hack > code creates dirs with "nobody" ownership, so it's obvious stuff is not via > ftp [own

RE: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Ford, Mike
; -eric: > > You didn't provide the reason why, but you did provide a solution. > > Changing the variable names to be different than the session names fixed > the problem. > > Now, if any php guru would care to tell me why, I would > really like to know. Sounds l

Re: [PHP] $_SESSION problem

2008-04-10 Thread mike
I believe you can accomplish the same thing by just putting this in: register_shutdown_function('session_write_close'); On 4/10/08, paragasu <[EMAIL PROTECTED]> wrote: > it looks fine to me. but i want to share one bad experience with sessions. > the code i wrote work just fine on my testing se

Re: [PHP] Vote for PHP support in Google App Engine

2008-04-10 Thread mike
A co-worker and I were talking about this again today, and I stumbled upon this crazy idea. What if this is Google providing people it's own preferred hosting and backend solutions in the hopes that people make some cool apps they can easily just buy and not even have to convert to land in their o

Re: [PHP] generate images of register definitions

2008-04-07 Thread Mike Frysinger
On Mon, Jun 18, 2007 at 9:49 PM, Mike Frysinger <[EMAIL PROTECTED]> wrote: > On 6/9/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Sat, June 9, 2007 4:27 pm, Mike Frysinger wrote: > > > anyone know of some software to generate images like this: > > > h

Re: [PHP] MS purchase Yahoo

2008-04-01 Thread mike
I understood it was April 1st in Australia. How that relates to a PHP general list is beyond me though. A funny joke about PHP would have been more acceptable. Otherwise, I consider this spam. Using this mailing list to push a Digg article's popularity is pathetic. I wouldn't have said anything i

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread mike
You are pathetic. Spamming your own fake digg article to your own fake news story and didn't even take the effort to host it on another domain? Direct link: http://www.phpro.org/articles/Microsoft-Purchase-Yahoo-For-62-Billion.html Domain Name:PHPRO.ORG Registrant Name:Kevin Waterson Blah. This

Re: [PHP] Question about user management...

2008-03-10 Thread Mike
Wait, what? You are defining user role ids as MD5 hashes of UUIDs created from random numbers that change on every request? Am I missing something or is this completely insane advice? On Mar 10, 2008, at 1:07 PM, tedd wrote: At 3:14 PM -0400 3/10/08, Daniel Brown wrote: On Mon, Mar 10, 200

RE: [PHP] Array questions...

2008-03-06 Thread Ford, Mike
On 05 March 2008 15:50, Jason Pruim advised: > On Mar 5, 2008, at 10:41 AM, Ford, Mike wrote: > >> (I was also wondering to myself whether you actually really, really >> wanted $txtNumArray = $_POST['txtNumArray'], but perhaps you can easily >> explain why n

RE: [PHP] Array questions...

2008-03-05 Thread Ford, Mike
l suspect that might be more the mark. (I was also wondering to myself whether you actually really, really wanted $txtNumArray = $_POST['txtNumArray'], but perhaps you can easily explain why not...?) -- Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library,

RE: [PHP] reverse string without strrev();

2008-02-28 Thread Ford, Mike
($str)-1; $i >= 0; $i--) { > $tmp.= $str{$i}; > } > echo $tmp; Cheers! -- Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTE

Re: [PHP] Session and Multi Server Architecture

2008-02-14 Thread mike
On 2/14/08, Richard Lynch <[EMAIL PROTECTED]> wrote: > There is some kinda signal you can send to Apache to GRACEFULLY die out. > > New connections are refused, but old ones are finished and then the > child exits. > > http://apache.org/ > > There is a "graceful" restart for sure. Perhaps it's ju

Re: [PHP] Re: memcached (was: session and Multi Server Architecture)

2008-02-13 Thread mike
On 2/13/08, Per Jessen <[EMAIL PROTECTED]> wrote: > Ah, but each server will only have what it needs for its clients. So if > you've got say 2000 clients spread over 10 servers, each server will > have the data relevant for its 200 clients. And there is no need for > network access everytime you

Re: [PHP] Re: memcached (was: session and Multi Server Architecture)

2008-02-12 Thread mike
On 2/12/08, Per Jessen <[EMAIL PROTECTED]> wrote: > Cache layers are cheap - it's a known science after all. The key thing > (AFAICT) about memcached is that is _distributed_. You need this when > you don't have session persistency (session being the client-to-server > relationship). correct. l

Re: [PHP] Template system in PHP

2008-02-12 Thread mike
On 2/12/08, Greg Donald <[EMAIL PROTECTED]> wrote: > REST is the new SOAP. Yaml is the new XML. I'm guessing this news > just hasn't made it into any PHP frameworks yet. REST for the win. SOAP is best left for the bathtub. as far as templating engines go, a while back i wanted to see if i coul

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread mike
On 2/12/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > also, in terms of scalability, isnt facebook proof that > memcache can scale? memcached is behind facebook, livejournal (who made it), i believe dealnews, flickr, twitter, pownce, typepad, fotolog, slashdot, feedburner, 37signals, i think even

Re: [PHP] Re: memcached (was: session and Multi Server Architecture)

2008-02-12 Thread mike
On 2/12/08, Per Jessen <[EMAIL PROTECTED]> wrote: > My mistake - I though I'd understood that memcached would replicate > objects across the servers, but that's clearly wrong. > If I've got it right, virtually every access to a cached object will > require network traffic? (the exception being tho

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread mike
On 2/11/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > when i was in dc at the conference last year, there were several speakers > from facebook. they claimed they have (had) 400 servers w/ 4TB of memory > at on the memcache tier. actually, it's ~ 400 according to this (200 active / 200 hot spare

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread mike
On 2/11/08, Per Jessen <[EMAIL PROTECTED]> wrote: > Because you've chosen another option - memcached presumably - which is > more expensive over all. (IMHO). mysql (stated above), and i already have a connection open each page... > On the next request, LVS will know not to try that server, and t

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread mike
On 2/11/08, Per Jessen <[EMAIL PROTECTED]> wrote: > mike wrote: > > I hope not. I've worked with this type of load-distribution since the > early 90s. (far from always IP-address based). > > Check out persistency in LVS for instance: > http://www.linuxvirtualser

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread mike
On 2/11/08, Per Jessen <[EMAIL PROTECTED]> wrote: > Make sure all requests from the same client go to the same server. This > is often done by IP-address. isn't that an archaic piece of advice? with shared storage and database/memcache for sessions, i don't find this is necessary at all. in fact

RE: [PHP] string vs number

2008-02-06 Thread Ford, Mike
e interpreted > as such (i.e. "8" will be interpreted as 8, while "08" will > be interpreted as "08"). Floats in key are truncated to > integer. -- Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Lee

Re: [PHP] PEAR website and MSIE 6 (M$ forcing IE7)

2008-02-01 Thread mike
On 2/1/08, Daevid Vincent <[EMAIL PROTECTED]> wrote: > Feb 12th is D-day. > > http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005- > 28,GGLG:en&q=microsoft+forcing+ie7 Actually... http://blog.wired.com/monkeybites/2008/01/microsofts-ie-7.html "The short story is that you w

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread mike
Go to windowsupdate. There was an update for IE6 for websites randomly crashing. I know, because I was affected. Some update broke IE6 and then you had to update a second time. Make sure you're all up to date (and restart, sigh) - and it should be good. On 1/31/08, Richard Heyes <[EMAIL PROTECTED

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
ext monday")); 02/11/2008 print date("m/d/Y",strtotime("next tuesday")); 02/12/2008 print date("m/d/Y",strtotime("next wednesday")); 02/13/2008 print date("m/d/Y",strtotime("next thursday")); 02/07/2008 So from today to next Thursda

[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] Mysql session handler?

2008-01-29 Thread Mike Yrabedra
Can anyone recommend a good php-mysql session handler class? I have found a lot of them, but they are all pretty old, pre-2005 -- Mike B^)> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Framed & Linked Content

2008-01-29 Thread Mike Potter
s PHP provide any remedies against that sort of remote site linking? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Setting session from within iframe?

2008-01-28 Thread Mike Yrabedra
an iframe? I have heard IE does this as well? -- Mike B^)> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread mike
On 1/23/08, Chris <[EMAIL PROTECTED]> wrote: > If you need to escape something you're going to do a query aren't you? > Or am I missing something here? true. but i typically have everything in wrapper functions, and i don't keep the actual resource variable exposed to use it (since it needs a res

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread mike
> > It would be Real Nifty (tm) if the MySQL API had a function that let > > you specify the charset without a connection and did the escaping. > > > > Presumably you don't NEED a connection if you already know what > > charset thingie you are aiming at... I concur - it would be nice to have the c

Re: [PHP] $_POST Array and Cleaning

2008-01-22 Thread mike
> On Jan 21, 2008 3:22 AM, nihilism machine <[EMAIL PROTECTED]> wrote: > > I'm trying to create a function that will first take an array of > > $_POSTs and give them key/value pairs like variables. For instance, if > > i had $_POST['whatever'] = "whatever", that would be made into > > $whatever = "

Re: [PHP] password hashing and crypt()

2008-01-21 Thread Mike Potter
My apologies Robert, Gmail sucks. I'm bouncing this back to the list, where it belonged in the first place. Feel free to make corrections if I've mischaracterized what you wrote. Good luck with that, btw, but don't expect me to engage. Robert Cummings wrote: >>> And THAT does remind me of my MUD

Re: [PHP] Foreach

2008-01-18 Thread mike
On 1/18/08, Andrés Robinet <[EMAIL PROTECTED]> wrote: > Please, don't get me wrong, I'm just curious, how does the server know when > the browser is closed? Do you use javascript (AJAX) or something to notify > the server? it's a browser thing, not a server thing. the browser will "forget" the ses

Re: [PHP] Foreach

2008-01-18 Thread mike
On 1/18/08, Eric Butera <[EMAIL PROTECTED]> wrote: > Nonetheless as I keep re-iterating, people will copy and paste this > stuff as is because they don't know better. It is the responsibility > of people writing the answers to make sure their code is validated and > as "secure" as possible unless

Re: [PHP] Foreach

2008-01-17 Thread mike
On 1/17/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > $name = $_POST['name']; > > if ($name) { > > foreach ($name as $t) { > > > >echo "$t"; > >} > >$order = $_POST['order']; > >if ($order) { > >foreach ($order as $i) { > > there are a few different issues here; firs

Re: [PHP] Count

2008-01-17 Thread Mike Smith
Steve, Check out the while loop (http://us.php.net/manual/en/control-structures.while.php). It'll do what you need. -- Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption failing

2008-01-16 Thread mike
On 1/16/08, Ken Kixmoeller -- reply to [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > On Jan 16, 2008, at 1:28 AM, Andrés Robinet wrote: > > His other post explains that php didn't seem to like spaces. No > spaces in the test strings -- I'll check for those when/if I can get > the core en/decrypt

Re: [PHP] utf-8 in $_POST

2008-01-16 Thread mike
you don't have to have your files in utf-8 for it to work, just the browser header. although any utf-8 characters in your files will look funky. it just depends where the content comes from... you could always use ® for the (r) registered symbol for example. i'd be more apt to figuring out how to

Re: [PHP] Encryption failing

2008-01-15 Thread mike
On 1/15/08, Andrés Robinet <[EMAIL PROTECTED]> wrote: > 1 - Mike is right about first encrypting and then doing a base64_encode (then > saving results to DB, cookies, etc). I don't know why replacing " " to "+" > for decrypting, though. we have an appli

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread mike
On 1/15/08, Manuel Lemos <[EMAIL PROTECTED]> wrote: > You are missing my point. One thing is disliking somebody's work for > whatever reasons, another this is acting disrespectfully and call it > crappy in a public forum. If you don't know how to act respectfully with > other PHP developers, I have

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread mike
This list is democratic as well. Personal experience has led me there from many Google queries, and none of the code has been usable. I give you props for creating a site and classes on it and such, but this list is for people to ask and share opinions. I said it was not to badmouth you but my per

Re: [PHP] Encryption failing

2008-01-15 Thread mike
> > if ($EorD == "D") { >$text_out = mdecrypt_generic($cypher,$text); >$text = base64_decode($text); shouldn't this be base64_decode($text_out) ? :) > } else { >$text= base64_encode($text); >$text_out = mcrypt_generic($cypher,$t

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread mike
Why not look at phpmailer? Probably more robust than some random classes. http://phpmailer.codeworxtech.com/ Not to bash on Manuel, but I find phpclasses to be littered with lots of crappy code and is too ad-laden and hard to use for me to bother. On 1/15/08, Wang Chen <[EMAIL PROTECTED]> wrote:

Re: [PHP] Encryption failing

2008-01-15 Thread mike
me too - it was a space. i changed it to "+" and it worked fine. $cookie = str_replace(' ', '+', $_COOKIE['foo']); On 1/15/08, Bastien Koert <[EMAIL PROTECTED]> wrote: > > are you base64 encoding the resultant encryption string? I have found that > there are problems with certain characters th

Re: [PHP] SMTP vs mail()

2008-01-15 Thread mike
i can vouch. postfix rocks. i send it non-stop 30,000+ emails at a time (a loop from a database that does a popen("/usr/sbin/sendmail") on the local machine (also postfix) which then relays it to my actual public smtp server (running postfix) - and it just throws it all into the queue and chews on

Re: [PHP] SMTP vs mail()

2008-01-11 Thread mike
On 1/11/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > > Assuming you're talking delivery to a local MTA (which will subsequently > > do the remote delivery), is speed really important? > > For the amount of email I'm looking at (1000s, growing), yes. one word: phpmailer (http://phpmailer.codeworx

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread mike
yeah - well you said you can't issue an http request although it depends - if your reporting is javascript/browser-executable, or if it's a server-side increment. if it's javascript, no worries, the curl request won't execute it. On 1/10/08, Liam <[EMAIL PROTECTE

Re: [PHP] Re: Scratch that

2008-01-10 Thread mike
you're still issuing an HTTP request to get it, or executing perl on the command line... if it's a true non-profit 503(c)(3), you could offer someone the chance to write off their services... non-profits may not have a lot of money to spare but they do typically have money to fund things in the or

Re: [PHP] Re: Scratch that

2008-01-09 Thread mike
> sanity when checking the site statistics!) > and > 3) I also need to know how to run a expression-ish thing so that when I > 'parse' the text, it returns all text between x and y, but parse it > BEFORE it gets 'included'. > > Note: fOpen is NOT enabled, an

Re: [PHP] Re: Scratch that

2008-01-09 Thread mike
On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: > Liam wrote: > 1: It mustn't count as a http hit, it's going to > and 2: I need to only get what is between the tags. now you're just asking the list to code something for you... my suggestions again: look into rewriting it to be more reusable loo

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: > The cgi script IS perl. Oh, RE: the sentence below it: I'm running > apache, and it DOESN'T work. The reason I am trying to call it in php > is to include it on a webpage. So, tell me, how am I supposed to > pre-generate the contents in a flatfile (w

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: > mike wrote: > > that is a horrible method. > Thanks for the nice positive, refreshing and most helpful response. read the sentence below it. > > in my opinion i would say "redesign it properly." > Well what the he

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
that is a horrible method. it works in zeus and apache, but not lighttpd, from my experience. it's just not a good idea. technically that should only be file paths, and i would expect it to load a file named "x.cgi?want=ssilinks" although fopen wrappers can confuse that further... in my opinion

RE: [PHP] Can't find .php3 files

2008-01-09 Thread Ford, Mike
On 09 January 2008 12:18, Anup Shukla wrote: > Jim wrote: > > Hi, Mike, > > > > The include is more like > > require "../admin/admin.php3" I don't know exactly how Apache > > performs its magic so I wasn't sure that the request for an include

RE: [PHP] Can't find .php3 files

2008-01-09 Thread Ford, Mike
e with just a filename like that goes straight to the file system, with nary even a hint of a thought of involving Apache. So the admin.php3 file must exist *somewhere* in the file system. As someone else suggested, I think your best bet is to examine the include_p

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread mike
maybe look at iconv functions but the content-type is the only thing i set, and it works 100% fine. all javascripts, forms, etc. inherit it from the looks of it properly. On 1/7/08, Olav Mørkrid <[EMAIL PROTECTED]> wrote: > i specify iso-8859-1 in both header and body: > > > > > if two differe

Re: [PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread mike
. On 1/7/08, Steve Finkelstein <[EMAIL PROTECTED]> wrote: > Thanks for the reply Mike. > > I suppose ultimately I'd need to dig into the JavaScript (hopefully it's not > compressed) to figure out the PHP routing. I believe re-writing my > application with the framework

Re: [PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread mike
It's probably using IUI (the iPhone UI CSS/JS that Joe Hewitt created, now being maintained at http://code.google.com/p/iui/) which allows you to request the page to be loaded via AJAX based on how you setup the link. this will load via AJAX this will load like a normal page link This is how I *

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread mike
> > > My experience is that this does not affect only the displayed > characters, but the way the form fields are transported. > > But perhaps I am wrong, > Iv This works for me as well. Put in utf-8 and you should be good to go. You don't -technically- need to even change your database fields

RE: [PHP] function I created doesn't work

2008-01-04 Thread Ford, Mike
return get_content(0, 0, $index1); } else { return NULL; // or FALSE, or some other error indicator } Cheers! Mike - Mike Ford, Electronic Information Services Adviser, JG125, The Head

RE: [PHP] Sample script files with 3 different select boxes withmysql conditions in select boxes

2008-01-03 Thread Ford, Mike
imary school. Under "Gaol" it said "see Jail" and under "Jail" it said "see Gaol". Spent many a happy hour trying to figure out exactly what sort of a place the teacher was threatening I'd end up if I didn't pay attention! ... ;) ;) ;) Cheers!

Re: [PHP] How to look for unused methods/functions and variables/constants.

2007-12-14 Thread mike
Well you can use get_defined_vars() to find all the variables defined inside of each scope (for instance global scope) that don't really need to be defined... http://php.net/get_defined_vars They can help you unset() or find variables you otherwise don't need to use. But that's the best I think y

RE: [PHP] Seeking overlap algorithm

2007-12-07 Thread Ford, Mike
y of the answers at step 2 is four, you lose; if none of them is, you win. I can't think of any obvious ways to optimize this, but then I never did properly "get" the travelling salesman or 4-colour problem! Cheers! Mike ---

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread mike
($ziplist,0,strlen($ziplist)-1); $query .= " user_zips IN($ziplist)"; } } db_free($uchk); On 12/6/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Dec 6, 2007 11:02 AM, mike <[EMAIL PROTECTED]> wrote: &g

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread mike
After reading this I decided to figure out what the issue was. It was the MySQL result set. Somehow the columns changed and messed up the float values. So I just whipped this up quick to reload the data (and possibly update it too) Here's the quick-and-dirty: 1) download ZCTA (the text version)

[PHP] Another form handling posting question

2007-12-05 Thread Mike Smith
I'm trying to -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Another form handling posting question

2007-12-05 Thread Mike Smith
I am trying to recursively send data to the same form. Based on the data, I want to determine which "action" is to be processed. It appears that the $_POST is not being cleared out or cached once it is sent to the server. Here is my code that I'm trying to test with. It doesn't seem to consi

Re: [PHP] zip codes and lat/longs

2007-12-05 Thread mike
Here's code I had, but it recently stopped working It takes the zip code for the user and the user you're viewing, looks them up from the data table (z_data_zips) and does the calculation. The formula is in a handful of places - I converted mine from a MySQL example (I think, or vice versa) You c

[PHP] Software Help

2007-12-03 Thread Mike Roberts
My name is Mike Roberts, and I am a recruiter with Corporate Staffing Services in Bala Cynwyd, Pennsylvania. I need help finding qualified candidates who have experience with PHP ( whole lamp environment). Out of respect, I am not including the job spec, but if anybody has a reccomendation, I

Re: [PHP] include "config.php" does not work anymore after PHP 5.2

2007-12-02 Thread Mike Yrabedra
the pear folder). Can you rename the config.php file and things work? If so, then look in your include_path and see if there is a config.php file there as well. -- Mike B^)> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parsing text for special characters

2007-11-29 Thread mike
On 11/29/07, Adam Williams <[EMAIL PROTECTED]> wrote: > I've got an html form, and I have PHP parse the message variables for > special characters so when I concatenate all off the message variables > together, if a person has put in a ' " or other special character, it > won't break it when it use

Re: [PHP] Instantiate phpmailer in a separate class?

2007-11-29 Thread Mike Yrabedra
on 11/29/07 1:53 AM, Jochem Maas at [EMAIL PROTECTED] wrote: > Mike Yrabedra wrote: >> Hello, >> >> I want to have a class send some emails. >> >> I wanted to use the excellent phpMailer class to do this. >> >> What is the proper way to use

[PHP] Instantiate phpmailer in a separate class?

2007-11-28 Thread Mike Yrabedra
Hello, I want to have a class send some emails. I wanted to use the excellent phpMailer class to do this. What is the proper way to use the phpMailer class from within a method of a separate class? -- Mike B^)> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Nested include/require not working in 5.2 (SOLVED)

2007-11-28 Thread Mike Yrabedra
on 11/27/07 3:49 PM, Wolf at [EMAIL PROTECTED] wrote: > > ---- Mike Yrabedra <[EMAIL PROTECTED]> wrote: >> on 11/27/07 1:53 PM, Wolf at [EMAIL PROTECTED] wrote: >> >>> >>> Mike Yrabedra <[EMAIL PROTECTED]> wrote: >>&

Re: [PHP] Nested include/require not working in 5.2

2007-11-27 Thread Mike Yrabedra
on 11/27/07 3:49 PM, Wolf at [EMAIL PROTECTED] wrote: > > ---- Mike Yrabedra <[EMAIL PROTECTED]> wrote: >> on 11/27/07 1:53 PM, Wolf at [EMAIL PROTECTED] wrote: >> >>> >>> Mike Yrabedra <[EMAIL PROTECTED]> wrote: >>&

Re: [PHP] Nested include/require not working in 5.2

2007-11-27 Thread Mike Yrabedra
on 11/27/07 1:53 PM, Wolf at [EMAIL PROTECTED] wrote: > > ---- Mike Yrabedra <[EMAIL PROTECTED]> wrote: >> on 11/27/07 1:43 PM, Wolf at [EMAIL PROTECTED] wrote: >> >>> >>> Mike Yrabedra <[EMAIL PROTECTED]> wrote: >>>>

Re: [PHP] Nested include/require not working in 5.2

2007-11-27 Thread Mike Yrabedra
on 11/27/07 1:43 PM, Wolf at [EMAIL PROTECTED] wrote: > > ---- Mike Yrabedra <[EMAIL PROTECTED]> wrote: >> on 11/27/07 11:46 AM, Jochem Maas at [EMAIL PROTECTED] wrote: >> >>> Mike Yrabedra wrote: >>>> >>>> I am not able to use inclu

Re: [PHP] Nested include/require not working in 5.2

2007-11-27 Thread Mike Yrabedra
on 11/27/07 11:46 AM, Jochem Maas at [EMAIL PROTECTED] wrote: > Mike Yrabedra wrote: >> >> I am not able to use includes or requires in nested files using php 5.2.3 >> (osx) >> >> Including or Requiring files directly works. >> >> Including fil

[PHP] Nested include/require not working in 5.2

2007-11-27 Thread Mike Yrabedra
ame throughout. This does not happen in 5.1.6 Is there a fix for this or is it PHP causing the problem? -- Mike Yrabedra B^)> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to ask "if private IP"?

2007-11-25 Thread mike
i did this once $ip = sprintf("%u",intval(ip2long($_SERVER['REMOTE_ADDR']))); and then did checks to see if it was between the ranges for 10.0.0.0, 192.168 etc... apparently i lost that code. but it was pretty simple. http://www.faqs.org/rfcs/rfc1918.html 10.0.0.0- 10.255.255.255

Re: [PHP] Re: Bcompiler errors

2007-11-16 Thread Mike Yrabedra
on 11/15/07 12:51 PM, Daniel Brown at [EMAIL PROTECTED] wrote: > On Nov 15, 2007 12:36 PM, Mike Yrabedra <[EMAIL PROTECTED]> wrote: >> on 11/15/07 11:17 AM, Colin Guthrie at [EMAIL PROTECTED] wrote: >> >>> Mike Yrabedra wrote: >>>> Hello, >>>&

Re: [PHP] Open Source BTS??

2007-11-15 Thread mike
On 11/15/07, Randy Patterson <[EMAIL PROTECTED]> wrote: > Hey, > > I am needing to install a bug tracking system on a web server and looking for > a good PHP open source solution. Looking for a pretty mature system that > still has active development. Thanks for any suggestions. http://www.mantisb

[PHP] Bcompiler errors

2007-11-15 Thread Mike Yrabedra
I am unsure as to where I need to go from here? I am concerned about putting this into production if it happens this often. Any ideas? P.S. Running PHP 5.2.3 on Mac OS X intel xserve Apache 2.2.4 -- Mike Yrabedra B^)> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Re: Bcompiler errors

2007-11-15 Thread Mike Yrabedra
on 11/15/07 11:17 AM, Colin Guthrie at [EMAIL PROTECTED] wrote: > Mike Yrabedra wrote: >> Hello, >> >> >> I am getting these errors all the time now, on multiple scripts at random >> times. >> >> Warning: bcompiler: Bad bytecode file format at 0

Re: [PHP] Bcompiler errors

2007-11-15 Thread Mike Yrabedra
on 11/15/07 10:55 AM, Daniel Brown at [EMAIL PROTECTED] wrote: > On Nov 15, 2007 10:31 AM, Mike Yrabedra <[EMAIL PROTECTED]> wrote: >> >> Hello, >> >> >> I am getting these errors all the time now, on multiple scripts at random >> times. >>

Re: [PHP] Bcompiler errors

2007-11-15 Thread Mike Yrabedra
on 11/15/07 11:07 AM, Daniel Brown at [EMAIL PROTECTED] wrote: > On Nov 15, 2007 11:05 AM, Mike Yrabedra <[EMAIL PROTECTED]> wrote: >> on 11/15/07 10:55 AM, Daniel Brown at [EMAIL PROTECTED] wrote: >> >>> On Nov 15, 2007 10:31 AM, Mike Yrabedra <[EMAIL PR

RE: [PHP] Generating sequence of AlphaNumber

2007-11-15 Thread Ford, Mike
++$seq; // AX0001 ++$seq; // AX0002 Cheers! Mike - Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
in my experience it never stops at a single focus event on a login box... but yes, i should have replied with the simpler solution first. On 11/13/07, tedd <[EMAIL PROTECTED]> wrote: > At 5:49 PM -0800 11/13/07, mike wrote: > >yeah, but adding in jquery will open up his entire

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
yeah, but adding in jquery will open up his entire world :) the example below will work without jquery. personally though i try to stick with jquery since i usually need it for more throughout my site. On 11/13/07, Chris <[EMAIL PROTECTED]> wrote: > It only works if you have included the jquery

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread mike
]> wrote: > Hi Mike: > > > you want javascript. > > > > i'd recommend using jquery (jquery.com) > >I'll look into this. Thanks. > > > put an id="username" on the username box. > > > > then do > > > > > >

<    1   2   3   4   5   6   7   8   9   10   >