saver is in safe mode and copying files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
apalm
Forum Newbie
Posts: 8
Joined: Tue Aug 01, 2006 8:32 am

saver is in safe mode and copying files

Post by apalm »

Hi

This is the situation. after creating a dinamic page I want to transfer it from directory A to B on the same server. I need help from the begning since I have never done this before.

Here are some questions:

1) Do I need to pass again server user and pass, if yes how do I do??

2) Apperantly the server is in save mode. What does it means? What do I have to do to go around?

3) How do I change the permissions of the file??

Thank you

Anna
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

  1. no
  2. it means you will be restricted on where the file functions will allow you to read from and write to.
  3. chmod()
apalm
Forum Newbie
Posts: 8
Joined: Tue Aug 01, 2006 8:32 am

saver is in safe mode and copying files

Post by apalm »

I did try chmod, but it told me "could not open directory or directory not found", that's were all began. I would like to know what should I do. Should I work with session and pass the user name and pass? Is there some code example I could look ???


Anna

:(
apalm
Forum Newbie
Posts: 8
Joined: Tue Aug 01, 2006 8:32 am

server is in safe mode and copying files from private direct

Post by apalm »

OK. Maybe if I put into a different perspective, someone will be able to help me.

This is what I have:

The php file is in the private directory on my server (here where I login). On that file I build a dinamic page coming from DB. I save that page on subdirectory A on the private directory. Then what I want is to copy that page to the public_Html directory.

The following are the error I am receiving:

PATH NOT OK (here I tested if server is in safe mode. It looks like it is)

Warning: fopen(page.html): failed to open stream: No such file or directory in /home/

Warning: chmod(): No such file or directory in /home2/

Warning: chmod(): No such file or directory in /home2/


Can anyone give me help on what to do and where to start????

Anna
Post Reply