Re: [PHP] Month with leading zeros

2008-05-11 Thread Casey
/unsub.php -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Complex escape string

2008-05-03 Thread Casey
into the query: . mysql_real_escape_string($_GET['searchstring']); -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] new $foo-className(); Class name must be a valid object or a string

2008-05-03 Thread Casey
On May 3, 2008, at 4:46 PM, Jack Bates [EMAIL PROTECTED] wrote: I am trying to load PHP objects stored in a database, where the class name is stored in a column: $object = new $resultSet-getString(1); This fails for the same reason that the following fails: ?php class Foo { public

Re: [PHP] Execute command from web browser

2008-05-03 Thread Casey
web browser. What is wrong Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach loop to set variables

2008-04-25 Thread Casey
On Apr 25, 2008, at 6:12 AM, jamest [EMAIL PROTECTED] wrote: I am passing an array to a class which I want to take the array data and create some variables from the array's keys and values. So I want to create (in this case 21) new variables that I want to create in the foreach but with

Re: [PHP] loop inside a loop

2008-04-17 Thread Casey
) echo 2; sleep(1); } ? :) -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Serialization Performance

2008-04-16 Thread Casey
! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php According to this (http://us2.php.net/manual/en/function.var-export.php#76099), serialize is faster than var_export. -- -Casey -- PHP General Mailing List (http://www.php.net

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Casey
('a' = 'f', 'b' = 'g', 'c' = 'h', 'd' = 'i', 'e' = 'j'); } echo ${!${!1}=ReturnArray()}['a']; // 'f' ? :) -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Casey
On Sat, Apr 12, 2008 at 9:35 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 12:18 PM, Casey [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote

Re: [PHP] Need a simple one time search utility

2008-04-12 Thread Casey
On Apr 12, 2008, at 12:13 PM, Al [EMAIL PROTECTED] wrote: I need a simple utility that simulates GREP to find a certain string in any php files on my website. Site is on a shared host w/o shell access so I can't run GREP. I can write a PHP scrip to do it; but, this is a one time thing and

Re: [PHP] Quarters

2008-04-11 Thread Casey
://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I won. Finally figured out the secret, without $5 _ -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] require_once dying silently

2008-04-08 Thread Casey
/public_html/tanktrunk/tanktrunk/lib/setup.php); ? -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] books for php

2008-04-08 Thread Casey
, such as guides to Windows source code, have pictures. http://www.pilotpig.net/images/winsource.jpg ROFL. -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include fails when ./ is in front of file name

2008-04-06 Thread Casey
fine. Anyone have any ideas? Thanks! Noah Is that include() statement being issued within an included PHP page? a.php ?php include('directory/b.php'); ? directory/b.php ?php include('./c.php'); // Does this refer to c.php or directory/c.php ? -- -Casey -- PHP General Mailing List

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Casey
as $name = $object) { if ($object['type'] == 'red') $red[] = $name; } ? -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Casey
and technology is unwise and ultimately futile. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I hit reply-all... now am I suddenly subscribed to Perl and Ruby lists!?! -- -Casey -- PHP General Mailing List (http://www.php.net

Re: [PHP] PostTrack Updates

2008-04-05 Thread Casey
On Apr 5, 2008, at 6:23 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Apr 5, 2008, at 1:48 AM, Robert Cummings wrote: On Fri, 2008-04-04 at 22:39 -0700, Jim Lucas wrote: Robert Cummings wrote: ?php echo On Fri, 2008-04-04 at 17:23 -0400, Daniel Brown wrote: \n ? ?php echo Some changes take

Re: [PHP] PHP: array with null shows different with print_r and var_dump

2008-04-02 Thread Casey
it. [1]= NULL } var_dump converts null into the string NULL. Can you tell me why the above difference? -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

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

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Casey
On Sun, Mar 30, 2008 at 9:37 PM, Micky Hulse [EMAIL PROTECTED] wrote: Casey wrote: preg_replace_callback($f, 'mah_processTags(\'$0\', $arg1)', $text); Does this work? Awww, does not seem to work. :( But maybe I need to dink with the code a bit more... I would like to avoid setting

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Casey
On Sun, Mar 30, 2008 at 10:06 PM, Micky Hulse [EMAIL PROTECTED] wrote: Casey wrote: Hmmm. I've searched around, and it seems that only a global would work :/ Thanks for the help Casey! I really appreciate it. :) Yah, I think I will use a global for now... Until I can think

Re: [PHP] extract escaped quoted strings

2008-03-29 Thread Casey
On Mar 29, 2008, at 4:16 PM, Adam Jacob Muller [EMAIL PROTECTED] wrote: Hi, Have a potentially interesting question here, wondering if anyone has done this one before and could shed some light for me. I have a bit of PHP code that needs to extract some quoted strings, so, very simply:

Re: [PHP] new lines in textareas?

2008-03-29 Thread Casey
or br!) Thanks Mary Anderson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php \n, or just a plain line break, should work. ?php echo 'textareaHello, My favorite color is blue. Signed, Me!'; ? Should work. -Casey -- PHP

