RE: [PHP] formatting - design question

2009-06-05 Thread Ford, Mike
On 04 June 2009 19:09, PJ advised: > Nitsan Bin-Nun wrote: >>> From my experience I tend to use a difference ID for the > body tag, for >> instance and then format it in my CSS using ID >> reference: #homepage .classname { >> color: blue; >> } >> >> This way you can use a default format fo

RE: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-26 Thread Ford, Mike
nt-Type: '.$type); > header('Content-Disposition: attachment; > filename='.basename(str_replace(' ', '_', $name))); > header('Content-Transfer-Encoding: binary'); > header('Expires: 0'); > header('Cache-Control: must-revalidate,

RE: [PHP] Re: Parsing of forms

2009-05-20 Thread Ford, Mike
On 19 May 2009 17:10, Andrew Ballard advised: > On Tue, May 19, 2009 at 10:11 AM, Ford, Mike > wrote: >> On 19 May 2009 14:37, Daniele Grillenzoni advised: >> >>> >>> My complaint is this: a I can have a select multiple with a normal name, >>> whi

RE: [PHP] Re: Parsing of forms

2009-05-19 Thread Ford, Mike
e a name containing them could be seen as perfectly normal...!! ;) ;) Can you explain why this is such a hang-up for you, as I haven't seen anything in what you've posted so far to convince me it's any kind of problem? Cheers! Mike -- Mike Ford, Electronic Information Devel

RE: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Mike Roberts
affing Services 150 Monument Road, Suite 510 Bala Cynwyd, PA 19004 P 610-771-1084 F 610-771-0390 E mrobe...@jobscss.com -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Thursday, May 14, 2009 3:50 PM To: Andrew Ballard Cc: Mike Roberts; Mos

RE: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Mike Roberts
Is there a moderator or some responsible party who is in charge of this list. Please delete my profile and stop sending messages. This is the 6th such request. Sincerely, Michael Roberts Civil Engineering Executive Recruiter Corporate Staffing Services 150 Monument Road, S

Re: [PHP] DateInterval

2009-04-30 Thread MIke Alaimo
Ah. This makes perfect sense. Good idea. Mike Raymond Irving wrote: --- On Wed, 4/29/09, MIke Alaimo wrote: Raymond, have you tried using DateTime::modify? It appears to work like strtotime. also DateTime::format works like date. At least as far as I can tell. From the

Re: [PHP] DateInterval

