Re: [PHP] Random 404 screens

2013-02-09 Thread Mike Mackintosh
On Saturday, February 9, 2013 at 11:51 AM, Geoff Shang wrote: > On Sat, 9 Feb 2013, Jim Giner wrote: > > > Lately, my web pages are giving me some problems. Once a day or so one or > > more of my pages/scripts will give me a 404 error page saying my web page > > has > > timed out. Problem is

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Mike Mackintosh
Original message From: Sean Greenslade Date: To: Bulent Malik Cc: php-general@lists.php.net Subject: RE: [PHP] how to calculate how much data does each ip address use ? On Feb 1, 2013 10:25 AM, "Bulent Malik" wrote: > > > > >This task is not really suited for php. I w

Re: [PHP] PDO mysql Connection issue

2012-11-28 Thread Mike Mackintosh
he host parameter is not setting or is it setting and > something else is wrong? > > Have you tried running FLUSH HOSTS on the MySQL server? Also, i would try to disable DNS within MYSQL by starting with --skip-name-resolve (http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_skip-name-resolve); -- Mike Mackintosh PHP 5.3 ZCE

Re: [PHP] File moving hell on Windows

2012-07-31 Thread Mike Mackintosh
On Tuesday, July 31, 2012 at 9:35 PM, tamouse mailing lists wrote: > On Jul 31, 2012 12:12 PM, "Brian Dunning" (mailto:br...@briandunning.com)> wrote: > > > > Regular Windows networking. > > > > On Jul 30, 2012, at 2:29 PM, Mike Mackin

Re: [PHP] File moving hell on Windows

2012-07-30 Thread Mike Mackintosh
-move examples that include the use of > network credentials with each read and write. Thanks... :-( > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > What protocol are you targeting? FTP, SFTP, SSH, SMB, etc? -- Mike Mackintosh PHP 5.3 ZCE

Re: [PHP] why is (intval('444-44444') == '444-44444') EQUAL??!

2012-06-21 Thread Mike Mackintosh
Using == will compare the two values after type juggling is performed. === will compare based on value and type (identical). PHP Will type juggle the string to an integer. Your if/else is just like saying: php> if (444 == "444") echo 'equal'; else echo 'not equal&

Re: [PHP] alias address in REMOTE_ADDR

2012-05-12 Thread Mike Mackintosh
>> REMOTE_ADDR. >> >> Regards, >> Csaba >> > > What IP address is your Apache bound to? You eth0 or one of the alias IPs? > > Jim > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

Re: [PHP] Performance / AB issue?

2012-05-11 Thread Mike Mackintosh
How is PHP running, fast-cgi, sapi, etc..? Is there anything in the error_log for apache? Could be an issue with prefork/worker. Thanks, Mike Mackintosh PHP, the drug of choice - www.highonphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread Mike Mackintosh
stance-between-2-post-codes-uk > > > > > -- > *Terry Ally* > Twitter.com/terryally > Facebook.com/terryally > ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > To print or not to print this email is the environmentally-searching > question! > Which has the highest ecological cost? A sheet of paper or constantly > switching on your computer and connecting to the Internet to read your > email? > > You should look into curl. Make a post request with the form data as post payload. -- Mike Mackintosh www.HighOnPHP.com

Re: [PHP] sms class

2012-04-17 Thread Mike Mackintosh
Aggregator. Once you subscribe to their service, they usually offer an API. -- Mike Mackintosh www.HighOnPHP.com On Tuesday, April 17, 2012 at 15:50, Lester Caine wrote: > DZvonko Nikolov wrote: > > I need a class that sends sms messages to list of numbers. > > I'm quite new

Re: [PHP] securing a script that exec()s

2012-03-30 Thread Mike Mackintosh
d be to secure the exec call. >> >> How would I best secure the exec call? What would the form input look like? Mike Mackintosh PHP, the drug of choice - www.highonphp.com

Re: [PHP] Graphing

2012-03-18 Thread Mike Mackintosh
Take a look at pChart2. It's the simplest and quickest way to generate a lot of nice graphs. Only requires GD. Look at the source and you can follow their syntax. -- Mike Mackintosh www.HighOnPHP.com On Sunday, March 18, 2012 at 9:33, Ross Hansen wrote: > Hey all, > > I hav

Re: [PHP] Any SNMP Guru's?

2012-03-15 Thread Mike Mackintosh
preg replace function and match Mike Mackintosh PHP, the drug of choice - www.highonphp.com On Mar 15, 2012, at 4:12 PM, David OBrien wrote: > Using command line snmpget you can set an option to append leading 0's to > hex values -o0 > So instead of > > $macaddress = "0

Re: [PHP] no traffic

2012-03-06 Thread Mike Mackintosh
enabled RCS Version $Id: ldap.c 321634 2012-01-01 13:15:04Z > felipe $ Total Links 0/unlimited API Version 3001 Vendor Name OpenLDAP Vendor > Version 20426 SASL Support Enabled How many interfaces are on your box? From the cli can you telnet 10.13.3.10 389 Also do a netstat -na | grep 389 What returns, any open outgoing sockets? Mike Mackintosh ZCE PHP5.3 www.highonphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] iphone & php

