RE: [PHP] how to call user function

From: Date: Tue, 29 Aug 2000 01:48:19 +0000
Subject: RE: [PHP] how to call user function
Groups: php.general 
Request: Send a blank email to php-general+get-14031@lists.php.net to get a copy of this message
> What I mean is that I want to call a user-defined C function. Say I want to > know something about the client. the client side have a C function which > does the query. But then how do I invoke this function in PHP script. > > Or let's say when user click something on the broser page, my httpd server > script will actually call a API function on the client side to execute the > action. How does PHP let you do that? If you're trying to do what I think you're trying to do (judging by your mail), I think you're missing the point of PHP - its not a client-side script. It is executed on the server, then the source code is stripped from the file, and only the results send to the browser. There is no way to trigger any event on the client side except by using JavaScript, since that is the language that a web browser understands. JavaScript questions are best directed to a JavaScript list. To the best of my knowledge, you cannot write a function in C and "call" it with PHP. You could write a program in C, and have PHP exec() the program behind the scenes, and read its responses. This is executing a program though, not calling a function, so I don't know if it is quite what you meant. Jason -- Jason Murray jasonm@melbourneit.com.au Web Design Team, Melbourne IT Don't believe everything you're foretold.

« previous php.general (#14031) next »