I have a php script that calculates something very long.
This is called from the JS file and I want to call it from another php file and call it apart from the JS file.
The file is called strategy.server.php and it is very similar to
I am trying to file a single file to calculate for different parameters (in a loop).
So I thought about using the included parameters and posting:
$ params = "some parameters ..."; $ Params = "Strike value" $ Data ["strike price"] "& Amp; instability =" $ data ["instability"] .. "& Amp; remainingDays =" $ data ["remainingDays"] .. "& Amp; interestRate =" $ data ["interestRate"] .. "& Amp; Commission =". "7" .//$ Data ["Commission"]. "& Amp; profitDays =". "7"; // $ data ["profitDays"]; Include ("server / strategy server.php?" $ Params); Json_decode ($ data); Transcription $ data ['totalMargin']; but it returns an error:
WARNING: Include (Server / Strategy server.php? Mycase = 1 & amp; rangeMin = 0 & amp; rangeMax = 0 & amp; StrikePix = 1078 & amp; amp;; instability = 24 & remaining days = 51 and interest rate = 2.5 and commission = 7 and profit day = 7) [function.include]: failed to open the stream: in C There is no such file or directory: \ xampp \ htdocs \ s-maof-
file containing a PHP file All the works from within Is executed in the current PHP file, so any criteria that can be accessed from within code is defined.
For example, if I got the file named as echo.php : And it is included in another file:
The result will be:
Hello World to include the criteria by using HTTP GET Are the method, but only what is defined in the scope. Also, get the parameter at the end of a file name in Unix, as a result the file system will search the entire string on the disk.
For the above example, the file will be compiled as: So in your case, you want to edit the strategy.server.php script to check it already, even if the data parameter is passed in the array and its Get the default after: if (empty ($ params)) {$ params = $ _GET; } // filter parameter for user input;
Comments
Post a Comment