php-general Digest 22 Nov 2003 14:28:50 -0000 Issue 2430

Topics (messages 170644 through 170667):

Re: looking for some software (helpdesk, intranet)
        170644 by: Tim Garton
        170653 by: Jason Wong

Re: question about security
        170645 by: Chris W. Parker
        170647 by: John W. Holmes

Re: Echo HTML code Verses breaking out of <?php ?>
        170646 by: DvDmanDT

Re: echo or print
        170648 by: Tom Rogers
        170651 by: Eugene Lee
        170654 by: Jon Kriek
        170656 by: Curt Zirzow
        170657 by: Robert Cummings

Re: [ERR] RE: [PHP] tar and ownership
        170649 by: John Nichel

Re: passthru gives error in httpd/error_log
        170650 by: Tom Rogers
        170663 by: Jesper Hansen

Running PHP for different virtual domains on different Apaches
        170652 by: Philip Mak
        170660 by: Tim Garton
        170662 by: Marek Kilimajer

Re: Function disabled.
        170655 by: Pedro Faria

Re: php-general 提供CDMA无线公话产品
        170658 by: L-Soft list server at LISTS.NAU.EDU (1.8d)

Re: Error 1045
        170659 by: Burhan Khalid

PHP Based Web Hosting Management
        170661 by: Nigel Jones

Execute programs
        170664 by: Bas
        170665 by: John Nichel
        170666 by: Bas
        170667 by: John Nichel

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message --- RT can be difficult to install, and uses perl rather than php, just fyi. if you do decide to go with it, when i set it up on a redhat 9 box i had to reinstall perl from source due to a bug in the stock perl shipped with rh 9.

tim

Gabriel Guzman wrote:
On Friday 21 November 2003 04:01 pm, Richard Baskett wrote:

on 11/21/03 15:49, Chris W. Parker at [EMAIL PROTECTED] wrote:

I'm looking for some helpdesk software and some intranet software with a
MySQL backend.


RT... http://bestpractical.com/

gabe.

--- End Message ---
--- Begin Message ---
On Saturday 22 November 2003 07:49, Chris W. Parker wrote:

> I just googled, freshmeated, and sourceforged but didn't find anything
> good (or what I thought to be good that was free).
>
> I'm looking for some helpdesk software and some intranet software with a
> MySQL backend.
>
> Anyone have any suggestions?

1) State what exactly you're looking for -- what features are must-have, what 
are nice-to-have etc.

2) State what packages you have already looked at. Give a short evaluation of 
each with what you like and dislike about them.

Based on this people can then give an *informed* opinion. This way people will 
not point you to packages that you've already tried and did not like, or 
packages that do not have the features that you require.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
You're using a keyboard!  How quaint!
*/

--- End Message ---
--- Begin Message ---
Alan Fullmer <mailto:[EMAIL PROTECTED]>
    on Friday, November 21, 2003 5:00 PM said:

> do i have to htmlspecialchars every entry?

Yes you have to protect yourself from your users data each and every
time you receive user data, ever, always.

> does this make any sense?

I think so.


Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

--- End Message ---
--- Begin Message --- Alan Fullmer wrote:

Is php capable of recognizing things such as in a text box, someone were to put <?php insert php code here; ?> and display say, variables?

No, not normally. If you just display the code, it'll show as plain PHP code and not be run. However, if it makes its way into an include file or eval() call, then it could be evaluated.


do i have to htmlspecialchars every entry?

Depends on your program. For most text, yes.


