Re: [PHP] /tmp/directory

2013-07-22 Thread Ken Robinson
should be writable by everyone. If it's not, you need to talk to the hosting company support people. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-05 Thread Ken Robinson
Check the permissions on the files/directories involved. I get this on Linux when the files/directories are too open. Ken At 05:38 PM 7/5/2013, Brian Smither wrote: I have an application running under PHP-5.4.17-TS-VC9 (and .14 as of yesterday) with Aprelium's Abyss X1 v2.8 web server

Re: [PHP] scandir doesn't find all files

2013-06-22 Thread Ken Robinson
Sent from my iPhone On Jun 22, 2013, at 3:10 PM, Daniel Pöllmann poellmann.dan...@gmail.com wrote: Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds the uploaded files, but none of the created files. I can't

Re: [PHP] scandir doesn't find all files

2013-06-22 Thread Ken Robinson
Did you try the glob function? http://php.net/glob Ken Sent from my iPhone On Jun 22, 2013, at 3:10 PM, Daniel Pöllmann poellmann.dan...@gmail.com wrote: Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds

Re: [PHP] iterate javascript verification

2013-05-27 Thread Ken Robinson
of avoiding this: 1) use hidden fields in each form to indicate which form was submitted 2) use a different name for each form's submit button and use that in the above code Ken At 12:52 PM 5/27/2013, Tim Dunphy wrote: Hey guys, Thanks for the input! This is pretty nice, and DOES work. I like

Re: [PHP] iterate javascript verification

2013-05-24 Thread Ken Robinson
You do realize that you shouldn't rely on Javascript to validate values returned in a form? Also, if you use HTML5, you can use the required attribute in the input tag and the browser won't let a user submit a form with a required field not filled. Of course, you should still validate within

Re: [PHP] iterate javascript verification

2013-05-24 Thread Ken Robinson
quotes. The names in the form are now arrays. This makes your life much easier when extracting the values later in PHP. When you check the page in a HTML5 aware brower, you will see how the validation is done. Ken At 10:17 PM 5/24/2013, musicdev wrote: You can validate via JS if required

Re: [PHP] Symfony?

2013-05-20 Thread Ken Robinson
Drupal 8 is being built using Symfony, which means I have to learn it. Ken At 12:44 PM 5/20/2013, Bastien wrote: Bastien Koert On 2013-05-20, at 12:40 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: Who uses Symfony? Cheers, tedd _ I do. It's not my

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-25 Thread Ken Kixmoeller
THank all of you for your help. I think I got this thing licked. On Wed, Apr 24, 2013 at 7:14 PM, Ken Kixmoeller phph...@comcast.net wrote: Thank you very much, Jim --- On Wed, Apr 24, 2013 at 5:34 PM, Jim Lucas li...@cmsws.com wrote: On 04/24/2013 03:24 PM, Ken Kixmoeller wrote: Thanks

[PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
for the last 3 years. Thanks, Ken

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
=== I wondered if it was memory handling, but what is it (I wonder out loud) that could be improper about my array handling. No error messages are thrown. Ken On Wed, Apr 24, 2013 at 4:14 PM, David OBrien dgobr...@gmail.com wrote: On Wed, Apr 24, 2013 at 5:09 PM, Ken

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
. No errors are being thrown. We are baffled. Ken On Wed, Apr 24, 2013 at 4:23 PM, David OBrien dgobr...@gmail.com wrote: On Wed, Apr 24, 2013 at 5:14 PM, David OBrien dgobr...@gmail.com wrote: On Wed, Apr 24, 2013 at 5:09 PM, Ken Kixmoeller phph...@comcast.netwrote: Hey - -- I have a huge

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
Thanks, Jim --- Is this different from the max_input_vars discussion above? (from David OBrien) Ken On Wed, Apr 24, 2013 at 5:06 PM, Jim Lucas li...@cmsws.com wrote: On 04/24/2013 02:40 PM, Ken Kixmoeller wrote: Thanks so much. Yes, we found that because PHP threw an error that said

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Ken Kixmoeller
Thank you very much, Jim --- On Wed, Apr 24, 2013 at 5:34 PM, Jim Lucas li...@cmsws.com wrote: On 04/24/2013 03:24 PM, Ken Kixmoeller wrote: Thanks, Jim --- Is this different from the max_input_vars discussion above? (from David OBrien) yes. For example... php.ini:[suhosin] php.ini

[PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
thanks, Ken

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
backtick call that error? On Tue, Apr 9, 2013 at 2:39 PM, Daniel Brown danbr...@php.net wrote: On Tue, Apr 9, 2013 at 3:11 PM, Ken Kixmoeller phph...@comcast.net wrote: Hi -- - Strange problem. One of my applications was just moved to a new server. The new server has php configured

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
Yes -- Thanks Matjen and Daniel --- There *was* a stray backtick in there. Weird that we haven't run into it before. Testing now. On Tue, Apr 9, 2013 at 2:41 PM, Matijn Woudt tijn...@gmail.com wrote: On Tue, Apr 9, 2013 at 9:11 PM, Ken Kixmoeller phph...@comcast.netwrote: Hi

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
Yes --- it worked. Thank you so very much. I had searched the heck out of this to no avail. This is why I think developer communities are so great -- always someone smarter than me (not that it is a high bar s) and willing to help. On Tue, Apr 9, 2013 at 3:05 PM, Ken Kixmoeller phph

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Ken Kixmoeller
Yes, but no further need. Problem solved. On Tue, Apr 9, 2013 at 4:06 PM, El Ale... alexissauc...@gmail.com wrote: you probe command system()? 2013/4/9 Ken Kixmoeller phph...@comcast.net Yes --- it worked. Thank you so very much. I had searched the heck out of this to no avail

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Ken Robinson
and I could have missed few corner cases also. Please suggest the working and also if there is some better way to achieve this. You should be using either mysql_real_escape_string or mysqli_real_escape_string (preferably the later) depending on how you're accessing the DB. Ken -- PHP General

[PHP] Configuration Issue (Error 310 ERR_TOO_MANY_REDIRECTS)

2013-01-09 Thread Ken Kixmoeller
), but no under the hood fixes. Anyone experienced this? Ideas? Many thanks, Ken

Re: [PHP] date problem

2013-01-03 Thread Ken Robinson
) ) { $error = MUST begin after . WSOFFBEGIN . \n; } Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Serial Comm problem

2012-12-25 Thread Ken Arck
should be enough but apparently it isn't. Any help would be greatly appreciated Ken

Re: [PHP] Serial Comm problem

2012-12-25 Thread Ken Arck
At 11:36 AM 12/25/2012, you wrote: The ^ is sent by the remove device with \r\n so I assumed telling fgets to look for one character should be enough but apparently it isn't. ---Sorry but the above is wrong. The ^ is sent by the remove device WITHOUT \r\n Ken -- PHP General Mailing

[PHP] Nested loopa

2012-12-25 Thread Ken Arck
So I cannot do nested do loops in php? ?php $a = 0 ; $b = 0 ; do { echo $a\n ; do { echo $b\n ; $b++ }while($b =10) ; $a++; }while($a = 20) ; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Ken Robinson
('~',$tmp); // put the delimiter between each entry echo($topic); // this result is used in an AJAX script No more worrying about whether the delimiter is the last character. Ken At 04:38 PM 12/21/2012, Tedd Sperling wrote: Hi gang; I just ran into something I have never had a problem

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Ken Robinson
Can you post the javascript that's causing the problem? And, yes, it's IE, what did you expect... :-) Ken At 05:10 PM 12/21/2012, Tedd Sperling wrote: On Dec 21, 2012, at 5:05 PM, Ken Robinson kenrb...@rbnsn.com wrote A much easier way to do this would be to use a temporary array

Re: [PHP] re:Switch - Case Statement Questions

2012-11-16 Thread Ken Robinson
: $boxes = 1; break; } BTW, you don't need the break statement at the end of the last case and you don't really need the case ($count = 7) since that condition is what remains anyway. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] php can't insert data mysql table

2012-09-30 Thread Ken Robinson
() function, put out something meaningful like ... or die(Problem with the insert query: $querybr . mysqli($dbc)); Once you see the database error, you will probably be able to figure out the problem. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Array unset()

