[PHP] php-4.1.0 distribution broke??
Hello all! I've tried several times today to get the latest PHP (4.1.0) tarball from php.net (as well as a few mirror sites) and it looks like the tarball is broken...! Anyone having like problems?? Cheers! -bob . . . . . php-4.1.0/ext/sysvshm/setup.stub php-4.1.0/ext/sysvshm/sysvshm.c tar: Skipping to next header gzip: stdin: invalid compressed data--crc error gzip: stdin: invalid compressed data--length error tar: Child returned status 1 tar: Error exit delayed from previous errors [bscott@bscott samba]$ tar --version tar (GNU tar) 1.13.17 Copyright 2000 Free Software Foundation, Inc. This program comes with NO WARRANTY, to the extent permitted by law. You may redistribute it under the terms of the GNU General Public License; see the file named COPYING for details. Written by John Gilmore and Jay Fenlason. [bscott@bscott samba]$ -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] php-4.1.0 distribution broke??
Bizzare -- About 2 hours ago http://www.php.net/downloads.php listed 4.1.0 dated 10 Dec 2001 as being the latest release. Now it's back to 4.0.6 I guess I will wait :) Thanks -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Mon, 10 Dec 2001, Maciej Uhlig wrote: > as far as I can see the current release is 4.0.6. > > did you see any announcement about 4.1.0? > > they'll let you know when 4.1.0 is released. just be patient :-) > > Maciek > > > -Original Message- > > From: Bob Scott [mailto:[EMAIL PROTECTED]] > > Sent: Monday, December 10, 2001 10:06 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] php-4.1.0 distribution broke?? > > > > > > Hello all! > > > > I've tried several times today to get the > > latest PHP (4.1.0) tarball from php.net (as well as > > a few mirror sites) and it looks like the > > tarball is broken...! > > > > Anyone having like problems?? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] auto link?
Take a look at http://www.php.net/manual/en/function.ereg-replace.php There's a bit of sample code up there that may help... -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Mon, 16 Jul 1979, [EMAIL PROTECTED] wrote: > On Ray's advice I've given up on letting the users put html into my form. > But I would like any http:// type addresses they include to be turned into > hyper links: > > > > http://www.mysite.com>www.mysite.com > > is there a script or function some place I can use to do this? Or must I try > to write something of my own? > > > Susan > > > -- > [EMAIL PROTECTED] > http://futurebird.diaryland.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP]Question about escaping a character
Run the string through stripslashes() before you write it to the file... http://www.php.net/manual/en/function.stripslashes.php Cheers -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Tue, 24 Jul 2001, Chris Cocuzzo wrote: > hey- > > I have a textarea field for an admin page which does allow me to enter in > basically anything, including HTML. The information is written to a > text-file, from which info is pulled on a different page. When the info is > read on that page(this is not the admin page right here)...all the single > quote marks are escaped with a backslash. how do i fix that so that the > quotes look normal when the file is read? > > chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Determining File Size
There's a nifty little function called filesize()... I've done this before to make human-readable output: $my_file = "/path/to/my/file"; $file_size = filesize($my_file); if ($file_size >= 1073741824) { $show_filesize = number_format(($file_size / 1073741824),2) . " GB"; } elseif ($file_size >= 1048576) { $show_filesize = number_format(($file_size / 1048576),2) . " MB"; } elseif ($file_size >= 1024) { $show_filesize = number_format(($file_size / 1024),2) . " KB"; } elseif ($file_size >= 0) { $show_filesize = $file_size . " bytes"; } else { $show_filesize = "0 bytes"; } echo "File $my_file is $show_filesize "; Have fun! -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Tue, 24 Jul 2001, Alnisa Allgood wrote: > Hi: > > I've set-up a library/clearinghouse system that basically allows to > add papers and materials to a small member only resource library. I'd > like to be able to determine the file's size so that it's displayed > next to the item, so that people can gage how long it will take to > download items. This seems particularly relevant for some of the > older material included, since they consist of abnormally large PDF > files (they scanned paper to image, then converted to PDF) > > Is the best method for handling this to determine the file size at > upload, and then send the information to MySQL, or some other method. > > Alnisa > -- >. > Alnisa Allgood > Executive Director > Nonprofit Tech > (ph) 415.337.7412 (fx) 415.337.7927 > (url) http://www.nonprofit-techworld.org > (url) http://www.nonprofit-tech.org > (url) http://www.tech-library.org >. > Nonprofit Tech E-Update > mailto:[EMAIL PROTECTED] >. > applying technology to transform >. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Image manipulation
Adam - If you're on a machine that has ImageMagick installed on it (most Linux boxes I've been on have it installed already) you can do something like this in PHP: $origfile = "/home/bob/my_face.jpg"; $img_dir = "/usr/local/www/htdocs/images"; $dest_file = $img_dir . "/t_" . basename($userfile) . ".gif"; $s = system ("/usr/X11R6/bin/convert -geometry 100x100 $userfile $dest_file"); will create a 100x100 pixel thumbnail image called t_my_face.jpg.gif in /usr/local/www/htdocs/images ImageMagick can be found at http://www.imagemagick.org/ Have fun! -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Fri, 31 Aug 2001, Adam Plocher wrote: > Hey I got a few questions about image manipulation. > > First of all, is there anyway I could have my script take a full size image > and crop out a chunk of it to be used as a thumbnail - or just simply shrink > the image down to be used as a thumbnail? > > Also, is there anyway to convert misc image types (gif, bmp, png, etc) into > a jpeg? > > Any help will be very appreciated, thanks. > -Adam Plocher > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]