--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
?>HTML<? is almost double as fast according to some stats I saw a while ago
(at phpbeginner.com).. But that's compared to "HTML", using singlequotes is
faster ('HTML')... But I haven't confirmed those stats...
-- 
// DvDmanDT
MSN: dvdmandtotmail.com
Mail: dvdmandtelia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
##########################
"Joe Harman" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hello,
>
> I would like some opinions, or hopefully facts on a few things... Maybe
> some people can help me out here.
>
> A friend of mine and I were discussing which is best way to use PHP
> building dynamic pages, here are the 2 methods we are comparing.. They
> are in the simplest terms here... But try to imagine a very intesive PHP
> appliaction with huge MySQL queries...
>
>
> First Item
> -------------
> <table width="500" border="0" cellspacing="0" cellpadding="0">
>   <tr>
>     <td><?php echo "Hello World"; ?></td>
>   </tr>
> </table>
>
>
> Second Item
> -------------
> <?php
> echo "<table width=\"500\" border=\"0\" cellspacing=\"0\"
> cellpadding=\"0\">";
>   echo "<tr>";
>     echo "<td>Hello World</td>";
>   echo "</tr>";
> echo "</table>";
> ?>
>
>
> Now I would say that the first item is the most efficient simply because
> you are not making PHP process the ECHO of HTML code... It's more
> efficient to let the browser do that since it has to interperat it
> anyhow. Am I correct assuming this?
>
> Thanks!
> Joe

--- End Message ---
--- Begin Message ---
Hi,

Saturday, November 22, 2003, 4:55:05 AM, you wrote:
WvV> David T-G wrote:
WvV> Guys, Jay asked a serious question (I think). Anyways, let's take this one
WvV> step further to something that I've really been wondering about.

WvV> (.. long bunch of HTML ..)
WvV> Jay asked <?=$Question?>, then Tom said <? echo $Answer; ?>. <?php

WvV> print 'Meanwhile a lot of others read it including '.$Strangers[0].',
WvV> '.$Strangers[2].', '.$Strangers[3].' and '.$Strangers[4].'."\n";
WvV> echo "After a short while, among others, $Kirk[firstname] {$Kirk[lastname]}
WvV> also said his things.";
?>>

WvV> Point is, which of the inline printing style is preferred by you guyes. I
WvV> tend to use <?=$Var?> a lot, since it reads easier but get into struggles
WvV> with myself when I do that multiple times in a row.

The first time I ever used print was in the example I gave above so echo does
everything I have needed till now.


-- 
regards,
Tom

--- End Message ---
--- Begin Message ---
On Fri, Nov 21, 2003 at 07:55:05PM +0100, Wouter van Vliet wrote:
: 
: (.. long bunch of HTML ..)
: Jay asked <?=$Question?>, then Tom said <? echo $Answer; ?>. <?php

I don't like this because it doesn't protect your content from being
misinterpreted.  It should be more like:

        Jay asked <?php echo htmlentities($Question); ?>, then...

Of course you could call htmlentities() on all of your variables in a
previouw block.  But then you cannot use the variables again unless you
undo it with html_entity_decode().  It's a bit of a mess.

Also, I find inlining to be less flexible and less extensible than some
kind of template system.

--- End Message ---
--- Begin Message --- Rasmus Lerdorf

"There is a difference between the two, but speed-wise it
should be irrelevant which one you use. print() behaves
like a function in that you can do:

$ret = print "Hello World";

And $ret will be 1

That means that print can be used as part of a more complex
expression where echo cannot. print is also part of the
precedence table which it needs to be if it is to be used
within a complex expression. It is just about at the bottom
of the precendence list though. Only "," AND, OR and XOR
are lower.

echo is marginally faster since it doesn't set a return
value if you really want to get down to the nitty gritty.

If the grammar is:

echo expression [, expression[, expression] ... ]

Then

echo ( expression, expression )

is not valid. ( expression ) reduces to just an expression
so this would be valid:

echo ("howdy"),("partner");

but you would simply write this as:

echo "howdy","partner";

if you wanted to use two expression. Putting the brackets
in there serves no purpose since there is no operator
precendence issue with a single expression like that."


-- Jon Kriek www.phpfreaks.com


Wouter Van Vliet wrote:
Chris W. Parker wrote:

Wouter van Vliet <mailto:[EMAIL PROTECTED]>
   on Friday, November 21, 2003 10:55 AM said:


Point is, which of the inline printing style is preferred by you
guyes. I tend to use <?=$Var?> a lot, since it reads easier but get
into struggles with myself when I do that multiple times in a row.

