Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8916819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:20:38+00:00 2026-06-15T05:20:38+00:00

What I always did is create a folder for PHP scripts are called by

  • 0

What I always did is create a folder for PHP scripts are called by AJAX requests, but I wanted to find out, what is a common practice to do it?

What is usual location to put all the request scripts, and are they usually written in one .php file, or is it better to split them in several files? For sure there must be recommendations how to do it secure and better.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:20:40+00:00Added an answer on June 15, 2026 at 5:20 am

    I don’t think there is any specific way that would be significantly more common than the others. If you’re using a framework, it may have it’s own best practices and coding conventions you should use. Also, if you’re working with a team, they may have some rules of their own.

    As long as your handlers are otherwise secure, it won’t matter how they are organized on the file system. If you have lots of handlers, you may want to split them to logical parts – one PHP file for handling the shopping cart, one for search autocomplete, and so on.

    Storing all the AJAX handlers in the same directory is pretty much a matter of preference. It could also be logical to keep them in the same directory as the feature they are related to, like /users/ajax.php.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did the following but it not work for always.It works if i launch
I usually create a solution folder in Visual Studio and put my DB scripts
I always wanted to implement swypable tabs in my application, like the ones in
I always use preg_match and it always works fine, but today I was trying
I want to create pdf page in landscape mode but the browser seems to
as the release of OpenCV 2.3 is finally out, I wanted to compile and
I'm trying to create a destroyable world with Cocos2D and I did some reading
I want to create a slide view for our products but I don't want
I am trying to create persistante variable local to my model but although something
I have a web project called TestResourceApp with Labels.resx in App_GlobalResources folder. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.