# PHP FTP functions equivalents?

**URL:** <https://www.ruby-forum.com/t/php-ftp-functions-equivalents/62549>\
**Category:** Rails\
**Created:** [June 6, 2006, 2:27am UTC](https://www.ruby-forum.com/t/php-ftp-functions-equivalents/62549 "2006-06-06T02:27:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabor\_Demeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bbe5ce/32.png) [@Gabor\_Demeter](https://www.ruby-forum.com/u/Gabor_Demeter)\
**Post date:** [June 6, 2006, 2:27am UTC](https://www.ruby-forum.com/t/php-ftp-functions-equivalents/62549/1 "2006-06-06T02:27:11Z")

</div>

Two questions from a PHP guy thinking of moving to Rails:

1. Does Rails have equivalents for PHP’s FTP functions  
([PHP: FTP - Manual](http://www.php.net/ftp))?

2. What about image editing functions similar to PHP’s GD2 functions? (I  
would basically want to be able to crop, rotate, draw lines, add  
text…)

I searched online for the above but I got somewhat conflicting info  
about image editing and almost no info on FTP functions. I thought this  
would be the best place to ask for help, as the applications I’m about  
to start working on will need both items mentioned and I won’t be able  
to use RoR if there are no image editing and/or ftp features.

Many thanks,

Gabor

---

<div class="post-metadata">

**Author:** ![Gabor\_Demeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bbe5ce/32.png) [@Gabor\_Demeter](https://www.ruby-forum.com/u/Gabor_Demeter)\
**Post date:** [June 6, 2006, 2:38am UTC](https://www.ruby-forum.com/t/php-ftp-functions-equivalents/62549/2 "2006-06-06T02:38:41Z")

</div>

The capabilities you’re asking for are available as Ruby libraries/gems:

Check out Net::FTP (part of the ruby std lib) -  
[http://www.ruby-doc.org/stdlib/libdoc/net/ftp/rdoc/index.html](http://www.ruby-doc.org/stdlib/libdoc/net/ftp/rdoc/index.html)

For image manipulation, check out RMagick:  
[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

Good luck!

-DF

---

<div class="post-metadata">

**Author:** ![Gabor\_Demeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bbe5ce/32.png) [@Gabor\_Demeter](https://www.ruby-forum.com/u/Gabor_Demeter)\
**Post date:** [June 6, 2006, 3:15am UTC](https://www.ruby-forum.com/t/php-ftp-functions-equivalents/62549/3 "2006-06-06T03:15:26Z")

</div>

Also worth checking is the psitsNOT engine.  
[http://svn.openprofile.net/plugins/p\_sitsnot\_engine/README](http://svn.openprofile.net/plugins/p_sitsnot_engine/README)  
Basically a plugin extracted from this site.

> **[psitsnot.alevans.com is almost here!](http://psitsnot.alevans.com/)**
>
> The owner of this domain has not yet uploaded their website.

Should help you so you get image manipulaton up in 14,7 sec.

On 6/6/06, David F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> -DF
> 
> > –

–

---

<div class="post-metadata">

**Author:** ![Gabor\_Demeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bbe5ce/32.png) [@Gabor\_Demeter](https://www.ruby-forum.com/u/Gabor_Demeter)\
**Post date:** [June 6, 2006, 3:33am UTC](https://www.ruby-forum.com/t/php-ftp-functions-equivalents/62549/4 "2006-06-06T03:33:10Z")

</div>

Gabor Demeter wrote:

> Two questions from a PHP guy thinking of moving to Rails:
> 
> 1. Does Rails have equivalents for PHP’s FTP functions  
> ([PHP: FTP - Manual](http://www.php.net/ftp))?

I asked a question below on being able to send/receive files in response  
to an http request and haven’t heard anything from the group yet. I’m  
guessing that this is not essential to setting up a web site for most  
people.

However, it seems that this is built into Ruby. Look at the Pickaxe  
book for Net::http and ftp.

Bill

---

<div class="post-metadata">

**Author:** ![Gabor\_Demeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bbe5ce/32.png) [@Gabor\_Demeter](https://www.ruby-forum.com/u/Gabor_Demeter)\
**Post date:** [June 6, 2006, 3:49am UTC](https://www.ruby-forum.com/t/php-ftp-functions-equivalents/62549/5 "2006-06-06T03:49:43Z")

</div>

On Tue, Jun 06, 2006 at 02:27:11AM +0200, Gabor Demeter wrote:

> 1. Does Rails have equivalents for PHP’s FTP functions  
> ([PHP: FTP - Manual](http://www.php.net/ftp))?

Rails is “just” a framework; you should compare PHP with Ruby, not with  
Rails.

Therefore, when you’re looking for extensions, look for Ruby ones;  
putting “rails” in your google searches will reduce the set of answers  
significantly.

-jim
