Re: [PHP] /tmp/directory

2013-07-22 Thread Ken Robinson
ith this problem. The /tmp directory 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 serv

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 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 uplo

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 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 run chown() because th

Re: [PHP] iterate javascript verification

2013-05-27 Thread Ken Robinson
rm 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 the fact that the fields have been into an ite

Re: [PHP] iterate javascript verification

2013-05-24 Thread Ken Robinson
7; />"; $tmp[] = ""; $tmp[] = ""; ?> LDAP Form You will notice that I moved the code for the form to above the HTML section. I believe that very little PHP should be interspersed with the HTML -- it makes for cleaner code. You can use single qu

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 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 your P

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 wrote: > Hi gang: > > Who uses Symfony? > > Cheers, > > tedd > > > _

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 wrote: > Thank you very much, Jim --- > > > On Wed, Apr 24, 2013 at 5:34 PM, Jim Lucas wrote: > >> On 04/24/2013 03:24 PM, Ken Kixmoeller wrote: >> >

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 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) >>

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 wrote: > On 04/24/2013 02:40 PM, Ken Kixmoeller wrote: > >> Thanks so much. Yes, we found that because PHP threw an e

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

2013-04-24 Thread Ken Kixmoeller
broken. No errors are being thrown. We are baffled. Ken On Wed, Apr 24, 2013 at 4:23 PM, David OBrien wrote: > On Wed, Apr 24, 2013 at 5:14 PM, David OBrien wrote: > >> On Wed, Apr 24, 2013 at 5:09 PM, Ken Kixmoeller wrote: >> >>> Hey - -- >>> >>>

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

2013-04-24 Thread Ken Kixmoeller
ncorrect fix" === 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 wrote: > On Wed, Apr 24, 2013 at 5:0

[PHP] Updated PHP breaks processing-intense Procedure

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

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... wrote: > you probe command system()? > > > > 2013/4/9 Ken Kixmoeller > >> Yes --- it worked. Thank you so very much. I had searched the heck out of >> this to no avail. >&

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 ) and willing to help. On Tue, Apr 9, 2013 at 3:05 PM, Ken Kixmoeller wrote: >

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 wrote: > > > > On Tue, Apr 9, 2013 at 9:11 PM, Ken Kixmoeller wrote: > >> Hi -- - >&g

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 wrote: > On Tue, Apr 9, 2013 at 3:11 PM, Ken Kixmoeller > wrote: > > Hi -- - > > > > Strange problem. One of my applications was just moved to a new server. > The > > new server has php confi

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

2013-04-09 Thread Ken Kixmoeller
listing the command, of course)? Many thanks, Ken

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

2013-03-18 Thread Ken Robinson
;t understand the working 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 a

[PHP] Configuration Issue (Error 310 ERR_TOO_MANY_REDIRECTS)

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

Re: [PHP] date problem

2013-01-03 Thread Ken Robinson
EGIN','09/16/2012'); $jes = 01/03/2012; if ( strtotime($jes) < strtotime(WSOFFBEGIN) ) { $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] Nested loopa

2012-12-25 Thread Ken Arck
So I cannot do nested do loops in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Serial Comm problem

2012-12-25 Thread Ken Arck
s loop and times out after 30 seconds 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. Any help would be greatly appreciated Ken

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 wrote > A much easier way to do this would be to use a temporary array and then explo

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

2012-12-21 Thread Ken Robinson
= explode('~',$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

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

2012-11-16 Thread Ken Robinson
break; case ($count <= 7): default : $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

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

2012-09-30 Thread Ken Robinson
atabase username/password. Since you did, change your db password immediately. Second, when debugging, if you use the die() function, put out something meaningful like ... or die("Problem with the insert query: $query" . 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/unsub.php

Re: [PHP] Array & unset()

2012-09-23 Thread Ken Robinson
thoughts? Any help is appreciated. Look at array_filter() ... http://php.net/array_filter 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/unsub.php

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. $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 -

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

2012-01-11 Thread Ken Robinson
o dodge it by echo @$_SERVER['HTTP_REFERER']; The better way to avoid the error is to do something like echo (isset($_SERVER['HTTP_REFERER']))?$_SERVER['HTTP_REFERER']:'No referrer set'; Which checks to see if it's set before echoing the valu

Re: [PHP] number_format

2011-12-19 Thread Ken Robinson
convert value to a number. return 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
x high lighting, 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 actuall

Re: [PHP] FW: parse error

2011-10-13 Thread Ken Robinson
s like PHP is giving up after finding unrecognizable stuff after either the first double or single quote 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] Local variable protection

2011-10-12 Thread Ken Robinson
be revealed, but I 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

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* Cus

Re: [PHP] PHP within XML?

2011-08-25 Thread Ken Robinson
27;re writing XML code, you need to send an XML header type first: ' . "\n"; ?> Rest 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 Ma

Re: [PHP] concatenating

2011-08-10 Thread Ken Robinson
re are no elements returned nothing will be displayed? Sure, do something like this: 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] Problem with inserting numbers...

