954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP and TEXT FILES

Hi I'm new here and new in the industry, I'm focused in designing right now... but still interested in developing dynamic websites.

I just want to ask if there is an available script that writes a text file in a FTP server then show in a scrolling text in FLASH.

I don't know IF I MAKE SENSE at all... ehe : )

like in uploading images they put the image in an FTP SERVER right, then
display it in front like a scrolling sponsors.;)

THANKS

GOOD DAY

php_noob
Junior Poster in Training
87 posts since Jul 2007
Reputation Points: 10
Solved Threads: 2
 

I'm not aware of any scripts to do this.

You're looking to create your text file.
Create a socket to your FTP server.
Send the appropriate FTP commands to Login + change DIR + upload file.

Then you will want to use actionscript to
grab the file contents from FTP server, and display them.

Thats one solution to your problem.

Cheers.

dr4g
Junior Poster
136 posts since Apr 2007
Reputation Points: 35
Solved Threads: 5
 

ei, thanks,

actually I have scripting for how to get the contents of the text file
my only main prob is how can I make a text file.

I try the uploading of a text file made outside the system that I am making but I want to make it more dynamic.

for convenience sake!
thanks anyways

php_noob
Junior Poster in Training
87 posts since Jul 2007
Reputation Points: 10
Solved Threads: 2
 

$ourFileName = "testFile.txt";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fclose($ourFileHandle);

peanutpad
Newbie Poster
2 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You