2012-09-23 Thread Ken Robinson
is appreciated. Look at array_filter() ... http://php.net/array_filter ?php $total_points_awarded = array( 1 = 17, 3 = 14, 4 = 0, 5 = 1, 6 = 0 ); print_r(array_filter($total_points_awarded)); Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Find/count different word in a text

2012-04-25 Thread Ken Robinson
function am I in need of? I would use a combination of the functions str_word_count and array_count_values. ?php $str = This is a test of word counting and this sentence repeats words a a a a a is is is is; print_r(array_count_values(str_word_count($str, 1))); ? Ken Robinson -- PHP General

Re: [PHP] http_referer. what's wrong with that?

2012-01-11 Thread Ken Robinson
a message saying so. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] number_format

2011-12-19 Thread Ken Robinson
number_format($number, $decimals, $dec_point, $thousands_sep); } The just do a global replace of number_format with my_number_format. That should work, although I haven't tested it... Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FW: parse error

2011-10-13 Thread Ken Robinson
on that line. If you're using an editor that doesn't do syntax high lighting, get one. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] FW: parse error

2011-10-13 Thread Ken Robinson
, get one. Ken I would suggest that you figure out what is the value of the variable your passing into your query is it possible that the value is getting a ' character, in which case it would be crapping out the line... That would only occur when the script is actually executed. It's

Re: [PHP] Local variable protection

2011-10-12 Thread Ken Robinson
wonder if anyone here can give me a definitive answer whether or not it is possible. It's called the scope of the variable. See http://us3.php.net/manual/en/language.variables.scope.php Variables defined in a function are only available to the function where they are defined. Ken -- PHP

Re: [PHP] Help on number matching function

2011-09-16 Thread Ken Robinson
3 (16,17,04) Any Help will be appreciated. Thank you. Turn your sets of number into an array and then use the function array_intersect, http://php.net/array_intersect Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] scroll down list -visible, but not possible to choose

2011-08-31 Thread Ken Kixmoeller
You want:  if($status == $selected) echo selected = ' selected' ; (I didn't bother with \s) And BTW, unless the support person is actually sitting on top of the customer (and I can see situations where that would help), you want it to say Waiting *for* Customer Ken On Wed, Aug 31, 2011 at 3

Re: [PHP] PHP within XML?

2011-08-25 Thread Ken Robinson
of your XML content. This should work. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form handling

2011-08-11 Thread Ken Robinson
At 02:25 PM 8/11/2011, Chris Stinemetz wrote: I have two forms on the same php script. Is it possible to submit both forms to the same action=processform.php with a single submit button? If you want to submit at the same time, why do you have two forms? Ken -- PHP General Mailing List (http

Re: [PHP] Problem with inserting numbers...

2011-08-10 Thread Ken Robinson
sprintf('%03d-%03d-%04d',$row['areacode'],$row['prefix'],$n) br\n; } } ? Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] concatenating

2011-08-10 Thread Ken Robinson
will be displayed? Sure, do something like this: ?php echo ($posts_row['store_tptest'] != '')?results {$posts_row['stor_tptest']}:''; ? Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Serveside Printing w/ PHP

2011-07-12 Thread Ken Robinson
At 02:06 PM 7/12/2011, Marc Guay wrote: Bonus feature: The server is running Windows 7. I suspect the crickets are going to win this one. Take a look at http://www.php.net/printer -- this might be what you're looking for. Ken -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Found this and I thought of you.

2011-06-05 Thread Ken Kixmoeller
count for *something*! g Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] iPhone sadness

2011-05-30 Thread Ken Kixmoeller
On Mon, May 30, 2011 at 11:19 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Erm,... Most people who use Windows tend not to change basic settings from their defaults. Erm, most Winders users have no clue *how* to change them, nor that there might be some reason to do so. Ken -- PHP

[PHP] observer pattern

2011-05-18 Thread Ken Guest
Lo, so, I'm wondering - how many of you use the observer pattern in php; and if so, do you implement it 'standalone' or with the spl classes? Is there any particular advantage to doing it your way; whichever your way is? Ken -- http://blogs.linux.ie/kenguest/ -- PHP General Mailing List

