How To Call *.exe Program From Php Program

May 2, 2001

I have a php program, and from that program I wanna call C program that counts number of visitors on my page.

This is a piece of my program:

ADVERTISEMENT

Call A C Program From Read Program Output?

Apr 5, 2011

how to run a C program from a php script and store console output of the C program to a php variable?My program prints an integer value on the console using C printf() function. I want to read this value and store it in a php variable.I am using linux. I tried exec but it doesn't display the variable value once echoed to the pageThis the code snippet I am using.

exec("Release/matchface image1.jpg image2.jpg", $output);
while( list(,$row) = each($output) ) {
echo $row. "<br />";
}

View 1 Replies View Related

PHP Running Exec() Windows Program Very Slow In Comparison To UNIX Equivalent Program

Feb 5, 2008

Does anyone have an explanation or solution for the following.
I have a PHP script that uses exec() to call a program to do certain
calculations.

The UNIX version of this program I call runs in about 4 to 5 seconds.
When I run the same PHP script using exec() to call the Windows equivalent
of this same program on my Windows desktop, it takes about 32 seconds....

View 6 Replies View Related

Terminal - Working .exe Program And Developing A Timer Program?

Nov 5, 2010

how can i develop an app which work in php.exe in my php folder and i need to know can i develop an app which will work continuously using this function and able to work it on my CPanel? EDITwhat i mean is,a principle one of my friend said to me to develop an page which is having a timer in it,in every 5 min it will check in a rss page for looking is there any change or new item is added or not?if we develop some thing like this it is difficult for us to work the php program again and again right??so i need some thing like that,

View 3 Replies View Related

Create A Program That Analyzes Information That Is Exported By Another Program?

Sep 9, 2010

I'm creating a program that analyzes information that is exported by another program. That program exports it in this way:

Value1 Value2 Value3 Value4
Value1 Value2...

In order to insert them in the database, I first have to know how many lines are inserted. They get send through HTML post. I already tried:

$lines = explode("
[code]....

View 4 Replies View Related

Call A Script/program

Apr 6, 2006

If you modify a php script/program can you call the script yours? I mean if you make changes that enhances the value of the program or allows it to do more than in its original state, would you be able to call it your own? Or do you get part credit?

View 1 Replies View Related

Call C Functions In A C Program?

Dec 30, 2010

When you download PHP's source you realize that all the goodies are in the ext/ directory in their respective array.c, string.c, etc. files.

Now, I was wondering, it is possible to call these functions from a C program having those PHP C files?

View 3 Replies View Related

How To Call Out A Software Program

Oct 8, 2010

I have installed a software program and i am not able to call it out :Here is the error message which i do not have any clues of as i am non IT literate , that's why i come to this forum .

[Code]...

View 5 Replies View Related

How To Call An External OCR Program

Jun 13, 2011

How to call an external OCR program from PHP?

View 2 Replies View Related

Call A Python Program?

Jun 24, 2010

I've got a version of the A* algorithm that builds a graph of theUK road and cycle network in Python lists. t takes about 30 secondsto initialise, but once done can very quickly find the shortest routebetween any two vertices. The start and finish vex ids are providedby PHPI'm trying to work out the best way of communicating betweenPHP and the Python program. I only want to do the initialisation phasewhen the Apache server starts, so my question is: How do I keep thepython program alive and request routes from it via php? I have aGLAMP setup.

View 4 Replies View Related

Exec() Call To External Program

May 8, 2003

We are trying to use the exec() or system() calls in a php script. The program we are trying to call takes 1 parameter in the form of: email@domain.com[usercode]

There are no spaces in the parameter at all and we have tried placing quotes around just to see if it mattered. We have also modified the parameter just to send it hello. Here is what we get: With no parameters the php script executes the program where it displays the error message from the program stating that not enough parameters were supplied. We then add the word "hello" to the end after a space so the command looks like this: command "hello" and the program no longer executes at all. No matter what we do, if we supply an argument to the command the php code will not execute the program.

View 13 Replies View Related

Call Exec To Run An External Program Through A Form

Nov 11, 2005

I have problem with "Exec" function in PHP5. When I call Exec to run an external program through a form, it fails but when I run my PHP page by PHP interpreter like: PHP MyPHP.php it just works fine and external program executes successfully.

View 2 Replies View Related

Call To Undefined Function Mysql_connect() In C:Program?

May 5, 2011

Fatal error: Call to undefined function mysql_connect() in C:Program FilesApache Software FoundationApache2.2htdocsplaincartlibrarydatabase.php on line 4

<?php
ini_set('display_errors', 'On');
//ob_start("ob_gzhandler");
error_reporting(E_ALL);
[code]............

View 1 Replies View Related

Call A Program Stored In Hard Disk From Website?

Jun 20, 2011

I want my website to launch a java program (. jar file) stored in C:programfiles/livegraph etc.a how to go about  it. I've been googling it to no avail.

View 6 Replies View Related

Executing A Windows Command Line Program With System Call?

Mar 8, 2011

I am trying to execute a program using a system call inside a php file like so:

$newname = 'C:UsersJackDesktopupload est.ppt' ;
$program = '"C:Program Files (x86)Softinterface, IncConvert PowerPointConvertPPT"';
$input = ' /S "'. $newname .'"'
$destination = ' /T "C:UsersJackDesktopupload\"';

[Code]....

For some reason, the program enters an infinite loop (the browser never stops loading). I have tried the command manually and it works perfectly (takes about 2 sec to complete) but when executing it with a php file doesn't work.

View 1 Replies View Related

Fatal Error: Call To Undefined Function Mysql_connect() In C:Program FilesApache Gr

Apr 28, 2006

I am getting the error :

Fatal error: Call to undefined function mysql_connect() in C:Program FilesApache GroupApache2htdocsfirstdbprogram.php on line 4

I have PHP 5 installed,apache and mysql.

PHP is installed in c:php

IN the phph.ini I have done hte following: Code:

View 13 Replies View Related

Two Sessions: Session A By A Program Destroys Session B By A Program

Jul 1, 2008

I have two separate programs that I want to use together on a website
Program A starts first and calls session_start(). Program B is started by the user clicking on a link and it also calls session_start(). The session started by program B blows away the session started by program...

View 8 Replies View Related

Sessions? External Program / External Program

Mar 2, 2006

I am trying ac ouple of days now to learn some things on SESSIONS,but I think I am not getting it very clearly. I have a PHP page tha contains a form.

Users enter data in the form, which are then written in a file (the file is created at the time a user enters some data) The file is then given as an input to an external program The external program runs and gives some results which are then stored in another file (that is created when the external program finishes) What I want to do is to somehow create these files and, when the user exits from the browser, then both files that refer to this user, will be deleted. Code:

View 1 Replies View Related

Main Program Call Another Main [GET]

Jul 17, 2005

is it possible to call from a main program another one the same as it is
done by the browser?

If I begin I am able to do http://server/main.php?name="test" in the
browsers URL.

Could I do such a submission inside of a program and how?

View 3 Replies View Related

PHP Used As A CGI Program

Jun 30, 2003

Manual for odbc_pconnect states: "Persistent connections have no effect if PHP is used as a CGI program." As I have just installed PHP on a PC with an Apache server, how does one tell if it is used as a CGI program, and if so, how does one confiure it not to be?

View 1 Replies View Related

C Program And PHP

Jul 17, 2005

I have written this function in a C program, using Visual Studio. The
PHP script executes fine, but the output is not displayed. I have
been racking my brains for hours trying to figure this one out. The
output from the php program should print to a file called 'out.txt'.
The file is successfully created, but with no content. I am pretty
sure it's the way PHP returns the results. Does anyone have any
ideas? Any help would be most appreciated.

int passCode(void)
{
FILE *phpFile, *out;
size_t len;
char buffer[1000];

phpFile = popen("php -f testing1.php", "r");
if (phpFile)
{
out = fopen("out.txt", "w");
len = fread(buffer, 1, sizeof(buffer), phpFile);
fprintf(out, buffer);
fclose(out);

pclose(phpFile);

return 1;
}
else
{
return 0;
}
}

View 1 Replies View Related

How To Use ? And : In A Program

Oct 11, 2005

in the program below, what is the meaning/use of
the question mark (?gcd) and the colon (:$a) after the return statement?

<?
$x=32;
$y=80;
function gcd($a, $b)
{ return ($b>0)?gcd($b,$a%$b):$a;}
$val=gcd($x, $y);
print "The greatest common denominator of $x and $y is $val";
?>

This recursive program is used to find the greatest common denominator of 2
numbers.

View 9 Replies View Related

How To Program OOP

Jun 3, 2002

I use OOP for a PHP Application Framework I am programming. I have one base class which includes all the necessary functions and variables which all the other classes use. So what I originally did was that I made an instance of the base class and passed it to the other classes. Now someone insisted that this is not the way to do it.

so I used 'extends base' to make the base class available to the other classes. Afterwards it worked fine, but it didn't make the code smaller nor did it result in faster speed. I used the benchmarking script from PEAR. So I wonder whats the difference between those two solutions, both work fine. Are there some tools to analyse how much memory a script uses?

View 3 Replies View Related

Run A Program.

Oct 18, 2006

I am using

system('GPA.exe ' . $filename);

to run a program GPA.exe

this program do the following things. ../GPA.exe filename.txt and will generate another file. HOWEVER, the problem is, there is no new file generated and I doesn't get an exception. I don't know why. Can somebody give me a clue?

View 3 Replies View Related

Sig Program

Oct 19, 2005

I ran across a very cool little program today that I think I can reproduce for something I need on my site using PHP.

http://www.danasoft.com/customsig.php

How do they give the URL a .jpg extension and still be able to have it run a PHP script and send a JPG back to the browser?

View 5 Replies View Related

Run A C++ Program In Qt?

Mar 30, 2010

i need to automate my system.... for which i need to run a c++ program from a php function..

View 1 Replies View Related

PHP Program

May 18, 2007

I have a client that pretty much needs an admin program for their site. They are a local radio station. They want to be able to create forms within their website admin so they don't have to copy and paste code. They have no programming experience. NONE. They also want to be able to access their database to view content submitted. They send out birthday e-cards and all that junk. So does anyone know of a program that can do this?  They have a thing like this in iHTML, but it's gettin spammed all to hell and they want a more secure route.

View 1 Replies View Related

Is There A Way To Optimize My Program?

Apr 8, 2005

My Program is about parsing website through their url, My program is working properly but everytime it enters URL with so many sub URL (i mean thousand) my program seem to stop responding. Can you suggest something to this problem. somebody told me that i use the sleep() fucntion to not force my script to run successively, to give a pause to my program. Any thing more you can suggest? i'm not after the speed of execution but what im after is that he finish his job no matter how much time it takes....

View 1 Replies View Related

What Program Do U Write Your Php In ?

Oct 12, 2001

what program do u write your php in ? i just use notepad are there programs that would speed it up and make things easier ?

View 14 Replies View Related

Php Email Program

Jul 17, 2005

Does anyone know of a php or even cold fusion based script out there for
accessing email that can be customized? Right now I use SquirrelMail
which is great, however, you can't really customize it to tie in with
your web site. Is there something out there that is very flexible that
I could make fit right into my site which is pretty reliable in terms of
web email?

View 2 Replies View Related

Should I Use A One Php Program Or Multiple

Jan 17, 2007

I have taken over a php web site. Once you login you are given six menu
choices. Each option is or can be independant of the others. They each
modify the same database but in different ways.

On clicking the menu buttons the program calls php functions to do the
action. Thus the user stays inside a large program.

I was expecting the menu to provide links rather than function calls.
1) Is there a reason to stay inside a large program through function
calls rather than linking to separate pages?