Re: [PHP] convert a string to integer

2008-03-28 Thread Casey
this issue ? thx -- Alain Windows XP SP2 PostgreSQL 8.2.4 / MS SQL server 2005 Apache 2.2.4 PHP 5.2.4 C# 2005-2008 is_numeric() -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert associative array to ordinary array

2008-03-28 Thread Casey
to call it by its position in the array $arr[3] Did you try? -- /Daniel P. Brown Forensic Services, Senior Unix Engineer 1+ (570-) 362-0283 $numbered_array = array_values($associative_array); -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
On Mar 28, 2008, at 4:27 PM, Lamonte [EMAIL PROTECTED] wrote: Okay I created a script that changes a basic smiley face into a red smiley face..but it doesn't replace all the yellow, it looks like a yellow shadow in the background: ?php $image = smiley.png; $data = getimagesize($image);

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
I have an annoying habit of not using comments :) Explanations are inline. On Mar 28, 2008, at 7:10 PM, Lamonte [EMAIL PROTECTED] wrote: Casey wrote: On Mar 28, 2008, at 4:27 PM, Lamonte [EMAIL PROTECTED] wrote: Okay I created a script that changes a basic smiley face into a red smiley

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread Casey
On Mar 28, 2008, at 7:15 PM, Jack Sasportas [EMAIL PROTECTED] wrote: -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 10:02 PM To: Joey Cc: PHP Subject: RE: [PHP] munge / obfuscate ? Hi Joey, Please keep responses on the list so

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
On Mar 28, 2008, at 7:38 PM, Lamonte [EMAIL PROTECTED] wrote: Casey wrote: I have an annoying habit of not using comments :) Explanations are inline. On Mar 28, 2008, at 7:10 PM, Lamonte [EMAIL PROTECTED] wrote: Casey wrote: On Mar 28, 2008, at 4:27 PM, Lamonte [EMAIL PROTECTED] wrote

Re: [PHP] Date math

2008-03-25 Thread Casey
) $date2 = strtotime($date2); (December 18th 2007) echo $date1 = 1206072000 echo $date2 = 1197954000 #86400 is 60 seconds x 60 minutes x 24 hours (in other words 1 days worth of seconds) $factor = 86400; $difference = (($date1 - $date2) / $factor); As Casey suggested, it is a timestamp issue

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Casey
On Mar 25, 2008, at 6:11 PM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I suspect I already know part of the answer to this, but I'm not sure which way to go with it. I've got a project I'm working on and one of the things it's got to do is set cookies and then read them later. When

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Casey
On Mar 25, 2008, at 7:12 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver [EMAIL PROTECTED] wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not specific to

Re: [PHP] question about linux editor

2008-03-24 Thread Casey
need to connect to the server. please advice. thanks. Putty! -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about linux editor

2008-03-24 Thread Casey
On Mon, Mar 24, 2008 at 8:09 PM, Mark Weaver [EMAIL PROTECTED] wrote: Casey wrote: On Mon, Mar 24, 2008 at 7:28 PM, Sudhakar [EMAIL PROTECTED] wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server

