Re: [PHP] Sending out mass emails

2008-09-04 Thread mike
In my opinion, this is what MTAs are designed for... Personally I throw every email I need to send at the MTA (postfix is the best!) and then let it handle processing the queue. If it goes too slow or too fast that's when you can alter the configuration (Side note: I'm pretty sure phpmailer

Re: [PHP] Altering the error_reporting

2008-09-03 Thread mike
couldn't a user-defined error handler work for this? http://www.php.net/manual/en/function.set-error-handler.php obviously it would require the script that has the error handler still be parsable. but you get the info in the format: handler ( int $errno , string $errstr [, string $errfile [,

Re: [PHP] How to set sending e-mail address?

2008-09-03 Thread mike
Return-path is used by mail daemons, not usually shown in client emails That's what From or Reply-to is for... Return-path is valuable for capturing bounces and stuff. I always set it to a bounce@ alias, and then the From: is always the friendly display address. I also use popen() to open a

Re: [PHP] Secure way to handle pw on session.

2008-09-02 Thread mike
As an additional note suhosin can transparently encrypt and decrypt your session data for reasons just like the /tmp issue. It happens without you needing to configure anything (except to enable or disable it) I think it is enabled by default. On Sep 2, 2008, at 12:35 PM, Dan Joseph [EMAIL

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

2008-09-01 Thread mike
This is what I have: $distance = number_format(ceil(69*rad2deg(acos(sin(deg2rad($ulat)) * sin(deg2rad($vlat)) + cos(deg2rad($ulat)) * cos(deg2rad($vlat)) * cos(deg2rad($ulong - $vlong)); where: $ulat = latitude of user #1 $ulong = longitude of user #1 $vlat = latitude of user #2 $vlong =

Re: [PHP] Javascript mailing list

2008-08-30 Thread mike
look at jquery - it will make working with javascript so much easier and has it's own community around it too. On 8/30/08, Richard Heyes [EMAIL PROTECTED] wrote: Hi, Can anyone recommend a good Javascript related mailing list? Thanks. -- Richard Heyes HTML5 Graphing:

Re: [PHP] Converting JPG to Windows BMP

2008-08-29 Thread mike
If I recall gd doesn't support bmp. However that was probably long before gd2 and I started using imagemagick anyway and have since. You should look into it especially if php doesn't have support via gd. On Aug 29, 2008, at 5:06 PM, Dan Joseph [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008

RE: [PHP] Re: concatenating with . or ,

2008-08-28 Thread Ford, Mike
people's problems / never seen the point(!) of blow-ups) -- so does that put me in an alternative toolbox??! ;) Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL

RE: [PHP] Re: concatenating with . or ,

2008-08-28 Thread Ford, Mike
you're a couple of months older than my younger brother...!! ;) ;) Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view

RE: [PHP] Re: Variable name as a string

2008-08-28 Thread Ford, Mike
as many groups as you like. So how come I have several million *working* forms that do exactly what you say I can't? (OK, so I exaggerate, but it's still significantly more than none! ;) Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic

RE: [PHP] Re: Variable name as a string

2008-08-28 Thread Ford, Mike
[] ... /form script language=Javascript checkboxes = document.my_form[my_checkboxes[]]; /script Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED

RE: [PHP] Re: concatenating with . or ,

2008-08-28 Thread Ford, Mike
Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http

Re: [PHP] Regex for email validation

2008-08-27 Thread mike
On 8/27/08, VamVan [EMAIL PROTECTED] wrote: Hello Guys, Does any have a regex for email validation? I need to allow only period and underscore in the local part , we would need a @ and .com or watever for domain. php should have a good check built-in. see

Re: [PHP] Regex for email validation

2008-08-27 Thread mike
. On 8/27/08, Lupus Michaelis [EMAIL PROTECTED] wrote: mike a écrit : php should have a good check built-in. see http://www.php.net/manual/en/function.filter-var.php Argh ! Howmany times it is in ? I spent so many time to write a regex that belongs the RFC822 :-/ Because all the regex

[PHP] Large/unreliable file uploading over HTTP

2008-08-26 Thread mike
Let's face it - HTTP is not very good for file uploads. It's stateless nature, slow connections, inability to resume (technically), etc, etc. What I've been thinking about is a way to skip all the normal annoyances with file uploading - multipart form encodings, file upload tools with specific

RE: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-26 Thread Ford, Mike
): switch (strtolower(substr($file, $pos))): case '.gif': case '.png': case '.jpg': case '.jpeg': echo $file; endswitch; endif; But then, I might go with the pattern match or the glob() solution, too! ;) Cheers! Mike -- Mike Ford

RE: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-26 Thread Ford, Mike
On 26 August 2008 17:15, James Ausmus advised: On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 25 August 2008 00:54, Govinda advised: snip Personally, I might be tempted to do something like this: if (($pos = strrchr($file, '.'))!==FALSE): switch

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

2008-08-26 Thread mike
large files with no problem. http://www.javazoom.net/applets/jclientupload/jclientupload.html (Sorry, its not free software.) -Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 10:07 AM To: PHP General list Subject: [PHP] Large/unreliable file

Re: [PHP] APC vs. eaccelerator?

2008-08-25 Thread mike
On 8/25/08, David Park [EMAIL PROTECTED] wrote: Some older posts on the net (from 2006) complained about incompatibilities between APC/eacclerator and phpBB and about crashes of APC/eacclerator. I'm hoping that these problems have been cleared up by now. 2006 is a century ago in open source

RE: [PHP] SESSION problem

2008-08-19 Thread Ford, Mike
even with register_globals off. Cheers! Mike -- Mike Ford, Electronic Information Developer, Libraries Learning Innovation, C507, Civic Quarter Campus, Leeds Metropolitan University, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED]Tel: +44 113 812 4730

Re: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-17 Thread mike
On 8/17/08, AmirBehzad Eslami [EMAIL PROTECTED] wrote: Dear list, I'm looking for a light weight WYSIWYG HTML Editor to allow users to send private messages to each other in a forum application. FCKEditor is too complex and very huge for my purposes. I want a simple editor. What do you

Re: [PHP] Removing an element from the middle of an mdlti-dimentsional array

2008-08-14 Thread mike
Can't you unset() it? Sorry for top posting I'm on an iPhone On Aug 14, 2008, at 7:30 PM, Don [EMAIL PROTECTED] wrote: Hi, Let's say I have the following array: $myArray = array(array('1','2','3'), array('4','5','6'), array('7','8','9'), array('10','11','12')); How do I remove say the

Re: [PHP] Removing an element from the middle of an mdlti-dimentsional array

2008-08-14 Thread mike
Not on the specific sub element. I.e unset($array[2][0]) On Aug 14, 2008, at 8:08 PM, Don [EMAIL PROTECTED] wrote: Won't unset() destroy the entire array? mike [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can't you unset() it? Sorry for top posting I'm on an iPhone On Aug 14

[PHP] Anyone using Lighttpd + webdav and a PHP handler?

2008-08-13 Thread mike
i.e. using PUT and using a .php script as the handler for it? I can successfully PUT a file to /path/to/file-that-doesnt-exist.txt However, when I try to do a PUT to an existing .php script it gives me access denied, most likely due to the fact that a file exists. I don't want it to actually try

RE: [PHP] newsletter code

2008-08-11 Thread Mike Roberts
Ladies and Gentlemen, Please pardon the interruption, but I tried the prescribed method of 'opting out' of these messages, but they still arrive. I am a recruiter, and I joined to understand a little something about some of the jobs that I was working on around 10 months ago. Unless somebody

Re: RE: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-11 Thread mike
On 8/11/08, tedd [EMAIL PROTECTED] wrote: Per Jessen: I am sure you are smarter than this -- you're probably not understanding what I am saying. No, Per is correct. PHP itself cannot access anything on the client. It is a server-parsed language. The client never executes PHP, period.

Re: RE: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-11 Thread mike
On 8/11/08, tedd [EMAIL PROTECTED] wrote: Now, do you agree with that?! Isn't that the SAME as what you said above?! Now, why not read the rest of what I wrote? Sometimes it's hard to get an idea across because some people refuse to read, but love to comment about the obvious. Or this

Re: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-09 Thread mike
On Aug 9, 2008, at 7:50 AM, Richard Heyes [EMAIL PROTECTED] wrote: Given that PHP doesn't run on the client, there is no way for anything written in PHP to access anything on the client. Wouldn't it be fun though if it could? :-) -- Richard Heyes http://www.phpguru.org -- PHP General

Re: [PHP] php File upload

2008-08-08 Thread mike
On 8/8/08, Luke [EMAIL PROTECTED] wrote: Is a 1.9 gb file upload even sustainable on even a fairly small scale web application? Maybe you could implement FTP if you trust the people that want to upload the file. This is why I am pushing for people to use PUT. Still over HTTP, uploaders can be

Re: [PHP] Kill Magic Quotes

2008-08-08 Thread mike
On 8/8/08, Stephen [EMAIL PROTECTED] wrote: I found this solution after a web search. I can't attribute the author, but would like to if I could. I have something like that myself, but even on the URL they linked it has a php.net approved snippet of code that works:

Re: [PHP] php File upload

2008-08-08 Thread mike
On 8/8/08, Andrew Ballard [EMAIL PROTECTED] wrote: I've not had to upload such large files over HTTP, so forgive my ignorance, but on the request end isn't the only difference between PUT and POST the verb used in the request (and the intent of the operation)? What can you do with PUT that

Re: [PHP] php File upload

2008-08-08 Thread mike
On 8/8/08, Per Jessen [EMAIL PROTECTED] wrote: Same as POST then :-) (except for the resume bit). I still don't see much of a difference. It doesn't matter much to me, I'd just like to understand what the real difference is. Maybe I need to go and read RFC2616. I'm all for using existing

