[PHP] Can anyone help me save img from URL?
Hi, I was wondering if someone knows how to save the image from the given url http://domain.com/image.gif into a file on a local machine Any suggestion will be greatly appreciated. Thank you in advance Victor Polyushko
Re: [PHP] Can anyone help me save img from URL?
Hi Guys, Thank you fo your input. I am sorry I am new to the list so + English is not my first language :-( anyhow., I shoudl 've made my question more clear. I am trying to save the image from the given URL (http://domain.com/image.gif) running a PHP script on the page. I have tried fread() and it does not allow me to accomplish that :-(( Have you guys ever come across such a problem? Again thank you very much for your suggestions Best Regards, Victor Polyushko - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Miguel Cruz [EMAIL PROTECTED] Cc: Victor Polyushko [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 2:01 PM Subject: Re: [PHP] Can anyone help me save img from URL? Miguel Cruz wrote: On Thu, 16 May 2002, Victor Polyushko wrote: I was wondering if someone knows how to save the image from the given url http://domain.com/image.gif into a file on a local machine lynx -source -dump image.gif If there were actually an image I'd use: wget http://domain.com/image.gif Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109 | :--: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `--' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Done w/ PHP - VB or C# ?
Does anyone know if there is any global reliable and free :-) statistics on usage of PHP vs ASP. I am having the same dilemma., do I need to stick to going deeply into PHP (which in my opinion rulez!!) or start paying more attention to ASP... Best Regards, Victor Polyushko - Original Message - From: Peter [EMAIL PROTECTED] To: Php [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 4:52 PM Subject: FW: [PHP] Done w/ PHP - VB or C# ? For me personally I find working with ASP .NET to be a pain in the butt, yeah sure you can to use all the fancy GUI's that can take care of some code for you etc.. but then there's the argument about php and having to write the code your self. Personally I find that a better approach as for me it's all about learning and achieving because at the end of the day you can sit back and look at it and go wow I did that from scratch from line 1 of code etc. Basically it all comes down to personal preference. I'm coming from a back ground which doesn't include much programming at all (which can be seen by some of the dumb q's i've posted in here...) and I guess that using something with a prodominately (think that's how it's spelt) gui workings and that takes care of alot of code for me should be more appealing but it's not any way basically YOU have to decide what's best for you and that your happy with the choices that you've made as in the end it's you that's got to live with them. that's my 2 cents Peter -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 May 2002 7:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Done w/ PHP - VB or C# ? I know I'll get mauled big-time on this mailing list but I'm thinking about putting PHP on hold for a while and learning ASP.NET I love PHP and open-source computing but if one wants to get a job in web development, you'll have a much better time find a job with both PHP and ASP (among others) skills. I'm going to hop on the ASP bandwagon but I'm not sure if I should first learn ASP w/ VB or w/ C# Any thoughts on this? What are the pros and cons of both? Thanks! -- 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
Re: [PHP] Can anyone help me save img from URL?
BINGO!! thank you guys for your input I used a very simple command to accomplish that and it works!! ? $command=wget http://domain.com/images/somepic.gif;; system( $command, $result); echo $result; ? Victor Polyushko - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Victor Polyushko [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 2:25 PM Subject: Re: [PHP] Can anyone help me save img from URL? Victor Polyushko wrote: Hi Guys, Thank you fo your input. I am sorry I am new to the list so + English is not my first language :-( anyhow., I shoudl 've made my question more clear. I am trying to save the image from the given URL (http://domain.com/image.gif) running a PHP script on the page. I have tried fread() and it does not allow me to accomplish that :-(( Have you guys ever come across such a problem? $imageData = implode( '', file( 'http://domain.com/image.gif' ) ); $length = strlen( $imageData ); if( $length 0 ) { if( (fh = fopen( 'destination', 'w' )) ) { fwrite( fh, $imageData ); } } Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109 | :--: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `--' -- 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
Re: [PHP] Done w/ PHP - VB or C# ?
hmm.. good question, I guess number of active job openings will be the best measure :-)) (or websites using PHP vs ASP) - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: Victor Polyushko [EMAIL PROTECTED] Cc: Php [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 5:11 PM Subject: Re: [PHP] Done w/ PHP - VB or C# ? On Thu, 16 May 2002, Victor Polyushko wrote: Does anyone know if there is any global reliable and free :-) statistics on usage of PHP vs ASP. I am having the same dilemma., do I need to stick to going deeply into PHP (which in my opinion rulez!!) or start paying more attention to ASP... I think it's pretty hard to measure usage... what would a meaningful metric be? Number of servers with ASP available? Number of virtual hosts? Number of page views served by ASP vs PHP? Number of active developers? miguel -- 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