Ning Developer Network

NingMods.com

How can I include external files

Hey guys, Im trying to make an app that has "centralised" code that lives at www.ningmods.com, so I can secure and update it centrally ala Ning.

Having trouble including external files though!

Tried:
require 'xn-app://pimpme/xx/...';
require 'http://www.ningmods.com/xx/

with " and ' and ( around the require statement, but Ning doesnt seem to like any of those things.

Now the include statements work locally, so I know they are correct and functioning, is there any way of adding to the include_path so that I can then include remote files? I tried to do this the standard way through PHP but it didnt help.

Any ideas?

Reply to This

Replies to This Discussion

Yeah Ive made an application that I want to be able to run the code from on my site, so I can secure it and update it real easy.

Reply to This

You could try absolute urls re: HTTP_X_NING_BASE_PATH

Reply to This

could work! any more detail on this?

Reply to This

In your root make a test.php with
echo phpinfo(); for the var info.

Reply to This

Can I pay you some cash to make something work? I just need to get something working that allows you to include/require something on another Ning network.

It needs to incorporate some protection via the "define" /"die" type thing.

I'll continue looking but would like to get some help - this is the final step...

Reply to This

Thanks for the offer, but I'm just trying to learn the ropes atm.
I will post something If I figure it out.
  • 1
  • 2

RSS

Documentation & Tips

© 2008   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service