Re: [PHP] Parsing a simple sql string in php

2011-05-06 Thread Ken Guest
On Fri, May 6, 2011 at 10:05 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Hiya, has anyone had any experience with parsing a string of sql to break it down into its component parts? At the moment I'm using several regex's to parse a string, which works, but I'm sure there's a more

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

2011-05-05 Thread Ken Kixmoeller
On Thu, May 5, 2011 at 4:40 AM, Richard Quadling rquadl...@gmail.com wrote: On 5 May 2011 05:51, David Robley robl...@aapt.net.au wrote: Ken Kixmoeller wrote: include_path should only contain directories, not filenames. [1] Thanks. Yes, both of those are directories. Ken -- PHP General

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

2011-05-05 Thread Ken Kixmoeller
permissions for those directories and/or the files within them? Yes, it ia two-parter. I showed the second. The first is: Warning: include_once(smm_header.php) [function.include-once]: failed to open stream: No such file or directory in /Users/ken/Sites/smm_registration/smmcomputereducation.php

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

2011-05-05 Thread Ken Kixmoeller
On Thu, May 5, 2011 at 5:59 AM, Mike Mackintosh mike.mackint...@angrystatic.com wrote: Run phpinfo() or php -I and see if the PHP.ini file is being loaded. php.ini shows the include_path correctly, as:   /Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php Oops

[PHP] Re: iPhone apology - was Re: [PHP] Re: Installing on a Mac: include_path issues

2011-05-05 Thread Ken Kixmoeller
for Apple. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-05-05 Thread Ken Kixmoeller
to be about connecting to MySQL. So, pending further investigation, it seems like *this* problem is solved. Many, many thanks to all who responded. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing on a Mac: include_path issues

2011-05-04 Thread Ken Kixmoeller
foundation classes and a clients application classes and other programs. For various reasons, I put them into my Documents/Clients folder. When I create to set the path to these files in PHP, they are: /Users/ken/Documents/Clients/comped_php /Users/ken/Documents/Clients/jaguar_php PHP doesn't find

Re: [PHP] session variable problem

2011-03-25 Thread Ken Robinson
variables, change existing ones (but they do not persist to next call) - cannot create new variable without an error What's the error you're getting? Also, do you have a call to session_start() at the beginning of each script before any output is sent to the browser? Ken -- PHP General Mailing

Re: [PHP] looking for a newsgroup for JS

2011-03-23 Thread Ken Robinson
: http://www.phpfreaks.com/forums/index.php?board=6.0 Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Returning a recordset to a desktop app

2011-03-09 Thread Ken Watkins
On 3/7/2011 7:19 AM, Richard Quadling wrote: On 5 March 2011 13:48, Ken Watkins k...@atlanticbb.net wrote: On 3/5/2011 4:30 AM, Richard Quadling wrote: On 4 March 2011 23:48, Ken Watkins k...@atlanticbb.net wrote: Hi All. I have a Windows desktop app that I created using Visual Foxpro

Re: [PHP] Returning a recordset to a desktop app

2011-03-05 Thread Ken Watkins
. And the best way to return it is in xml. I'll investigate the methods you mention for converting xml since I'm not familiar with any of them. Thanks! Ken On 3/4/2011 6:51 PM, la...@garfieldtech.com wrote: Assuming you mean that the PHP script is on a web server somewhere and the desktop app

Re: [PHP] Returning a recordset to a desktop app

2011-03-05 Thread Ken Watkins
On 3/5/2011 4:30 AM, Richard Quadling wrote: On 4 March 2011 23:48, Ken Watkins k...@atlanticbb.net wrote: Hi All. I have a Windows desktop app that I created using Visual Foxpro (a database app). I want to write a PHP script that I will call from my desktop app. The script will simply

[PHP] Returning a recordset to a desktop app

2011-03-04 Thread Ken Watkins
advice. Ken Watkins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help! Made a boo-boo encrypting credit cards

2011-03-01 Thread Ken Kixmoeller
On Fri, Feb 11, 2011 at 4:42 PM, Brian Dunning br...@briandunning.com wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt fine, but about 10% decrypt as nonsense (b1�\�JEÚU�A��� is a good example). Maybe there is a character that appears in about

