RE: Re: [PHP] exec() Error

2008-06-26 Thread Per Jessen
Boyd, Todd M. wrote: Well, http://www.mysite.com/calculate.php; is not an executable. Try this instead: exec(php path/calculate.php); I still don't think this is how exec() should be used when executing remote PHP scripts via HTTP, since the web server is not going to give you the

Re: [PHP] PHP4 vs PHP5 Memcache compatibility issue

2008-06-26 Thread Richard Heyes
Bob Fisher wrote: I am running a hybrid environment. Box A: PHP 4.3.9 Box B: PHP 5.1.6 Box C: Memcached 1.2.2 When I set a key in memcache(Box C) from Box A, I am unable to read it from Box B and vice versa. I did not see any such issues mentioned in the PHP documentation. Has anyone seen

Re: [PHP] escape character in query string

2008-06-26 Thread Thiago Melo de Paula
Hello Joaquin, use the urlencode function to escape the special characters. After, use urldecode to get the string back to normal. Regards, Thiago Melo de Paula On Sun, Jun 22, 2008 at 11:34 PM, joaquinbordado [EMAIL PROTECTED] wrote: would someone happen to know the escape character for

[PHP] a download limitation script that defies logic!

2008-06-26 Thread szalinski
I thought I'd take the time to make a download limitation script, but even though the idea of this script is 'simple', it 'simply' refuses to work entirely properly. Basically I setup a real quick timelimit, $time_limit should mean 'within the last 20 seconds'. What I am looking for is the

RE: Re: [PHP] exec() Error

2008-06-26 Thread Wei, Alice J.
Hi, Todd: It looks like I have some other errors in my Perl code, and I got it fixed, switched the permission to 755, and made attempts to call it using cURL through my working PHP script. Here is the code: // create a new cURL resource $ch = curl_init(); // set URL and other

RE: [PHP] Monitor a WP website

2008-06-26 Thread tedd
At 4:28 PM -0500 6/24/08, Boyd, Todd M. wrote: -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 4:22 PM To: php php Subject: Re: [PHP] Monitor a WP website ---8--- big snip It's not rocket science -- but occasionally my solutions leave

RE: RE: Re: [PHP] exec() Error

2008-06-26 Thread Boyd, Todd M.
-Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2008 1:11 AM To: php-general@lists.php.net Subject: RE: Re: [PHP] exec() Error Boyd, Todd M. wrote: Well, http://www.mysite.com/calculate.php; is not an executable. Try this instead:

RE: RE: Re: [PHP] exec() Error

2008-06-26 Thread Per Jessen
Boyd, Todd M. wrote: PHP or other programming languages? For example, C, Python, or Perl. And that works just fine using exec(). Well... if she was trying to execute *LOCAL* PHP code from within a PHP script that was already running (which she was not), why would you suggest that she use

Re: [PHP] Monitor a WP website

2008-06-26 Thread Daniel Brown
On Thu, Jun 26, 2008 at 9:27 AM, tedd [EMAIL PROTECTED] wrote: You see, I'm assembling a list of my wit for posterity and hope to pick one out for my tombstone. Whereas mine will say something like /cruelWorld or /Dan or something of the like. Perhaps even: ?php function

Re: [PHP] a download limitation script that defies logic!

2008-06-26 Thread Daniel Brown
On Thu, Jun 26, 2008 at 8:38 AM, szalinski [EMAIL PROTECTED] wrote: I thought I'd take the time to make a download limitation script, but even though the idea of this script is 'simple', it 'simply' refuses to work entirely properly. [snip!] You do realize that the code in this block

Re: [PHP] ImageTTFText leaves Black in letters

2008-06-26 Thread tedd
At 5:27 PM -0400 6/24/08, Stephen Pynenburg wrote: Hi all, I'm using imagettftext, and my script works perfectly, except that on these TTF fonts that I'm using, in any letter with a hole in the middle (letters like a, R, O) the hole is coloured black, not transparent. Is this a PHP thing, or do

[PHP] Inspiration for a Tombstone.

