Re: [PHP] de lester

2008-06-27 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

Re: [PHP] de lester

2008-06-27 Thread Frank Arensmeier
27 jun 2008 kl. 09.05 skrev [EMAIL PROTECTED]: SORRY, IN THE LAST EMAIL I DONT SAY WHAT TYPE OF VIDEO I WAS WORKING, I AM WORKING WITH VIDEO .MOV THANKS. 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

[PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread Colin Guthrie
Dan Shirah wrote: if ($user_name == Dan S) { echo Quit while you're ahead; } exit; As I very humorously hinted at in a earlier mail on this thread, it is a very, very good idea to get into the habit of putting constants *first* in if/while/etc statements. if (Dan S = $user_name)

Re: [PHP] de lester

2008-06-27 Thread Jason Norwood-Young
On Fri, 2008-06-27 at 03:05 -0400, [EMAIL PROTECTED] wrote: SORRY, IN THE LAST EMAIL I DONT SAY WHAT TYPE OF VIDEO I WAS WORKING, I AM WORKING WITH VIDEO .MOV THANKS. 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

[PHP] FW: [SPAM] Re: [PHP] Inspiration for a Tombstone.

2008-06-27 Thread Chris Scott
410 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fwrite() Append Files

2008-06-27 Thread Wei, Alice J.
Hi, I wonder if anyone on the list could tell me how to append the files as I am writing in them. I have a file that has no more than five characters per line, and I would like to keep its spacing between the lines. Right now I have the set up so that it could write in the first line, but

FW: [PHP] fwrite() Append Files

2008-06-27 Thread Chris Scott
Please post the code, I'm not clear on the problem. -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 12:02 PM To: php-general@lists.php.net Subject: [PHP] fwrite() Append Files Hi, I wonder if anyone on the list could tell me how to append

Re: [PHP] Inspiration for a Tombstone.

2008-06-27 Thread Brice
On Thu, Jun 26, 2008 at 4:31 PM, 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] Re: Inspiration for a Tombstone.

2008-06-27 Thread Dotan Cohen
2008/6/27 Colin Guthrie [EMAIL PROTECTED]: As I very humorously hinted at in a earlier mail on this thread, it is a very, very good idea to get into the habit of putting constants *first* in if/while/etc statements. if (Dan S = $user_name) PHP/C/C++ etc. Bombs with a syntax error. That is

Re: FW: [PHP] fwrite() Append Files

2008-06-27 Thread Stijn Verholen
Hey Alice, Are you sure you can do this with vanilla flavor PHP ? Your professor could be mistaking on this particular assignment. Maybe some kind of webservice could do the trick. ASP.net is really good at handling file I/O. Kind regards, Stijn Chris Scott wrote: Please post the code,

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Wolf
Wei, Alice J. wrote: Hi, I wonder if anyone on the list could tell me how to append the files as I am writing in them. I have a file that has no more than five characters per line, and I would like to keep its spacing between the lines. Right now I have the set up so that it could write in

Re: [PHP] Inspiration for a Tombstone.

2008-06-27 Thread Robin Vickery
2008/6/27 Brice [EMAIL PROTECTED]: On Thu, Jun 26, 2008 at 4:31 PM, 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)

Re: [PHP] Inspiration for a Tombstone.

2008-06-27 Thread Aschwin Wesselius
Robin Vickery wrote: 2008/6/27 Brice [EMAIL PROTECTED]: A classical : ?php echo So long and thanks for all the PHP; die(); ? echo PHP_EOL; If even your kids don't know your name, since you're always busy hacking away: Rest in peace posix_getppid(); Johnny jr. Susie

[PHP] Help with login

2008-06-27 Thread Byron
Hey, I think this should be working but it doesn't seem to be. ?php /* Admin Login Page TS Achilles Website Created by Byron Glover */ require(config.php); require(functions.php); // Check for previous authentication if (isset($_COOKIE[auth]) isset($_GET[page])) {

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Per Jessen
Wei, Alice J. wrote: Hi, I wonder if anyone on the list could tell me how to append the files as I am writing in them. I have a file that has no more than five characters per line, and I would like to keep its spacing between the lines. Right now I have the set up so that it could