Re: [PHP] Code formatter

2011-02-02 Thread Ken Guest
replies inline... On Wed, Feb 2, 2011 at 3:23 PM, Hansen, Mike mike.han...@atmel.com wrote: -Original Message- From: ken.gu...@gmail.com [mailto:ken.gu...@gmail.com] On Behalf Of Ken Guest Sent: Monday, January 31, 2011 3:26 PM To: Hansen, Mike Cc: php-general@lists.php.net

Re: [PHP] Code formatter

2011-01-31 Thread Ken Guest
. It'd be great if it followed the PEAR coding standards. Have you found http://pear.php.net/package/PHP_Beautifier yet? ;)http://www.php.net/unsub.php Ken -- http://blogs.linux.ie/kenguest/

Re: [PHP] Centralizled Authentication

2010-12-02 Thread Ken Guest
On Thu, Dec 2, 2010 at 8:06 AM, AmirBehzad Eslami behzad.esl...@gmail.comwrote: Dear list, We have dozen of applications, mostly written in PHP and Python. They're distributed on different servers, but i'm trying to integrate them somehow. Each application has its own users. Is there a

Re: Re[2]: [PHP] Open Source PHP/ mySQL Project Management

2010-11-12 Thread Ken Guest
With the exception of some work-mandated systems such as fogbugz, I've used mantis successfully for quite a long time. On Fri, Nov 12, 2010 at 1:09 AM, Andre Polykanine an...@oire.org wrote: Hello Jonathan, I tried to use Mantis, however it didn't send e-mails properly so I gave up. --

Re: [PHP] google maps API

