Re: [PHP] image dimentions

2002-04-11 Thread steve bissonnette

I believe you want this,
http://www.php.net/manual/en/function.getimagesize.php





 >



on 4/10/02 1:11 AM, Steve Klugherz at [EMAIL PROTECTED] wrote:

> Is there anyway to gather image dimentions from a gif or a jpg file? I need
> to gather this information from user uploaded files and can not trust the
> user to enter them correctly. Any ideas?
> 
> 


-- 
s t e v e  b i s s o n n e t t e
[EMAIL PROTECTED]

PLANK. A multi-faceted-media company.
http://www.plankdesign.com
v. 514.875.0003   f. 514.875.7611




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] unique ID

2002-04-11 Thread Steve Bissonnette

I personally really like this,
Maybe you can customize it as needed - or someone can improve upon it !


 PIN9f39f7

$rawuid  = md5(uniqid(rand(),1));
$uid = "PIN" . substr($rawuid,0,6);

echo $uid;

?>



on 4/11/02 3:44 PM, ROBERT MCPEAK at [EMAIL PROTECTED] wrote:

> Could somebody share with me a simple way to create a unique numeric ID
> for a new record in a mySQL db?
> 
> Thanks!


-- 
s t e v e  b i s s o n n e t t e
[EMAIL PROTECTED]

PLANK. A multi-faceted-media company.
http://www.plankdesign.com
v. 514.875.0003   f. 514.875.7611




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] web spider?

2002-04-15 Thread Steve Bissonnette

Ryan,

You might want to look into this as a basis for some of your code,

http://agent-source.com/sitemapper/

Contains a good ammount of "spidering" code that's broken down into small
functions.  ( not that I understand half of it ; )

Good luck

-- 
s t e v e  b i s s o n n e t t e
[EMAIL PROTECTED]

PLANK. A multi-faceted-media company.
http://www.plankdesign.com
v. 514.875.0003   f. 514.875.7611


on 4/15/02 3:42 PM, Ryan Govostes at [EMAIL PROTECTED] wrote:

> i was wondering if it would be possible to make a web spider in PHP.
> they work by download a website, then following all the links on the
> website to other pages, and then following the links on that page...
> 
> is this possible in PHP without a whole lot of work? i just want to keep
> a counter of how many links (not e-mail addresses or file downloads) it
> finds. if someone has the time, could you write up a quick recursive
> script that i could use as a basis of my project?
> 
> thanks
> ~toaster©
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php