2008-06-26 Thread tedd
Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function dan($dateOfDeath) { return Daniel P. Brown: 01-01-1970 - .$dateOfDeath; } die(dan('00-00-')); ? What

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Daniel Brown
On Thu, Jun 26, 2008 at 10:31 AM, tedd [EMAIL PROTECTED] wrote: What would you like on your Tombstone? (-- that's actually a trademarked saying) What do you want on your Tombstone? Pepperoni and sausage! -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo.

Re: [PHP] a download limitation script that defies logic!

2008-06-26 Thread szalinski
Daniel Brown-5 wrote: On Thu, Jun 26, 2008 at 8:38 AM, szalinski [EMAIL PROTECTED] wrote: I thought I'd take the time to make a download limitation script, but even though the idea of this script is 'simple', it 'simply' refuses to work entirely properly. [snip!] You do

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Dan Shirah
?php if ($you_can_read_this = Yes) { echo STOP STANDING ON ME!; } ? On 6/26/08, tedd [EMAIL PROTECTED] wrote: Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function

[PHP] Re: Inspiration for a Tombstone.

2008-06-26 Thread Colin Guthrie
Dan Shirah wrote: ?php if ($you_can_read_this = Yes) { echo STOP STANDING ON ME!; } ? I would put: He put his constants first in if() statements until the end of his days. Or He always preferred syntax errors to annoying logical bugs.. :p Col. -- PHP General Mailing List

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Aschwin Wesselius
tedd wrote: Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function dan($dateOfDeath) { return Daniel P. Brown: 01-01-1970 - .$dateOfDeath; }

RE: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Boyd, Todd M.
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2008 9:31 AM To: php php Subject: [PHP] Inspiration for a Tombstone. Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Daniel Brown
On Thu, Jun 26, 2008 at 10:37 AM, Dan Shirah [EMAIL PROTECTED] wrote: ?php if ($you_can_read_this = Yes) { echo STOP STANDING ON ME!; } ? That will always evaluate to TRUE because you're setting the variable in your if() condition. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Eric Butera
On Thu, Jun 26, 2008 at 10:31 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function dan($dateOfDeath) { return Daniel P. Brown:

RE: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Jay Blanchard
[snip] ?php if ($you_can_read_this = Yes) { echo STOP STANDING ON ME!; } ? [/snip] ?php switch($status_jay){ case 'alive': stream_set_timeout ($jay , '157680'); break; case 'vegetable': pull_plug(TRUE); break; case 'dead': oven_set_hot(TRUE);

[PHP] iconv() problem

2008-06-26 Thread Stefano Noffke
Greetings, I have a problem with iconv(), and I need help solving it. Here is the background: I have a Web page with a Form that saves data to a MySQL database. I need to retrieve the data from the database and create a PDF document with FPDF. The Web Page, the database, and the browser

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Christoph Boget
Always on the edge of greatness Tripped on his way to the edge of greatness thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] php upload questions --move_uploaded_file

2008-06-26 Thread Daniel Brown
Hai, I'm forwarding this email over to the PHP-General list, since it's not database-related. If you're not already subscribed there, please subscribe and I'm sure you'll get some responses. ORIGINAL MESSAGE FOLLOWS: On Thu, Jun 26, 2008 at 6:21 AM, Liu, Hai Tao (Taylor) [EMAIL

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Dan Shirah
?php include 'connection.php'; $inquire = SELECT COUNT(*) FROM heartbeat WHERE user_name = 'Dan'; $count = ifx_query ($inquire, $connect_id); $rowcount = ifx_fetch_row($count); $pulse = $rowcount['total']; if ($heartbeat 0) { echo _/\^___/\^/\^___; } else { echo ; } ?

RE: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Edward Kay
What would you like on your Tombstone? (-- that's actually a trademarked saying) I've always liked Spike Milligan's: I told you I was ill :) http://news.bbc.co.uk/1/hi/england/southern_counties/3742443.stm Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Daniel Brown
2008/6/26 Dan Shirah [EMAIL PROTECTED]: ?php include 'connection.php'; $inquire = SELECT COUNT(*) FROM heartbeat WHERE user_name = 'Dan'; $count = ifx_query ($inquire, $connect_id); $rowcount = ifx_fetch_row($count); $pulse = $rowcount['total']; if ($heartbeat 0) { echo

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Dan Shirah
if ($user_name = Dan Brown) { echo GOING DOWN?!; } else { echo Welcome to Heaven; } On 6/26/08, Daniel Brown [EMAIL PROTECTED] wrote: 2008/6/26 Dan Shirah [EMAIL PROTECTED]: ?php include 'connection.php'; $inquire = SELECT COUNT(*) FROM heartbeat WHERE user_name = 'Dan'; $count =

[PHP] Re: iconv() problem

2008-06-26 Thread Stefano Noffke
Nevermind... I made a mistake. I was actually parsing the string two times; therefore, the source string was not encoded as ISO-8859 anymore the second time. It is working fine now... Stefano Stefano Noffke ha scritto: Greetings, I have a problem with iconv(), and I need help solving it.

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Christoph Boget
if ($user_name = Dan Brown) { echo GOING DOWN?!; } else { echo Welcome to Heaven; } So I guess that means we're all on the express elevator down. Looks like it'll get awfully full... :p thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Daniel Brown
On Thu, Jun 26, 2008 at 11:29 AM, Christoph Boget [EMAIL PROTECTED] wrote: if ($user_name = Dan Brown) { echo GOING DOWN?!; } else { echo Welcome to Heaven; } So I guess that means we're all on the express elevator down. Looks like it'll get awfully full... :p Yeah, he keeps

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Dan Shirah
if ($user_name == Dan S) { echo Quit while you're ahead; } exit;

RE: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread tedd
At 9:49 AM -0500 6/26/08, Boyd, Todd M. wrote: I want something like Download complete I would prefer Upload complete. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Bastien Koert
On Thu, Jun 26, 2008 at 10:51 AM, Eric Butera [EMAIL PROTECTED] wrote: [snip] echo Fatal error: Maximum execution time of {$duration} seconds exceeded; [/snip] That's awesome how about ?php die('All Done'); ? -- Bastien Cat, the other other white meat

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread tedd
Or unlink('tedd'); Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Thiago H. Pojda
trigger_error('B-bye'); On Thu, Jun 26, 2008 at 12:45 PM, tedd [EMAIL PROTECTED] wrote: Or unlink('tedd'); Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Boyd, Todd M.
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2008 10:45 AM To: php php Subject: Re: [PHP] Inspiration for a Tombstone. Or unlink('tedd'); I think that would've already been done, eh? ;) Todd Boyd Web Programmer -- PHP General Mailing List

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Robert Cummings
On Thu, 2008-06-26 at 11:01 -0400, Christoph Boget wrote: Always on the edge of greatness Tripped on his way to the edge of greatness I'm leaching into the water supply. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Dotan Cohen
2008/6/26 tedd [EMAIL PROTECTED]: Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function dan($dateOfDeath) { return Daniel P. Brown: 01-01-1970 - .$dateOfDeath;

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Robert Cummings
On Thu, 2008-06-26 at 20:06 +0300, Dotan Cohen wrote: 2008/6/26 tedd [EMAIL PROTECTED]: Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function dan($dateOfDeath)

RE: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Robert Cummings
On Thu, 2008-06-26 at 11:33 -0500, Boyd, Todd M. wrote: -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2008 10:45 AM To: php php Subject: Re: [PHP] Inspiration for a Tombstone. Or unlink('tedd'); I think that would've already been

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread David Giragosian
My favorite vi command: e! Damn it. e!

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Dotan Cohen
2008/6/26 Robert Cummings [EMAIL PROTECTED]: * What's wrong with a simple Heptadecagon? It'll look like a circle on your tombstone... why not use a star instead? :B I wasn't sure that anyone else would be familiar with the idea. Nice! Dotan Cohen http://what-is-what.com

Re: Re: [PHP] exec() Error

2008-06-26 Thread Jason Murray
Alice, If you are already set 755 on the CGI, it looks like it might be a webserver configuration issue. If you are using Apache (I'm assuming you are) you might want to take a look at http://httpd.apache.org/docs/2.0/howto/cgi.html#configuringapachetopermitcgi for some hints on how to make

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Jason Murray
I'm thinking: ?php header(HTTP/1.1 410 Gone); die(); ? Regards, Jason On Thu, Jun 26, 2008 at 1:54 PM, David Giragosian [EMAIL PROTECTED] wrote: My favorite vi command: e! Damn it. e! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Robert Cummings
On Thu, 2008-06-26 at 14:54 -0400, Jason Murray wrote: I'm thinking: ?php header(HTTP/1.1 410 Gone); die(); ? What about a 404? :) ?php header( 'HTTP/1.1 404 Body Not Found' ); ? Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Jason Murray
Body not found? Who do you think I am? Jesus? On Thu, Jun 26, 2008 at 3:01 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2008-06-26 at 14:54 -0400, Jason Murray wrote: I'm thinking: ?php header(HTTP/1.1 410 Gone); die(); ? What about a 404? :) ?php header( 'HTTP/1.1 404

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Daniel Brown
On Thu, Jun 26, 2008 at 3:12 PM, Jason Murray [EMAIL PROTECTED] wrote: Body not found? Who do you think I am? Jesus? Oh, Jason Christ -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and

Re: [PHP] prepared statement

2008-06-26 Thread ctx2002
thanks for answering my question. I have checked PHP PDO doc. PDO:: query() can send a query to server. my question is, does PDO:: query() generates prepared statement automatically? or I have to explicitly call PDO:: prepare() to use prepared statement? for example: PDO:: query(select name

[PHP] lester

2008-06-26 Thread inf200528
I need to know the duration of a movie, I found a formula that did not use any role php but I lost.� I accept all kinds of suggestions Lester..Univ de Cienfuegos..Informatica 3 A�o (*_*)Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las mismas cosas(*_*)

Re: [PHP] lester

2008-06-26 Thread Daniel Brown
On Thu, Jun 26, 2008 at 5:37 PM, [EMAIL PROTECTED] wrote: I need to know the duration of a movie, I found a formula that did not use any role php but I lost. I accept all kinds of suggestions Yes. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at

Re: [PHP] prepared statement

2008-06-26 Thread Chris
ctx2002 wrote: thanks for answering my question. I have checked PHP PDO doc. PDO:: query() can send a query to server. my question is, does PDO:: query() generates prepared statement automatically? or I have to explicitly call PDO:: prepare() to use prepared statement? You have to use

Re: [PHP] lester

2008-06-26 Thread Dan Joseph
On Thu, Jun 26, 2008 at 5:37 PM, [EMAIL PROTECTED] wrote: I need to know the duration of a movie, I found a formula that did not use any role php but I lost. I accept all kinds of suggestions Lester..Univ de Cienfuegos..Informatica 3 Año (*_*)Todos somos muy ignorantes. Lo que ocurre

Re: [PHP] lester

2008-06-26 Thread tedd
At 5:37 PM -0400 6/26/08, [EMAIL PROTECTED] wrote: I need to know the duration of a movie, I accept all kinds of suggestions Okay, it depends on how long the movie is. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

[PHP] de lester

2008-06-26 Thread inf200528
� I am working with videos and I need to Know how I can obtain the duration of the videos �I had a formula that did not need any�function of�php, but i lost de page,� please i need any help with this. Sorry for my english, i am from Cuba. Lester..Univ de Cienfuegos..Informatica 3 A�o

Re: [PHP] de lester

2008-06-26 Thread Jim Lucas
[EMAIL PROTECTED] wrote: � I am working with videos and I need to Know how I can obtain the duration of the videos �I had a formula that did not need any�function of�php, but i lost de page,� please i need any help with this. Sorry for my english, i am from Cuba. Lester..Univ de