2012-03-05 Thread Mike Mackintosh
On Mar 5, 2012, at 12:52, "Jim Giner" wrote: > > "Jay Blanchard" wrote in message > news:4f54faf8.4030...@sigmaphinothing.org... >> [snip]In the last few mins I re-booted my phone and it is now doing >> something even worse! [/snip] >> >> Have you also cleared the cache and the cookies? >>

Re: [PHP] iphone & php

2012-03-05 Thread Mike Mackintosh
On Mar 5, 2012, at 12:30, "Jim Giner" wrote: Download dolphin browser, it's a free safari replacement using webkit. Try you app in there and post back the results. Mike Mackintosh ZCE PHP5.3 www.highonphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Do an LDAP Password Modify Extended Operation?

2012-02-17 Thread Mike Mackintosh
On Feb 17, 2012, at 3:34 PM, kirk.john...@zootweb.com wrote: > Mike Mackintosh wrote on 02/17/2012 > 12:36:06 PM: > >> On Feb 17, 2012, at 10:57, kirk.john...@zootweb.com wrote: >> >>> Is it possible to do an LDAP Password Modify Extended Operation, as >>&

Re: [PHP] Do an LDAP Password Modify Extended Operation?

2012-02-17 Thread Mike Mackintosh
On Feb 17, 2012, at 10:57, kirk.john...@zootweb.com wrote: > Is it possible to do an LDAP Password Modify Extended Operation, as > specified in RFC 3062? The password hashing scheme in the LDAP directory I > am working with may change periodically, so it is my understanding that I > can't has

Re: [PHP] Looking for the string functions

2012-02-01 Thread Mike Mackintosh
On Feb 1, 2012, at 18:49, Matijn Woudt wrote: > On Thu, Feb 2, 2012 at 12:17 AM, Tim Streater wrote: >> I'm keen to look at the C source of such as substr_replace() and stripos(). >> I've downloaded the 5.3.9 PHP source, but am having difficulty locating the >> string functions. Could some

Re: [PHP] Looking for the string functions

2012-02-01 Thread Mike Mackintosh
btw, php dev = internals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for the string functions

2012-02-01 Thread Mike Mackintosh
If you don't get any replies, try the Dev Mailing list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing variables to php script

2012-01-10 Thread Mike Mackintosh
On Jan 10, 2012, at 15:12, Marco Behnke wrote: > Am 10.01.12 21:07, schrieb Donovan Brooke: >> David Savage wrote: >>> OK...I admit I'm new at thisI have this html file: >>> >>> >>> Generate pdf file of LD, Toll Free, and Directory Assistance >>> calls>> >>> >>> > > Stupid question ..

Re: [PHP] PHP-GTK dead?

2012-01-10 Thread Mike Mackintosh
On Jan 10, 2012, at 14:19, Yared Hufkens wrote: > It seems that PHP-GTK is completely dead. The latest version (2.0.1) was > released on May 2008, nobody answers on questions in the mailing list, > and the latest SVN commit is nearly one year ago. > > Am I wrong or is it senseless to write sti

