Jump to:

5521 Posts in 1733 Topics by 1220 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: 1267 Views
  • jamie
    Avatar
    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?
    Cheers,
    Jamie

  • Willr
    Avatar
    Forum Moderator
    5490 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
    Avatar
    Community Member
    254 Posts

    Re: fopen Link to this post

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

    1267 Views
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.