Re: [PHP] Q: Use getImageSize() on image data from email?

2002-12-05 Thread Morgan Hughes
command rather than getImageSize(), since it handles many more image types. Depending on what you need you may find the -verbose option helpful, as it gives tons of information, but is slow... -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ

Re: [PHP] PHP includes without access to the default directory

2002-12-05 Thread Morgan Hughes
have a bunch of scripts in a lib/ directory, they can't include each other without taking into account the path from the calling script... Thus why I try to define INC_DIR as early as possible if it's relative. Hope this helps... -- Morgan Hughes C programmer and highly

Re: [PHP] Re: invalid range

2002-12-02 Thread Morgan Hughes
the regex engine interprets it as a range. Escaping it may work too, but I've never had trouble moving dashes to the last char in the range, so your regex would look like this: eregi(^([a-zedv_\. -]+)$,$value); -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Morgan Hughes
if you just put in www.domain.com as part of converting it to http://www.domain.com/ but for subdirectories there is often a redirect. hope this helps! -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Morgan Hughes
! ^_^ -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and the PDFlib

2002-12-02 Thread Morgan Hughes
, then convert back to PDF. The utilities I'm thinking of are ps2pdf and pdf2ps, which seem to be part of the Ghostscript package and ship with most Linux distros... Hoep this helps! -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP

Re: [PHP] last updated ?

2002-11-30 Thread Morgan Hughes
(%c, $stat[9]); print Last update: $date; ? Which will be automatically updated... -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] test for ascii or binary string

2002-11-29 Thread Morgan Hughes
is useful... $text = addcslashes(substr($string, 0, 1024), \\\'\0..\37\177..\377); $size = strlen(preg_replace('/[^]/', '', $text)); if ($size 200) print mostly text, use addslashes; else print mostly binary, use base64_encode; -- Morgan Hughes C programmer and highly

Re: [PHP] Streaming audio

2002-11-27 Thread Morgan Hughes
unless the response from the server is ICY/1.0 200 OK rather than the HTTP 200 OK... As far as I can tell after checking the SAPI source and asking here, it's not possible to override that. -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ

Re: [PHP] Streaming audio

2002-11-27 Thread Morgan Hughes
) $dprint_file = fopen(/tmp/mp3.log, a); fprintf ($dprint_file, %s, $msg); } Good luck, and if anyone makes something useful out of this, I'd like to hear about it! -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General

Re: [PHP] Re: testing for empty array

2002-11-26 Thread Morgan Hughes
count() should do the trick. if ( !sizeof($keywords) ) print keywords is empty; -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
ImageCreate() produces 8-bit indexed-color images... If that function doesn't exist, you're using a pre-2.x GD, and those can't do 24-bit images at all... Good luck! -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
be widespread with ISPs until it's sorted out and stable... So you'll have to wait, or look into something like ImageMagick. -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] getting mysql dump using php

2002-11-23 Thread Morgan Hughes
3 * * * sh ~/db_backup # # Version : 1.00 # Author : Morgan Hughes ([EMAIL PROTECTED]) # License : Copyright (C) 2002, Morgan Hughes. Use freely. # Account/password/email info db_list=your_database db_user=your_username db_pass=your_password email=your_email_addy # program locations mysqldump

Re: [PHP] phpUpLoad

2002-11-22 Thread Morgan Hughes
a back-end script that actually does the work. I've used this effectively, and so long as the back-end script is properly written I believe it's a very secure method. -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General

Re: [PHP] writing to a file

2002-11-22 Thread Morgan Hughes
()... -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD : Black background with imagecreatetruecolor

2002-11-21 Thread Morgan Hughes
them in to get them white. -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unusual HTTP header control

2002-11-16 Thread Morgan Hughes
and instead send ICY 200 OK, to fool the player into thinking it's listening to a ShoutCast server... Does anyone know how to do this? The docs on header() don't mention it, nor do the user notes... Any ideas? Thanks! -- Morgan Hughes C programmer and highly caffeinated mammal

RE: [PHP] Unusual HTTP header control

2002-11-16 Thread Morgan Hughes
... ^_^ -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php