Re: [PHP] Generating RTF on the fly
On Saturday 29 June 2002 09:37 pm, Mario Bittencourt wrote: I need to generate RTF files from within PHP scripts based on user input. Do you know of any package to do the trick ? Besides the package already named, you can also just read an rtf template file and use str_replace.. It's plain ascii after all. Not as good as generating, but quite usable for a quick hack. Gerhard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload forms, how much was uploaded before upload fails..
On Sunday 24 March 2002 23:14, Rasmus Lerdorf wrote: You'll probably need PHP 4.2 for uploads that big to work well. Before 4.2 uploads were buffered in ram, so no, you have no way to recover a broken upload. But what, in that case, is the use or purpose of upload_tmp_dir ?? Moving from upload - tmpdir - realdir seems to me like one step to many.. Gerhard -- ICQ: 4502226 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] upload forms, how much was uploaded before upload fails..
Hello all, I'm still having problems uploading BIG files (15MB and more) Is there a way to find howmuch data was uploaded before the connection was broken? For some weird reason no browser has a half decent user feedback if it come to upload forms. Gerhard -- ICQ: 4502226 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem uploading BIG files
Hello All, I have a problem uploading big files. 23MB range. I already changed the max_upload_filesize and the post_max_site to 26214400 byes (25Mb) and the timeout (set_time_limit) is set to 0. No limit. Since I'm testing over a lan uploading goes fast. I see it going for a while and then suddenly get an error result for moving and chmod'ing the file (Mozilla) or a page not found (IE). PHP is the 4.1.2 version. I'm realy clueless why the upload is aborted. The timeout it shouldn't be as I don't think I make even the default 30 seconds. There diskspace enough on any partition which could have to hold the temporarilly file (the smallest partition still has 700Mb free) The values for max_upload_filesize and post_max_site are verified though the phpinfo() and are set. Anybody who can shed a glimps of light? Gerhard -- ICQ: 4502226 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem uploading BIG files
On Monday 18 March 2002 23:56, Martin Towell wrote: Is it possible to determine if it's the php script causing the error or the browser causing the error? Maybe it's the browser timing-out?? Tested with two browsers. But probably it's the timing anyhow indeed.. I just realized that the timeout should occur in the page with the upload form and not in the page processing the uploaded file.. Once again a good night of sleep solves every problem..;-) Thanks, Gerhard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how a function 'return' statement works
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 13 February 2002 22:55, Erik Price wrote: Can anyone give my puny mind an explanation as to why the following function only returns the value Array ? # === # get_current_page_name() # --- # Returns the current document # Arguments # --- # no arguments # === function get_current_page_name() { $current_page_name = explode(/, $_SERVER['PHP_SELF']); $current_page_name = array_slice($current_page_name, -1); return $current_page_name; } from the manual: array array_slice ( array array, int offset [, int length]) array in, array out.. it wouldn't suprice me if when you changed the return into return $current_page_name.''; it would become a string again. Gerhard -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8auY+Um/iHoGGwKMRAqaDAJ4v4zT+l4qvJN+Rei1zx7fdxrWV4wCgoly2 BoZqmifb7o6kaO6RzrZp0NU= =NjIn -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php