f



Run background process from PHP on Windows with window

Hi all!

Windows XP, Apache 2.2, PHP 5.2.5 as apache module (php5apache2_2.dll)

I need to run background process and see output but for current moment
all methods runs it as process not as application (visible in task
manager but no window attached). I tried exec, ``, popen(), with and
without start and psexec.
  Is here any way to run it as separate process, without waiting (psexec
-d) and with visible window? Small example running 'cmd' in separate
window will be great.

  Thanks!
0
akul1 (62)
6/15/2008 9:54:10 AM
comp.lang.php 32646 articles. 0 followers. Post Follow

20 Replies
1030 Views

Similar Articles

[PageSpeed] 56

Greetings, Alexey Kulentsov.
In reply to Your message dated Sunday, June 15, 2008, 13:54:10,

> Windows XP, Apache 2.2, PHP 5.2.5 as apache module (php5apache2_2.dll)

> I need to run background process and see output but for current moment
> all methods runs it as process not as application (visible in task
> manager but no window attached). I tried exec, ``, popen(), with and
> without start and psexec.
>   Is here any way to run it as separate process, without waiting (psexec
> -d) and with visible window? Small example running 'cmd' in separate
> window will be great.

I think that wintty.exe is what you're looking for.
But it was long time I have played with it.
I'm sorry if it is not what i think.


-- 
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

0
anrdaemon (327)
6/16/2008 12:10:34 AM
Alexey Kulentsov wrote:
> Hi all!
> 
> Windows XP, Apache 2.2, PHP 5.2.5 as apache module (php5apache2_2.dll)
> 
> I need to run background process and see output but for current moment
> all methods runs it as process not as application (visible in task
> manager but no window attached). I tried exec, ``, popen(), with and
> without start and psexec.
>  Is here any way to run it as separate process, without waiting (psexec
> -d) and with visible window? Small example running 'cmd' in separate
> window will be great.
> 
>  Thanks!

Go to PHP manual for exec... There is a comment there saying something 
about creating a COM object.

Hendri Kurniawan
0
6/16/2008 1:07:15 AM
Alexey Kulentsov wrote:
> Hi all!
> 
> Windows XP, Apache 2.2, PHP 5.2.5 as apache module (php5apache2_2.dll)
> 
> I need to run background process and see output but for current moment
> all methods runs it as process not as application (visible in task
> manager but no window attached). I tried exec, ``, popen(), with and
> without start and psexec.
>  Is here any way to run it as separate process, without waiting (psexec
> -d) and with visible window? Small example running 'cmd' in separate
> window will be great.
> 
>  Thanks!
> 

You need to invoke the Windows command processor to execute an 
asynchronous command.  You can't do it with just PHP calls - which end 
up as synchronous calls to the OS.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
jstucklex (14659)
6/16/2008 1:48:35 AM
AnrDaemon wrote:
> Greetings, Alexey Kulentsov.
> In reply to Your message dated Sunday, June 15, 2008, 13:54:10,
> 
>> Windows XP, Apache 2.2, PHP 5.2.5 as apache module (php5apache2_2.dll)
> 
>> I need to run background process and see output but for current moment
>> all methods runs it as process not as application (visible in task
>> manager but no window attached). I tried exec, ``, popen(), with and
>> without start and psexec.
>>   Is here any way to run it as separate process, without waiting (psexec
>> -d) and with visible window? Small example running 'cmd' in separate
>> window will be great.
> 
> I think that wintty.exe is what you're looking for.
> But it was long time I have played with it.
> I'm sorry if it is not what i think.
> 
> 

You're right.  It's not what you think it is.  And it doesn't do what he 
wants - as is normal for your "answers".

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
jstucklex (14659)
6/16/2008 1:49:10 AM
Jerry Stuckle пишет:

> 
> You need to invoke the Windows command processor to execute an 
> asynchronous command.  You can't do it with just PHP calls - which end 
> up as synchronous calls to the OS.
> 
  Sorry I don't understand your idea. 'cmd' is exactly that I try to run 
in my experiments. Can you provide example?
0
akul1 (62)
6/16/2008 10:59:34 AM
Hendri Kurniawan пишет:

> Go to PHP manual for exec... There is a comment there saying something 
> about creating a COM object.
   Thanks! $WshShell->Run($cmdLine, 1, false); works o.k. for me
