How to run a external program in PHP?

Let’s learn how to run a external program in PHP. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

PHP - How to keep program still run when have error

In the example code: <?php for ($i = 1; $i <=20; $i++) { echo $i . '<br />'; if ($i == 10) { $haha->hoho("hehe"); } } ?> When $i = 10 program will show this error, Call to a member function hoho() on a non-object because $haha is not a object and the program stops running. I want the program to handle this error and continue running to $i=20. How can I do it?

Answer:

The Simple answer: Fix your code. Long answer: There is lots of ways to do that, the first thing off...

Read more

Phi Tống at Stack Overflow Mark as irrelevant Undo

Other solutions

Does this PHP script run multiple instances of Java program?

Hi, I have multiple PHP scripts that execute the same Java program but with different arguments. I wanted to know if a new instance of the Java program is being started by each script, or is it the same one? exec("java -jar SomeProgram.jar $insertedPageId...

Answer:

Yes, Multiple instances are started each time unless the Java programme is designed to handle everything...

Read more

Blaise M Crowly at Quora Mark as irrelevant Undo

What is the program that i need to run my file "*.php" AND where i can found it?

i downloaded a movie "cartoon movie" and i found that the extension of that file is ".php" , i tried to run my file but i failed. so my q is : what is the program ...show more

Answer:

PHP is a scripting language used on web servers. It does not run on the PC, but on the server. Unless...

Read more

OTGAEHE7FFRNEDPIXJZNUEA7XE at Yahoo! Answers Mark as irrelevant Undo

Help me to edit and run this program that answer the fractional form using php html?

<html> <head><title>Act1</title></head> <body><form action="act1.php" method=Post> <p>Enter first numerator: <input type=text name=num1 size=20></p> <p>Enter first numerator...

Answer:

First of all, change this: <p>Enter first numerator: <input type=text name=num1 size=20>...

Read more

mark79_2... at Yahoo! Answers Mark as irrelevant Undo

Answer:

Once you install wamp server. Any file with php extenstion like xyz.php you put in www folder will be...

Read more

community wiki at wiki.answers.com Mark as irrelevant Undo

Answer:

Here is the Official Ubuntu ApacheMySQLPHP Documentation https://help.ubuntu.com/community/Apache&hellip...

Read more

SOMNATH MENSI M at Yahoo! Answers Mark as irrelevant Undo

Answer:

As a module. This will save you the overhead of Apache having to start and stop the CGI interpreter...

Read more

BuckyF at Answerbag.com Mark as irrelevant Undo

Answer:

Your question doesn't make sense. Why would a browser care whether or not you wanted to run a PHP program...

Read more

g0Latz at Yahoo! Answers Mark as irrelevant Undo

How to create a database for program to use in MySQL?

Hi I'm trying to run a PHP chat bot called Program E. The installation instructions asks me to "Create a database for the program to use in MySQL". I have PHP5, MySQL, Apache2 on Ubuntu 8.10. My question is, how do I actually create a database...

Answer:

Write mysqladmin in a dos window followed by the database name you want to create C:\>mysqladmin...

Read more

apple guava at Yahoo! Answers Mark as irrelevant Undo

How to bend PHP to my ASP.NET desires

What frameworks or modules exist to allow PHP to function similar to ASP.NET? Specifically I am talking about the following ...Separating code from designMaintaining page and HTML element state between postbacks As a web developer, I program in ASP.NET...

Answer:

I think you're going to have a hard time with your first requirement- it's one of the key benefits of...

Read more

mountainfrog at Ask.Metafilter.Com Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.