Zen Cart Logo
Forums / General Questions / How to call a php file localized in modules fold

How to call a php file localized in modules fold

Views: 4,214

Results 1 to 3 of 3
26 Jul 2016, 6:01 PM
#1
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

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.

26 Jul 2016, 7:19 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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

26 Jul 2016, 8:05 PM
#3
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

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.