passthru

1:1 call PHP from Python

半城伤御伤魂 提交于 2021-02-05 11:23:14
问题 We're using Splunk (A tool to analyse machine data like log files) and have an application in PHP. For some data we need to do a call to our application in php (CLI-based). Unfortunately Splunk only supports Python calls. Is there an easy way to 1:1 "forward/call" php with the same arguments and return the output, like a "passthru". I've found only parts of the solution with the socalled subprocess module but my python experience is zero, so can't get it to work. For example, splunk calls:

MS Access Passthrough Query Update

和自甴很熟 提交于 2019-12-24 15:27:33
问题 I am trying to make an Update to a Passthrough query using MS Access to an ODBC server that I have no control over. The reason I have to use a Passthrough is that the records I am accessing have more than 255 fields (I would use a linked table if I could). I've been using this resource to get the data using Passthrough (http://www.techonthenet.com/access/tutorials/passthrough/basics09.php) The query is simply: SELECT FullName, PointNumber FROM DNP3.CDNP3AnalogIn The ODBC Connect Str is: ODBC

Use function call in passthrough query?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 01:17:37
问题 I have a passthrough query in an Access 2010 application, which I'm using to call a stored procedure on a SQL Server backend. The stored procedure takes a parameter that I need to make dynamic. The problem is this: Execute spMyProc 'userName' works as expected. Execute spMyProc getUserName() generates a "syntax error at ')'" message. Is it possible to use a function as a parameter in a pass-through query? Also, I should note that I'm migrating a complex Access application to SQL server, and I

MATLAB output to PHP code

↘锁芯ラ 提交于 2019-12-08 13:02:51
问题 I want to pass MATLAB output to my php code. My MATLAB code, I have: function x = returnX() x = 100; end And my PHP code: <?php $command = "matlab -nojvm -nodesktop -nodisplay -r \"x = returnX();\""; passthru($command, $output); echo($output) ?> However, this prints 0, not 100. When I type the command in my cmd, it shows 100. But when I try it through PHP code, it does not work. Can anyone help me how to set the output value of MATLAB to php variable? Thanks! 回答1: You should rather use exec ,

Continue execution after calling php passthru() function

╄→гoц情女王★ 提交于 2019-12-08 06:42:52
问题 When using php passthru() function, default is to stay until the external script execution ends. PHP manual says ::::: "If a program is started with this function, in order for it to continue running in the background, the output of the program must be redirected to a file or another output stream. Failing to do so will cause PHP to hang until the execution of the program ends." - http://php.net/manual/en/function.passthru.php I want to collect external script data for specific time e.g. for

Passing data from C++ to PHP

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 08:39:02
问题 I need to pass a value from PHP to C++. I think I can do with PHP's passthru() function. Then I want C++ to do something to that value and return the result to PHP. This is the bit I can't work out, does anyone know how to pass data from C++ to PHP? I'd rather not use an intermediate file as I am thinking this will slow things down. 回答1: You could have your c++ app send its output to stdout, then call it from PHP with backticks, e.g. $output=`myapp $myinputparams`; 回答2: wow thanks a lot to

Passing data from C++ to PHP

我们两清 提交于 2019-12-05 14:49:54
I need to pass a value from PHP to C++. I think I can do with PHP's passthru() function. Then I want C++ to do something to that value and return the result to PHP. This is the bit I can't work out, does anyone know how to pass data from C++ to PHP? I'd rather not use an intermediate file as I am thinking this will slow things down. Paul Dixon You could have your c++ app send its output to stdout, then call it from PHP with backticks , e.g. $output=`myapp $myinputparams`; wow thanks a lot to Columbo & Paul Dixon. Now I can run php to call c++ thn pass back value to php~ =) Here I provide a

MS Access cancel execution of pass-thru query keyboard shortcut

若如初见. 提交于 2019-12-01 15:11:06
When using SQL pass-thru queries in MS Access, there is a default time-out of 60 seconds, at which point an instruction is sent to the remote server to cancel the request. Is there anyway to send this command from the keyboard similar to Access' own "Ctrl + Break" operation? Lynn Crumbling Firstly, understanding how Control-C cancels execution. They probably trap that key sequence, and do something special. I strongly suspect that oracle's client apps (SQL*Plus et al) are calling OCIBreak() behind the scenes, and passing in the handle to the server that they obtained when they executed the

MS Access cancel execution of pass-thru query keyboard shortcut

若如初见. 提交于 2019-12-01 12:10:13
问题 When using SQL pass-thru queries in MS Access, there is a default time-out of 60 seconds, at which point an instruction is sent to the remote server to cancel the request. Is there anyway to send this command from the keyboard similar to Access' own "Ctrl + Break" operation? 回答1: Firstly, understanding how Control-C cancels execution. They probably trap that key sequence, and do something special. I strongly suspect that oracle's client apps (SQL*Plus et al) are calling OCIBreak() behind the

How to make a passthrough / passthru query editable?

怎甘沉沦 提交于 2019-11-28 13:37:07
In the Microsoft Access 2007 with an SQL Server Backend, we usually take a linked table from the SQL Server as Form.RecordSource of an editable form for a single table data modification. A local query is used for cross tables editions that combines fields from several linked tables. The local query must be updatable itself in order to modify data on the editing form. Now we are planning to replace all local queries by Passthrough queries in order to use native SQL Server tables directly. I've tried to create a very simple passthru query named qrySelProductsPassThroughEditable with the