2) Am I correct that providing a <a href=... link would isolate the
functionality and call a new program?

The current program is spagettii code and somewhat buggy. There are
side effects that depend on what function was called before. I am
hoping that passing the hidden input parameters is all the connectivity
I need.

View 1 Replies View Related

Chat Program

Oct 22, 2000

Is it possible to create a chat program by using PHP. Or is it only possible by JAVA?

View 6 Replies View Related

Survey Program -

Jul 17, 2005

I want to migrate a survey program to web application and have selected
PHP to use a on the server end along with apache and firebird rdms. As
developing a web application is much different than a standard app I
have some questions:

1) The survey has 50 questions with answers being 1-10. Is it best to
store all 50 questions and corresponding answers in a javascript array
and then up all in a batch update? The downside to this approach is the
user could lose all responses to survey questions if the client computer
web browser crashed.

2) After authenticating the user, how do I keep track of the rating
session to guard it from hacking? Do I just store the username in a
javascript variable since there is really no constant connection to the
server?

View 5 Replies View Related

PHP Program Packaging

Nov 8, 2001

I'm going to be doing a program for an elderly couple who owns a horse ranch, and wants some software to keep track of all their horses, owners, doctors, etc. I'm going to be writing the program in PHP using a MySQL database.

I set up one like this for my work and it runs off of Apache on our server. I need this program to be a stand-alone install, without installing MySQL, PHP, and Apache seperately. How could I go about integrating it all into one package?

