PHP Include Troubles / setting paths, etc.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tabco2
Forum Newbie
Posts: 1
Joined: Mon Jun 02, 2008 3:51 pm

PHP Include Troubles / setting paths, etc.

Post by tabco2 »

I've came across a somewhat unique situation that I'd like to be able to do with PHP.
The site is powered on WordPress. This will not make a difference, because all of the coding is being done in the template files, which can accept all raw code.

Here's what I wanna do:
mysite.com/i/ < has a PHP image hosting script installed (Keep in mind, index.php here includes files in other directories too. Ex. mysite.com/i/index.php calls for includes/file.php & includes/file.php calls for files.

mysite.com/wp-content/themes/classic/file.php < I want the image script to be included & functional here

I've tried a variety of include methods, path settings, etc. from various forums and of course the php include manual.

Any help?

Thanks.
Post Reply