0
akul1 (62)
6/16/2008 11:01:07 AM
Alexey Kulentsov пишет:
> Hendri Kurniawan пишет:
> 
>> Go to PHP manual for exec... There is a comment there saying something 
>> about creating a COM object.
>   Thanks! $WshShell->Run($cmdLine, 1, false); works o.k. for me
This solution works only when running script from command line. When 
trying to run script from apache you will not see any window.
0
sg111 (1)
6/16/2008 11:12:09 AM
RakeMaster пишет:

>>   Thanks! $WshShell->Run($cmdLine, 1, false); works o.k. for me
> This solution works only when running script from command line. When 
> trying to run script from apache you will not see any window.
   Ooops! Yes, I din't test both variants... This is only command line 
solution, yes.
0
akul1 (62)
6/16/2008 11:15:20 AM
AnrDaemon write:

> I think that wintty.exe is what you're looking for.
> But it was long time I have played with it.
> I'm sorry if it is not what i think.

Great thanks! This is exactly that I need. wintty + popen (or proc_open) 
  + output buffering = solution.
Works in all cases, both module and command line interfaces.

Is this possible to connect PHP stdout direct to opened by proc_open() 
process? In this case I can solve problem without output buffering.
0
akul1 (62)
6/16/2008 11:20:12 AM
Alexey Kulentsov wrote:
> Jerry Stuckle пишет:
> 
>>
>> You need to invoke the Windows command processor to execute an 
>> asynchronous command.  You can't do it with just PHP calls - which end 
>> up as synchronous calls to the OS.
>>
>  Sorry I don't understand your idea. 'cmd' is exactly that I try to run 
> in my experiments. Can you provide example?
> 

cmd.exe is the command processor in Windows.  You can start it 
asynchronously with the "start" command.

See the Windows help information.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
jstucklex (14659)
6/16/2008 12:08:31 PM
Jerry Stuckle пишет:

> cmd.exe is the command processor in Windows.  You can start it 
> asynchronously with the "start" command.
> 
> See the Windows help information.

  Don't work. I tried it. See my first letter in this thread.

0
akul1 (62)
6/16/2008 12:13:10 PM
Alexey Kulentsov wrote:
> Jerry Stuckle пишет:
> 
>> cmd.exe is the command processor in Windows.  You can start it 
>> asynchronously with the "start" command.
>>
>> See the Windows help information.
> 
>  Don't work. I tried it. See my first letter in this thread.
> 
> 

