# Handling multiple Php Scripts that reference each other

**URL:** <https://community.dreamfactory.com/t/handling-multiple-php-scripts-that-reference-each-other/3008>\
**Category:** Server-Side Scripting\
**Tags:** community\
**Created:** [July 21, 2016, 11:35am UTC](https://community.dreamfactory.com/t/handling-multiple-php-scripts-that-reference-each-other/3008 "2016-07-21T11:35:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shade\_Boyima](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Shade\_Boyima](https://community.dreamfactory.com/u/Shade_Boyima)\
**Post date:** [July 21, 2016, 11:35am UTC](https://community.dreamfactory.com/t/handling-multiple-php-scripts-that-reference-each-other/3008/1 "2016-07-21T11:35:22Z")

</div>

I have a couple of php scripts that are in a single folder. One of these scripts has constants that are used in all the scripts . They reference each other using “require\_once”. Which(directory) should I put these scripts and how can I call them? Or is there another method to handle scripts that are in a folder?  
I know one can make scripts using Services, do I have to make a service for each script? Will they be able to reference each other?