2011-08-10 Thread Ken Robinson
hy use your own function to pad a string, when there is a built-in function? Try this code (untested): $q = "SELECT areacode, prefix FROM Test WHERE `areacode` = '907' AND `prefix` = '200' LIMIT 5"; $rs = mysql_query($q); while ($row = mysql_fetch_assoc($rs)) {

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
Jeezuz! At least they have a cute 404 page. Gotta count for *something*! 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 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 General Mailin

[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/ --

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 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 elegant solution. > > The

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

2011-05-05 Thread Ken Kixmoeller
ing 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] Re: iPhone apology - was Re: [PHP] Re: Installing on a Mac: include_path issues

2011-05-05 Thread Ken Kixmoeller
e constitutes a federal (if not intergalactic) crime. 2. This signature addition seems to have started with the Blackberry. Some people got upset with concise replies (like "fine") thinking them to be snippy, when they were due to limited typing capabilities. 3. Advertising for Apple. Ken

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 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/

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

2011-05-05 Thread Ken Kixmoeller
27;t have 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/smmcomputere

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 wrote: > On 5 May 2011 05:51, David Robley wrote: >> Ken Kixmoeller wrote: >> > include_path should only contain directories, not filenames. [1] Thanks. Yes, both of those are directories. Ken -- PHP General Mailing List (

[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 P

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 Gener

Re: [PHP] looking for a newsgroup for JS

2011-03-23 Thread Ken Robinson
ctive: 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 wrote: >> On 3/5/2011 4:30 AM, Richard Quadling wrote: >>> On 4 March 2011 23:48, Ken Watkins wrote: >>>> Hi All. >>>> >>>> I have a Windows desktop app th

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 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. Th

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

2011-03-05 Thread Ken Watkins
d 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

[PHP] Returning a recordset to a desktop app

2011-03-04 Thread Ken Watkins
s for your 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 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 10% of my encrypti

Re: [PHP] Code formatter

2011-02-02 Thread Ken Guest
replies inline... On Wed, Feb 2, 2011 at 3:23 PM, Hansen, Mike 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, Mi

Re: [PHP] Code formatter

2011-01-31 Thread Ken Guest
e. 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 wrote: > 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 way to store all u

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 wrote: > Hello Jonathan, > > I tried to use Mantis, however it didn't send e-mails properly so I > gave up. > -- > With best re

Re: [PHP] Chat

2010-11-10 Thread Ken Guest
> On Tue, 2010-11-09 at 16:51 +0100, Dušan Novaković wrote: >> >> >>> Hello there, >>> >>> I have to make chat for website that has around 10 000 users (small >>> social network). So before I start, I would like to hear different >>> opinions. Important thing is to have in mind that in one moment y

Re: [PHP] Re: Looking for an open-source project

2010-10-25 Thread Ken Guest
On Mon, Oct 25, 2010 at 7:57 PM, Colin Guthrie wrote: > 'Twas brillig, and Mert Oztekin at 25/10/10 13:23 did gyre and gimble: > > I am looking for an open-source project to help and make some fun. Anyone > has suggestions? > > How about helping out Zend Framework, adding useful classes for vario

Re: [PHP] google maps API

2010-08-23 Thread Ken Guest
available elsewhere. Ken On Mon, Aug 23, 2010 at 3:37 AM, David Mehler 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 (h

Re: [PHP] Unit testing in PHP

2010-06-17 Thread Ken Guest
ckage 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/

php-general@lists.php.net

2010-06-04 Thread Ken Kixmoeller
ass values from 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 uns

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 wrote: > On Wed, Apr 28, 2010 at 05:47, Ken Guest 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 &g

[PHP] Irish PHP User Group meeting tonight

2010-04-28 Thread Ken Guest
5559&zoom=16&layers=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] 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 ins

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

2010-04-21 Thread Ken Kixmoeller
easy to forget. In my opinion, it is idiotic. OTOH, what 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.

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 wrote: > On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote: > >> On 20 April 2010 20:17, Alice Wei wrote: >> > >> >> From: peter.e.l...@gmail.com >> >> D

Re: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Ken Guest
g PEAR’s Mail packages.”; $host = “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->addA

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 mi

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] 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&quo

[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 G

[PHP] PHP backup in Minnesota

2010-03-11 Thread Ken Kixmoeller
-- Home-built Orbital CC processing module 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
ejpeg($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

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" 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 the

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 >>> wrote: On Fri, 2009-03-27 at 09:59 -0400, Ken Watkins wrote: > >>> On 3/26/2009 at 10:24 PM, in message > >>> <0a88dc6e-

Re: [PHP] Multiple cookies on the same computer

2009-03-27 Thread Ken Watkins
hen they will each have >different cookies. Shawn - Yes, domain aliases sound good too. OK, you've given me a couple of good suggestions, 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/26/2009 at 10:24 PM, in message >>> <0a88dc6e-0655-4565-b9a7-e21337fc0...@bluerodeo.com>, dg >>> 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 t

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 wrote: Shawn McKenzie wrote: > Ken Watkins wrote: >> Hi all. >> >> Newbie here. >> >> I have set up a blog site where my family creates po

[PHP] Multiple cookies on the same computer

2009-03-26 Thread Ken Watkins
E 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.ph

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

[PHP] Testing HTTPS without certificate

2008-04-23 Thread Ken Kixmoeller
IS 5 - 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] 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
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

Re: [PHP] module access rights

2008-04-19 Thread Ken Kixmoeller.com
s 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 imple

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 wil

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 JavaS

[PHP] Generating JavaScript menus on-the-fly

2008-03-07 Thread Ken Kixmoeller
mples or advice. 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]
ty gives way to practical application. 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]
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'][' s

Re: [PHP] Encryption failing

2008-01-16 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
- Dec:[EMAIL PROTECTED] -|- Nope etc. Wrong: 23/500 -------- 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]
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

Re: [PHP] Encryption failing

2008-01-15 Thread Ken Kixmoeller.com
On Jan 15, 2008, at 11:08 PM, Andrés Robinet wrote: I second that, you should base64 encode values before encrypting and base64 decode them after decrypting to be safe. Thanks for the idea. Like this? Fails 500/500 times on my test. if ($EorD == "D") {

  1   2   3   4   >