Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2010
    Location
    Austria
    Posts
    115
    Plugin Contributions
    0

    Default PHP file in /admin/includes/javascript/ folder

    I've read in another discussion on this forum that JS files autoload & therefore must not contain PHP (this was mentioned in connection with the Advanced Shipper module by CEON).

    I noticed that in plain 1.5.7, I've got the following file:
    /admin/includes/javascript/product.php

    I've not noticed any errors with it, but as the file contains PHP I assume it should not be in this folder location?

    with kind regards, Edith Allison

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: PHP file in /admin/includes/javascript/ folder

    While php code INSIDE .js files is bad, having php files with php code in the directory is not a problem and that file is supposed to be there.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP file in /admin/includes/javascript/ folder

    That PHP file dynamically generates javascript when loaded as a script src= property.
    It is intentional.
    .

    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.

  4. #4
    Join Date
    Jun 2010
    Location
    Austria
    Posts
    115
    Plugin Contributions
    0

    Default Re: PHP file in /admin/includes/javascript/ folder

    Thank you for the explanation, much appreciated!

 

 

Similar Threads

  1. Empty configure.php file in admin/includes
    By freya in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 1 Oct 2010, 07:51 PM
  2. don't see configure.php file in Includes folder
    By abneb217 in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 28 May 2009, 09:32 AM
  3. ERROR: admin/includes/configure.php file not found
    By tjstore in forum Installing on a Windows Server
    Replies: 3
    Last Post: 6 Aug 2008, 04:59 PM
  4. ERROR: admin/includes/configure.php file not found.
    By coucho in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 20 Jan 2008, 01:11 AM
  5. No admin/includes/configure.php file?????
    By underworldmagic in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 21 Dec 2006, 11:15 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR