[PHP] General Web Development Editor/IDE

2009-05-24 Thread Casey
ual syntax coloring and project management). But before I try that, are there any suggestions from all you experts out there? Thanks, - Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Casey
You could set $_SESSION['lasttime'] to time() and check it on every page. On Oct 17, 2007, at 3:58 AM, "Holografix" <[EMAIL PROTECTED]> wrote: I have some questions about sessions timeout and sessions ini settings. In php.ini I have session.gc_maxlifetime = 30 (for testing purpose only

Re: [PHP] IF command

2007-10-18 Thread Casey
if (!in_array($component_reference, array(5,17))) // ... More compact. On Oct 18, 2007, at 5:49 PM, "ron.php" <[EMAIL PROTECTED]> wrote: When $component_reference is 5 or 19 I don't want the echo statement to output to the screen. What is the correct syntax? What I have below isn't w

[PHP] gzuncompress() Not Working.

2007-11-05 Thread Casey
e decompression function is the same and therefore should be valid. When I looked at the user comments for gzuncompress(), it says that it might not decompress some zlib data. Any ideas to how to fix this problem? Thanks, Casey -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] html parsing

2007-11-07 Thread Casey
Can you just change it to ? On Nov 7, 2007, at 7:24 PM, Ron Croonenberg <[EMAIL PROTECTED]> wrote: Hello, I have a script that ads data to a html template. However when there is an include in the html like: it is not "processed", but "just" ends up as a string in the page. So I guess

Re: [PHP] Need a hint how to track an error

2007-11-11 Thread Casey
Wrong list! Try a Javascript list. On Nov 11, 2007, at 6:46 PM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote: My php program is working with Firefox, but not with Internet Explorer. I cannot see anything I did wrong, like forgotten " or > where Firefox is more forgiving than IE. I used

Re: [PHP] Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

2007-11-13 Thread Casey
1) window.onload = function () {formfield.focus();} 2) Meta refresh or some combination of Javascript, flush(), and ob_flush(). On Nov 13, 2007, at 3:46 PM, "Jon Westcot" <[EMAIL PROTECTED]> wrote: Hi all: This may or may not be a PHP-related question, but, since I'm coding with PHP,

Re: [PHP] Generating sequence of AlphaNumber

2007-11-14 Thread Casey
Try sprintf(). On Nov 14, 2007, at 4:32 PM, Jeffery Fernandez <[EMAIL PROTECTED]> wrote: Hi all, I am having trouble generating a sequence of numbers from the following start value: AX0001 what I have done so far is loop through each character and check if its a alphabet and separa

Re: [PHP] Re: file_exists

2007-11-15 Thread Casey
I think file_exists returns false for remote files ;) On Nov 15, 2007, at 2:33 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote: Instruct ICC wrote: Date: Thu, 15 Nov 2007 00:20:52 + From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] file_exists

Re: [PHP] Gmail Account Invites (Want One?)

2007-11-15 Thread Casey
You can get it for free. Go to mail.google.com and click "Get Gmail" or something like that. On Nov 15, 2007 1:48 PM, William Betts <[EMAIL PROTECTED]> wrote: > Great with the times. :P It's not invite anymore. > > > On Nov 15, 2007 3:40 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > I know a

Re: [PHP] Gmail Account Invites (Want One?)

2007-11-15 Thread Casey
They obviously forgot to remove it :P On Nov 15, 2007 1:53 PM, Stephen Wong <[EMAIL PROTECTED]> wrote: > Yeah, not sure why the "invite a friend" option is still there > > On Nov 15, 2007 4:48 PM, William Betts <[EMAIL PROTECTED]> wrote: > > > Great with the times. :P It's not invite anymore. > >

Re: [PHP] htmlentities()

2007-11-17 Thread Casey
It is doing that ;) If you look at the source, you will see the expected output. On Nov 17, 2007, at 4:41 AM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote: I tried to understand htmlentities by putting this code into a test.php: Test of evil input "; $field2=htmlentities($field1,EN

Re: [PHP] two small issues with php mail

2007-11-19 Thread Casey
Note this code is untested and directly typed from a phone. $message = 'Even though I will be filtered, get your FREE iPod at http://www.obviouslyascam.com !'; $headers = array( 'From: [EMAIL PROTECTED]', 'Bbc: [EMAIL PROTECTED]', // ... ); $headers = implode("\r\n", $headers); if (

Re: [PHP] two small issues with php mail

2007-11-19 Thread Casey
end with "):" > > Php has enough goof ball stuff, with it's mail function. > > Your suggestion is kind but you are shooting over my head... > $headers = implode("\r\n", $headers); > > Implode > Hmmm = build array here but, the usage of "

Re: [PHP] Basic question - PHP usage of SVG files

2007-11-20 Thread Casey
t/unsub.php > > There is no SVG support in PHP, as far as I know. However, since SVG's are XML's, you could extract the contents of in both files and merge them together. -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adv. photo scripts

2007-11-24 Thread Casey
... > SwarmBuy.com - http://www.swarmbuy.com > > Leveraging the buying power of the masses! > ... > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php &

Re: [PHP] SimpleXML error

2007-11-26 Thread Casey
I'm not sure, but try casting $xml->title to string, like this: $title = (string) $xml->title; On Nov 26, 2007, at 1:44 PM, Skip Evans <[EMAIL PROTECTED]> wrote: Hey all, I have some XML files I need to parse and then display (they have HTML formatting in them as well). They contain the

Re: [PHP] Rewind foreach loop

2007-11-29 Thread Casey
$keys = array_values($array); for ($i=0; $i wrote: Jeffery Fernandez wrote: On Fri, 30 Nov 2007 02:01:47 pm Chris wrote: Jeffery Fernandez wrote: Hi all, Is it possible to rewind a foreach loop? eg: $numbers = array(0,1,2,3,4,5,6,7,8,9,10); foreach ($numbers as $index => $value) {

Re: [PHP] include "config.php" does not work anymore after PHP 5.2

2007-12-02 Thread Casey
es-not-work-anymore-after-PHP-5.2-tf4930800.html#a14113233 > Sent from the PHP - General mailing list archive at Nabble.com. > > -- > 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] checkbox unchecked

2007-12-02 Thread Casey
On Dec 2, 2007 1:08 PM, tedd <[EMAIL PROTECTED]> wrote: > At 12:36 PM -0600 12/2/07, Larry Garfield wrote: > >First of all, using "y" and "n" for boolean values (such as a checkbox) is > >very sloppy. "n" is boolean True. A boolean value should evaluate correctly > >in a boolean context. For tha

Re: [PHP] howto get .tar.gz content's filenames

2007-12-03 Thread Casey
Tell me if it works ;) On Dec 3, 2007, at 7:05 PM, Shelley Shyan <[EMAIL PROTECTED]> wrote: Hi all, It may not be a php question, but I want to get the filename lists that a .tar.gz file contains and give it to an array. How can I manage that? Thank you very much for your considerat

Re: [PHP] howto get .tar.gz content's filenames

2007-12-03 Thread Casey
On Dec 3, 2007, at 7:05 PM, Shelley Shyan <[EMAIL PROTECTED]> wrote: Hi all, It may not be a php question, but I want to get the filename lists that a .tar.gz file contains and give it to an array. How can I manage that? Thank you very much for your consideration. Regards, Shelley

Re: [PHP] howto get .tar.gz content's filenames

2007-12-03 Thread Casey
Sorry, should be: Note: typed on phone. That explains my empty message :) On Dec 3, 2007, at 7:05 PM, Shelley Shyan <[EMAIL PROTECTED]> wrote: Hi all, It may not be a php question, but I want to get the filename lists that a .tar.gz file contains and give it to an array. How can I man

Re: [PHP] Another form handling posting question

2007-12-05 Thread Casey
Hm. Tell me if this works: '; else echo ''; ?> Pass Fail On Dec 5, 2007 9:30 PM, Mike Smith <[EMAIL PROTECTED]> wrote: > I'm trying to > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] Another form handling posting question

2007-12-05 Thread Casey
; > > > > > > > >>tabindex="1"> > > Pass > > > > > > > > > > > > Fail > > > > > > >value="Reset" name="B2"> > > > > > >I want t

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 abou

Re: [PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Casey
visit: http://www.php.net/unsub.php > > Use this code: Submit ', print_r($_POST, true), ''; ?> This will print out the postdata, along with the "secrets" to how this works. -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Casey
On Dec 6, 2007 10:25 PM, Casey <[EMAIL PROTECTED]> wrote: > > On Dec 6, 2007 10:12 PM, Rob Gould <[EMAIL PROTECTED]> wrote: > > Let's say I have a PHP script which lists a series of objects for sale at a > > yard sale, each with a checkbox to the left of the na

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 att

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

2007-12-12 Thread Casey
me/rob/Sites/zphpsessions: > $ip is: 127.0.0.1: > ipx (session) is: 127.0.0.1: > This is the main page > > No data is being dumped into /home/rob/Sites/zphpsessions. The best I can > guess is permissions. If I change save_path to /tmp, no difference - still > 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] 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 sam

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

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

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

2007-12-16 Thread Casey
t's large > and readable. If there are other options than what I've explored here, > then I would be open to those too. > > Thank you for any advice. > > -- > Dave M G > > -- > 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] PHP translation needed

2007-12-17 Thread Casey
] = $temp; $t = ($S1[$i] + $S1[$j]) % 256; $K = $S1[$t]; $tOutput .= chr($tChar ^ $K); } return $tOutput; } I don't know what language this is. I'm curious -- what 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] a bit OT - Does XMLHTTP work with Digest Authentication?

2007-12-19 Thread Casey
using XMLHTTP with digest authentication > that can shed some light on this? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I've run into this problem before... Try searching Google with the five-digit sta

Re: [PHP] Sending SMS via PHP

2007-12-22 Thread Casey
. http://en.wikipedia.org/wiki/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] loadHTML()

2007-12-24 Thread Casey
That's because it's not proper XHTML: "" should be "". 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 ''. For ex

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: "" should be "". On Dec 24, 2007, at 6:03 PM, M5 <[EMAIL PROTECTED]> wrote: Just ge

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, N

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 expressi

Re: [PHP] XSS

2007-12-26 Thread Casey
e > > -- > madunix > Of course! -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
nisti > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I think it needs to be >= (greater 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
gt; SwarmBuy.com - http://www.swarmbuy.com > > Leveraging the buying power of the masses! > ... > > -- > > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > 30 seconds alternative: -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
> -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Hmmm... will this work? function get_string_a() { global $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] best way for PHP page

2008-01-02 Thread Casey
ata into $data variable } function bar() { global $data; //Output with HTML } $data = array(); foo(); bar(); I'm pretty sure 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
heers, > > tedd > > $value = trim($value, chr(32) . chr(160)); Cookie for me? :) -- -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
t; > -- > > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > OKAY. Let's clarify. Here's the string in HTML:        A        The browser then passes it to GET/POST. It decodes the entities, and then urlencodes them. Now it looks like this: %a0%20%a0%20%a0%20%a0A%a0%20%a0%20%a0%20%a0 Then PHP receives it, urldecodes the string, then stuffs it inside $_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] 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

[PHP] image* Functions' Memory Usage

2008-01-04 Thread Casey
mages, 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
Where have I screwed up? > > And, please no one liners that solve the entire mess and make me look > like a fool. > > Cheers, > > tedd > I'm not sure if you mean FLV's or SWF's. If you mean FLV's loaded from SWF's, the browser can cache the FLV, and t

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]>, php-general@

Re: [PHP] which window?

2008-01-05 Thread Casey
__ > Use fowl language with Chicktionary. Click here to start playing! > http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig > -- > 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] 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] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Casey
Thanks, Arlen. I've run 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] 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
-|- Dec:MDAwMzEwMDI0NDA0MTMyOQ== -|- Nope > > Wrong: 5/5 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > It returns the correct value. If you look at the last example, and run base64_decode 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] Re: Bad company This Weekend!

2008-01-18 Thread Casey
o along and punch one of the promoters :D > > 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 ou

Re: [PHP] Expand variable in comparison

2008-01-19 Thread Casey
eral Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > Some people have a "gift" link here. > Know what I want? > I want you to buy a CD from some indie artist. > http://cdbaby.com/from/lynch > Yeah, I get a buck. So? > > I *think* you want: return $this->var == $$preDefinedStringToTestWith; http://us.php.net/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
d asked about embedding   in > the name > attribute of a input tag of type submit. > everybody was going on about how to handle it on the server side 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

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 (move_uploaded_file($

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

2008-01-26 Thread Casey
i need to know what the tmp-filename is. > > or do you think 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] How can I do this -- method chaining

2008-01-30 Thread Casey
y keep the > > object around in a variable. > > I thought that's what I said. maybe less clearly :-) > > > > I don't think constructors return the object: bar = $bar; } } $x = new foo("..."); var_dump($x->__construct("")); # NULL ?> -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 load

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 rea

Re: [PHP] Jacco van Hooren