Re: [PHP] ob_start: Capturing STDOUT and STDERR

2008-03-23 Thread Casey
of the script. Any pointers in the correct direction would be helpful! Thanks, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You could use set_error_handler() and make your own function to echo out the error. -- -Casey -- PHP

Re: [PHP] Date math

2008-03-23 Thread Casey
); (December 18th 2007) echo $date1 = 1206072000 echo $date2 = 1197954000 Seems to be a time zone issue.1206057600 is the actual timestamp for March 21st, 2008 GMT. I don't know what time zone 1206072000 is is. -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Detecting \u0000 in a string...

2008-03-17 Thread Casey
= str_replace(\0, '', $str); -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DOM - Question about \0

2008-03-16 Thread Casey
the entity #00; works? -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] __halt_compiler()

2008-03-16 Thread Casey
? -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making an interactive RGB color picker

2008-03-04 Thread Casey
); $coords = explode(',', $coords); // Easier way...? $im = imagecreatefrompng('colormap.png'); $color = imagepixelat($im, $coords[0], $coords[1]); I wouldn't do it like this, though. I'd use Javascript. -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Casey
to stop the shebang line that *may* be present in the included script from being output to stdout. I use Windows, so I don't need the shebang line. But if I'm correct and the shebang line is: #!/usr/bin/php , shouldn't it be considered a comment, because of the #? -- -Casey -- PHP General

Re: [PHP] Making sure an include file works