2009-04-29 Thread MIke Alaimo
Raymond, have you tried using DateTime::modify? It appears to work like strtotime. also DateTime::format works like date. At least as far as I can tell. Mike Raymond Irving wrote: Sounds great Mike. I personally would also like to see standard date/time functions (strtotime, strftime,

[PHP] DateInterval

2009-04-29 Thread MIke Alaimo
Hello, I would like to know how to correctly use DateInterval::format(). The documentation is unclear. Also, I am willing to write some documentation for the DateInterval and DatePeriod if no one has taken the task. Thanks for the help. Mike -- PHP General Mailing List (http

RE: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ford, Mike
On 28 April 2009 15:48, Gary advised: > I am trying to set a cookie and a session, but seem to be running into a > wall. > > I have tried different variations, and keep getting the same error message > > If I have this > > > session_start(); > > I get this: > Warning: session_start() [functi

RE: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread Ford, Mike
On 27 April 2009 14:21, PJ advised: > Ford, Mike wrote: >> On 26 April 2009 22:59, PJ advised: >> >> >>> kranthi wrote: >>> >>>> if $Count1 is never referenced after this, then certainly this >>>> assignment operation is r

RE: RES: [PHP] inexplicable behaviour SOLVED

2009-04-27 Thread Ford, Mike
ally *needs* to be one greater than the value you first thought of, or some other value you are comparing it to should be one smaller than it actually is. Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane

RE: [PHP] ! and !=

2009-04-23 Thread Ford, Mike
1 = FALSE. Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: m.f...@leedsmet.ac.uk Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go

RE: [PHP] extract varying data from array with different formatting

2009-04-17 Thread Ford, Mike
gt; after each pass. Can't get switch to do it (maybe I don't understand >>>>> it right. Help ? Needing effectively a three-way flag, I think I'd think a bit outside the box and go with something like (untested, but the general principle is right!): $count = F

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-21 Thread mike
2009/3/21 Robert Cummings : > Yes, I'm a big fan of automatic database connection identifiers. Why > just the other week I was integrating ZenCart into another system and I > couldn't understand why ZenCart wasn't able to properly retrieve the > last_insert_id(). After digging throught he code I f

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-21 Thread mike
2009/3/21 Nisse Engström : > I tend to use the escape functions in very close proximity to > the actual query, so I don't see a problem with supplying a > connection identifier. Except unless explicitly specified, my applications do not require a connection identifier as it is stored in a global

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-20 Thread mike
On Fri, Mar 20, 2009 at 9:41 AM, Richard Lynch wrote: > I typically do something like this: > > $data_sql = mysql_real_escape_string($data, $connection); > $query = "insert into data(data) values('$data_sql')"; > $insert = mysql_query($query, $connection); > if (!$insert){ >  trigger_error(mysql_e

RE: [PHP] assign associative array values to variables? SOLVED

2009-03-20 Thread Ford, Mike
t from var_dump($book_categories) and var_dump($category), and a snippet of what you want the eventual output from that to look like, so we can actually work out the most efficient route from one to the other? (It might also be helpful to know where $book_categories and $category come from originally

Re: [PHP] Looking for PHP alternatives to mailman

2009-03-20 Thread mike
On Fri, Mar 20, 2009 at 1:45 AM, Michael A. Peters wrote: > That's because one directional doesn't require a daemon that has to eat a > high volume incoming mail cue and then decide what to do with the messages. understood, btu there's plenty of options for nearly every type of software out ther

Re: [PHP] Looking for PHP alternatives to mailman

2009-03-20 Thread mike
On Fri, Mar 20, 2009 at 12:56 AM, Per Jessen wrote: > Well, for one thing, the latter is usually for commercial purposes, the > former isn't. mailing lists can definately support commercial ventures. i am doing this for my company, in fact. > If active development is important to you, mailman i

Re: [PHP] Looking for PHP alternatives to mailman

2009-03-20 Thread mike
On Fri, Mar 20, 2009 at 12:35 AM, mike wrote: > On Thu, Mar 19, 2009 at 11:34 PM, Per Jessen wrote: > >> ecartis is one option. > > now this is a good lead! except not touched since 2003 it seems. sigh. well there was some updates in 2006, .. this whole site is outdated an

Re: [PHP] Looking for PHP alternatives to mailman

2009-03-20 Thread mike
On Thu, Mar 19, 2009 at 11:34 PM, Per Jessen wrote: > ecartis is one option. now this is a good lead! > Dunno about Sympa, but is mailman really _that_ bad?  For the last 4-5 > years, I've been running a few low-volume lists on mailman, works very > well. The configuration options give me a h

[PHP] Looking for PHP alternatives to mailman

2009-03-19 Thread mike
Or I suppose ANY alternatives. There is Sympa, which seems to have an even worse reputation than mailman to configure, and the last two seemed to have died for the most part and have been taken over by mailman...? Majordomo was last updated in 2000. ezmlm Listserv is commercial with a pretty he

Re: [PHP] Re: Anyone know of a project like Redmine written in PHP?

2009-03-18 Thread mike
On Wed, Mar 18, 2009 at 1:22 PM, Micah Gersten > OP asked for PHP.  Trac is python and Redmine is Ruby.  They've added > twitter support, VCS support, and wiki support lately and are working on > the major 1.2 upgrade now. i am the OP :) i know. i was just adding trac as another example. -- PHP

Re: [PHP] Re: Anyone know of a project like Redmine written in PHP?

2009-03-18 Thread mike
On Wed, Mar 18, 2009 at 8:30 AM, Jan G.B. wrote: > Mantis is a pain in the a*** (for non technical persons). +1 had some annoying bugs, too. it's only really a bug tracker last i checked anyhow. trac or redmine is more what would be beneficial. -- PHP General Mailing List (http://www.php.net

[PHP] Anyone know of a project like Redmine written in PHP?

2009-03-16 Thread mike
http://www.redmine.org/ Looks pretty useful; I want one in PHP though. Anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Knowledge Base software - looking for opinions

2009-03-14 Thread mike
;t want to have to code one myself but at the moment I might have to put a couple hours into it tomorrow. On Thu, Mar 12, 2009 at 2:58 PM, mike wrote: >> http://kbpublisher.sourceforge.net/ - actually is almost perfect i think but >> $398 ... > -- PHP General Mailing List (http://www

Re: [PHP] htmlentities is incomplete: does not cover rsquo etc

2009-03-14 Thread mike
On Sat, Mar 14, 2009 at 12:18 AM, Lester Caine wrote: > This probably one of the reasons some of us think that getting a stable PHP6 > based on unicode out of the door would probably be a lot more use to people > than PHP5.3 ;) +1 I cannot wait for full unicode. mbstring, iconv, all this wacky

Re: [PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-12 Thread mike
On Thu, Mar 12, 2009 at 10:35 PM, Robert Cummings wrote: > The only thing that should defeat the usefulness of a bytecode cache is > the use of eval since the cache has no reference point upon which to > determine if the eval'd code has been previously compiled and has > changed since. I guess I

Re: [PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-12 Thread mike
On Thu, Mar 12, 2009 at 10:10 PM, Robert Cummings wrote: > I thought we covered a question just like this a week ago... yes this > will not pose a problem for a bytecode cache. Apologies. I saw an example of some OOP thing from internals before it moved to -general. So even using call_user_func

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-12 Thread mike
; default: print_something_html($args); break; } } or something like this: function print_something($args, $output = 'html') { if(function_exists('print_something_'.$output)) { call_user_func('print_something_'.$output);

Re: [PHP] Knowledge Base software - looking for opinions

2009-03-12 Thread mike
> http://kbpublisher.sourceforge.net/ - actually is almost perfect i think but > $398 ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Knowledge Base software - looking for opinions

2009-03-12 Thread mike
, Mar 12, 2009 at 1:32 PM, Ashley Sheridan wrote: > On Thu, 2009-03-12 at 13:24 -0700, mike wrote: >> Yeah, I have.. but it's just another wiki. Does integrate with its own >> style of bug tracking + svn, but I think an actual KB system would be >> neat. >> >>

Re: [PHP] Knowledge Base software - looking for opinions

2009-03-12 Thread mike
05 PM, haliphax wrote: > On Thu, Mar 12, 2009 at 2:55 PM, mike wrote: >> http://puresw.com/products/lore/ - paid >> http://www.knowledgebase-script.com/ - paid >> http://68kb.com/ - free >> >> Free is good. >> >> Just needs to be basic, nothing crazy. >>

[PHP] Knowledge Base software - looking for opinions

2009-03-12 Thread mike
http://puresw.com/products/lore/ - paid http://www.knowledgebase-script.com/ - paid http://68kb.com/ - free Free is good. Just needs to be basic, nothing crazy. A Wiki -almost- meets the needs but a) I hate wikis and b) they don't match up 100% -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread mike
On Wed, Mar 4, 2009 at 4:01 AM, Jochem Maas wrote: > ..not an internals question me thinks ... redirecting to generals mailing list Actually, I do think it is somewhat internals related. I want to know from the internals/experts angle if this is a good function to be relying on, or if it is one

Re: [PHP] upload progress (was www.soongy.com)

2009-03-03 Thread mike
On Tue, Mar 3, 2009 at 12:02 AM, Ashley Sheridan wrote: > Whoever said anything about open FTP? how else do you do it? either it's open/anonymous, or some hardcoded account info. either way, not very secure, and due to the nature of it, kinda requires the user to have enough privileges to uploa

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread mike
On Mon, Mar 2, 2009 at 3:25 PM, Michael A. Peters wrote: > And more and more people are using something like noscript to block it > because XSS hacks are out of control. It is too easy to publish a website > and too many web developers only care about their own data, they don't care > about prote

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread mike
On Mon, Mar 2, 2009 at 3:29 PM, Ashley Sheridan wrote: > There are a lot of free FTP Java applets out there, which you could > easily integrate with a web page and your hosting. You'll have the > advantage of a familiar interface, multiple uploads, queues, and > progress bars. Worst case scenario

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread mike
s now... Just think of how usenet, bittorrent, etc work. They split up larger files into smaller chunks and assemble it after. The same idea was in my head when I approached this. On Mar 2, 2009, at 12:26 PM, "Michael A. Peters" wrote: mike wrote: On Mon, Mar 2, 2009 at 7:45 A

Re: [PHP] www.soongy.com

2009-03-02 Thread mike
That's the good thing about this, it does not require any hosting changes. It's just text being sent via POST just like a normal form submit, the PHP code portion just accepts the data and assembles the file based off of it. The Gears stuff is all client side, so it requires no server side stuff.

Re: [PHP] www.soongy.com

2009-03-02 Thread mike
one thing to note is the php-apc upload progress won't scale past one server as far as i know. if you have multiple webservers you'll be stuck. you'd need some sort of ajax thing to actually check how many bytes the file has written to, for example. you also need to know how large the file is, w

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread mike
On Mon, Mar 2, 2009 at 7:45 AM, Boyd, Todd M. wrote: > Gears will allow you to do a lot of things. So will site-proprietary Firefox > extensions that go well outside the realm of basic client-server interaction > via webpages. I was under the impression that Gears requires a local > installati

[PHP] PHP-based forum software ideas

2009-03-01 Thread mike
I'm looking around and usually wikipedia has a complete list of everything... http://en.wikipedia.org/wiki/Comparison_of_Internet_forum_software_(PHP) Anything missing there? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] www.soongy.com

2009-03-01 Thread mike
I have a basic demo here. The code is not at it's best, you have to hit reload to upload a new file. http://mikehost.com/~mike/tmp/u/ It does show you though with some javascript trickery and some math you can derive estimated time and approximate speed. I did have an example of multiple

Re: [PHP] www.soongy.com

2009-03-01 Thread mike
gears will allow you to do that, more or less. i have it going... On Sun, Mar 1, 2009 at 12:34 PM, tedd wrote: > At 12:13 PM -0800 3/1/09, mike wrote: >> >> you can use gears pretty easily to make a seamless multiple file >> upload now. it's all javascript too so yo

Re: [PHP] www.soongy.com

2009-03-01 Thread mike
you can use gears pretty easily to make a seamless multiple file upload now. it's all javascript too so you can make it look how you want, behave how you want, etc. without having to buy/tweak flash code. On Sun, Mar 1, 2009 at 12:07 PM, German Geek wrote: > Also check this one out: google uses

Re: [PHP] XML and :

2009-02-24 Thread mike
On Tue, Feb 24, 2009 at 6:51 AM, Merlin Morgenstern wrote: > The command $xml->imo:anbieternr does not work in that case. > > Has somebody an idea how to adress this? you could cheat and string replace the node prefix in the document imo: to imo_ and then you can use simplexml. it's an ugly hac

Re: [PHP] PLEASE help, this is driving me crazy - is saveHTML() etc not UTF-8 capable?

2009-02-17 Thread mike
On Tue, Feb 17, 2009 at 4:26 PM, mike wrote: > i tried that kind of stuff - it did not seem to work. > > i will try again... if anyone has any ideas i.e. "use iconv to convert > to A, then use DOM stuff, then use iconv to move it back to UTF8..." > etc. i am all ears. N

Re: [PHP] PLEASE help, this is driving me crazy - is saveHTML() etc not UTF-8 capable?

2009-02-17 Thread mike
b 17, 2009 at 12:40 PM, mike wrote: >> >> Pardon the messy code, but I got this working like a charm. Then I >> went to try it on some Russian content and it broke. The inbound was >> utf-8 encoded Russian characters, output was something else >> unintelligible.

[PHP] PLEASE help, this is driving me crazy - is saveHTML() etc not UTF-8 capable?

2009-02-17 Thread mike
Pardon the messy code, but I got this working like a charm. Then I went to try it on some Russian content and it broke. The inbound was utf-8 encoded Russian characters, output was something else unintelligible. I found a PHP bug from years ago that sounded related but the user had a workaround.

RE: [PHP] Re:

2009-02-16 Thread Mike Roberts
Please folks, honor my request and remove me from the list. Yes I signed up intentionally, and yes I tried (3 times) to de-list myself but I still get the emails. You guys seem like nice folks, so I don't want to lodge a complaint somewhere... I just one somebody to take responsibility and delet

RE: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Mike Roberts
Ladies and Gentlemen. I am a recruiter who joined this list to understand a little about PHP. I respected the boundaries, and never tried to recruit you. Now I am asking for a courtesy in return. I have tried several ways and several times to be excluded from the list, but I still get emails.

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread mike
On Fri, Jan 30, 2009 at 12:50 PM, Edmund Hertle wrote: > What is the problem in session handling? I think I came never across this > issue altough I do close my tags... > I think it depends if output buffering is on or not. If it is not enabled, these linebreaks/etc. will be outputted before the

Re: [PHP] New to PHP question

2009-01-28 Thread mike
On Wed, Jan 28, 2009 at 1:26 PM, Ashley Sheridan wrote: > I use CSS as much as possible, and it's second nature to me now to > design with CSS rather than tables, but the only area I find it quicker > to use tables is when I design forms. I know I'm going to browser hell, > but meh, I can deal wi

Re: [PHP] old HTTP variables

2009-01-18 Thread mike
On Sun, Jan 18, 2009 at 9:18 PM, Ashley M. Kirchner wrote: > mike wrote: >> >> $HTTP_GET_VARS = $_GET; >> >> etc. :) > > I know what they are. I'm not about to change a couple of thousand lines > of someone else's code unless there's no othe

Re: [PHP] old HTTP variables

2009-01-18 Thread mike
$HTTP_GET_VARS = $_GET; etc. :) On Sun, Jan 18, 2009 at 9:12 PM, Ashley M. Kirchner wrote: > > Maybe I'm asking for trouble here, but, is there any way to make PHP 5.2.8 > understand the old $HTTP variables? Like: > > $HTTP_SESSION_VARS > $HTTP_GET_VARS > $HTTP_POST_VARS > $HTTP_SESSION_VARS

Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-16 Thread mike
On Fri, Jan 16, 2009 at 5:38 PM, Al wrote: > Imagick class. Has more image manipulating functions than you'll ever use. > You name, and there's function to do it. http://pecl.php.net/package/imagick/ it's very cool, although it does coredump often enough to where i had to switch back to using

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread mike
On Fri, Jan 16, 2009 at 10:58 AM, mike wrote: > only if it's parseable xml :) > Or not! Ignore me. Supposedly this can handle HTML too. I'll have to try it next time. Normally I wind up having to use tidy to scrub a document and try to get it into xhtml and then use simplexml. I

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread mike
On Fri, Jan 16, 2009 at 10:54 AM, Eric Butera wrote: > You could also use DOM for this. > > http://us2.php.net/manual/en/domdocument.getelementsbytagname.php only if it's parseable xml :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-04 Thread mike
On Sun, Jan 4, 2009 at 1:23 AM, Ashley Sheridan wrote: > I'm still a little confused on this though. How would a browser send > this to notify of a download that was only partially completed before? I use it to process information from a POST that a Google Gears based uploader sends. -- PHP Ge

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-03 Thread mike
I actually use $_SERVER['HTTP_CONTENT_RANGE'] in my setup (nginx + php-fpm) - I don't think I get an 'HTTP_RANGE' ... On Sat, Jan 3, 2009 at 9:52 PM, Lars Torben Wilson wrote: > 2009/1/3 Ashley Sheridan : >> On Sat, 2009-01-03 at 17:39 -0500, Eric Butera wrote: >>> On Sat, Jan 3, 2009 at 5:19 P

Re: [PHP] Using php in custom built http server

2008-12-20 Thread mike
On Sat, Dec 20, 2008 at 9:37 AM, Nathan Nobbe wrote: > well now ill have to go scope out nginx :D > > anyways, major diff between cgi & libphp should be performance, wherein cgi > should be like waaay slower. but supposedly fastCGI is pretty solid. peep > this thread from a little while back, >

Re: [PHP] Using php in custom built http server

2008-12-19 Thread mike
Yep Nginx, lighttpd, Zeus it's the only way. Apache has the option and I think a lot of people recommend it for various reasons. I'd recommend nginx over lighttpd :) On Dec 19, 2008, at 10:15 PM, "Nathan Nobbe" wrote: On Fri, Dec 19, 2008 at 11:14 PM, mike wrote

Re: [PHP] Using php in custom built http server

2008-12-19 Thread mike
Also could look at using fastcgi and would not have to embed libphp and such. On Dec 19, 2008, at 9:58 PM, "Nathan Nobbe" wrote: On Fri, Dec 19, 2008 at 5:58 PM, Mr. Gecko wrote: Hey, I built my own http server, and I'm wanting to add php to it. the server is in Objective-C. I know

Re: [PHP] de-bug no input file specified

2008-12-19 Thread mike
mweaver CS3 .. its php! > > How do I check the SCRIPT_FILENAME please? > > "mike" wrote in message > news:bd9320b30812191502t2448ef31xa8ad8758f8638...@mail.gmail.com... >> >> first off - you must be coming from ASP for that code :P >> >> second - that

Re: [PHP] de-bug no input file specified

2008-12-19 Thread mike
first off - you must be coming from ASP for that code :P second - that error is usually due to the SCRIPT_FILENAME being incorrect. not the code in the script. On Fri, Dec 19, 2008 at 2:54 PM, Gary Maddock-Greene wrote: > Hi Philip, > > Here is my code ... > > if (!function_exists("GetSQLValueS

Re: [PHP] utf8 php howto?

2008-12-19 Thread mike
On Fri, Dec 19, 2008 at 7:01 AM, wrote: > > For IE, you also want to add the META tags for HTTP-EQUIV for you charset. This has been the most reliable, as long as you're presenting HTML, this is all I ever put in a page. No header() or anything. > Only way to use UTF-8 is to have UTF-8 used con

Re: [PHP] Re: restrict fsockopen spam etc.

2008-12-10 Thread mike
I think there was a proposed change to allow php to log mail calls. I was disappointed to see it did not get put in to php yet though. Would help to pinpoint scripts being abused, especially in shared environments. On Dec 10, 2008, at 1:43 AM, Carlos Medina <[EMAIL PROTECTED]> wrote: A

Re: [PHP] Job opportunity in Denver, CO - Jr. PHP developer needed

2008-12-05 Thread mike
If you're interested for a telecommuting job I am pretty sure mysql's position supports it - php and mysql for mysql itself! http://www.sun.com/corp_emp/search.cgi?keyword=561790&jpp=50 (Sorry for stealing the thread) On Fri, Dec 5, 2008 at 11:22 PM, VamVan <[EMAIL PROTECTED]> wrote: > telecommu

Re: [PHP] Picture downloading in IE

2008-12-03 Thread mike
I've seen this issue on a normally healthy machine. I think it's a memory issue, or IE just corrupting itself sometimes. I don't change anything and it seems to go away (probably fresh browser session) Although I am sure invalid/confusing headers won't help. On Wed, Dec 3, 2008 at 3:08 AM, Sándor

Re: [PHP] Enable "disable_functions" globally and disable for a domain

2008-11-26 Thread mike
php-fpm also allows per pool overrides. in php 5.3, i believe the php.ini can use conditionals such as path as well. On Wed, Nov 26, 2008 at 5:54 AM, sbeam <[EMAIL PROTECTED]> wrote: > On Wednesday 26 November 2008 05:10, Santi Saez wrote: >> According to PHP documentation [1] it can be only set v

Re: [PHP] Change tracking

2008-10-31 Thread Mike Smith
Thanks Steven/Tony for your replies. I'll consider this a bit more before I jump in. I appreciate different perspectives. And I'll have to digest Tony's solution. Thanks, Mike Smith

[PHP] Change tracking

2008-10-31 Thread Mike Smith
le solutions or problems with these (probably the second one). Thanks, Mike Smith

[PHP] Re: Question about __destruct()

2008-10-21 Thread Mike van Riel
Dan Joseph wrote: Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are removed, but is that also true when a page ends its execution? Example, I call a database class. It constructs, connects,

[PHP] Re: display_errors in DEV

2008-10-21 Thread Mike van Riel
[EMAIL PROTECTED] wrote: Until recently, I've thought that display_errors in DEV was "good" But as soon as you move into Ajax Web 2.0 world, it really doesn't cut it. You'll never see the E_NOTICE and E_WARNING errors for Ajax, probably, and the whole thing might "just work" but you'll have pl

Re: [PHP] Re[2]: The 'at' sign (@) variable prefix

2008-10-08 Thread mike
On Wed, Oct 8, 2008 at 4:06 AM, ANR Daemon <[EMAIL PROTECTED]> wrote: > If you're using it to deal with possible empty input data, you'd better do it > explicitly enstead. > > Something like this: > > if(!array_key_exists('from_year', $_POST) >|| !array_key_exists('from_month', $_POST) >|

Re: [PHP] The 'at' sign (@) variable prefix

2008-10-06 Thread mike
Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: >> I will get an error, but if I prefix the value with '@', >> >> [EMAIL PROTECTED]"q"]; > >The @ is an error control operator, used to buffer the output and > store it in a variable - $php_errormsg. >It's better to wr

RE: [PHP] SESSION array problems

2008-10-02 Thread Ford, Mike
ing register_globals here. In every example you've posted, you've used $last_name and $_SESSION['last_name'] -- but these are the same thing if register_globals is on, and would lead to your posted output with the single characters on the 2nd iteration and nothing after that! At l

Re: [PHP] navigation / location bar

2008-09-30 Thread mike
On Tue, Sep 30, 2008 at 1:07 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > Don't forget people share links and find sites through lots of random > ways. It's nice to have such things. Oh yes, I am moreso for the "back to home" style myself. A deep link won't benefit from the "this is how you got

Re: [PHP] navigation / location bar

2008-09-30 Thread mike
Also remember there are two styles of breadcrumbs: those which follow you around the site and create a path of your previous pages (like a true breadcrumb) or the more standard path-back-to-home hierarchial style. It doesnt make much sense to recreate the browsers back button functionality

[PHP] Making $_POST and $_FILES play together nicely

2008-09-30 Thread Mike Potter
Hi, I have a PHP5 .class file that validates form inputs and sends notification emails from contact pages. Recently a client wanted to add a file upload function. No sweat, I thought. Well, I can't get the $_FILES portion to validate properly in my .class file, since it apparently only registers

Re: [PHP] JSON in PHP5?

2008-09-26 Thread mike
On Fri, Sep 26, 2008 at 11:00 AM, Dan Zilavy <[EMAIL PROTECTED]> wrote: > The json extension is included as default if the debug option is enabled, but > the json extension isn't included if the debug option is disabled. Bummer! i don't use debug and it is there just fine. are you -sure- there's

RE: [PHP] Wierd Variable Initialization

2008-09-25 Thread Ford, Mike
y(); is the same as: $GLOBALS['tokenmap'] = array(); And the assignment: $tokenmap = $GLOBALS['tokenmap']; is essentially useless as it's the same as: $tokenmap = $tokenmap; ... or: $GLOBALS['tokenmap'] = $tokenmap; ... or even: $GLOBALS['

Re: [PHP] Paypal Integration

2008-09-17 Thread mike
On Wed, Sep 17, 2008 at 11:56 AM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > It's probably just so they can get their name out there a bit, to let > others know they have a checkout system. I reckon they'll probably drop > that condition once they are more popular in that area. Well obviously t

Re: [PHP] Re: header

2008-09-17 Thread mike
On Wed, Sep 17, 2008 at 2:31 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > off on a tangent.. I made this some time ago which is rather useful: > > $url = new url('http://php.net/some.page'); > > echo $url; > echo $url->scheme; Why would you need this with parse_url() ? Seems like that functio

Re: [PHP] Paypal Integration

2008-09-17 Thread mike
On Wed, Sep 17, 2008 at 1:33 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Not necessarily. Here in Switzerland, the federal data protection > agency has recently advised people to be careful with what data they > let Google handle (or not). Germany has also advised it's citizens to not use Chrome

Re: [PHP] Re: header

2008-09-17 Thread mike
On Tue, Sep 16, 2008 at 11:40 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Wouldn't it be nice if in the $_SERVER array you could get the whole URL > now that PHP has a parse_url function? That actually would be a nice thing to have, instead of having to build it yourself (considering people do

Re: [PHP] Large/unreliable file uploading over HTTP

2008-09-16 Thread mike
Wouldn't you know - the latest Google Gears has the capability to upload files - I haven't delved deeper to understand how it works on the server end of it, but it allows for a standard file upload box and has capabilities built in for progress bars, etc. The "blob" interface allows you to use a "s

Re: [PHP] Paypal Integration

2008-09-16 Thread mike
Tue, Sep 16, 2008 at 12:34 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > I think once Google Checkout goes more global (which it plans to) it will be > something to use as a viable alternative to Paypal. There's quite a few > large corporations use it already. I was excited when Google announ

Re: [PHP] Paypal Integration

2008-09-16 Thread mike
On Tue, Sep 16, 2008 at 12:20 PM, Dan Joseph <[EMAIL PROTECTED]> wrote: > Revolution Money Exchange just started up a few months ago. Its owned by a > bank (although I can't recall which). Same concept as far as I can tell, > although I don't think they have any business services yet. > > Anothe

Re: [PHP] Paypal Integration

2008-09-16 Thread mike
On Tue, Sep 16, 2008 at 12:04 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > I think, like a lot of things, you will always get people with good > experiences and bad experiences. Unfortunately the people who have had > bad experiences tend to be more vocal than those who've had good ones, > so th

Re: [PHP] Paypal Integration

2008-09-16 Thread mike
On Tue, Sep 16, 2008 at 7:08 AM, tedd <[EMAIL PROTECTED]> wrote: > I've had the opposite experience. > > Their service has served me well over several years, sites, and clients. It's a crap shoot. They're fine until you get bit. I used them for quite a long time and I still have a paypal account

Re: [PHP] Re: Google Maps Distance Between UK Postcodes

2008-09-11 Thread mike
On Thu, Sep 11, 2008 at 8:17 AM, tedd <[EMAIL PROTECTED]> wrote: > Considering that my other profession is Geophysicist, I'm kind of up on > those sort of things. The Earth is an oblate spheroid and the computation to > include the curvature of the earth would be a bit more involved. what do you

Re: [PHP] Header() - POST

2008-09-11 Thread mike
On Thu, Sep 11, 2008 at 12:47 AM, Luke <[EMAIL PROTECTED]> wrote: > But surely you can post data with Javascript? Ach, at college now I can't > access my source, I forget how to do it exactly... yes, i said javascript. something on the client side has to do it. (well besides for a curl-based form

Re: [PHP] Header() - POST

2008-09-10 Thread mike
On Wed, Sep 10, 2008 at 3:42 PM, tedd <[EMAIL PROTECTED]> wrote: > Then use cURL as was suggested before. the reply was on his original attempt to header("POST: /foo") ... that was it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Header() - POST

2008-09-10 Thread mike
On Wed, Sep 10, 2008 at 2:51 PM, tedd <[EMAIL PROTECTED]> wrote: > At 10:14 AM -0700 9/5/08, mike wrote: >> >> if you want to re-post data you need to look at a client-side >> alternative using javascript (or applets - flash, java, etc) > > OR just use hidden inp

Re: [PHP] Large/unreliable file uploading over HTTP

2008-09-08 Thread mike
On Mon, Sep 8, 2008 at 2:00 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > I know that Base64 encoding adds something like 30% to the overall volume of > the object once it has been encoded. For huge files, that might be > unacceptable. I'm not sure how UUEncode handles it. yeah, I found an ema

Re: [PHP] xss filter

2008-09-08 Thread mike
On Mon, Sep 8, 2008 at 5:27 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > http://htmlpurifier.org/ +1 vote for htmlpurifier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Large/unreliable file uploading over HTTP

2008-09-08 Thread mike
On Mon, Sep 8, 2008 at 11:35 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > The checksum is not being performed in the last version I worked on. That was > going to be my next step--verifying each chunk as it came down the tube. As > far as encoding, I believe I was UUEncoding it. I don't have t

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