473,804 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Executing external program without getting output

Is it possible to execute programs in a PHP script without waiting for
the output and successfully ending the PHP script without ending the
external program too?

Sep 28 '07 #1
2 1954
On 28 Sep, 22:36, qwerty...@googl email.com wrote:
Is it possible to execute programs in a PHP script without waiting for
the output and successfully ending the PHP script without ending the
external program too?
Do this:

Create a program that executes the program you want to execute.

Use PHP to execute the first program.

The first program will execute the second one and close itself.

The second one will keep running, but PHP won't know ;) and PHP
ignores that fact and so it finishes and the second program will still
be running :).

Sep 28 '07 #2
qw*******@googl email.com wrote:
Is it possible to execute programs in a PHP script without waiting for
the output and successfully ending the PHP script without ending the
external program too?
Let me guess. If you are not interested in the results, you do not need
them right away. Then your program probably does not have to start right
away either. This situation is ideal for a CRON job. CRON jobs are often
used on web servers for clean-up routines, sending reminder e-mails, etc.
Sep 28 '07 #3

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

Similar topics

9
6697
by: Jean-Marc Molina | last post by:
Hello, I can't find a way to execute a Windows application, whose directory path contains blank spaces, from a PHP script. I also wonder if the problem happens under Linux and other OS. Working dir : "C:\test copy" "copy.php" PHP script : <?php
4
2948
by: Kyle Sheldon | last post by:
I'm currently working on a class "Course" and I'm getting an unresolved external error when trying to compile. I understand that unresolved externals are caused by declaration of methods that are not defined, but I think I defined all my methods so this one has got me stumped. Any help would be much appreciated. Thank you for your time, Kyle
2
2425
by: Cédric Rossé | last post by:
Hello, I have a web application (asp.net, c#) and I'd like to execute an external program (.exe or .cmd) in the server side (which runs the iis server) when the client press a simple button on a web page. I'm using impersonalisation and the class "Process", but I can't execute my external program... The process is created (I try to execute notepad.exe) and I can see it in the windows task manager but then nothing appends and my...
2
1958
by: LordChaos | last post by:
Dear all, I am a newbie in Java, I got the following problem: I am going through a list of directories. The programm looks inside each directory for specific files and writes them in an File-array. Then it goes through this array and executes the external programm "naccess". naccess takes a file as input and produces 4 output files. Unfortunatly the result files are not in the directory where the input file is (/home/tj/test), they are in...
0
1385
by: jfigueiras | last post by:
>I have a problem with the module subprocess! As many other programs... I'm not sure what you mean by "non-standard file descriptors". The other program is free to open, read, write, etc any file he wants - are you trying to trap any file operation it may want to do? You *could* do such things -google for "code injection" and "API hooking"- but I doubt it's what you really want.
2
5338
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2 Ask on python-list@python.org . - Josiah
2
1293
by: jamesGE | last post by:
HI i have inherited a Tool at work and when i go to compile this is the errors i am getting Linking... Creating library ..\..\..\VCProject32\common\Dlls_Libs/Release/dsdev32.lib and object ..\..\..\VCProject32\common\Dlls_Libs/Release/dsdev32.exp devices.lib(Devices.obj) : error LNK2001: unresolved external symbol "public: int __thiscall CSQL::BindString(char *,int,int,int)" (?BindString@CSQL@@QAEHPADHHH@Z) devices.lib(devdefdl.obj) :...
1
1506
by: Emerald Saint | last post by:
Hi. I been away and didn't get here again until now. Thank you for your offer to share programs that you have. I studied up and refreshed my memory about linkers and compilers. So I have the answer to the question I asked here. I found a Microsoft site where they have 'Express' editions for VisualC++ and Visual Basic and other stuff. It is all free. I downloaded the VC++ Express edition and discovered there are ways to use it for...
7
10088
by: chage | last post by:
Hi, I have been searching around to try adding reference assembly to another assembly during runtime, programatically. Is this possible in .Net? The reason for this is because i am having trouble using a library that creates an instance of a Type that i specified, and it failed the locate the Type during runtime, if i do not reference it during compile time.
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9173
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.