CSS, Problems

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
liquedus
php-forum Active User
php-forum Active User
Posts: 264
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Sat Jul 05, 2003 6:59 am

how is this a CSS problem :?:

User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Sat Jul 05, 2003 1:58 pm

First off, in the future, it will be advantageous for you to post both the code that generated the error and the error generated.

This appears to be a permissions problem, hence the "[function.fopen]: failed to create stream: Permission denied". The fopen() function has a required $mode argument which says what you want to do with the file. See the docs for an explanation of all of the modes. I'd guess, since I can't see your code, that you're using trying to use mode 'w' or 'r+', but PHP doesn't have permission to modify the file in question. Since it doesn't have permission, it can't create the read/write stream, which causes all of the subsequent errors.

How to fix this depends upon your platform. In all cases, you'll have to modify the file attributes so that PHP can write to the file. In Windows, you'll have to find the file and turn off the "Read-only" attribute. On a Unix-like system, you're going to have to either use the chmod command to change the permissions of the file, or if you're accessing the server via FTP, you may also be able to do this via your FTP client (look for a dialog called Attributes, Properties, or Permissions or refer to your client's Help file). I'll leave the details of this up to you.

User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Sat Jul 05, 2003 10:18 pm

The files you want to chmod are the ones you're trying to access with fopen(). So if you're trying to do fopen('file.css','r+'), you want to make sure PHP has write permission for file.css. I hope that's helpful.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests