Jump to:

5537 Posts in 1737 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » fopen

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1275 Views
  • jamie
    Community Member
    4 Posts

    fopen Link to this post

    Hey there,
    New to silverstripe and trying to import a file with fopen.
    Is there a reason why I can't get this to work in silverstripe?

  • Willr
    Forum Moderator
    5497 Posts

    Re: fopen Link to this post

    Hi Jamie Welcome to the Forums.

    Do you get an error message when trying to use fopen? It is likely that may have got the path to the file to import open. The base path for SilverStripe is in sapphire/main.php so if you want to get into the mysite folder then you have to either go up a folder (../mysite) or use an absolute url would work.

    Other reason could be that its a permissions issue trying to read it.

  • Bambii7
    Community Member
    254 Posts

    Re: fopen Link to this post

    ahhh thanks again Willr,
    I forgot SS sets the base path!

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.