LaRetta Posted March 13, 2012 Posted March 13, 2012 And now I'm confused too! But I'm still having fun! :w00t: 1
dansmith65 Posted March 14, 2012 Posted March 14, 2012 You just contradicted the post you linked to. As Wim (and you) said earlier, when you run a scheduled server script, the global sticks. When you run a script on the server via URL, no stick. oops! Thanks for catching that. Before the test, I assumed that the XML custom publishing triggered script would set the global var, then I found out that it didn't work that way... then I forgot. Disregard my latest post, refer to my first post.
Fitch Posted March 15, 2012 Posted March 15, 2012 I appreciate you taking the time to test it, Dan. An interesting and useful thread.
john renfrew Posted August 17, 2012 Posted August 17, 2012 I don't think so. I said that users can run a script directly (through a URL), but they can not run a schedule directly. It may be a fine distinction but a schedule can be more complex than just a script: it can have OS level scripts before and after running the script. Wim, can you explain how? I must be a bit thick today.
David Jondreau Posted August 17, 2012 Posted August 17, 2012 John, Dan Smith posted a sample file earlier in the thread. Basically with an XML call to the server through the Web Viewer (or maybe now Insert from URL[] too). DJ
David Jondreau Posted August 20, 2012 Posted August 20, 2012 Reviewing this...Is there a reason why XML is popular for calling server scripts instead of PHP?
dansmith65 Posted August 20, 2012 Posted August 20, 2012 How would you call a script with php? I know it can be done, but it must be done from a php script, which FileMaker cannot process on it's own. However, to call a script via XML, all FileMaker has to do is load a URL.
David Jondreau Posted August 20, 2012 Posted August 20, 2012 There's the newPerformScriptCommand PHP API call. I was thinking Set Web Wiewer[] and Insert from URL[] should work just the same with PHP as XML. Since, I've got you on the line, Dan. How do you pass the user / pass in the XML URL?
dansmith65 Posted August 20, 2012 Posted August 20, 2012 Since, I've got you on the line, Dan. How do you pass the user / pass in the XML URL? I didn't in my sample file earlier in this thread, but I hope a url formatted like this will work: http://username:password@hostname/path?querystring There's the newPerformScriptCommand PHP API call. I was thinking Set Web Wiewer[] and Insert from URL[] should work just the same with PHP as XML. That method needs to be called on an instantiated FileMaker API object, in a php script. In other words, you'd have to have a php file on a server somewhere, and open the url for that php script using Set Web Viewer[] or Insert from URL[]. There is no way to call newPerformScriptCommand from the FileMaker API directly from a url.
Recommended Posts
This topic is 4477 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