dmaxj Posted January 15, 2006 Posted January 15, 2006 I am having a problem calling a script from php fx. I am following the docs to the letter - at least I think so. I am running FM6 Pro on WinXP. I am wondering if there are any privileges that I need to set on FM6 Pro in order to allow scripts to be called from the web. Any clues - $findQuery = new FX($Server, $Port) ; $findQuery->SetDBData("table", "layout") ; $findQuery->SetDBPassword("pass") ; $findQuery->AddDBParam("-script","script1") ; Am I missing something?
dmaxj Posted January 17, 2006 Author Posted January 17, 2006 Are there any settings in the FM database application that need to be addressed in order for scripts to be executed/called from PHP... Thanks!
Garry Claridge Posted January 18, 2006 Posted January 18, 2006 Does the User have "permission" to run Scripts from the web? Garry
dmaxj Posted January 18, 2006 Author Posted January 18, 2006 I guess not - how could I go about checking this? I do have an admin password on the whole database, but nothing is mentioned in the phpfx docs. In addition, I am able to perform finds on the database and get a result... So, I would think that scripts would operate under the same defined privilege set. How could I check- thanks...
Garry Claridge Posted January 18, 2006 Posted January 18, 2006 That is probably OK. Do the Scripts contain only "web compatible" steps? Garry
dmaxj Posted January 18, 2006 Author Posted January 18, 2006 The script contains: Goto Layout Perform Find Export Records(no Dialog) This is a stored find script that exports its results to a shared drive on the network.
mlindal Posted January 18, 2006 Posted January 18, 2006 Back to Gary's question: In your web security databases, do you have 'perform scripts' checked in the database table you are accessing. Also make sure at the end you have: $findQueryResult=$findQuery->FMFind() ;
dmaxj Posted January 19, 2006 Author Posted January 19, 2006 I have been trying to enable the Web Security Databases options under Edit->Preferences->Application->PlugIns->Web Companion->Configure... However, only the Filemaker Pro Access Privileges radio button can be selected. Please advise as to how I enable the Web Security Databases option... Thanks
mlindal Posted January 25, 2006 Posted January 25, 2006 You need to open the web security databases. They should be in a folder called Web Security / Databases When you open them up the default setup is to turn All databases, and All Users to no privileges You then create a new record where you can allow All Users Browse, and Scripts privileges. etc.
Recommended Posts
This topic is 6946 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now