Because of this I usually do the following:


echo "<p>here is some text with a $variable in it.<br/>\n"
        ."And this is another like of text with a $variable1 in it.<br/>\n"
        ."And so on...<br/>\n"
        ."And so forth.</p>\n";

I also prefer <?= $variable ?> to <?php echo $variable; ?>
except that for the sake of cross-system compatibility* I now
choose to do <?php echo $variable; ?>.


Chris.


* What I mean by that is if I give my code to someone else I
want it to work with as few changes as possible. Some php
installs don't have <? ?> turned on (short tags?).



Well, there is an eye opener. I always thought that the <?=$Var?> printing
style was not influenced by short_open_tag, but now I did a test to be sure
about it and it turned out it does..

<quick test>
      1 <?php
      2 echo 'ini setting short_open_tag: '.ini_get('short_open_tag');
      3 ?>
      4
      5 Long open tags: <?php print 'OK'; ?>
      6 Short open tags <? print 'OK'; ?>
      7 Short print style <?='OK'?>
<output short_open_tags="On">
        ini setting short_open_tag: 1
        Long open tags: OK
        Short   open tags OK
        Short print style OK
</output>
<output short_open_tags="Off">
        ini setting short_open_tag:
        Long open tags: OK
        Short open tags <? print 'OK'; ?>
        Short print style <?='OK'?>
</output>
</quick_test>

Thanks!
Wouter

--- End Message ---
--- Begin Message ---
* Thus wrote Wouter van Vliet ([EMAIL PROTECTED]):
> 
> Point is, which of the inline printing style is preferred by you guyes. I
> tend to use <?=$Var?> a lot, since it reads easier but get into struggles
> with myself when I do that multiple times in a row.

1. Turn off short_open_tags
2. Turn off asp_tags
3. use <?php echo $Var?>



Curt
-- 
"My PHP key is worn out"

  PHP List stats since 1997: 
    http://zirzow.dyndns.org/html/mlists/

--- End Message ---
--- Begin Message ---
On Sat, 2003-11-22 at 00:13, Curt Zirzow wrote:
> * Thus wrote Wouter van Vliet ([EMAIL PROTECTED]):
> > 
> > Point is, which of the inline printing style is preferred by you guyes. I
> > tend to use <?=$Var?> a lot, since it reads easier but get into struggles
> > with myself when I do that multiple times in a row.
> 
> 1. Turn off short_open_tags
> 2. Turn off asp_tags
> 3. use <?php echo $Var?>

Personally, I don't use inline since I prefer templating, but when i do
this kind of code for other projects where I don't get the choice to use
a templating system, then I use the above style also. I find <?=$Var?>
to be cryptic even if shorter. Besides I'm all for code consistency, if
I'm going to break into PHP mode for multiple lines, then I do the same
for a single line.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message --- Chris W. Parker wrote:
Your best bet is to refuse @hanmir.com altogether. This has been
happening for a long time (with different addresses all @hanmir.com) and
I imagine it will continue to happen.


Chris.

If I keep adding domains to my '/dev/null' list, I'm going to fill up null. ;)


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--- End Message ---
--- Begin Message ---
Hi,

Saturday, November 22, 2003, 1:23:36 AM, you wrote:
JH> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message
JH> news:[EMAIL PROTECTED]
JH> No, I've tried that along with all other obvious path stuff.

JH> /Jesper

Then there must be some kind of restriction on the server, Is it running in
chrooot enviroment. Try copying ls to a directory in the server root and try
again.
-- 
regards,
Tom

--- End Message ---
--- Begin Message ---
> Then there must be some kind of restriction on the server, Is it running
in
> chrooot enviroment. Try copying ls to a directory in the server root and
try
> again.
> -- 
> regards,
> Tom

I've tried that too, with ls and other programs in the local directory where
the
script was located. And with permissions set to 777. Even on the dir. No go.
Still the same error log message :  "sh: /ls: No such file or directory".
Specifying a specific path will give, for instance :
"sh: /bin/ls: No such file or directory".

This seems impossible, as the file is clearly there, but I can't find any
more
info on this message.

/Jesper

--- End Message ---
--- Begin Message ---
Something that I wrote recently that I thought may be of general
interest for system administrators running PHP:

The web server runs on port 80, with the priviledges of the username
"apache". On most webhosts that support PHP, this web server executes
the PHP scripts. The PHP scripts would thus all run under the same
username.

Problem #1 is that a single web server generally services multiple
websites. Under the common setup, all of their PHP scripts will run
under the common "apache" username. This is a security flaw, because a
programmer for a website would be able to read the PHP scripts of any
other website, and probably also gain access to any databases or files
that those scripts make use of. Most webhosts probably get away with
this since one can only exploit this if they have an account on the
server, can only attack other websites on the server, and most people
aren't skilled/devious enough to do this.

Problem #2 is that the use of PHP makes each Apache process consume
more memory. The process consumes more memory even when it is serving
static (non-PHP) files such as a JPG. It would be more efficient to
have a pool of small processes serving static files, and some larger
processes serving the PHP scripts.

So on my server, the main web server on port 80 does not run PHP.
Rather, the client has a private PHP-enabled Apache that listens on
localhost port 8024. This private Apache runs under the priviledges of
the client's UNIX account, and only serves pages from the client's
domain.  Whenever the main Apache receives a request that requires PHP
to service(*), it will proxy the request to the PHP-enabled Apache.
This solves problems #1 and #2 above.

However, (*) is a bit problematic. Consider the following URLs:

(a) http://www.domain.org/page.php
(b) http://www.domain.org/page.html
(c) http://www.domain.org/image.jpg
(d) http://www.domain.org/

(a) should obviously be proxied, since it ends in .php and thus must
be a PHP script. (b) and (c) have obvious static file extensions, so
should not be proxied. But what about (d)? It could be either
index.php or index.html, but this can't be determined just from
pattern matching on the URL.

I came up with a recipe in httpd.conf to account for case (d): In the
case of a request to a directory, it will proxy if and only if
index.php exists.

RewriteEngine On
# Proxy any request to *.php
RewriteRule (.*)\.php$ http://127.0.0.1:8024$1.php [l,p]
# Proxy any request to a directory if index.php exists
RewriteCond %{REQUEST_URI} /$
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}index.php -f
RewriteRule (.*) http://127.0.0.1:8024$1 [l,p]

where http://127.0.0.1:8024 is the address to the backend PHP.

%{DOCUMENT_ROOT} could be replaced with another directory path, if the
PHP scripts are kept in a separate directory tree. Note that the
RewriteCond -f means that the "apache" user will need to be able to
list the files in the directory (but does not need read access to the
files themselves). If more security is needed, the PHP files could be
kept in a separate tree (configured as the DocumentRoot on the private
Apache), and:

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}index.php -f

could be replaced with a directive that determines whether the
frontend Apache can handle the indexing for the directory (e.g. if
index.html exists, or index.shtml, etc.), and not proxy if that is the
case, and proxy otherwise.

--- End Message ---
--- Begin Message --- Philip Mak wrote:

Something that I wrote recently that I thought may be of general
interest for system administrators running PHP:

The web server runs on port 80, with the priviledges of the username
"apache". On most webhosts that support PHP, this web server executes
the PHP scripts. The PHP scripts would thus all run under the same
username.

Problem #1 is that a single web server generally services multiple
websites. Under the common setup, all of their PHP scripts will run
under the common "apache" username. This is a security flaw, because a
programmer for a website would be able to read the PHP scripts of any
other website, and probably also gain access to any databases or files
that those scripts make use of. Most webhosts probably get away with
this since one can only exploit this if they have an account on the
server, can only attack other websites on the server, and most people
aren't skilled/devious enough to do this.
check out php_admin_value open_basedir, should solve this. allows you to specify what directory's a php script can read from.


Problem #2 is that the use of PHP makes each Apache process consume more memory. The process consumes more memory even when it is serving static (non-PHP) files such as a JPG. It would be more efficient to have a pool of small processes serving static files, and some larger processes serving the PHP scripts.
can't think of any other way to solve this problem than what you've done.