Re: [PHP] Help with login

2008-06-27 Thread Dan Shirah
Hey, I think this should be working but it doesn't seem to be. $_GET[page] $_SERVER['PHP_SELF'] What is the error message you are getting? And, why are you using different quotes throughout all of your script? I believe you should use single quotes for all of your server generated

[PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread tedd
At 11:01 AM +0100 6/27/08, Colin Guthrie wrote: if ($user_name = Dan S) Works silently and looks right at first glance. I forced myself to write things that way round a good number of years ago and it has served me well and caught a few potential mishaps. Col. Really? I do it this way:

[PHP] unset and circular references

2008-06-27 Thread Abu Warez
Hi, I'm using php 5.2.1 on an Ubuntu machine. I have the following class diagram (observer pattern): +-+ +-+ +-+ | class A |#-| class B | -| interface C | | | +-+ | | |

RE: [PHP] fwrite() Append Files

2008-06-27 Thread Wei, Alice J.
Hi, This is my current code: $lines = file(http://www.mysite.com/hello.txt;); $file=http://www.mysite.com/hello.txt;; $ourFileName = hello.txt; $ourFileHandle = fopen($ourFileName, 'wb') or die(can't open file); fclose($ourFileHandle);

Re: [PHP] de lester

2008-06-27 Thread tedd
At 9:43 AM +0200 6/27/08, Frank Arensmeier wrote: Sometimes I feel that some members of this list tend to think that it is funny when somebody is not able to express him-/herself to 100% when English is not the native language. I think it is wrong to make fun of something like that. Not

RE: [PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread Jay Blanchard
[snip] Really? I do it this way: if ($user_name == Dan S) That not only looks right at first glance, but it actually works. :-) [/snip] This works better though; if(Dan S == $user_name) ... if you drop one of the comparison operators in your haste to type then an error gets thrown and you

Re: [PHP] Help with login

2008-06-27 Thread tedd
At 8:37 AM -0400 6/27/08, Dan Shirah wrote: Hey, I think this should be working but it doesn't seem to be. $_GET[page] $_SERVER['PHP_SELF'] What is the error message you are getting? And, why are you using different quotes throughout all of your script? I believe you should use

RE: [PHP] fwrite() Append Files

2008-06-27 Thread Per Jessen
Wei, Alice J. wrote: Do you mean to edit $ourFileHandle to fopen($ourFileName, 'wba')? I think fopen($ourFileName, 'a') will do what you want. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Daniel Brown
On Fri, Jun 27, 2008 at 7:01 AM, Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, I wonder if anyone on the list could tell me how to append the files as I am writing in them. I have a file that has no more than five characters per line, and I would like to keep its spacing between the lines.

RE: [PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread tedd
At 8:30 AM -0500 6/27/08, Jay Blanchard wrote: [snip] Really? I do it this way: if ($user_name == Dan S) That not only looks right at first glance, but it actually works. :-) [/snip] This works better though; if(Dan S == $user_name) ... if you drop one of the comparison operators in your

[PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files

2008-06-27 Thread Chris Scott
I don't think you can open files for writing over http, you get an error: failed to open stream: HTTP wrapper does not support writeable connections. -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:39 PM To: php-general@lists.php.net Subject:

RE: [PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread Jay Blanchard
[snip] And being dyslexic, I knew the 'Dan S' should have come first, but didn't immediately recognize it as I was rushing to point out a double equal-sign boo-boo made by Col. [/snip] Had Col used the method we're speaking of here the error would have been thrown and he would have found the

Re: [PHP] unset and circular references

2008-06-27 Thread Thijs Lensselink
Quoting Abu Warez [EMAIL PROTECTED]: Hi, I'm using php 5.2.1 on an Ubuntu machine. I have the following class diagram (observer pattern): +-+ +-+ +-+ | class A |#-| class B | -| interface C | | |

Re: [PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread Daniel Brown
On Fri, Jun 27, 2008 at 6:01 AM, Colin Guthrie [EMAIL PROTECTED] wrote: As I very humorously hinted at in a earlier mail on this thread, it is a very, very good idea to get into the habit of putting constants *first* in if/while/etc statements. if (Dan S = $user_name) PHP/C/C++ etc. Bombs

[PHP] segfault help

2008-06-27 Thread Tim Rupp
Hi list, I'm getting a segfault when I run (what I assume) is a very simple script. I'm not sure if it's a php bug or a bug in the library I'm using (MDB2) with PHP 5.2.5 via the cli. Everything seems to go fine until it's time for the script to end. That's when it receives the seg fault. I have

RE: Re: [PHP] exec() Error

2008-06-27 Thread Boyd, Todd M.
-Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2008 7:50 AM To: Boyd, Todd M.; php-general@lists.php.net Subject: RE: Re: [PHP] exec() Error Hi, Todd: It looks like I have some other errors in my Perl code, and I got it fixed,

RE: [PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread Boyd, Todd M.
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 8:50 AM To: tedd; php-general@lists.php.net Subject: RE: [PHP] Re: Inspiration for a Tombstone. [snip] And being dyslexic, I knew the 'Dan S' should have come first, but didn't

RE: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files

2008-06-27 Thread Boyd, Todd M.
-Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 8:48 AM To: php-general@lists.php.net Subject: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low I don't think you can open files for writing over http, you get an error:

[PHP] FW: [SPAM] RE: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files

2008-06-27 Thread Chris Scott
-Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 8:48 AM To: php-general@lists.php.net Subject: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low I don't think you can open files for writing over http, you get an error:

Re: [PHP] segfault help

2008-06-27 Thread Daniel Brown
On Fri, Jun 27, 2008 at 10:30 AM, Tim Rupp [EMAIL PROTECTED] wrote: Hi list, I'm getting a segfault when I run (what I assume) is a very simple script. I'm not sure if it's a php bug or a bug in the library I'm using (MDB2) with PHP 5.2.5 via the cli. Everything seems to go fine until it's

Re: [PHP] unset and circular references

2008-06-27 Thread Abu Warez
--- On Fri, 6/27/08, Thijs Lensselink [EMAIL PROTECTED] wrote: From: Thijs Lensselink [EMAIL PROTECTED] Subject: Re: [PHP] unset and circular references To: php-general@lists.php.net Date: Friday, June 27, 2008, 5:21 PM Quoting Abu Warez [EMAIL PROTECTED]: Hi, I'm using php 5.2.1

Re: [PHP] segfault help

2008-06-27 Thread Tim Rupp
On Fri, Jun 27, 2008 at 10:14 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Fri, Jun 27, 2008 at 10:30 AM, Tim Rupp [EMAIL PROTECTED] wrote: Hi list, I'm getting a segfault when I run (what I assume) is a very simple script. I'm not sure if it's a php bug or a bug in the library I'm using

Re: [PHP] unset and circular references

2008-06-27 Thread Abu Warez
--- On Fri, 6/27/08, Thijs Lensselink [EMAIL PROTECTED] wrote: From: Thijs Lensselink [EMAIL PROTECTED] Subject: Re: [PHP] unset and circular references To: php-general@lists.php.net Date: Friday, June 27, 2008, 5:21 PM Quoting Abu Warez [EMAIL PROTECTED]: I think this happens because

Re: [PHP] segfault help

2008-06-27 Thread Daniel Brown
On Fri, Jun 27, 2008 at 11:57 AM, Tim Rupp [EMAIL PROTECTED] wrote: ./configure --enable-force-cgi-redirect --enable-debug --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-gd --enable-gd-native-ttf --without-gdbm --with-gettext --with-ncurses

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Jim Lucas
Wei, Alice J. wrote: Hi, This is my current code: $lines = file(http://www.mysite.com/hello.txt;); $file=http://www.mysite.com/hello.txt;; You are referring to the file from the website point of view. You must access it from the filesystem point of view $file =

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Jim Lucas
Jim Lucas wrote: Wei, Alice J. wrote: Hi, This is my current code: $lines = file(http://www.mysite.com/hello.txt;); $file=http://www.mysite.com/hello.txt;; You are referring to the file from the website point of view. You must access it from the filesystem point of view $file =

[PHP] how to load uneven XML file into an array

2008-06-27 Thread John A DAVIS
I need an array filled with an XML file made from the CSV example below. bactisample row has 14 columns bactiresult row has 11 columns CSV is taken and run through an XML creator (we have no control over this piece). bactisample,20802016AA,OR4195079,DIST-A,A,STATE,OR100033,Kitchen

Re: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files

2008-06-27 Thread Jim Lucas
Boyd, Todd M. wrote: -Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 8:48 AM To: php-general@lists.php.net Subject: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low I don't think you can open files for writing over http, you get

Re: [PHP] how to load uneven XML file into an array

2008-06-27 Thread Dan Joseph
On Fri, Jun 27, 2008 at 12:34 PM, John A DAVIS [EMAIL PROTECTED] wrote: I need an array filled with an XML file made from the CSV example below. bactisample row has 14 columns bactiresult row has 11 columns CSV is taken and run through an XML creator (we have no control over this piece).

Re: [PHP] segfault help

2008-06-27 Thread Tim Rupp
On Fri, Jun 27, 2008 at 11:03 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Fri, Jun 27, 2008 at 11:57 AM, Tim Rupp [EMAIL PROTECTED] wrote: ./configure --enable-force-cgi-redirect --enable-debug --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-gd

Re: [PHP] unset and circular references

2008-06-27 Thread T Lensselink
Abu Warez wrote: --- On Fri, 6/27/08, Thijs Lensselink [EMAIL PROTECTED] wrote: From: Thijs Lensselink [EMAIL PROTECTED] Subject: Re: [PHP] unset and circular references To: php-general@lists.php.net Date: Friday, June 27, 2008, 5:21 PM Quoting Abu Warez [EMAIL PROTECTED]: I

Re: [PHP] segfault help

2008-06-27 Thread Daniel Brown
On Fri, Jun 27, 2008 at 1:00 PM, Tim Rupp [EMAIL PROTECTED] wrote: --enable-soap --enable-sigchild --enable-pcntl Drop out '--enable-sigchild', too, unless you're using Oracle. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no

RE: [PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread tedd
At 9:52 AM -0500 6/27/08, Boyd, Todd M. wrote: I think you guys are missing something: he wrote it with single equals signs on purpose. He was demonstrating how the one with the constant to the right of the assignment operator is a valid statement... and that putting the constant first will aid

Re: [PHP] Help with login

2008-06-27 Thread Richard Heyes
if (isset($_COOKIE[auth]) !isset($_GET[page])) { include($GLOBALS['admin_index']); die(); } Your script is awfully insecure. $_COOKIE is user supplied, so in if I hand craft a request, I could just send an auth cookie which is set to 1. Relying on people not knowing is not

[PHP] Re: Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-27 Thread Michelle Konzack
Am 2008-06-24 15:10:49, schrieb Per Jessen: Dotan Cohen wrote: What is the English/French name of the French non-Frenchmen reserve army? They are very well respected. The French Foreign Legion?? I wouldn't call that a reserve army. :-) We are always the first ones... Worldwide! We can

[PHP] Re: (*OT) What we are going to do about those OT's?

2008-06-27 Thread Michelle Konzack
Hi Tedd, Am 2008-06-23 12:29:17, schrieb tedd: Interesting concept. In other words, have a domain/subscription where people can register and then record all the places where they would like notified in case of their death. It could hold a bunch of different things that you would want

[PHP] Re: Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-27 Thread Michelle Konzack
Am 2008-06-23 21:17:13, schrieb Dotan Cohen: 2008/6/22 Michelle Konzack [EMAIL PROTECTED]: I know at least on Jew, which was 1 1/2 years in the french army for his service national and then 5 years in Israel. That was very likely not compulsory service. Especially if he served years.

[PHP] Re: Fwd: How to make a Auto View and a Download Link for PDF?

2008-06-27 Thread Michelle Konzack
Hi Nitsan, Am 2008-06-22 22:09:38, schrieb Nitsan Bin-Nun: Oops :-) -- Forwarded message -- From: Nitsan Bin-Nun [EMAIL PROTECTED] Date: 21 Jun 2008 19:23 Subject: Re: [PHP] How to make a Auto View and a Download Link for PDF? To: Michelle Konzack [EMAIL PROTECTED] I am

Re: [PHP] Help with login

2008-06-27 Thread Daniel Brown
On Fri, Jun 27, 2008 at 1:36 PM, Richard Heyes [EMAIL PROTECTED] wrote: if (isset($_COOKIE[auth]) !isset($_GET[page])) { include($GLOBALS['admin_index']); die(); } Your script is awfully insecure. $_COOKIE is user supplied, so in if I hand craft a request, I could just send an

RE: [PHP] fwrite() Append Files

2008-06-27 Thread Wei, Alice J.
Hi, Right now I enforced the file to read in through HTTP-Request and output it to a local file. Looks like this functioned perfectly after I used append functions after I attempted to write to the file! Thanks to everyone who contributed to this. Alice

RE: [PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread Robert Cummings
On Fri, 2008-06-27 at 09:52 -0500, Boyd, Todd M. wrote: -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 8:50 AM To: tedd; php-general@lists.php.net Subject: RE: [PHP] Re: Inspiration for a Tombstone. [snip] And being dyslexic, I

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Wolf
Wei, Alice J. wrote: Hi, Right now I enforced the file to read in through HTTP-Request and output it to a local file. Looks like this functioned perfectly after I used append functions after I attempted to write to the file! Thanks to everyone who contributed to this. Alice Are you

RE: [PHP] fwrite() Append Files

2008-06-27 Thread Wei, Alice J.
From: Wolf [EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:18 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] fwrite() Append Files Wei, Alice J. wrote: Hi, Right now I enforced the file to read in through HTTP-Request and output

[PHP] [Q] Exec'ing a command

2008-06-27 Thread Eric Gorr
Hopefully this will be clear. I've got a unix command-line app which I will be exec'ing (or some other similar command) from a php script. The special property of this unix app is that while it executes and terminates quickly, only a single instance can be running at any one time.

Re: [PHP] [Q] Exec'ing a command

2008-06-27 Thread Daniel Brown
On Fri, Jun 27, 2008 at 3:12 PM, Eric Gorr [EMAIL PROTECTED] wrote: Now, one possible solution to this problem is that the php script adds it's request to run the unix app to a queue and their is some other code which pulls a request off the queue, performs the operation and returns the data

Re: [PHP] [Q] Exec'ing a command

2008-06-27 Thread Eric Gorr
On Jun 27, 2008, at 3:18 PM, Daniel Brown wrote: On Fri, Jun 27, 2008 at 3:12 PM, Eric Gorr [EMAIL PROTECTED] wrote: Now, one possible solution to this problem is that the php script adds it's request to run the unix app to a queue and their is some other code which pulls a request off

Re: [PHP] Re: Fwd: How to make a Auto View and a Download Link for PDF?

2008-06-27 Thread Nitsan Bin-Nun
Great. Cheers, Nitsan On 25/06/2008, Michelle Konzack [EMAIL PROTECTED] wrote: Hi Nitsan, Am 2008-06-22 22:09:38, schrieb Nitsan Bin-Nun: Oops :-) -- Forwarded message -- From: Nitsan Bin-Nun [EMAIL PROTECTED] Date: 21 Jun 2008 19:23 Subject: Re: [PHP] How to

Re: [PHP] Re: Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-27 Thread Dotan Cohen
2008/6/25 Michelle Konzack [EMAIL PROTECTED]: Am 2008-06-23 21:17:13, schrieb Dotan Cohen: 2008/6/22 Michelle Konzack [EMAIL PROTECTED]: I know at least on Jew, which was 1 1/2 years in the french army for his service national and then 5 years in Israel. That was very likely not

[PHP] localconv() monetary grouping

2008-06-27 Thread Ian Carter
Looking through the PHP 5 docs regarding the information returned by localconv(), I am not sure what the 'grouping' and 'mon_grouping' elements refer to. Can someone explain to me why in the example shown ('[EMAIL PROTECTED]'), the grouping array is empty and the mon_grouping array has two