View 2 Replies View Related

Standalone Program

Nov 11, 2001

I'm going to be doing a program for an elderly couple who owns a horse ranch, and wants some software to keep track of all their horses, owners, doctors, etc. I'm going to be writing the program in PHP using a MySQL database.

I set up one like this for my work and it runs off of Apache on our server. I need this program to be a stand-alone install, without installing MySQL, PHP, and Apache seperately. How could I go about integrating it all into one package?

View 4 Replies View Related

Program Flow

Jul 16, 2005

I had some bad experience with code organization and script
functionality in writing my php based applications. And as the applications
get bigger in scale it gets even worse. Therefore, I am trying to build a
general schema for data flow in a php/mysql application.

What I has in mind is to design a three major units. To handle the
input, processing and data access. Plus another unit to generate the output.

What I have now is one script that resolves the operation to be done
according to the parameters send to it and the call the processing unit to
do the rest of the job. However, as I add more functionality to the system
this dispatcher script gets bigger and bigger...

1. How can I arrange my program/data flow in an efficient and easily
maintainable way?

2. And how should I implement the output generation unit to be
completely seperate from the others (I have lots of forms and outputs I have
to show the user when necessary)?

View 3 Replies View Related

Calling A C Program From Php.

Aug 7, 2002

I need to call a c program from a php. I also need to pass a string to it and have it return an array or string. I was thinking about calling it like its cgi script, but I'm not to sure how to do that. I haven't figured the variable passing because I'm just
trying to get it to run first. These are allthe things I tried. Code:

View 2 Replies View Related

Calendar Program (help)

Mar 10, 2006

I have been solving algorithms with php, just to get practice. But my
new company
asked to do the following program in php, msql within 6 hours which I
have got stuck.
The task is as follows:

task:

"make a calendar using php and mysql where user can insert some
messages
and then see the day event."

I thought of doing a calendar on the browser where, in each cell there
is a button.
If button is clicked then a new textbox that imputes some message from
the user
and stores it in the mysql.

I don't know weather the above idea is possible.

Can any one give me a idea to approach the above problem?
Any link for UI in php? Is php event driven?

View 1 Replies View Related

Can Php Interact With A C Program?

Jul 17, 2005

A coworker asked me if he could develop a php front end that would ultimately end up interacting with a program he had written in c (c++ or whatever).

View 3 Replies View Related

Program Clog

Aug 22, 2006

I am developing a web crawler which collects info from more than 50,0000 pages. but i am afraid this is going to clog the rental web server if I run it every single day. Is it possible to stop the web hosting server because of my program?

View 5 Replies View Related

Mail Program

Jun 5, 2007

I am looking for a mail program I can setup on my site to offer visitors free e-mail from my domain. Hivemail went out of business. Everyone.net is an ASP solution. Can anyone recommend another program to use?

View 1 Replies View Related

Looking For A Pay To Upload PHP Program

Jun 25, 2005

Anyway, I'm looking for a PHP program that has the user pay to upload certain files to a server. I'd like to make it so the person has to pay before it will allow them to go to the upload page. I'm looking for one that is flexible and will allow me to change the look of it to fit my website. Also, if possible, I would like it to only allow certain file types for upload.

Anyway, if anyone knows of any script, or template, or whatever, that fits this description PLEASE let me know. I've been searching for something like this straight for the past couple of days and have yet to find anything.

View 4 Replies View Related

E-commerce Program

Oct 31, 2006

I'm looking for an e-commerce program for my site in PHP. I want to purchase something, top of the line, then do some customizations. Cost isn't really an issue. Which cart would be my best option?

View 2 Replies View Related

Initiating A Program

May 30, 2006

Is it possible to start a program and, in effect, detatch it from php and let it run in the background.

E.g. I could start a small bash script running, that would make an iso file from a dir, then mail the user on completion. I clearly don't want to have php sitting around doing nothing while this is happening.

View 22 Replies View Related

Using Server Program

Sep 19, 2006

Is there any way to use a program on the server to display data? For example, I want to use Crystal Reports on the Intranet server to display data. So when the user clicks a link on the web page Crystal Reports should open either as standalone or in the web browser. Is this possible?

View 7 Replies View Related

ADVERTISEMENT