Drupal - write to file

Events happening in the community are now at Drupal community events on www.drupal.org.
Heimir's picture

Hi guys,

I have a small problem and this was the best place I found to post my problem.

The thing is that I use PHP in Drupal and it works fine.
When I´m using just PHP and HTML (without Drupal) I often do something like this: "ps -ef > tmp.txt"
I.e. I write some output to a file and then I work with the contents of the file.

Can I use this method with Drupal? Can I write to files by using Drupal?

Thanks,
Heimir

Comments

Agrees

Busman's picture

I'd like to know this too! It looks as if there are permissions problems when writing to a file or folder I created, but I don't find a way to get around this.

me to!

candelas's picture

i know how to do it by php and here i dont find the way...
maybe someone can explain or col·laborate to make a module :)

Writing a file to Drupal system

Busman's picture

Hi Candelas. I didn't find a way to do it at the time within Drupal, though I was much greener at the time. I ended up with an FTP solution, using Java (I was writing an applet at the time). What about using Storage API or Media Mover for your purposes?

thanks

candelas's picture

at the end i will write to the data base and read from there provably.
i only want to have one color for each magazine, so i am going to store it in the taxonomy term description.
but the modules that you tell to me are interestings, i didnt know about them :)
thanks!

Usability

Group organizers

Group categories

UX topics

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: