Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default How to call a php file localized in modules fold

    I need to submit some data to a PHP file from js. If I submit to domain/path/file, I will get 403. How to submit data to a file in Zen cart?
    Thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to call a php file localized in modules fold

    You have to submit it to a file in the root. You can't directly access anything under the /includes/modules/ folder ... or even /includes/
    What EXACTLY are you trying to do, and WHY?

    Probably best to use the ajax handler.
    You can see an example of how to use it in this Quick Order plugin: https://www.zen-cart.com/downloads.php?do=file&id=375
    .

    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 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: How to call a php file localized in modules fold

    Do you mean if the files which localize in the root can be call without 403? I'm not a programmer, it's difficult for me to understand the code at a short time.

 

 

Similar Threads

  1. v151 Target File Already Exists:\includes\modules\pages\payer_auth_verifier\header_php.php
    By EdsGoodStuff in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 21 Dec 2012, 04:27 PM
  2. WARNING: Could not locate language file: modules/order_total/ot_loworderfee.php
    By stressedout72 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 4 Feb 2012, 07:43 PM
  3. /includes/languages/spanish/modules/payment/paypal.php: no such file or directory
    By thosecars82 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 2 Oct 2008, 06:45 PM
  4. How can i call a php file that does some processing?
    By yawningMonk in forum General Questions
    Replies: 3
    Last Post: 14 Sep 2006, 01:04 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