So on my server, the main web server on port 80 does not run PHP. Rather, the client has a private PHP-enabled Apache that listens on localhost port 8024. This private Apache runs under the priviledges of the client's UNIX account, and only serves pages from the client's domain. Whenever the main Apache receives a request that requires PHP to service(*), it will proxy the request to the PHP-enabled Apache. This solves problems #1 and #2 above.

However, (*) is a bit problematic. Consider the following URLs:

(a) http://www.domain.org/page.php
(b) http://www.domain.org/page.html
(c) http://www.domain.org/image.jpg
(d) http://www.domain.org/

(a) should obviously be proxied, since it ends in .php and thus must
be a PHP script. (b) and (c) have obvious static file extensions, so
should not be proxied. But what about (d)? It could be either
index.php or index.html, but this can't be determined just from
pattern matching on the URL.

I came up with a recipe in httpd.conf to account for case (d): In the
case of a request to a directory, it will proxy if and only if
index.php exists.

RewriteEngine On
# Proxy any request to *.php
RewriteRule (.*)\.php$ http://127.0.0.1:8024$1.php [l,p]
# Proxy any request to a directory if index.php exists
RewriteCond %{REQUEST_URI} /$
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}index.php -f
RewriteRule (.*) http://127.0.0.1:8024$1 [l,p]

where http://127.0.0.1:8024 is the address to the backend PHP.

%{DOCUMENT_ROOT} could be replaced with another directory path, if the
PHP scripts are kept in a separate directory tree. Note that the
RewriteCond -f means that the "apache" user will need to be able to
list the files in the directory (but does not need read access to the
files themselves). If more security is needed, the PHP files could be
kept in a separate tree (configured as the DocumentRoot on the private
Apache), and:

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}index.php -f

could be replaced with a directive that determines whether the
frontend Apache can handle the indexing for the directory (e.g. if
index.html exists, or index.shtml, etc.), and not proxy if that is the
case, and proxy otherwise.

--- End Message ---
--- Begin Message --- Tim Garton wrote:
Problem #2 is that the use of PHP makes each Apache process consume
more memory. The process consumes more memory even when it is serving
static (non-PHP) files such as a JPG. It would be more efficient to
have a pool of small processes serving static files, and some larger
processes serving the PHP scripts.

can't think of any other way to solve this problem than what you've done.



I don't think his solution really worked, in fact it makes the problem worse. Compared to a single pool of larger processes serving the PHP scripts, there is also a pool of small apache processes that serve static content with the overhead of proxying requests to php scripts to the other server.

--- End Message ---
--- Begin Message ---
Hi,

  you have to use *ini_get* function and not *function_exists* because it
is a restriction on PHP.INI.

Try:
<?
if (eregi('rmdir',ini_get('disable_functions')))
    echo "rmdir Function exists";
else
    echo "rmdir Function DOES NOT exists";
?>

[]s
Pedro Faria.

On Fri, 21 Nov 2003 18:58:12 -0500, Vincent M. wrote:

> Hello,
> 
> How to test if a function has been disabled. I tried doing this:
> if(function_exists("rmdir")) {
>    echo "rmdir Function exists" ;
> } else {
>    echo "rmdir Function DOES NOT exists" ;
> }
> 
> So the test says that the function exists, but if we use  it, I get:
> rmdir() has been disabled for security reasons
> 
> How to test if the function has been disabled ?
> 
> Thanks.

--- End Message ---
--- Begin Message ---
> 你好!
Unknown command - "拿好!". Try HELP.

> 我公司提供CDMA无线公话产品,产品包括CDMA转接盒/CDMA商务电话,有以下4种服务
Unknown command - "我公司塘供CDMA无线公话糙品,糙品败括CDMA转接盒". Try HELP.

> 方式:
Unknown command - "方式:". Try HELP.

> (1)直接销售我公司品牌的CDMA无线公话产品.
Unknown command - "(1)直接馅售我公司品牌的CDMA无线公话糙品.". Try HELP.

> (2)提供OEM或ODM服务.
Unknown command - "(2)塘供OEM灰ODM忿窝.". Try HELP.

> (3)提供核心CDMA模块及无线公话全套产品的解决方案/电路图.
Unknown command - "(3)塘供核心CDMA模可及无线公话全套糙品的铰局方案". Try
HELP.

> (4)提供其他CDMA无线应用(CDMAIC卡电话/无线彩票机/无线POS机)的CDMA应用解决
Unknown command - "(4)塘供颇僳CDMA无线应用". Try HELP.

> 方案.
Unknown command - "方案.". Try HELP.

> 产品资料及详细信息,请来电咨询.
Unknown command - "糙品资料及鲜细信息,撬来登咨询.". Try HELP.

> 电话:13305829981 E-mail:[EMAIL PROTECTED]
Unknown command - "登话:13305829981". Try HELP.

All subsequent commands have been flushed.

Summary of resource utilization
-------------------------------
 CPU time:        0.010 sec
 Overhead CPU:    0.000 sec
 CPU model:       sun4u
 Job origin:      [EMAIL PROTECTED]

--- End Message ---
--- Begin Message --- ike strong wrote:
I don't know if this is the right place to ask this,

This is not the right place to ask this. Ask on a MySQL mailing list. This is php.


but can anyone help me to figure out why each time I
try to access my database using:

c:\mysql\bin\inmysql -root -p

In windows -- unless you specifically create a user, you don't need to pass a user. c:\mysql\bin\mysql will launch you as root. -u username is the syntax you want to use if you want to login as a particular user.


and afterwards:(i.e. after the password prompt)

Enter Password: '******'

I get the following:

Error 1045: Access denied for    user:
'[EMAIL PROTECTED]'(Using password: YES)

Obviously the system thinks your are ODBC. If you haven't done so already, run winmysqladmin and check your system. Use the -u command line option to specify a user. There is no such option as -root


Next time, ask on the MySQL list.

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
-----------------------
"Documentation is like sex: when it is good,
 it is very, very good; and when it is bad,
 it is better than nothing."

--- End Message ---
--- Begin Message ---
I am looking for a reasonable free Web Host Management System that is mainly
based in PHP(so I can modify it a bit to my liking)

I have used WebCP(webcp.can-host.com) but it is too buggy to be worth
fixing.

All suggestions welcome.


_________________
Nigel Jones
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
How do i execute a program and leave it running and while it is running the
php-script is still continued and outputs HTML when the other program is
still running.

I need that is works on windows.

--- End Message ---
--- Begin Message --- Bas wrote:

How do i execute a program and leave it running and while it is running the
php-script is still continued and outputs HTML when the other program is
still running.

I need that is works on windows.


Oh, oh....manual....


http://www.php.net/manual/en/ref.exec.php

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--- End Message ---
--- Begin Message ---
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Bas wrote:
>
> > How do i execute a program and leave it running and while it is running
the
> > php-script is still continued and outputs HTML when the other program is
> > still running.
> >
> > I need that is works on windows.
> >
>
> Oh, oh....manual....
>
> http://www.php.net/manual/en/ref.exec.php
>
> -- 
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com

I've read the manual, but it says this:

Note:
If you start a program using this function and want to leave it running in
the background, you have to make sure that the output of that program is
redirected to a file or some other output stream or else PHP will hang until
the execution of the program ends.

--- End Message ---
--- Begin Message --- Bas wrote:
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Bas wrote:


How do i execute a program and leave it running and while it is running

the


php-script is still continued and outputs HTML when the other program is
still running.

I need that is works on windows.


Oh, oh....manual....


http://www.php.net/manual/en/ref.exec.php


I've read the manual, but it says this:


Note:
If you start a program using this function and want to leave it running in
the background, you have to make sure that the output of that program is
redirected to a file or some other output stream or else PHP will hang until
the execution of the program ends.


Okay, so what's wrong with that?


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--- End Message ---

Reply via email to