I have a script that processes image uploads. To work it needs to include two scripts, one I write metadata to the images, and a second one allows me to upload the images to a CDN.
After much hair pulling I realized the two scripts work well, but not together.
Right now I had to divide my script in two. The first one modifies the images and saves it in a folder. Then the script passes a location header to load the second script to upload the images to the CDN. While it works it is not ideal.
I was hoping that there might be a way to isolate or sandbox the two includes so I can use them both on the same script.