Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: init_header error

    Thanks DrByte, I can't believe someone would be stupid enough to make the difference between two commands, two underscores instead of one. Thats just asking for buggy code!

    Any idea how I could make the file non-writable? The trouble is we are running i5/OS PASE on a IBM AS400 () and the shell tells us the permissions have been set. I'm wondering if zencart is just ignoring the permissions.

    Perhaps Apache could be configured incorrectly, allowing php to modify write-protected files, is this even possible?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: init_header error

    Quote Originally Posted by refreshmentshop View Post
    Thanks DrByte, I can't believe someone would be stupid enough to make the difference between two commands, two underscores instead of one. Thats just asking for buggy code!
    Thanks. There was very good reason behind that decision. The code's not buggy. It's actually being more thorough than most. :)

    Quote Originally Posted by refreshmentshop View Post
    Any idea how I could make the file non-writable? The trouble is we are running i5/OS PASE on a IBM AS400 () and the shell tells us the permissions have been set.
    If you trust it, just turn off the warning.

    Quote Originally Posted by refreshmentshop View Post
    I'm wondering if zencart is just ignoring the permissions.
    Zen Cart relies on what PHP determines when it talks to the filesystem. It's the filesystem that allows or denies the write behavior.

    Quote Originally Posted by refreshmentshop View Post
    Perhaps Apache could be configured incorrectly, allowing php to modify write-protected files, is this even possible?
    If PHP is running with a higher level of permissions than Apache (perhaps as suPHP?), you could be getting more permissions than normally expected. In this case, the file is still writable according to the filesystem, unless you pare back the permissions even tighter ... but then you run the risk of PHP not being able to read the file at all.
    In that case you are likely left with no choice but to disable the warning.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: init_header error

    I didn't mean it was a bad idea to use the command, it's a very good idea. Just the way that command was written, you can't see the difference between one and two underscores, a different name for the new command, like can_write would have been better (Not zen's fault)

    I guess we will just give up and disable the warning...

    I'm not really a coder anyway, I'm a designer. Someone give me a Mac and a darkened room, I'm getting a headache.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: init_header error

    Quote Originally Posted by refreshmentshop View Post
    Someone give me a Mac and a darkened room
    Yes, definitely the best environment!
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 15 Feb 2012, 09:08 PM
  2. v139f Shopping Cart error: HTTP Error 500 (Internal Server Error)
    By Tulameen in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2012, 01:48 AM
  3. UPS XML Error: cURL: Error [77]: error setting certificate verify locations
    By ultraloveninja in forum Addon Shipping Modules
    Replies: 3
    Last Post: 30 Nov 2009, 03:55 AM
  4. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  5. Please help on init_header.php
    By maryy in forum General Questions
    Replies: 0
    Last Post: 21 Jan 2008, 04:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg