Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

[SOLVED] WHERE TO PUT PHP SCRIPT


Go to End


4 Posts   1039 Views

Avatar
servalman

Community Member, 211 Posts

15 March 2011 at 5:07am

Hello

I'm trying to do the following :

I have a flash embed using swfObject.

In this swf I'm trying to call a simple php script that as nothing to with php for page type it is just there to store a variable in a textfile

The script is located in mysite/code/mycodes/updatescript.php so the url I use in flash is mysite/code/mycodes/updatescript.php.
The folders and file have the right authorisations

It works on the same server but not in my ss install

does anyone have a clue

Thanks

Avatar
servalman

Community Member, 211 Posts

15 March 2011 at 7:20am

Hello again ;)

This is getting weirder :

I can access any file (txt, other swfs) but not the php file I need

Do I miss something regardind authorization or is there a special place for thirdparty scripts.

It seems like something is preventing me from loading it ?

Any ideas suggestion more than welcome

Thanks

Avatar
(deleted)

Community Member, 473 Posts

15 March 2011 at 9:06am

This is because SilverStripe contains a default .htaccess in mysite that prevents people from directly accessing PHP files. To get around this, create a .htaccess in mysite/code/mycodes that looks like:

<Files updatescript.php>
       allow from all
</Files>

Avatar
servalman

Community Member, 211 Posts

15 March 2011 at 9:02pm

Thanks !