Send Event is not designed for that purpose:
I would suggest you host your PHP script on a web server, then use "Insert from URL" or "Set Web Viewer" to call the URL to the script to execute it.
What your trying to do above will (at best) open a PHP file in your browser, but there's nothing to process it since it's client side, not server side.
Also, if you need to process native PHP inside of filemaker, the smartpill plugin does that
Thanks for reply
This php file o download xml file from somewhere. Is there any another way to perform this ?
Send Event["aevt";"odoc";"C:\path\to\your\php.exe \"C:\xampp\htdocs\php SOR.php\""]
Its not working
It seems that you missed one back slash in the 1st post.
the parameter is file to run.
Send Event["aevt";"odoc";"C:\path\to\your\php.exe C:\xampp\htdocs\php\SOR.php"]
ofcourse some option may be need.
on command prompt to see help.
This way works only if 'download' means 'get xml and save it automaticaly'.
I try This
Send Event["aevt";"odoc";"C:\xampp\php\php.exe C:\xampp\htdocs\SOR.php"]
but still its not working
What happened doing that ?
Did you wrote SOR.php for running on CLI version of php ?
If your purpose is downloading xml, [insert from URL] may be easier.
I want to run this php script in vbackground .That's why I used Send Event ..in Open URL its open browser..and I dont wwant to do that..
When i execute send event and nothig is happen ....
"Insert from url" does not open a browser, it is not the same as "open url".
If all you are doing is downloading an XML file, then "Insert From URL" to insert the XML contents into a filemaker text field is the easiest way to go. You can use "freeze window" to hide the action from your users.
If you do have XAMPP installed and insist on using send event, these might help you:
You might also need permissions on your directories/files set appropriately.
Insert From URL is still better since it happens inside of Filemaker.