Re: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-08 Thread mike
On 8/8/08, Per Jessen [EMAIL PROTECTED] wrote: I am not for or against either, I'm just looking for the right argument for PUT support as it seems to be lacking (and I've never found myself in a situation where PUT was the solution). I need to accept files of various sizes - up to 2GB, maybe

Re: [PHP] uploading big files with PHP

2008-08-04 Thread mike
On 8/3/08, Catalin Zamfir Alexandru | KIT Software CAZ [EMAIL PROTECTED] wrote: What are you talking about? I've been able to upload a 4GB file without problem. Uploading doesn't depend on memory limit, and this has been a subject of debate on the PHP.net Manual (uploading files section,

Re: [PHP] [PHP Header] Right-Click Download in Firefox showing php filename

2008-08-04 Thread mike
On 8/3/08, Will [EMAIL PROTECTED] wrote: @readfile($filename); You should look into a webserver and instead of using readfile() which will keep the PHP engine open while it is spoonfeeding the browser, offload the file to the webserver. nginx has X-Accel-Redirect (nginx is the best anyway)

Re: [PHP] uploading big files with PHP

2008-08-03 Thread mike
On 7/25/08, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi all We are pitching to develop a website where the admin has to upload big video files but I'm not sure how this can be done as the file upload will most probably time out. How do current websites do it? Is there somehow a way to make

Re: [PHP] uploading big files with PHP

2008-08-03 Thread mike
On 8/3/08, brian [EMAIL PROTECTED] wrote: Also, use set_time_limit(0); and configure the server and php to accept a decent size, and probably configure the client to put only chunks at a time right? otherwise php will hit it's memory limit for the script quite easily i would assume. so there

Re: [PHP] Exposing PHP/errors on production vs. dev

2008-08-02 Thread mike
On 8/2/08, Richard Heyes [EMAIL PROTECTED] wrote: Personally, and I know I'm not alone here... I keep E_NOTICE enabled Then you're both mad. Users really shouldn't see any error regardless, so error reporting IMO should be off entirely. A blank screen that you can blame on a variety of

[PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread mike
I have this: form method=PUT action=work.php File: input type=file / input type=submit value=Submit / /form Looking in my webserver logs, it changes that to a GET. Ideas anyone? The receiver is PHP and I am pretty sure I know how to handle it once it is properly PUT-ted. (I run nginx for the

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread mike
On 8/2/08, Al [EMAIL PROTECTED] wrote: Here' the snippet I use on all my code files. Default is create and add to error log file on the current dir. The problem is if the script is fubar, it won't read the error_log ini override... Open question for all: Even though I have error_reporting set

Re: [PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread mike
On 8/2/08, Benjamin Hawkes-Lewis [EMAIL PROTECTED] wrote: I can appreciate why one might imagine otherwise, but XHTML 1.x forms only support GET and POST. GET and POST are the only allowed values for the method attribute. Sigh. That makes sense then. So to test my script I need to use curl

[PHP] HTTP PUT for file uploads

2008-08-01 Thread mike
It appears that PHP can support the PUT method using php://stdin and appropriately configuring the webserver to accept it. My company needs a file upload solution that will support large file uploads (2GB limit is optional - if we have to tell them less than 2GB that's fine) that will keep

Re: [PHP] HTTP PUT for file uploads

2008-08-01 Thread mike
On 8/1/08, Micah Gersten [EMAIL PROTECTED] wrote: Is this a repetitive thing your clients will do many times? I recently created a backup solution using ssh keys and the pecl ssh extension to automate backups. Then a cronjob sorts the files on the server. It's a lot more secure than

[PHP] Exposing PHP/errors on production vs. dev

2008-08-01 Thread mike
Does this look right? Obviously you still want to know about production errors, so I'd like to log them. Development I want to see -everything- and I want it to display on the page. The assumption is production won't have any notices as the code should be clean and our higher priority are fixing

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-07-30 Thread mike
On 7/30/08, Stephen [EMAIL PROTECTED] wrote: But I wonder, is there any reason to use single quotes? extremely minor performance gains, afaik. probably moreso when doing $foo[bar] and $foo['bar'] but i believe it's negligible $foo = 'bar' and $foo = bar sara golemon did some performance

Re: [PHP] XML Encoding

2008-07-29 Thread mike
you should want it to be utf-8 anyway. On 7/29/08, Thiago H. Pojda [EMAIL PROTECTED] wrote: Guys, I'm building a XML in a PHP Script. Everything works fine until I add accented (ISO-8859-1) characters into it. As far as I can see, there's no way to change DOMDocument's encoding from UTF-8,

Re: [PHP] Why PHP4?

2008-07-29 Thread mike
I started using superglobals since 4.x; not even thinking about it from a security angle per se, but because it just makes sense to know the source of where your input data is coming from. I guess technically security is a byproduct of that thinking too. On Jul 29, 2008, at 7:31 PM,

Re: [PHP] Why PHP4?

2008-07-28 Thread mike
On 7/28/08, n3or [EMAIL PROTECTED] wrote: Compatibility to older Software of the hosters and sloth of the developers i think this is a cop-out, any halfass open source package should be compatible with php5 now. i've been running php5 since it came out and everything i have tried never has a

Re: [PHP] getting info from video formats

2008-07-28 Thread mike
On 7/28/08, Rene Veerman [EMAIL PROTECTED] wrote: ImageMagick's identify command supposedly reads AVI and MPEG, but i can't get it to work on my avi's: i wouldn't rely on it; i'd rely on it for Images :) C:\Users\rene\Documents\Downloadsidentify Stargate.Atlantis.S05E02.HDTV.XviD-0TV.avi

Re: FW: [PHP] getting info from video formats

2008-07-28 Thread mike
On 7/28/08, Chris Scott [EMAIL PROTECTED] wrote: I agree. I use MPlayer to process videos. One script gets the video length like this. //use mplayer to pull some info from the video $info = exec(\$mplayer\ $videoPath/$videoName -identify -nosound -frames 0 $tmpInfoFile); //and open the

Re: [PHP] uploading big files with PHP

2008-07-25 Thread mike
On 7/25/08, T Lensselink [EMAIL PROTECTED] wrote: You are right on this. There are some other great methods for uploading. I just meant that in PHP there is not much more options. Of course in combination with other technologies you can do some pretty cool stuff. You could use some Java

Re: [PHP] Code beautifier

2008-07-25 Thread mike
On 7/25/08, tedd [EMAIL PROTECTED] wrote: I do it all the time. In fact, I enjoy doing it (no I don't want to do it for anyone else). What I find interesting/entertaining is reducing the amount of code down to what's actually necessary and then reorganizing the code to make routines more

Re: [PHP] Code beautifier

2008-07-24 Thread mike
On 7/24/08, Richard Heyes [EMAIL PROTECTED] wrote: Anyone know of an unintrusive code beautifier written specifically with in mind? just be prudent (and anal retentive) when you code :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code beautifier

2008-07-24 Thread mike
On 7/24/08, Thiago H. Pojda [EMAIL PROTECTED] wrote: That doesn't work when you get code from someone else that wasn't prudent enough ;) I figured that'd be the reply - it's not my code ... sadly, I still go and reformat other coworker's code anyway, heh. Yeah, I'm -that bad- -- PHP General

Re: [PHP] Code beautifier

2008-07-24 Thread mike
On 7/24/08, Thiago H. Pojda [EMAIL PROTECTED] wrote: That's why I looked for a tool like that months ago. Big project from someone else, do you feel like reformatting hundreds of files with hundreds (thousands?) of lines manually? I didn't :) If it's something I will wind up working on, I

Re: [PHP] Code beautifier

2008-07-24 Thread mike
On 7/24/08, Stut [EMAIL PROTECTED] wrote: That's not just bad, it's downright anti-productive. You need to either have a standard style across a team or accept that other developers format their code differently. If you spend time reformatting other peoples code it's a waste of your time.

Re: [PHP] Code beautifier

2008-07-24 Thread mike
On 7/24/08, Stut [EMAIL PROTECTED] wrote: Obviously you can run your team the way you want to, but personally I prefer to get all my developers singing from the same hymn sheet such that after a couple of weeks they can go to any part of the code and not see a horrific mess because they're

Re: [PHP] Getting info from SVN commit with php

2008-07-23 Thread mike
On 7/23/08, Raido [EMAIL PROTECTED] wrote: I have an SVN server but I need to add some extra to commit message which PHP will get and use(for example use the parameters from commit message to change data on mysql database... (if commit messages first line has character *, then run sql

Re: [PHP] big files download with php - configuration problem

2008-07-23 Thread mike
On 7/23/08, Giulio Mastrosanti [EMAIL PROTECTED] wrote: Hi all, I have a set of php scripts that handle the browsing and download of file from the server. it has worked fine for a long time on a server linux, now I have got to migrate those scripts also on a windows server, and something

Re: [PHP] $_ENV or getenv to get bash environmental variables.. change php.ini?? env vars

2008-07-23 Thread mike
On 7/23/08, mindspin311 [EMAIL PROTECTED] wrote: I want to be able to do a getenv('SYMFONY_HOME'); or any env var that I've setup in my /etc/bashrc for everyone. But apache obviously doesn't have a shell, so it doesn't know about these. only the stuff in $_ENV. What I want to know is how can

RE: [PHP] Math Weirdness

2008-07-15 Thread Ford, Mike
inaccuracies which will propagate through any kind of arithmetic -- it's just worse with multiplication or division because these tend to result in inaccuracy in more significant digits! Bottom line: a floating point value should *always* be treated with an appropriate degree of suspicion. Cheers! Mike

RE: [PHP] Math Weirdness

2008-07-15 Thread Ford, Mike
ago, so it's probably nearer primary school level by now ;) Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view

RE: [PHP] Math Weirdness

2008-07-15 Thread Ford, Mike
On 15 July 2008 14:33, tedd advised: At 11:24 AM +0100 7/15/08, Ford, Mike wrote: On 14 July 2008 20:47, tedd advised: Round-off errors normally don't enter into things unless your doing multiplication and division operations. At that point, what you get back from the operation

RE: [PHP] Math Weirdness

2008-07-15 Thread Ford, Mike
to divide the most negative possible integer by zero (instead of returning a divide-by-zero error as it did for any other dividend!). Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom

Re: [PHP] scalable web gallery

2008-07-10 Thread mike
On 7/10/08, paragasu [EMAIL PROTECTED] wrote: i am planning to create a web photo gallery. i know there is a lot available out there, but i really want to create my own. the problem is not about creating the photo gallery. i want it to be scalable. the plan is saving the image metadata in

Re: [PHP] PHP code will not work

2008-07-09 Thread Mike V
I had this problem and just figured it out. I was copying and pasting the code snippet from the tutorials page to my test editor and in the process picked up an invisible ctrl char. Doh!! Joseph Subida wrote: The error I get when I try ?php echo $_SERVER['HTTP_USER_AGENT']; ? is

[PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread mike
I have never had a use for this feature. To me it introduces another register_globals style atttack vector. I see no need why people need to combine post/get/etc variables into the same superglobal. I actually run unset($_REQUEST) on it at the top of my library to discourage its use. For third

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread mike
On 7/7/08, Eric Butera [EMAIL PROTECTED] wrote: Laziness/convenience. I always get my data from the exact source I want. If someone chooses to use REQUEST it shouldn't break their application. You say it is a security risk, but not really. As long as everything is filtered/escaped

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread mike
On 7/7/08, Daniel Brown [EMAIL PROTECTED] wrote: That's the point --- it's intended as a fallback where you *don't* know the method that will be used, or if you want to be lackadaisical with your code (which, as we all know, is HIGHLY unrecommended). Then you should code for that, not

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread mike
On 7/7/08, Eric Butera [EMAIL PROTECTED] wrote: If your app is written correctly it doesn't matter what is thrown at it, it should always work. Even if a variable gets overridden it should still be forced to play with the rules of the app and work like a valid request does. That is not an

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread mike
please oh please also run that through filter_input() before throwing a $_POST directly into the db query ;p On 7/7/08, Shawn McKenzie [EMAIL PROTECTED] wrote: Jason Pruim wrote: MAIN PAGE: ?PHP echo $row['Tab']; //what do you get? if($row['Tab'] == done){ $Tchecked1 =

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread mike
doh - and mysql_escape_string or equivalent. On 7/7/08, mike [EMAIL PROTECTED] wrote: please oh please also run that through filter_input() before throwing a $_POST directly into the db query ;p On 7/7/08, Shawn McKenzie [EMAIL PROTECTED] wrote: Jason Pruim wrote: MAIN PAGE

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread mike
On 7/7/08, Eric Butera [EMAIL PROTECTED] wrote: You asked for an explanation. I was just stating that is how I've seen some people write apps. I've also stated that isn't how I write them either. I use something along these lines: This is true. I really wanted to ask the internals folks

Re: [PHP] NOLOH Launches Beta Program to Developers

2008-06-23 Thread mike
I want the damn code to look at! Not a hosted environment... :) Sounds like that's not an option right now? On 6/23/08, Asher Snyder [EMAIL PROTECTED] wrote: NOLOH (Not One Line Of HTML), a fully object-oriented development platform for PHP launched a Beta Program today for developers. More

Re: [PHP] NOLOH Launches Beta Program to Developers

2008-06-23 Thread mike
Well it's a framework right? I expected it to be like any other... It says it will run on any webserver - which means it's expected to be hosted on your own boxes at some point. It looks like they're running a hosted beta program first though. On 6/23/08, Wolf [EMAIL PROTECTED] wrote: If they

Re: [PHP] NOLOH Launches Beta Program to Developers

2008-06-23 Thread mike
On 6/23/08, Asher Snyder [EMAIL PROTECTED] wrote: Hey Mike, Currently we're freely hosting all developer sandboxes. Your sandbox contains several examples of NOLOH applications of which you can freely access and modify the source. Ah, then maybe I'll signup. I probably am too busy to write

RE: [PHP] looping through a database

2008-06-17 Thread Ford, Mike
td/td tdAdd/td /tr ?php } } Of course, some people frown on this and prefer other techniques such as echo-ing the HTML, or assembling it into a variable which gets echoed at the end -- but whatever floats your boat...!! Cheers! Mike -- Mike Ford, Electronic Information Developer

Re: [PHP] Problem with output_buffering directive in cli

2008-06-11 Thread Mike Burba
Thanks for ideas, Nathan. dunno if this was a typo on your part, but shouldnt it be, ini_get(output_buffering) ? yes...was getting tired last night. but it is correct in the code. you might not be getting your settings from the ini file you think you are, or there could be another one in

Re: [PHP] Problem with output_buffering directive in cli

2008-06-11 Thread Mike Burba
I think I solved this issue by using the -d option on the commandline. When I use: php -d output_buffering=On ./filename.php the local value / active value of output_buffering is correct. MKB On Wed, Jun 11, 2008 at 5:54 AM, Mike Burba [EMAIL PROTECTED] wrote: Thanks for ideas, Nathan

[PHP] Problem with output_buffering directive in cli

2008-06-10 Thread Mike Burba
line? Am I configuring the /.../cli/php.ini file correctly? Is something in my code (maybe an included library) maybe setting that value without me knowing? Am I looking in the wrong place / headed in the wrong direction? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] A problem with fgets()

2008-06-04 Thread Ford, Mike
to the next full line. That was my source of confusion. Yes, I agree that that note is complete hogwash, and have just deleted it! Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United

RE: [PHP] Avoid object twice

2008-06-04 Thread Ford, Mike
stuff using your google API key ? other.php ?php include google_info.php; // use your google API key any way you want // ... but no call to sendMail() ? Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus

Re: [PHP] PHP Extensions as Shared Objects?

2008-05-29 Thread mike
On 5/29/08, Weston C [EMAIL PROTECTED] wrote: Fortunately, I'll have full control of the hosting environment in the context this matters. :) dl is definitely interesting, but I'm worried that runtime invocation might mean performance hits. Is there a way to do load/startup time inclusion?

[PHP] Trying to install imagick PECL module

2008-05-19 Thread mike
It doesn't appear to -need- this MagickWand stuff, yet configure keeps failing on it. Anyone here use it, know for sure? Thanks. It looks and it sees imagemagick and such, but why it -requires- this API is confusing me. [EMAIL PROTECTED]:/usr/src/build/imagick-2.2.0b2# ./configure checking for

RE: [PHP] JavaScript and PHP

2008-05-16 Thread Ford, Mike
! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http

RE: [PHP] JavaScript and PHP

2008-05-16 Thread Ford, Mike
: document.myForm.myInput.value = Hello!; BUT... for CSS, it's also quite easy to reference something by name: [name=myElement] { color: blue; font-size: 10pt; } Well, true -- hence the qualifiers in *primary* identifier and *may* demand! Cheers! Mike

[PHP] Question about setting up FTP Upload and using the FTP suite...

2008-05-14 Thread Mike McGonagle
not establish connection; } ? Thanks for your help, Mike -- Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal. —Yehudi Menuhin (1916–1999), musician

Re: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM

2008-05-14 Thread mike
I've got that before and I am not using a Hebrew version of PHP :) On 5/14/08, Daniel Brown [EMAIL PROTECTED] wrote: You're using a Hebrew version of PHP? That means something along the lines of two times the two marks in Hebrew. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread mike
Seems like the general way is to create a mailbox (POP3 or IMAP) to accept the bounces, then check it periodically and mark the emails as invalid in your local database. I would set threshholds so you don't mark something failed that only bounced once - it could have been a mail setup error or

Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread mike
On 5/13/08, Chris [EMAIL PROTECTED] wrote: I use this method and it works reasonably well. The hard part is the last sentence - there are so many ways to say mailbox full - half don't include smtp error codes, the rest tell you the same thing in thousands of different ways. exactly. that's

[PHP] Web page excerpt editor

2008-05-04 Thread Mike Potter
We are looking for a script similar to SnippetMaster (http://www.snippetmaster.com/). We want to give the non-html-coding client the ability to make edits to one part of one page on their Web site on a weekly or near-daily basis. We are looking for something free and turnkey, so we can move on to

Re: [PHP] Web page excerpt editor

2008-05-04 Thread Mike Potter
Oops, I replied to Paul only. On Sun, May 4, 2008 at 11:46 AM, Paul Scott wrote: FCKEditor, TinyMCE and a host of others. All JS based, so not really relevant on a PHP list though Whereas, SnippetMaster *is* PHP-based. Sad if it's the only one, I thought (hoped) there would be more. Ski

Re: [PHP] Web page excerpt editor

2008-05-04 Thread Mike Potter
On Sun, May 4, 2008 at 5:49 PM, Robert Cummings wrote: Whereas, SnippetMaster *is* PHP-based. Sad if it's the only one, I thought (hoped) there would be more. When you can't find what you want, feel free to pick up you keyboard and create the solution. Then be sure to share it with

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

2008-04-25 Thread mike
On 4/25/08, paragasu [EMAIL PROTECTED] wrote: too bad, i can't find any framework out there using this concept. well, i think have to figure out how it works and code on my own. can anyone kind enough to give me a good reference to read about this? google? :)

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

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

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
Some day I'll package up some stuff and release it. Sadly I have nothing worthwhile out in public right now. On 4/23/08, paragasu [EMAIL PROTECTED] wrote: Yes: mine. kind enough to let me see your code .. =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2008-04-23 Thread mike
i'm confident, there just isn't much use to the barrage of snippets and customized stuff. i am in the middle of some useful, generic code, we're using it where i work, but it isn't in any sort of distributable fashion at the moment. it almost mirrors the idea of the zend framework, but in a

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   2   3   4   5   6   7   8   9   10   >