But unless it's a background process which doesn't even open stdout 
(highly unusual - most open it, even if they don't use it), you have to 
have a window for output.

You can start the window minimized, if you want.  But if you want to be 
able to start it with no window at all, you have to first ensure the 
program doesn't open stdout, then use a COM object to start it.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
jstucklex (14659)
6/16/2008 12:32:34 PM
Jerry Stuckle пишет:

> But unless it's a background process which doesn't even open stdout 
> (highly unusual - most open it, even if they don't use it), you have to 
> have a window for output.
> 
> You can start the window minimized, if you want.  But if you want to be 
> able to start it with no window at all, you have to first ensure the 
> program doesn't open stdout, then use a COM object to start it.
> 
   Ok, I understand. You didn't test it, you don't have an example and 
you have nothing to write on my problem.
0
akul1 (62)
6/16/2008 1:10:50 PM
Alexey Kulentsov wrote:
> Jerry Stuckle пишет:
> 
>> But unless it's a background process which doesn't even open stdout 
>> (highly unusual - most open it, even if they don't use it), you have 
>> to have a window for output.
>>
>> You can start the window minimized, if you want.  But if you want to 
>> be able to start it with no window at all, you have to first ensure 
>> the program doesn't open stdout, then use a COM object to start it.
>>
>   Ok, I understand. You didn't test it, you don't have an example and 
> you have nothing to write on my problem.
> 

No, I've done it before - many times.  You just aren't willing to look 
at the possibilities.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
jstucklex (14659)
6/16/2008 3:23:18 PM
Greetings, Alexey Kulentsov.
In reply to Your message dated Monday, June 16, 2008, 15:20:12,

>> I think that wintty.exe is what you're looking for.
>> But it was long time I have played with it.
>> I'm sorry if it is not what i think.

> Great thanks! This is exactly that I need. wintty + popen (or proc_open) 
>   + output buffering = solution.
> Works in all cases, both module and command line interfaces.

> Is this possible to connect PHP stdout direct to opened by proc_open() 
> process? In this case I can solve problem without output buffering.

Probably.... I know that it is possible to start program in windows with
reassigned STDIN/STDOUT/STDERR, but I do not know how to do that using
proc_open or other kind of process control routines in PHP.
If Jerry does not know that, I'm afraid it will be left for your research.


-- 
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

0
anrdaemon (327)
6/16/2008 7:30:49 PM
Alexey Kulentsov wrote:
> AnrDaemon write:
> 
>> I think that wintty.exe is what you're looking for.
>> But it was long time I have played with it.
>> I'm sorry if it is not what i think.
> 
> Great thanks! This is exactly that I need. wintty + popen (or proc_open) 
>  + output buffering = solution.
> Works in all cases, both module and command line interfaces.
> 
> Is this possible to connect PHP stdout direct to opened by proc_open() 
> process? In this case I can solve problem without output buffering.
> 

Yes, it is.  See proc_open() in the manual for an example on how to do 
it.  But it won't run asynchronously with your script.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
jstucklex (14659)
6/16/2008 9:31:01 PM
Jerry Stuckle write:

> 
> Yes, it is.  See proc_open() in the manual for an example on how to do 
> it.  But it won't run asynchronously with your script.

???

Please don't waste my time writing me.
0
akul1 (62)
6/16/2008 10:43:21 PM
Alexey Kulentsov wrote:
> Jerry Stuckle write:
> 
>>
>> Yes, it is.  See proc_open() in the manual for an example on how to do 
>> it.  But it won't run asynchronously with your script.
> 
> ???
> 
> Please don't waste my time writing me.
> 

I'm not.  But if you don't want good answers, then I won't bother 
wasting my time on you.

You're the one asking for help, idiot.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
jstucklex (14659)
6/16/2008 11:15:31 PM
Jerry Stuckle пишет:

> I'm not.  But if you don't want good answers, then I won't bother 
> wasting my time on you.
   I have good answers - but never from you.
   Let's analyze Good Answers from Jerry Stuckle (tm) in this thread:

> You're right.  It's not what you think it is.  And it doesn't do what
> he wants - as is normal for your "answers".

  First of all Jerry Stuckle insult man who give me correct and best (in
fact only one for current moment) solution. Because Jerry Stuckle just
too stupid to understand my problem and this solution.

> Yes, it is.  See proc_open() in the manual for an example on how to
> do it.  But it won't run asynchronously with your script.

  Second comment in this branch, again stupid. I don't need to run
WinTTY asynchronously, you stupid idiot. I run it to redirect output of
already ran asynchronously script to console window. This is exactly
what WinTTY is written for.

Let's continue with Good Answers:

> You need to invoke the Windows command processor to execute an
> asynchronous command.  You can't do it with just PHP calls - which
> end up as synchronous calls to the OS.

Just meaningless piece of cake, nothing common with my problem. I CAN
run processes asynchronously and every subscriber can understand this
from my first letter in this thread - but not Jerry Stuckle. Jerry
Stuckle just too stupid for this.

Next Good Answer from Jerry Stuckle (tm):

> cmd.exe is the command processor in Windows.  You can start it
> asynchronously with the "start" command.
> 
> See the Windows help information.

Very, very useful answer! Every man having head with brain inside can
understand from my first letter that I know about start and psexec and
already test both cases. But not Jerry Stuckle. Jerry Stuckle prefer to
write Good Answers without reading questions.


> But unless it's a background process which doesn't even open stdout
> (highly unusual - most open it, even if they don't use it), you have
> to have a window for output.
> 
> You can start the window minimized, if you want.  But if you want to
> be able to start it with no window at all, you have to first ensure
> the program doesn't open stdout, then use a COM object to start it.

Next stupid comment. "But if you want to be able to start it with no
window at all" You idiot, my process already started without window
(btw, having stdout and writing to it), and this is exactly my problem.
But Jerry Stuckle too stupid to understand this.

>> Ok, I understand. You didn't test it, you don't have an example and
>> you have nothing to write on my problem.
> No, I've done it before - many times.  You just aren't willing to
> look at the possibilities.

If you don't understand subject - shut up. If you too tired to give
right answer - shut up. But Jerry Stuckly too stupid to understand such
complex rules. Is seems he is a bot posting common phrases to every thread.

> You're the one asking for help, idiot.

Be careful, don't broke your mirror!


Bye.
0
akul1 (62)
6/17/2008 8:43:52 AM
Alexey Kulentsov wrote:
> Jerry Stuckle пишет:
> 
>> I'm not.  But if you don't want good answers, then I won't bother 
>> wasting my time on you.
>   I have good answers - but never from you.
>   Let's analyze Good Answers from Jerry Stuckle (tm) in this thread:
> 
>> You're right.  It's not what you think it is.  And it doesn't do what
>> he wants - as is normal for your "answers".
> 
>  First of all Jerry Stuckle insult man who give me correct and best (in
> fact only one for current moment) solution. Because Jerry Stuckle just
> too stupid to understand my problem and this solution.
> 
>> Yes, it is.  See proc_open() in the manual for an example on how to
>> do it.  But it won't run asynchronously with your script.
> 
>  Second comment in this branch, again stupid. I don't need to run
> WinTTY asynchronously, you stupid idiot. I run it to redirect output of
> already ran asynchronously script to console window. This is exactly
> what WinTTY is written for.
> 
> Let's continue with Good Answers:
> 
>> You need to invoke the Windows command processor to execute an
>> asynchronous command.  You can't do it with just PHP calls - which
>> end up as synchronous calls to the OS.
> 
> Just meaningless piece of cake, nothing common with my problem. I CAN
> run processes asynchronously and every subscriber can understand this
> from my first letter in this thread - but not Jerry Stuckle. Jerry
> Stuckle just too stupid for this.
> 
> Next Good Answer from Jerry Stuckle (tm):
> 
>> cmd.exe is the command processor in Windows.  You can start it
>> asynchronously with the "start" command.
>>
>> See the Windows help information.
> 
> Very, very useful answer! Every man having head with brain inside can
> understand from my first letter that I know about start and psexec and
> already test both cases. But not Jerry Stuckle. Jerry Stuckle prefer to
> write Good Answers without reading questions.
> 
> 
>> But unless it's a background process which doesn't even open stdout
>> (highly unusual - most open it, even if they don't use it), you have
>> to have a window for output.
>>
>> You can start the window minimized, if you want.  But if you want to
>> be able to start it with no window at all, you have to first ensure
>> the program doesn't open stdout, then use a COM object to start it.
> 
> Next stupid comment. "But if you want to be able to start it with no
> window at all" You idiot, my process already started without window
> (btw, having stdout and writing to it), and this is exactly my problem.
> But Jerry Stuckle too stupid to understand this.
> 
>>> Ok, I understand. You didn't test it, you don't have an example and
>>> you have nothing to write on my problem.
>> No, I've done it before - many times.  You just aren't willing to
>> look at the possibilities.
> 
> If you don't understand subject - shut up. If you too tired to give
> right answer - shut up. But Jerry Stuckly too stupid to understand such
> complex rules. Is seems he is a bot posting common phrases to every thread.
> 
>> You're the one asking for help, idiot.
> 
> Be careful, don't broke your mirror!
> 
> 
> Bye.
> 

What an idiot.  The biggest one I've seen here in c.l.p for several months.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

0
jstucklex (14659)
6/17/2008 10:25:53 AM
Reply:

Similar Artilces:

running PHP on Windows XP
I installed Apache/MySQL/PHP on Windows XP. There was one problem. Microsoft IIS 4 or higher was defaultly selected for MySQL. It did not work. When I double-click a PHP file, a lightning-fast MS-DOS window opens and closes. When I go to start, then go to run, then type "cmd", then type the PHP file path, I take a long time to see what happened. I want my PHP file to work on my browser offline just like uploading and visiting my PHP file on a web host with my browser online. In other words, I want the interactivity of my site to happen in my computer. How can I do that? Raistlin...

How to run PHP-Apps under Windows?
Hello, I recently came across some very cool apps that were done in PHP. Yet, I don=B4t really know what runtime system I need to have in order to be able to run them under Windows, as if they were "normal apps". I could imagine: apache and PHP. Is there a preconfigured package that can be used as a runtime systm for running PHP-Apps locally? Thanks a million in advancem Bye. FK Hi, It depends on what these apps do. For example, if they are socket or GTK apps, you must have the CLI version of PHP installed. If they are cool webapps, you will need a decent webserver (e.g Apache...

Calling PHP from a windows process
Hallo NG, I'm calling PHP from a windowsprocess in a simple Webserver application. I'm using the createprocess Windows API command.... C:\Php\PHP Filename.php In this file I will open a TCP/IP connection to my SQL-server. When I do so, I always get the following error mysql_connect(): Can't create TCP/IP socket (10106) No I start a command shell and I call the same... C:\Php\PHP Filename.php This will work without any error!! Same effect I get from all TCP/IP Actions (FTP etc....) Can somebody help me. Is it a PHP Setting, a server variable or a WindowsXP Access right p...

PHP and windows
I am running a site using php, mysql and xampp on an xp system. On this system we run shoutcast and sam broadcaster to stream out a radio show. Sometimes sambroadcaster (a dos program) restarts and causes shoucast to stop. Is there a way in php to determine if a program is running on a windows xp server and if not restart it? Bill H On Apr 14, 5:48=A0pm, Bill H <b...@ts1000.us> wrote: > I am running a site using php, mysql and xampp on an xp system. On > this system we run shoutcast and sam broadcaster to stream out a radio > show. Sometimes sambroadcaster (a dos program) rest...

php on windows
I try to install PHP on Win 95 platform using Windows PHP installer, but it does't work. When running php.exe, I got error message "php.exe file is linked to missing export kernel32.dll: cancello." Where is wrong? Is it due to php not support win 95? Thank for any help. John Yue Zhang wrote: > > I try to install PHP on Win 95 platform using Windows PHP installer, > but it does't work. When running php.exe, I got error message "php.exe > file is linked to missing export kernel32.dll: cancello." Where is > wrong? Is it due to php not support win 95? ...

Running php file as a background process
Hi to all, There is a start button in my page. if user clicks on that then a php program should start and should listen on a particular port. and also user should able to do other tasks on that page. Is there any way to run php file as background process. Or is there any to run multi thread in php. Regards, Ravindra.Y Greetings, Ravi. In reply to Your message dated Tuesday, November 6, 2007, 13:12:05, > There is a start button in my page. if user clicks on that then a php > program should start and should listen on a particular port. and also > user should able to do other...

Want to spawn process from Windows PHP
I wanted to write some code purely on Linux, but unfortunately the document scanner drivers are non-existent for the high-end commercial document scanners. So, I had to port my Linux PHP project to Windows PHP (WAMP). There, I found a scanning tool (Kodak Image Scan - imgscan.ocx) that I can put on a VB form, tell it to scan some documents into a TIF file, and then shut down. I can run this VB app at command line just fine, but when I run it from either a popen(), system(), or exec() call, it won't detach from the PHP page. Instead, it just sits there. I can see the VB exe I made is being...

Ques: PHP running SAS under Windows?
When I run sas under PHP 4.3.2 in Windows (NT, XP), it doesn't seem to respond, and there is no error message. I used: system("sas saspgm.sas"); I have confirmed that I was in the right directory and the program is there. Any suggestions? By the way, the same program runs under Linux (Redhat 8.0)/Apache 2.0. Under windows, it runs Apache 2.0 as well. Thanks. Tom. Yanning Zhang - msn <public.yanning@covad.net> wrote: > When I run sas under PHP 4.3.2 in Windows (NT, XP), it doesn't seem to > respond, and there is no error message. > I used: > system("...

Launching a background script from php in Windows/IIS
Hi, I'm trying to build a PHP page which launches another php script to be run in the background. The web page should return immediately, while the background script may run for 10 minutes or something. Unfortunately I'm getting all kinds of weird behaviour.. In my main script I'm using exec() (also tried the other options) to start a ..bat file. This actually works, the batch file is launched and is able to write something to disk.. Now if I put the following line in the batch file: c:\php\php.exe -q backgroundscript.php then instantly I'm seeing about 30 php.exe processes...

Re: Ques: PHP running SAS under Windows?
Yanning Zhang - msn <public.yanning@covad.net> wrote: > When I run sas under PHP 4.3.2 in Windows (NT, XP), it doesn't seem to > respond, and there is no error message. > I used: > system("sas saspgm.sas"); > I have confirmed that I was in the right directory and the program is there. > Any suggestions? > By the way, the same program runs under Linux (Redhat 8.0)/Apache 2.0. Under > windows, it runs Apache 2.0 as well. I have a suggestion. Use the PHP system() command the way it ought to be used, and capture the return value, so you can see what the error message is. As you have it, you are losing any error message. Instead, write something like: system ('sas saspgm.sas',$returnval); Then look at the return value to see what went wrong. Also, are you sure that you should be using system() here? You haven't given us very much information, and there are better choices within PHP depending on the requirements of your process. If there is any user input going in there, then I would recommend that you look at using escapeshellarg() or escapeshellcmd() instead. If you want data from the command to be passed back to your program unhindered, then you might want to look into using the passthru() function. At any rate, if you ensure that PHP cannot get the error value, then you wwon't get an error value back when things go wrong. And, since things always go wrong when you most need them to go right, use all the erro...

Re: Ques: PHP running SAS under Windows? #2
The problem is quite possibly that is trying to open a WINDOW....It is Windoze after all. This is one of the major drawbacks to Windoze as a Server OS!!! I hath spoken.... -----Original Message----- From: David L. Cassell [mailto:cassell.david@EPAMAIL.EPA.GOV] Sent: Tuesday, September 30, 2003 10:13 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Ques: PHP running SAS under Windows? Yanning Zhang - msn <public.yanning@covad.net> wrote: > When I run sas under PHP 4.3.2 in Windows (NT, XP), it doesn't seem to > respond, and there is no error message. I used: > system("sas saspgm.sas"); > I have confirmed that I was in the right directory and the program is there. > Any suggestions? > By the way, the same program runs under Linux (Redhat 8.0)/Apache 2.0. Under > windows, it runs Apache 2.0 as well. I have a suggestion. Use the PHP system() command the way it ought to be used, and capture the return value, so you can see what the error message is. As you have it, you are losing any error message. Instead, write something like: system ('sas saspgm.sas',$returnval); Then look at the return value to see what went wrong. Also, are you sure that you should be using system() here? You haven't given us very much information, and there are better choices within PHP depending on the requirements of your process. If there is any user input going in there, then I would recommend that you look at using escapeshellarg() or escapeshe...

How to run php file in browser using windows Scheduled Task
Dear Friends, I need help i need to run php file in browser or command-line using windows scheduled task. if you know please help me. Thanks Vasanth On 5/28/2011 1:31 AM, rrvasanth wrote: > Dear Friends, > > I need help i need to run php file in browser or command-line using > windows scheduled task. if you know please help me. > > Thanks > Vasanth Browsers do not run PHP code. They request a page from a web server which then executes the PHP script and sends the output to the browser. To run in a browser, you would have to start the browser, request the page ...

Keeping window open after running php file from the command line ?
Hi all, I was getting a 500 error and someone adviced me to run the php file from the command line to check what errors that would come up with. Great idea which I'd like to use, but when I use the Windows "run" box to do this, I see a window open and close so quickly that there's no way for me to read what's come up. How can I force the window to stay open after the program has finished ? Just in case it's needed, I run the tests on a Win XP machine with Apache. Thanks in advance, Juliette That's what the "DOS" /K switch is for. -- "jr...

How do check what version of PHP is running on my web server (Windows XP)?
It seems stupid but I have inherited a server I know it's version 5.something but I would like to know the exact version. It doesn't seem to be in the PHP.ini file where I would expect it to be. "Brendan" <test@test.test> wrote in message news:dql70d$oa6$1@ctb-nnrp2.saix.net... > It seems stupid but I have inherited a server I know it's version > 5.something but I would like to know the exact version. It doesn't seem to > be in the PHP.ini file where I would expect it to be. run php_version() and see what it says :) For more information, thou...

Can ActiveX controls work in PHP running on Apache On a Windows Machine?
Hi all I created an ASP ActiveX DLL file in Delphi that works great using ASP on IIS. Is it possible to use ActiveX DLL files within PHP like in ASP? but on an Apache webserver that is running on a Windows machine? In ASP it works like this: <% Set DelphiAxObj = Server.CreateObject("TestX.TestX") DelphiAxObj.heading = "A test string" Response.Write DelphiAxObj.heading %> Ultimatly I need the ActiveX object to perform some windows api functions and then send the result as HTML back to the user so I cant use a Linux machine but I prefer PHP and MySQL an...

Raising window with window manager running
Is there a standard way to raise an application's window and set the focus to it with a window manager running? I ran into problems using XRaiseWindow() and XSetInputFocus() when a window was minimized or on another desktop. Thanks in advance, Charlie ...

Apache+php on Windows
I just installed apache (latest good version) for Windows in: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs therein, in that directory, I have test.php. In C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf, at the end of the file, I have: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" I restart the apache server, but when I go to look at localhost\test.php, I get: You don't have permission to access /php/php.exe/test.php on this server. Can someone please tell me ...

PHP mailing and windows
I'm looking at code from an Open Source project and trying to run it on Windows XP. However, it seems that the mail function does not work. $success=@mail( $u, $subject, $content, "From: " . $from . "\r\n" . "Content-type: text/html"); Is there anything I should know? FULL CODE: <?php $title = 'Notify Students'; require_once('dbcode.php'); require('./includes/template_top.php'); db_connect(); required_param($survey_id, 'survey_id'); required_param($who_to_mail, 'who_to_mail'); requi...

Background process in windows
Hello all, I am new to Tcl. Can you have a Tcl script run as a background process and perform a task on a particular trigger. I need to continuously snoop on a folder. Whenever a file is written to that folder, I want to FTP it immediately to a remoter server. But I need to do this on Windows. I can use shell scripting etc on a Unix like platform but how do I automate this task on windows. I choose Tcl since it is the only scripting language I have used with the Windows platform. Is there a better way to do this other than Tcl, the quicker and simpler the better. Any help will be appreciated Thanks, Brian Brian schreef: > Hello all, > I am new to Tcl. > Can you have a Tcl script run as a background process and perform a > task on a particular trigger. I need to continuously snoop on a folder. > Whenever a file is written to that folder, I want to FTP it immediately > to a remoter server. > What you can do, for instance, is the following: proc snoopFolder {} { ... do whatever you want with the folder ... after [expr {1*60*1000}] snoopFolder } snoopFolder This will run the procedure snoopFolder once every minute (the [after] command schedules the command to executed after a certain number of ms). The program will continue to run until you kill it, the time it will be waiting for the next minute is _not_ spent consuming all your CPU cycles, it is a very convenient method to do background processing. (More "sophisticated" ap...

php window.open
Hello, I am trying to open a query in a new window with say widht 550 and hight 350, I have searched google and found some answears using a javascript function, but it did not help here is my current link. <td width="33%" height="22" align="center"><font color="#333333"> <a href="/video_pop.php?GenderID=<?php echo $row_rs_Gender['GenderID']; ?> " target="_blank"class="centerTable"> <img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a></font></td> Can some one please shed some light Thanks Drisco Finaly got it to work, no replay needed Drisco looks like you're gonna have to run that php script externally and use javascript to resize the window using window.open('address','name','width=550; height=350;') If that don't work i dunno what will... Thank you for replying, here is what I have so far, <SCRIPT TYPE="text/javascript" LANGUAGE="javascript"> function vid_popup(name) { window.focus(); url = name + ".php?GenderID=<?php echo $row_rs_Gender['GenderID']; ?> "; pop_width = (name != 'video_pop'? 710:710); pop_height = (name != 'video_pop'? 370:370); param = "width=" + pop_width + ",height=" + pop_height + ",resizable=no,scrollbars=no"; name += "_popup&q...

Php and ImageMagick in Windows?
I am trying to use ImageMagick from a Php script running under Windows XP. I have installed the latest version of ImageMagick - 6.2.1-7 and even tried backing up to version 5.5.7 (based on a recommendation I found during a Google search), but I can not get ImageMagick to work in Php (using exec or system). ImageMagick works from a Windows Command prompt - e.g., convert C:\apache\htdocs\testing\temp_.jpg C:\apache\htdocs\testing\temp_.png but that same command using the system function - i.e., system("convert C:\apache\htdocs\testing\temp_.jpg C:\apache\htdocs\testing\temp_.png&q...

PHP/Apache/Windows
I am running a Win 2000 professional machine on my desk (unfortunately). I use Apache/PHP for test purposes, for running a little intranet server, and I am going to have a student help me with some coding. Is there anything like the "nobody" id in UNIX where I can set apache to run where it can't do too much damage? thanks. > I am running a Win 2000 professional machine on my desk (unfortunately). > I use Apache/PHP for test purposes, for running a little intranet > server, and I am going to have a student help me with some coding. > > Is there anythin...

Developing PHP under Windows
I have seen postings that indicate some developers are creating PHP apps for a Windows server environment. I am not sure if they run underr IIS or Apache, but I wonder why Windows and PHP vs. the PHP/Apache/Linux triumvirate. I would think that if you developed under windows, why not stick to ASP.net and IIS. If you want to use Apache, why not stick with Linux. Mostly curious. David wrote: > I have seen postings that indicate some developers are creating PHP > apps for a Windows server environment. I am not sure if they run > underr IIS or Apache, but I wonder why Windows and PHP vs. the > PHP/Apache/Linux triumvirate. > > I would think that if you developed under windows, why not stick to > ASP.net and IIS. If you want to use Apache, why not stick with Linux. I develop my PHP code on a Windows laptop using local copies of Apache/PHP/MySQL. By doing this, I don't have to be connected to the Internet at all times and debugging is much easier. I don't have to be uploading the code to the host all of the time and it reduces the possibility of replacing working code with test code that may be buggy. I don't even have IIS turned enabled on my laptop. Apache runs on many differenct platforms, not only Linux. Ken I am beginner in php under windows. My reason for learning the language is hat my employer wants me to have this skill :) I have programmed in asp for 5 years and 2 years in asp.net and if it wasn't for my employer I w...

[News] Debian Runs Windows Programs Also (Windows Can't Run Linux Programs)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 LiberKey applications work on Debian through Wine ,----[ Quote ] | Today, I tried out several LiberKey applications on Debian | through the Wine interface and most of them seemed to be | working well. The only fall back is that these applications | dont work through the Liberkey interface. But rather each | application needs to be run from its folder manually. This is | not a set back as all it takes is a link to a application to | open it. `---- http://pkrishnan.net/many-liberkey-applications-work-on-debian-through-wine/ Recent: Why does Debian smell like freedom? ,----[ Quote ] | Debian smells like freedom because it reflects my own growth | into a mature user who can understand and evalute choices. `---- http://pkrishnan.net/why-does-debian-smell-like-freedom/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkrKFyYACgkQU4xAY3RXLo6PZwCgqXtdMK4JzIsQmUANvaCwkZ6h 2AMAoJM5KTyliCX24gfvMyp7xFkPgsS0 =oB74 -----END PGP SIGNATURE----- ...

Web resources about - Run background process from PHP on Windows with window - comp.lang.php

Historical background of the New Testament - Wikipedia, the free encyclopedia
They look at the "forces" such as the Oral Gospel tradition which were in play regarding the Jewish culture at that time, and the tensions, trends, ...

Android App OStream Speeds Up Facebook Experience By Synchronizing Content In Background
Facebook’s newly revamped Android application was rebuilt with a focus on speed, and startup oStream wants to help users of devices on that operating ...

Background for Dick Armey’s Endorsement of “Nothing for the Nation”
To truly grasp the profound nature of Dick Armey’s endorsement of Nothing for the Nation: Who Got What Out of Iraq, one must understand the events ...

Facebook Photos Gets Polish: White Background, Bigger Images That Load Faster
... Facebook product manager Justin Shaffer describes a new version of Facebook’s photo viewer coming out now. In place of the black lightbox background ...

Easy Background Tasks in ASP.NET
As I work on the badge implementation for Stack Overflow, I needed a way to call the code that detects and awards the badges out of band. Traditionally ...

Wallpaper Studio Pro HD - Themes & Backgrounds for iPad on the iTunes App Store
Get Wallpaper Studio Pro HD - Themes & Backgrounds on the App Store. See screenshots and ratings, and read customer reviews.

Apple/FBI fight looks destined to go all the way to the Supreme Court as more background is revealed
... doubt about Apple’s determination to fight the matter all the way to the U.S. Supreme Court, that doubt appears to be removed by further background ...

Play YouTube in the background with this trick
... has found an interesting little trick, or should we say bug, using Google’s Chrome browser that allows you to leave videos playing in the background. First ...

Opera claims you're using 30 percent of your mobile data on background apps
... through it. Unless you're predominantly on Wi-Fi then you're likely wondering where all of that data is going. The answer, of course, is background ...

Everyone manually closes all their background apps, right?
Apple software engineering VP Craig Federighi recently dispelled one of the more long-standing myths about iPhone battery life. In short, if ...

Resources last updated: 3/18/2016 11:27:20 PM