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

Can I chmod my files to make them readable?

What about referencing my files with /apps/pimpme/xx.... sort of format?

Reply to This

Can I set my fiels to "world execute"?

I use Coda to develop in and it seems to allow me to do this, not sure if it works

Reply to This

come on dudes at Ning, Ive seen other people do this..... !

Will gladly good money for some help on this one!

Reply to This

Reply to This

tried them all!

include
include_once
require
require_once


Have you had a win with require_once? Can you show me the details if you had a win?

Reply to This

require_once 'xn-app://xoxotools/OutlineClasses/Outline.php';
require_once 'xn-app://xoxotools/OutlineClasses/OutlineFromXML.php';
require_once 'xn-app://xoxotools/std_rss_out.php';

Reply to This

dude can you drop me a line on skype? My username is "thomaldo"

(.. the Google cache URL didnt come through ....)

Reply to This

Also tried the various methods of referencing

http://.... - this got disabled by Ning
/apps/pimpme/.... - got through but got a permissions error
xn-app://pimpme/... - can talk locally but not externally.

Reply to This

Yeah its the openstream function that dies in this class.... I tried to look into the class but not a lot of joy.... have you looked into it by any chance?

Reply to This

no, the fancy hasn't hit me yet. You trying to link to an app developed in another ning besides your own? right?

Reply to This

or better, trying to combine two nings of your own with one app?

Reply to This

not what Im trying to do.... basically Ive made a full blown PayPal NingMod to turn Ning sites into paysites... it all works just want to be able to "centralise" the code so I can secure it and update it for clients.

Reply to This

  • 1
  • 2

RSS

We're Hiring

We are looking for talented and passionate individuals to join our growing team.

Visit our engineering jobs and see if Ning is right for you.

© 2008   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service