[PHP] Re: CSV download

2004-02-18 Thread John Herren
Mark Roberts wrote: I have an application that I need to add a function to that will download a complete MySql Table in comma delineated format from a web site to a local hard drive. What is the best way to do this? Is there a function in PHP that will do this? in MySql? or do I just need to do

[PHP] Re: auto increment

2004-02-17 Thread John Herren
Marc Serra wrote: Hi, i use PEAR DB with a mysql database and i want to know if there is a solution to get last inserted id in a table. I see that I can use sequences but it doesn't work with mysql. Thanks, Marc. Check this out: http://pear.php.net/manual/en/package.database.db.intro-

Re: [PHP] An HTML alternative to submit button to look like anchor??

2004-02-17 Thread John Herren
If you do this, make sure you name your submit button "Submit" or something else, but not "submit" :) Shaunak Kashyap wrote: Yes, you can use elementary javascript to achieve that goal. Just make a link (anchor) as you normally would and make the value of its href attribute "javascript:document.

[PHP] Re: Php processor and return window

2003-11-05 Thread John Herren
Robb Kerr wrote: I am just learning PhP. When I was teaching myself Lingo (Macromedia Director's programming language) I found an object called the MESSAGE window quite helpful. This window allowed you to execute little snippets of code and get the results without having to execute your entire scr

Re: [PHP] High bandwidth application tips

2003-11-05 Thread John Herren
Jay Blanchard wrote: [snip] limit the number of times you need to hit the database. I second Chris on this. [/snip] I third that. The problem can become especially apparent in large databases containing millions of records. Other than that just code cleanly and document, document, document. Crea

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread John Herren
Curt Zirzow wrote: * Thus wrote John Herren ([EMAIL PROTECTED]): header("Content-Type: application/pdf"); header("Accept-Ranges: bytes"); header("Content-Length: ".filesize($thefile)); readfile($thefile); Can anybody tell me why the browser is waiting for the enti

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread John Herren
OK, here's a different problem. If I call a pdf file directly, the Acrobat plugin begins to display the file almost immediately. Here is the reponse header for calling the file directly: HTTP/1.1 200 OK Date: Thu, 16 Oct 2003 20:41:28 GMT Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.

[PHP] Re: Opening Zip Files in Linux

2003-09-05 Thread John Herren
John Ryan wrote: This is kinda off topic, well.. depending on the answer. I downloaded a ZIP file to my server, and want to open it. My version of PHP wasnt compiled with the Zip uncompressing functions, otherwise Id do it with php, so I was wondering if there was a linux-x86 binary that just ope

[PHP] Re: controlling winamp with COM

2003-07-22 Thread John Herren
John Herren wrote: Is there any way to control an open winamp application in php? I want to use php as a scheduler to play Winamp. The API has system calls to do so, but I don't know how to implement the windows calls. Ok, found this: http://www.adcock8.freeserve.co.uk/winamp.htm I

[PHP] controlling winamp with COM

2003-07-21 Thread John Herren
Is there any way to control an open winamp application in php? I want to use php as a scheduler to play Winamp. The API has system calls to do so, but I don't know how to implement the windows calls. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] regex help?

2003-07-21 Thread John Herren
Can't seem to get this to work... trying to yank stuff xxx from xxx and stuff yyy from  yyy preg_match("| (.*)$|i", $l, $regs); works for the second example, even though it isn't the correct way, but nothing works for for me for the first example. Any help is appreciated! -- PHP General Mail

[PHP] regex help?

2003-07-21 Thread John Herren
Can't seem to get this to work... trying to yank stuff xxx from xxx and stuff yyy from  yyy preg_match(" (.*)$|i", $l, $regs); works for the second example, even though it isn't the correct way, but nothing works for for me for the first example. Any help is appreciated! -- PHP General Maili

[PHP] Re: decimal places

2002-11-26 Thread John Herren
http://www.php.net/manual/en/function.number-format.php number_format() can also give you commas if you like. Bryan Koschmann - Gkt wrote: > Hello, > > Does anyone here have a good way to make sure dollar amounts are formatted > properly? I have something that returns data, but the problem is it