Re: [PHP] Working on a Subsummary Report

2011-12-16 Thread Mike Mackintosh
On Dec 16, 2011, at 12:04, Dave wrote: > Hi all, > > I need to create a year to date report with individual Subsummary > Report (ala filemaker / others?) headings for each month. So, I’m > curious the best way to approach this for performance speed and > flexibility etc. > > - I can do 1 sq

Re: [PHP] socket_recv

2011-11-17 Thread Mike Mackintosh
On Nov 17, 2011, at 14:03, Tim Streater wrote: > I'm playing around with web sockets and have found a couple of simple servers > written in PHP. They both appear to perform the initial handshake with a > client but then just give up because socket_recv reports that there is no > data. I'm conf

Re: [PHP] problem with sending AT command in php

2011-11-15 Thread Mike Mackintosh
On Nov 15, 2011, at 8:25, Richard Quadling wrote: > On 15 November 2011 11:50, a dehqan wrote: >> \n is for Linux >> \r is for Windows >> >> On 11/14/11, Richard Quadling wrote: >>> On 12 November 2011 20:02, a dehqan wrote: dio_write($handle, 'AT') & dio_write($handle, "AT") make fire

Re: [PHP] CGI PHP vs. FastCGI vs. mod_php vs. application server?

2011-10-12 Thread Mike Mackintosh
Nice write up Richard On Oct 12, 2011, at 7:06, Richard Quadling wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable question

2011-10-01 Thread Mike Mackintosh
On Oct 1, 2011, at 1:59 PM, Ron Piggott wrote: > > If $correct_answer has a value of 3 what is the correct syntax needed to use > echo to display the value of $trivia_answer_3? > > I know this is incorrect, but along the lines of what I am wanting to do: > > echo $trivia_answer_$correct_answe

Re: [PHP] php.ini setting

2011-10-01 Thread Mike Mackintosh
On Oct 1, 2011, at 2:04 PM, Ashley Sheridan wrote: > On Sat, 2011-10-01 at 12:55 -0400, Stephen wrote: > >> On 11-10-01 11:57 AM, Jim Giner wrote: >>> I'm trying to set magic quotes Off as my reading tells me that it's not good >>> to have it defaulted to On. >>> >>> >> http://php.net/manual/e

[PHP] New Service - Short URL Unshortener

2011-09-25 Thread Mike Mackintosh
Hey All, Wanted to pass a kind word of a new service we launched called Unshortenr (www.unshortenr.com) - which was linkrater.com. Input a short url and you'll get the target address, the page title, and a description of the page. Soon to add an option to preview it with a images on/off type

Re: [PHP] dev to production server

2011-09-07 Thread Mike Mackintosh
On Sep 7, 2011, at 0:24, Chris Stinemetz wrote: > Does anyone have a procedure or know of any tutorials that explain how > to take a mac/apache/php/mysql dev environment and converting it to > production environment? > > Basically I want to host my own web site on my local machine now that > I

Re: [PHP] Dealing with multiple form submissions

2011-08-25 Thread Mike Mackintosh
On Aug 25, 2011, at 5:01, John Black wrote: > On 24.08.2011 21:38, Mike Mackintosh wrote: >> On Aug 24, 2011, at 11:52, John Black wrote: >>> On 08/24/2011 03:04 AM, Jason Pruim wrote: >>>> Wondering what everyone does to prevent multiple form submissions? >>

Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread Mike Mackintosh
On Aug 24, 2011, at 11:52, John Black wrote: > On 08/24/2011 03:04 AM, Jason Pruim wrote: >> Wondering what everyone does to prevent multiple form submissions? >> My form is simply getting emailed to my email, and it redirects to a success >> page when submitted... >> Would it be as simple as

Re: [PHP] Dealing with multiple form submissions

2011-08-23 Thread Mike Mackintosh
On Aug 23, 2011, at 9:04 PM, Jason Pruim wrote: > Hey Everyone, > > Wondering what everyone does to prevent multiple form submissions? > > My form is simply getting emailed to my email, and it redirects to a success > page when submitted... > > Would it be as simple as doing something with t