2008-02-03 Thread Casey
eport > from Dan:) > > Jim > > -- > PHP General Mailing 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
> > > /Per Jessen, Zürich > > > -- > PHP General Mailing List (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

Re: [PHP] about preg_replace, please help !

2008-02-03 Thread Casey
On Feb 3, 2008, at 5:00 PM, "LKSunny" <[EMAIL PROTECTED]> wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php list(, $result) = explode("\r\n\r\n", $string, 2); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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, 2

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: debugging, i got $rowA[0] = 54, but i want $rowB[$rowA

Re: [PHP] PHP Source code protection

2008-02-07 Thread Casey
- > no installation, no maintenance, new features automatic and free > Why not just translate it to C#? -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Casey
bytes in the header portion of a zip... > > So take an un-protected zip, and password-protect it, and then do a > "diff" and see what changed. > > Then take that "diff" output, and just paste it in as the front of the > other zip files... > > Might work. > &

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 troubl

Re: [PHP] Problem with quotes

2008-02-21 Thread Casey
y => $val){ > echo $host . "" . " "; > (...)" > > But this way, all it echoes is the $host variable. > > What am I missing here ? > > Any help would be appreciated. > > Warm Regards, > Mário Gamito > Not the problem, but: echo "" . " "; can be condensed to: echo " "; -- -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
ine work?: foreach($_POST as $curPostKey => $curPostVal) { $_POST[$curPostKey] = $this->CleanInput($curPostVal); } 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,

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] Are these Truthful Proof about PHP ??

2008-02-27 Thread Casey
HP to ASP.NET". It describes the differences between the two. -- -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
never knew that. Is there some kind of free online test to determine my [self-taught] PHP knowledge? :D -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guidance

2008-02-27 Thread Casey
TR/css3-box/] > > 3 Make a project website in plain XHTML with CSS > > 4 ECMAScript (javascript) > Make your static website do a couple of nice things with some javascript. > > you can't expect 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 tags, so learn XHTML! Also, if you're learning JavaScript, please learn W3C DOM, and not the document.write(Ugliness). :) -- -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-02-27 Thread Casey
; > A: Because 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('א'); $test=preg_replace('/\b([^\s]+)' . $a . '\b.*/U', '$1A', $test); Will this work? -- -Casey

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Casey
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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making sure an include file works

2008-02-28 Thread Casey
provides an extremely flexible architecture for | > | creating re-usable components quickly and easily. | > `----' > > > 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
elley > ...What is wrong with strrev()? Am I missing something important here? 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
ually > >>>> do. > >>>> > >>>> Cheers, > >>>> Rob. > >>> scratch the former! > >>> > >>> FIXED>> > >>> > >>> echo !(${~${''}='sillyFunc'}=${''

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

Re: [PHP] Making an interactive RGB color picker

2008-03-04 Thread Casey
anyone understands what I am after,and could help, that would be awesome! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > HTML PHP color.php list($coords) = array_keys($_GET); $coords = explode(',', $coords); // E

Re: [PHP] DOM - Question about \0

2008-03-16 Thread Casey
-- > Free pop3 email with a spam filter. > http://www.bluebottle.com/tag/5 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Maybe the entity "�" 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
d/or XML files. Your thoughts? -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-03-17 Thread Casey
eliable way of > detcting and removing \u chars from strings? > > regards, > > Mikey > > -- How about: $str = str_replace("\0", '', $str); -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ob_start: Capturing STDOUT and STDERR

2008-03-23 Thread Casey
t/) > 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date math

2008-03-23 Thread Casey
> $date2 = strtotime($date2); (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 G

Re: [PHP] question about linux editor

2008-03-24 Thread Casey
er details > i would 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

Re: [PHP] Date math

2008-03-25 Thread Casey
words 1 days worth of seconds) $factor = 86400; $difference = (($date1 - $date2) / $factor); As Casey suggested, it is a timestamp issue. Checkout my test script. http://www.cmsws.com/examples/php/testscripts/[EMAIL PROTECTED]/0001.php #86400 is 60 seconds x 60 minutes x 24 hours (in othe

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 t

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

Re: [PHP] convert a string to integer

2008-03-28 Thread Casey
efore into integer thanks > ctype_digit((int)mystring), but it does not work. > > so how can i solve this issue ? > > thx > > -- > Alain > > Windows XP SP2 > PostgreSQL 8.2.4 / MS SQL server 2005 > Apache 2.2.4 >

Re: [PHP] convert associative array to ordinary array

2008-03-28 Thread Casey
e? > > > > what i mean is instead of $arr['fruit'] i want to call > > it by its position in the array $arr[3] > > Did you try? > > -- > > Forensic Services, Senior Unix Engineer > 1+ (570-) 362-0283 > > > $numbered_array = arr

  1   2   3   >