473,387 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to pass php sertch results to c++ program?


Well no more or less..
just wondering what way is esyes to do that.
detail:
php performs sertch in db and output should by passed to c++ program.
how to aceff that?
--
Jul 17 '05 #1
3 1771
In article <op**************@w.bredbandsbolaget.se>, Carramba wrote:

Well no more or less..
just wondering what way is esyes to do that.
detail:
php performs sertch in db and output should by passed to c++ program.
how to aceff that?


Better ask this in a c++ group. I presume they'll suggest you to have a
look at popen, system, ...

Or they will ask you why you even want to use php to perform the query,
as there is probably a c++ api/lib available too.
--
Tim Van Wassenhove <http://home.mysth.be/~timvw/contact.php>
Jul 17 '05 #2
Carramba wrote:
Well no more or less..
just wondering what way is esyes to do that.
detail:
php performs sertch in db and output should by passed to c++ program.
how to aceff that?


system("echo " . escapeshellarg($data) . " | c++program");

or write a file with the data and have the c++ program read that file.

--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #3
On 31 May 2004 13:28:19 GMT, Tim Van Wassenhove <eu**@pi.be> wrote:
In article <op**************@w.bredbandsbolaget.se>, Carramba wrote:

Well no more or less..
just wondering what way is esyes to do that.
detail:
php performs sertch in db and output should by passed to c++ program.
how to aceff that?


Better ask this in a c++ group. I presume they'll suggest you to have a
look at popen, system, ...

Or they will ask you why you even want to use php to perform the query,
as there is probably a c++ api/lib available too.

the reson why I want to do it becouse on there is a sertch script that
runs throught database from the webquary. the result ll by cryptet by
c++ program, which ll passe crypted sertch result to companys message
service application.

--
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Matthew Lasar | last post by:
I am trying to study php from a book. But the code doesn't seem to work for me. I set up a form, as follows: <html> <head> <title>form</title> </head> <body> <form action="results.php"...
3
by: Carramba | last post by:
Well no more or less.. just wondering what way is esyes to do that. detail: php performs sertch in db and output should by passed to c++ program. how to achieve that? -- *Just keep swiming*
41
by: Berk Birand | last post by:
Hi, I am just learning about the array/pointer duality in C/C++. I couldn't help wondering, is there a way to pass an array by value? It seems like the only way to do is to pass it by...
110
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
4
by: deko | last post by:
This is a basic program flow question. I'm trying to refractor an AC2000 app and split sections of code into separate modules. But there are a number of collections I create in one big module -...
2
by: Quarantine | last post by:
I am still a noob at the whole .NET, but I have a question and hope someone can help me out. I am taking user input, then want to query a database and return the results to either a datagrid, or a...
0
by: Helen | last post by:
I have a simple oledb dataset on one windows form in vb .net 2002 calling one column from oracle 7, results appear in a text box But, only the first results appears. Goal is to show all results...
10
by: sesling | last post by:
I have created a query that will pull information from our database for the operators. This query will pull in on average 50,000 records. The operators need to refine the search results. I have...
9
by: Camellia | last post by:
Hi all, I'll get straight into it. When I try to run the code: ..... while (scanf("%c", &c) == 1) printf("%c", c); ..... I input "abcd" follows by an EOF(Ctrl + d) instead of pressing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.