Re: [PHP] A Question On Web Graphics

2011-07-12 Thread Mike Mackintosh
On Jul 12, 2011, at 3:10 PM, Thomas Dineen wrote: > Gentle People: > >Sorry if this appears off topic but I am not sure where to post the > question. Please do not get mad, just recommend a better venue! > >Currently I am quite experienced with C and learning C++ but I have > never writ

Re: [PHP] Re: Top Posting

2011-07-05 Thread Mike Mackintosh
On Jul 5, 2011, at 12:06, Stuart Dallas wrote: > On Tue, Jul 5, 2011 at 4:48 PM, Jim Giner wrote: > >> >> "Stuart Dallas" wrote in message >>> If you're looking for a sane reason why Microsoft software is popular in >>> the >>> business world you're not going to find one. > >> >> No - you mi

Re: [PHP] iPhone sadness WOT

2011-05-31 Thread Mike Mackintosh
Thanks :P Sent from my iPhone On May 31, 2011, at 9:54, "Jay Blanchard" wrote: > [snip] >> I beg to differ - the sarcastic remarks have been here since day one. > > Yeah *SHSH* What was he thinking?! > > ;) > [/snip] > > I know huh? Whatevs. > > I added something to the subject so

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Mike Mackintosh
Simon, You may want to be careful with the way you declare your class methods. Example: public function bar() != static function bar(), even if you use pnysudsfksdljfasdjfsd (::) See the example below. class Foo{ static function barStatic() { echo get_class($this); }

Re: [PHP] Friday Preview

2011-05-17 Thread Mike Mackintosh
Great Idea, and I cant wait! On May 17, 2011, at 8:28 PM, Daniel Brown wrote: >Hey, folks; > >To try to boost a bit of creative thinking and increase list > traffic a bit, let's reach back into the past this Friday and bring > back an oldie-but-goodie: > >PHP Brainteasers > >

Re: [PHP] Error Reporting/Display Errors Issues?

2011-05-10 Thread Mike Mackintosh
our disabling function is malformed. > > > > Richard L. Buskirk > > > > -Original Message- > From: Mike Mackintosh [mailto:mike.mackint...@angrystatic.com] > Sent: Monday, May 09, 2011 10:34 PM > To: php-general@lists.php.net > Subject: [PHP] Error Report

[PHP] Error Reporting/Display Errors Issues?

2011-05-09 Thread Mike Mackintosh
Anyone else notice PHP throwing Warning and Notices even when display errors and error reporting disabled? I compiled PHP with the following: './configure' '--prefix=/usr/local/php-5.3.3' '--enable-cli' '--disable-debug' '--disable-rpath' '--disable-static' '--with-pic' '--with-openssl=/usr' '

Re: [PHP] Re: Installing on a Mac: include_path issues

2011-05-05 Thread Mike Mackintosh
What are the permissions on the include directory? Sent from my iPhone On May 5, 2011, at 9:42, Ken Kixmoeller wrote: > On Thu, May 5, 2011 at 5:59 AM, Mike Mackintosh > wrote: >> Run phpinfo() or php -I and see if the PHP.ini file is being loaded. > >>>>>

Re: [PHP] Re: Installing on a Mac: include_path issues

2011-05-05 Thread Mike Mackintosh
Run phpinfo() or php -I and see if the PHP.ini file is being loaded. Sent from my iPhone On May 5, 2011, at 5:40, Richard Quadling wrote: > On 5 May 2011 05:51, David Robley wrote: >> Ken Kixmoeller wrote: >> >>> Hey, folks -- -- >>> >>> I am switching over my development (I hope) to a Mac.

Re: [PHP] sem_get invalid argument for existing semaphore

2011-05-04 Thread Mike Mackintosh
Are you using the whole hex key or removing the 0x prefix? Sent from my iPhone On May 4, 2011, at 8:13, "Jeremy Greene" wrote: > Hi, > > > > I am trying to do a sem_get on a semaphore that has already been created > by > > a c++ program. But I'm getting this warning: > > > > PHP Warning