FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Get contents FTP





cr3ativ3
Is there anyway using php's ftp functions to grab the contents of a file on a server then load those contents into a variable instead of writing it to a file or is there a way to write to a file after getting the contents using ftp because I am trying to avoid using any of phps fopen stuff. Just use ftp.
sonam
file Reads entire file into an array:
http://hr.php.net/file

file_get_contents Reads entire file into a string
http://hr.php.net/manual/en/function.file-get-contents.php

if I understand you OK

Sonam
cr3ativ3
Oh, I should add I can't use (or will not use) php's file functions is there a way to accomplish something similiar to file_get_contents but using php's ftp functions but instead of getting the html output of the file I want to be able to get the contents in case it was like a php page to bring the php also.
cr3ativ3
any ideas?
Related topics
can i upload a rar file to ftp?
FTP Support
ftp wont work
Does anyone now how to upload my old website quickly
XAMPP - All-in-One WebServer package
FTP Speed???
FTP - file last modified date
Quick start guide - ftp tagging (v n00b)
FTP query
Question about FTP
Using my FTP?!
FTP apps: recursive chmod? HELP please
NCH Software Fling FTP
Simple steps to build website for a beginner.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.