2010-08-23 Thread Ken Guest
are available elsewhere. Ken On Mon, Aug 23, 2010 at 3:37 AM, David Mehler dave.meh...@gmail.com wrote: Hello, Has anyone worked with the google maps API to put a map on their site? If so, please contact me offlist i need to get it going. Thanks. Dave. -- PHP General Mailing List (http

Re: [PHP] Unit testing in PHP

2010-06-17 Thread Ken Guest
package that uses them) I use phpt tests ( http://qa.php.net/write-test.php ). If you're starting out on something [new] that doesn't yet have unit tests, I'd suggest phpunit. hth Ken -- http://blogs.linux.ie/kenguest/

Re: [PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread Ken Kixmoeller
one page to another using the URL. Look up $_GET or Predefined Variables in the PHP documentation online. If that doesn't help, you need to buy the most basic book on web programming you can find (and read it). Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Irish PHP User Group meeting tonight

2010-04-28 Thread Ken Guest
=B000FTF Ken -- http://blogs.linux.ie/kenguest/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Irish PHP User Group meeting tonight

2010-04-28 Thread Ken Guest
On Wed, Apr 28, 2010 at 3:38 PM, Daniel Brown danbr...@php.net wrote: On Wed, Apr 28, 2010 at 05:47, Ken Guest k...@linux.ie wrote: Hi. Just to let any of ye know that might be interested, there's a php.ie meeting on tonight in Dublin - in the Longstone pub on Townsend Street starting

Re: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Ken Guest
The PEAR Mail package does not fall back from one mechanism to another if the first fails. On Tue, Apr 20, 2010 at 9:16 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote: On 20 April 2010 20:17, Alice Wei aj...@alumni.iu.edu wrote:

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Ken Kixmoeller
is important to me is the quality of the information that comes in from you incredibly generous people. Thank you to all posters. You are the best. The list behavior is just an irritant, but it pales in comparison to the benefit. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Ken Guest
you have to install the net_smtp package, simply with this command: $ pear install net_smtp-1.4.2 (which will explicitly install version 1.4.2 of Net_SMTP) If that doesn't work. for whatever reason, you could download the package manually from http://pear.php.net/package/Net_SMTP/download and

Re: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Ken Guest
= “smtp.example.com”; $port = “25″; $headers = array (‘From’ = $from, ‘To’ = $to, ‘Subject’ = $subject); $smtp = Mail::factory(’smtp’, array (‘host’ = $host, ‘port’ = $port)); $mime = new Mail_mime(); $mime-setTxtBody($message); $mime-addAttachment(“/home/ken/logo.png”, ‘image/png’); $body = $mime

Re: [PHP] Array to csv or excel in php

2010-04-19 Thread Ken Guest
For non-simple data I have been using PEAR's File_CSV package. It's proven itself very useful in regards to not having to determine in my own code whether something needs to be quoted etc etc - especially if the output CSV needs to be wholly RFC 4180 compliant. The documentation of it is rather

Re: [PHP] PHP backup in Minnesota

2010-03-12 Thread Ken Kixmoeller
Thanks to all! I got who I needed. Best regards - -- - Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Drawing Images Without Writing To a File

2010-03-11 Thread Ken Sande
); imagestring($im, 5, 10, $py, $file, $color); imagestring($im, 5, 10, $py - 16, round(( $fsize / 1024 ),1) . kB, $color); imagejpeg($im); imagedestroy($im); ? === 73, Ken Sande/KC8QNI-T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP backup in Minnesota

2010-03-11 Thread Ken Kixmoeller
processing module Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP backup in Minnesota

2010-03-11 Thread Ken Kixmoeller
Manuel Lemos wrote: Hello, You may want to try posting an offer here to increase the chances of finding somebody. http://www.phpclasses.org/jobs/ You can also look some of the available people on the map of your region: http://www.phpclasses.org/professionals/country/us/ Thanks -- PHP

Re: [PHP] PHP backup in Minnesota

2010-03-11 Thread Ken Kixmoeller
Jochem Maas wrote: Op 3/11/10 10:05 PM, Ken Kixmoeller schreef: Hey, folks --- - -- Session-based, no cookies. sessions are cookie based. unless your passing the session id around via a URL parameter, which is a no-no. Ja, bestimmt. I should have said no persistent cookies -- PHP

Re: [PHP] Multiple cookies on the same computer

2009-03-31 Thread Ken Watkins
On 3/27/2009 at 8:10 PM, in message 49cd6b07.6010...@mac.com, Michael A. Peters mpet...@mac.com wrote: Ken Watkins wrote: I have set up a blog site where my family creates posts and they get emailed to members of the family. To keep up with their identities, I created a script for each

Re: [PHP] Multiple cookies on the same computer

2009-03-27 Thread Ken Watkins
On 3/26/2009 at 11:12 PM, in message 70.12.30978.2144c...@pb1.pair.com, Shawn McKenzie nos...@mckenzies.net wrote: Shawn McKenzie wrote: Ken Watkins wrote: Hi all. Newbie here. I have set up a blog site where my family creates posts and they get emailed to members of the family. To keep

Re: [PHP] Multiple cookies on the same computer

2009-03-27 Thread Ken Watkins
On 3/26/2009 at 10:24 PM, in message 0a88dc6e-0655-4565-b9a7-e21337fc0...@bluerodeo.com, dg dane...@bluerodeo.com wrote: On Mar 26, 2009, at 7:14 PM, Ken Watkins wrote: To keep up with their identities, I created a script for each family member to run (dad.php, mom.php, etc

Re: [PHP] Multiple cookies on the same computer

2009-03-27 Thread Ken Watkins
, and one of them should suit me :) Thanks much. Ken

Re: [PHP] Multiple cookies on the same computer

2009-03-27 Thread Ken Watkins
On 3/27/2009 at 11:15 AM, in message 1238166938.3522.5.ca...@localhost.localdomain, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-03-27 at 09:59 -0400, Ken Watkins wrote: On 3/26/2009 at 10:24 PM, in message 0a88dc6e-0655-4565-b9a7-e21337fc0...@bluerodeo.com, dg dane

[PHP] Multiple cookies on the same computer

2009-03-26 Thread Ken Watkins
and another for Firefox so that, depending on which browser is used, I can tell who is connecting to the blog? If this is not possible, is there another easy way to do it? Thanks for your help. - Ken Watkins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Testing HTTPS without certificate

2008-04-23 Thread Ken Kixmoeller
- or, if I need to - Mac OS-X 10.4 Apache? (I haven't set up the Mac as a server) - or - Linux (Ubuntu) with Apache (I am moving this direction and haven't yet learned how to run Apache) Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Testing HTTPS without certificate

2008-04-23 Thread Ken Kixmoeller.com
On Apr 23, 2008, at 4:53 PM, Shawn McKenzie wrote: Ken Kixmoeller wrote: I know how to test for the existance of HTTPS, and stuff like that. So: Can one test https on a local machine? Resources, anyone? I have Googled my fingers off. Why not just generate a free self-signed certificate

Re: [PHP] Membership Management

2008-04-21 Thread Ken Kixmoeller.com
and very good. There are many tricks and traps to trying to build one from scratch, among them building a combined cycle and on-demand billing system. One place to look is the Society of Non-profit Executives, or improve your google search thusly: http://tinyurl.com/4yt5ru Ken On Apr 21

Re: [PHP] module access rights

2008-04-19 Thread Ken Kixmoeller.com
as the question seems simple. I have my master application object. On __construct, it checks the current user's rights from somewhere (a config file or a database, for example), and instantiates the application based on the rights profile. Simple answer, but a lot of front-end work to implement. Ken

Re: [PHP] module access rights

2008-04-19 Thread Ken Kixmoeller
Right. Thanks for the links. This type of approach is the basis of my software architecture. Ken (BTW, don't forget to Reply All so your reply goes to the list, too). On Apr 19, 2008, at 9:03 AM, Tony Marston wrote: What you are describing is a Role Based Access Control (RBAC) system

Re: [PHP] Re: Generating JavaScript menus on-the-fly

2008-03-10 Thread Ken Kixmoeller
Thank you -- I don't know about those functions -- I'll check them out (for general knowledge, too)... Ken On Mar 10, 2008, at 12:01 PM, Roberto Mansfield wrote: If you are building select menus on the fly using javascript, look at php's json_encode function. It will create a JSON

Re: [PHP] Generating JavaScript menus on-the-fly

2008-03-08 Thread Ken Kixmoeller.com
On Mar 8, 2008, at 9:17 AM, tedd wrote: At 3:01 PM -0600 3/7/08, Ken Kixmoeller wrote: Hey - - -- - -- -- I keep a profile of a user's rights and responsibilities in tables. Since this profile defines what a user can do in the system I am designing, I'd like to build a JavaScript menu

[PHP] Generating JavaScript menus on-the-fly

2008-03-07 Thread Ken Kixmoeller
. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption failing

2008-01-17 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
. Good ideas, as usual. Thank you. Ken -- 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 Ken Kixmoeller -- reply to [EMAIL PROTECTED]
On Jan 15, 2008, at 10:48 PM, Casey wrote: It returns the correct value. If you look at the last example, and run base64_decode on MDAwMzEwMDI0NDA0MTMyOQ==, you will get 0003100244041329. Oops. Haste makes crappy programming. Ken -- PHP General Mailing List (http://www.php.net

Re: [PHP] Encryption failing

2008-01-16 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
Phooey. Ken -- 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 Ken Kixmoeller -- reply to [EMAIL PROTECTED]
Many thanks, Mike --- yours works great... 0 errors. On Jan 16, 2008, at 9:24 AM, mike wrote: function data_encrypt($data) { if(!$data) { return false; } return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $GLOBALS['config']['salt'], $data, 'cbc', md5($GLOBALS['config']['

[PHP] Encryption failing

2008-01-15 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
a random 16-character string, encrypts it to a variable, and decrypts it. Running it in 500 iteration loops, it fails roughly 4% of the time. By fails I mean that the original string and the eventual decrypted one don't match. Anybody able to spot why? Ken

Re: [PHP] Encryption failing

2008-01-15 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
for passwords, for example. this thing is supposed to en/decrypt the strings I gige it, so there must be some kind of programming flaw. FWIW, there was no discernible pattern to the failed strings, at least not to me. (Not that it matters.) Ken -- PHP General Mailing List (http

Re: [PHP] Encryption failing

2008-01-15 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
On Jan 15, 2008, at 11:08 PM, Andrés Robinet wrote: -Original Message- From: Bastien Koert [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 12:55 AM To: Ken Kixmoeller -- reply to [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Subject: RE: [PHP] Encryption failing are you

  1   2   3   4   >