Need Help Running A Separate PHP Script Inside WPMS Folder
-
Hello All,
I’ve got a good question for you.
I run almost all of my personal websites off of a WP Multi-Site Install.
On one of those sites I sell info products and I’ve got a nice little script that lets me do affiliate promotions in a unique way.
I’d like to run that script from the domain of that website – which is not the base domain of my Multi-Site Install.
The way I figured I’d do that is by installing the script in [myrootdomain.com/wp-content/blogs.dir/#_for_domain_I_want_script_to_run_on/files/myscript/…]
However, when I put the script in that location… the php files don’t render when navigated to in the browser… they just show raw php code. For examply when I navigate to [domain-I-want-script-to-run-on.com/files/myscript/index.php] – the entire contents of that php files are displayed in raw php code form.
Obviously this doesn’t work.
But, when I take that same script an put it in my root domain folder… like so:
[myrootdomain.com/myscript/…] and then navigate to [myrootdomain.com/myscript/index.php] the script is displayed just fine.The problem is that I want the script to be on my other domain…. not my root domain.
Any idea how I can accomplish this?
Thanks for your ideas.
Richard Matthews
- The topic ‘Need Help Running A Separate PHP Script Inside WPMS Folder’ is closed to new replies.