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
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
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
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
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
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
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
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
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
for the last 3 years.
Thanks,
Ken
===
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
. 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
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
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
thanks,
Ken
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
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
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
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
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
), but no
under the hood fixes.
Anyone experienced this? Ideas?
Many thanks,
Ken
) )
{
$error = MUST begin after . WSOFFBEGIN . \n;
}
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
should be enough but apparently it isn't.
Any help would be greatly appreciated
Ken
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
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
('~',$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
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
:
$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
() 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
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
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
a message saying so.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
, 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
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
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
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
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
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
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
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
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
count for *something*! g
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
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
for Apple.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
:
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
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
. 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
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
advice.
Ken Watkins
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
. 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/
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
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.
--
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
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/
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
=B000FTF
Ken
--
http://blogs.linux.ie/kenguest/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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:
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
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
= “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
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
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
);
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
processing module
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
, and one of them should suit me :)
Thanks much.
Ken
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
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
- 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
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
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
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
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
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
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
.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Good ideas, as usual. Thank you.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
Phooey.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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']['
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
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
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 - 100 of 319 matches
Mail list logo