2008-02-28 Thread Casey
. | `' http://us.php.net/manual/en/function.php-check-syntax.php -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Casey
? Some multibyte character issue? -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Casey
('a' = 'f', 'b' = 'g', 'c' = 'h', 'd' = 'i', 'e' = 'j'); } echo ${(${0}=ReturnArray())0}['a']; -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Casey
On Thu, Feb 28, 2008 at 8:42 PM, Casey [EMAIL PROTECTED] wrote: On Thu, Feb 28, 2008 at 8:38 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Robert Cummings wrote: On Thu, 2008-02-28 at 23:27 -0500, Robert Cummings wrote: On Fri, 2008-02-29 at 04:04 +, Nathan Rixham wrote

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Casey
. -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ZCE guidance needed

2008-02-27 Thread Casey
, like asking very specific questions about some of the functions and so forth. good news is a low score still makes the passing grade ;) -nathan There's a test for PHP? Wow, I never knew that. Is there some kind of free online test to determine my [self-taught] PHP knowledge? :D -- -Casey

Re: [PHP] Guidance

2008-02-27 Thread Casey
to program anything we related if you can't format the output! Oddly, I learned JavaScript and PHP before truly learning XHTML. By the way, I really hate font tags, so learn XHTML! Also, if you're learning JavaScript, please learn W3C DOM, and not the document.write(Ugliness). :) -- -Casey

Re: [PHP] Cannot even come up with the beginning of a regex

2008-02-27 Thread Casey
it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? The a character (97) is different from the א character (1488). $a = html_entity_decode('#1488;'); $test=preg_replace('/\b([^\s]+)' . $a . '\b.*/U', '$1A', $test); Will this work? -- -Casey

Re: [PHP] Ignoring user cancel

2008-02-22 Thread Casey
On Feb 22, 2008, at 6:19 PM, K T Ligesh [EMAIL PROTECTED] wrote: Hello, I have a php process running on lighty that should continue even if the user presses cancel in his browser. The default behavior is that the web-server will kill the cgi process on user cancellation. Is there some

Re: [PHP] Problem with quotes

2008-02-21 Thread Casey
. What am I missing here ? Any help would be appreciated. Warm Regards, Mário Gamito Not the problem, but: echo img src=\dcs/ . $key . '.png' . / . ; can be condensed to: echo img src=\dcs/$key.png\ / ; -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] form cleaner class

2008-02-21 Thread Casey
); } If I recall correctly, you can't modify the array within a foreach block... or am I going crazy? -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form cleaner class

2008-02-21 Thread Casey
On Thu, Feb 21, 2008 at 8:59 PM, Casey [EMAIL PROTECTED] wrote: On Thu, Feb 21, 2008 at 8:53 PM, nihilism machine [EMAIL PROTECTED] wrote: What is a better idea? Using this class in my db class and using CleanInput on the sql statements, or using it in the top of the all pages

Re: [PHP] Php warning message

2008-02-20 Thread Casey
On Feb 20, 2008, at 1:29 PM, Yuval Schwartz [EMAIL PROTECTED] wrote: Hello and thank you, Another question, I get a message: *Warning*: feof(): supplied argument is not a valid stream resource in * /home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52* ** And I've tried

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Casey
paste it in as the front of the other zip files... Might work. Might make hash of the zip files. Won't know til you try. The RFC makes it sound so confusing. -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Source code protection

2008-02-07 Thread Casey
it is exactly the answer to the original persons question. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free Why not just translate it to C#? -- -Casey -- PHP

Re: [PHP] string vs number

2008-02-05 Thread Casey
On Feb 5, 2008, at 10:43 AM, Eric Butera [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:36 PM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi all, i have this php statement: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ? debugging, i got

Re: [PHP] flash with PHP

2008-02-03 Thread Casey
On Feb 3, 2008, at 12:23 AM, Alain Roger [EMAIL PROTECTED] wrote: Hi, i would like to have a flash menu in my PHP website. this is no problem. My problem is how to exchange data between PHP andFlash (in both direction). i found a lot of posts on this theme, but nothing with really works

Re: [PHP] Jacco van Hooren

2008-02-03 Thread Casey
List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You could set up Gmail's filters. -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Resetting a session variable

2008-02-03 Thread Casey
(http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php unset($_SESSION); or $_SESSION = array(); -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] flash with PHP

2008-02-03 Thread Casey
On Feb 3, 2008 10:44 AM, Alain Roger [EMAIL PROTECTED] wrote: this is right under actionscript 2.0... i'm working under actionscript 3.0 :-) On Feb 3, 2008 7:28 PM, Casey [EMAIL PROTECTED] wrote: On Feb 3, 2008, at 12:23 AM, Alain Roger [EMAIL PROTECTED] wrote: Hi, i would

Re: [PHP] about preg_replace, please help !

2008-02-03 Thread Casey
On Feb 3, 2008, at 5:00 PM, LKSunny [EMAIL PROTECTED] wrote: ? $txt = eof a a a eof; //i just want replace start to first \r\n\r\n //how can i do ? //i want out put /* */ print preg_replace(What's is this ?, ,

Re: [PHP] about preg_replace, please help !

2008-02-03 Thread Casey
On Feb 3, 2008 9:04 PM, LKSunny [EMAIL PROTECTED] wrote: this i know. but i need use preg_replace. any body can help me, thank you very much !! Casey [EMAIL PROTECTED] ???:[EMAIL PROTECTED] On Feb 3, 2008, at 5:00 PM, LKSunny [EMAIL PROTECTED] wrote: ? $txt = eof

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-02-01 Thread Casey
On Feb 1, 2008, at 5:45 PM, szalinski [EMAIL PROTECTED] wrote: On Thu, 31 Jan 2008 07:13:55 -, Per Jessen [EMAIL PROTECTED] wrote: Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've loaded

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Casey
don't think constructors return the object: ?php class foo { private $bar; public function __construct($bar) { echo In constructor\n; $this-bar = $bar; } } $x = new foo(...); var_dump($x-__construct()); # NULL ? -- -Casey -- PHP General

Re: [PHP] determine file-upload's tmp-filename

2008-01-26 Thread Casey
this is a completely useless approach? lg, Michi Will this help? http://tomas.epineer.se/archives/3 -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upload problem

2008-01-22 Thread Casey
On Jan 22, 2008, at 5:01 PM, nihilism machine [EMAIL PROTECTED] wrote: any ideas why this does not work? class upload { function upload() { upload::uploader(); } function uploader() { $FileName = basename($_FILES['upload1']['name']); if

Re: [PHP] Expand variable in comparison

2008-01-19 Thread Casey
/language.variables.variable -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] avoid server folder reading

2008-01-19 Thread Casey
and i was like, just end it w/ a little css. so yeah, i def agree. -nathan Just add a simple index.php to every folder you want to hide, if you want a PHP solution. index.php: header('Location: http://yoursite.com'); -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: Bad company This Weekend!

2008-01-18 Thread Casey
Don't miss this opportunity to see him. Please go to the Richfield Chalet's website (www.richfieldchalet.com/events.php) for more information, or contact the venue at 262-628-4080. Tickets are $20. Print this email out Gasp! They use PHP! -Casey -- PHP General Mailing List (http

Re: [PHP] Encryption failing

2008-01-15 Thread Casey
On Jan 15, 2008, at 4:54 PM, Ken Kixmoeller -- reply to [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey --- - - I am in the process of upgrading the encryption technology I am using from (64 bit) blowfish to (256 bit) rijndael. The code (and some explanations) is below, but the results

Re: [PHP] Encryption failing

2008-01-15 Thread Casey
on MDAwMzEwMDI0NDA0MTMyOQ==, you will get 0003100244041329. -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Casey
into this problem. (It works in Javascript .) While I don't know why, you could store it in a temporary variable or use the list() language construct. -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ereg help!

2008-01-08 Thread Casey
On Jan 8, 2008, at 5:45 PM, steve [EMAIL PROTECTED] wrote: I have a dir of html files that link to websites, i would like to read the dir and print a list of those files as a link. Which the script i have does. I would like to take this one step further and replace the .html extension

Re: [PHP] PHTML files showing as blank pages

2008-01-05 Thread Casey
On Jan 5, 2008, at 10:50 AM, A.smith [EMAIL PROTECTED] wrote: Hi Bastien, thanks for the suggestion, unfortunately I still have no page displayed... thanks Andy. - Original Message From: Bastien Koert [EMAIL PROTECTED] To: A.smith [EMAIL PROTECTED],

Re: [PHP] which window?

2008-01-05 Thread Casey
-- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image* Functions' Memory Usage

2008-01-04 Thread Casey
On Jan 4, 2008, at 9:54 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 4, 2008 12:46 PM, Casey [EMAIL PROTECTED] wrote: Greetings, list. I have a web application that generates PNG images that are thousands of pixels high by thousands of pixels wide (using imagepng, etc.). The problem

[PHP] image* Functions' Memory Usage

2008-01-04 Thread Casey
, but some suggestions in the meantime would be great. Maybe ImageMagick is faster? Flash?Any suggestions? Thank you very much. - Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to secure Flash Video? [Solved?]

2008-01-04 Thread Casey
mean SWF's, there are extractors out there. In other words, it's not really possible to completely secure these videos, but this is a fairly good solution, as I see it. -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best way for PHP page

2008-01-02 Thread Casey
this is what they mean. -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Casey
dont bother to read through the currently posted solutions before posting the exact same thing or nearly identical thing themselves. Yeah, but what's the fun in doing it that way? Cheers, tedd $value = trim($value, chr(32) . chr(160)); Cookie for me? :) -- -Casey -- PHP General Mailing

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Casey
$_POST, $_GET, $_REQUEST, etc. Now it's like this: A $_POST['submit'] == ' A ' // TRUE. ... *pokes my solution*... $value = trim($value, chr(32) . chr(160)); -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable substitution

2008-01-01 Thread Casey
$string_b; return stuff $string_b and more stuff; } -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Casey
than or equal to) or = (less than or equal to). -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Fwd: [PHP] Using PHP to remove certain number of bytes from file

2007-12-30 Thread Casey
/unsub.php 30 seconds alternative: ?php $fh = fopen($file, 'rb'); $f2 = fopen('temp', 'wb'); fseek($fh, 230); do { fwrite($f2, fread($fh, 4069)); } while (!feof($fh); fclose($fh); fclose($f2); rename('temp', $file); ? -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] XSS

2007-12-26 Thread Casey
Of course! -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loadHTML()

2007-12-24 Thread Casey
That's because it's not proper XHTML: br should be br /. On Dec 24, 2007, at 6:03 PM, M5 [EMAIL PROTECTED] wrote: Just getting into DOMDocument()... I'm loading an HTML page and trying to extract certain bits of text. Just one problem: loadHTML() seems to ignore orphan tags like 'br'. For

Re: [PHP] loadHTML()

2007-12-24 Thread Casey
Actually, never mind. It does not have to be valid to work. On Dec 24, 2007, at 6:15 PM, Casey [EMAIL PROTECTED] wrote: That's because it's not proper XHTML: br should be br /. On Dec 24, 2007, at 6:03 PM, M5 [EMAIL PROTECTED] wrote: Just getting into DOMDocument()... I'm loading an HTML

Re: [PHP] Simple RegEx question

2007-12-24 Thread Casey
On Dec 24, 2007, at 7:34 PM, M5 [EMAIL PROTECTED] wrote: I'm learning regular expressions, and trying to figure out what's possible and what's not. Any ideas of how to create a preg_match expression to parse following three lines: Calgary, AB T2A6C1 Toronto, ON T4M 0B0 Saint John, NB

Re: [PHP] Simple RegEx question

2007-12-24 Thread Casey
On Dec 24, 2007, at 7:59 PM, Casey [EMAIL PROTECTED] wrote: On Dec 24, 2007, at 7:34 PM, M5 [EMAIL PROTECTED] wrote: I'm learning regular expressions, and trying to figure out what's possible and what's not. Any ideas of how to create a preg_match expression to parse following three lines

Re: [PHP] Sending SMS via PHP

2007-12-22 Thread Casey
/SMS_gateways#Email_to_SMS -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a bit OT - Does XMLHTTP work with Digest Authentication?

2007-12-19 Thread Casey
: http://www.php.net/unsub.php I've run into this problem before... Try searching Google with the five-digit status code. It's one of Microsoft's non-standard codes... -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP translation needed

2007-12-17 Thread Casey
is it? It might not work; it's untested except for syntax errors. [EMAIL PROTECTED] ;] -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing text into images, and setting text size

2007-12-16 Thread Casey
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-15 Thread Casey
Comment out all Javascript. On Dec 15, 2007, at 2:00 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 15, 2007 4:55 PM, Mary Anderson [EMAIL PROTECTED] wrote: My code http://demog.berkeley.edu/~maryfran/memdev/get_data_set.php Mary, Can you provide the actual code for the page?

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-15 Thread Casey
On Dec 15, 2007 11:27 PM, Jochem Maas [EMAIL PROTECTED] wrote: Casey wrote: Comment out all Javascript. Casey - exactly how would javascript being causing a webserver to segfault in this context??? On Dec 15, 2007, at 2:00 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 15, 2007 4

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-13 Thread Casey
On Dec 13, 2007 7:44 AM, Bob Sabiston [EMAIL PROTECTED] wrote: On Dec 12, 2007, at 7:20 PM, Casey wrote: Try gzuncompress(); Correct me if I'm wrong, but isn't gzuncompress used for 'gzip' files? Although they both use the same compression, gzip is specific to files and has header

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Casey
Try gzuncompress(); On Dec 12, 2007, at 1:03 PM, Bob Sabiston [EMAIL PROTECTED] wrote: On Dec 12, 2007, at 2:31 PM, Richard Lynch wrote: On Wed, December 12, 2007 11:28 am, Bob Sabiston wrote: I'm trying to read some zlib-compressed data from a regular binary file. When I try to

Re: [PHP] Session call not creating file in session_save_path - perms? (newbie)

2007-12-12 Thread Casey
nothing being written there. I bet I'm doing something ignorant about apache users or something, huh? -- RE, Chicago -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Memory Leak

2007-12-06 Thread Casey
On Dec 6, 2007, at 3:15 PM, Sascha Braun [EMAIL PROTECTED] wrote: Hi Everybody, I have a couple of foreach loops which are ending in a for loop, which causes the apache to consume the complete memory of the server system the php engine is running on. The nesting level is at round about

  1   2   3   >