php-windows Digest 19 Sep 2002 16:34:04 -0000 Issue 1347
Topics (messages 15900 through 15908):
Re: in Win32 env: calling external pgm from PHP script
15900 by: Pozzer Franco
Use of undefined constant time
15901 by: Bård Tommy Nilsen
Re: Pictures as files or text/blobs
15902 by: Luis Ferro
15903 by: Rich Gray
form-problems
15904 by: bw
15905 by: Luis Moreira
15906 by: Rich Gray
long admin processes. script timeout.
15907 by: William
15908 by: Richard Black
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 ---
Thanks David for to read my msg and for reply it.
I try to follow your code below but I have any result.
The script can executed but I have any result. Word pgm do not start.
It is possible that I have same configuration bad?
It is possible that the word.exe do not execute from script because I have not
permission to exec in system root pgm? intead when I exec pgm from promt I am
Administrator!
Ciao Franco.
David Hollister wrote:
> You should try:
>
> Yo - try this
>
> <?
> exec('cmd /c "write.exe" ');
> ?>
>
> -----Original Message-----
> From: Pozzer Franco [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 4:51 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] in Win32 env: calling external pgm from PHP script
>
> I always have found aid on this NG and want to write tanks to all of this.
>
> I hope that also in this occasion to find an aid and of the indications for
> my problem.
>
> My env it is Win32 with Aoache 1.3.24 and PHP 4.2.1.
>
> I have a pgn .exe files that I want to execute from script PHP and I want to
> post it same parameters like par1, par2..... and so on.
>
> I like also to receive from pgm a feedback or return code for to test a
> result of the esecution.
>
> I have make a script such like below but it not work:
>
> <?
> $cmd=('D:\\winnt\\system32\\write.exe');
> echo"<br>cmd=$cmd<br>";
> exec($cmd);
> ?>
>
> My system root it is : D:\winnt\system32\.......
>
> My document root it is D:program files\apache group\apache\htdocs.
>
> The url of the browser when I call the script it is:
> http://localhost/exec/zip.php
>
> If there sameone have same sample code to send to me or same indication how
> to resolve it??????????????
>
> Ciao Franco.
> www.infocamere.it
> [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello
I get the error "Use of undefined constant time"
But the constant is defined, and i can use it, but i want the error
Not no be printed ...
How can i do this ??
Regards
Bård Tommy Nilsen
--- End Message ---
--- Begin Message ---
From a performance wise point of view... what is preferable:
a) placing pictures in blob/text fields in binary...
b) placing the picture name/directory in a varchar field and the picture
as a file in the refered directory...
What would you choose and why?
Thanx and cheers...
Luis Ferro
TelaDigital.Net
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
Luis
FWIW...
I would always choose storing the URL to the image in the database over
storing the binary image in a text/blob field....
I can't back up my choice with hard evidence - just a gut feeling that an
injudicious 'select * from blobtable' would probably cripple the server
performance wise
Has anyone done any tests? I'd be interested to see the results and be
proven wrong if necessary!
Cheers
Rich
-----Original Message-----
From: Luis Ferro [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2002 11:55
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Pool: Pictures as files or text/blobs
From a performance wise point of view... what is preferable:
a) placing pictures in blob/text fields in binary...
b) placing the picture name/directory in a varchar field and the picture
as a file in the refered directory...
What would you choose and why?
Thanx and cheers...
Luis Ferro
TelaDigital.Net
---
[This E-mail scanned for viruses by Declude Virus]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
new to PHP and already problems with simple stuff.
Created a simple html/php-form with a couple of inputfields like:
<form action="<? echo $PHP_SELF;?>" method="post">
<input type="text" name="lastname" value="<?php echo $lastname;?>
and
I expected to get back the variables in the simple answerpart:
<?php
echo "your lastname is <br>$lastname<br>";
......
?>
but get back nothing but the raw answer text.
Code should be o.k. Perhaps some missing ini -entries? or browser-problem (MSIE5.00)
?
Working with Apache 1.3.26 on W2k.
Anyone a clue?
thx in advance ,
B.
--- End Message ---
--- Begin Message ---
Looks confusing or at least incomplete.
If you have <FORM> to start where is </FORM> to end it ?
Send the complete text(s) and I will take a peek
Luis
----- Original Message -----
From: "bw" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 3:10 PM
Subject: [PHP-WIN] form-problems
Hi,
new to PHP and already problems with simple stuff.
Created a simple html/php-form with a couple of inputfields like:
<form action="<? echo $PHP_SELF;?>" method="post">
<input type="text" name="lastname" value="<?php echo $lastname;?>
and
I expected to get back the variables in the simple answerpart:
<?php
echo "your lastname is <br>$lastname<br>";
......
?>
but get back nothing but the raw answer text.
Code should be o.k. Perhaps some missing ini -entries? or browser-problem (MSIE5.00)
?
Working with Apache 1.3.26 on W2k.
Anyone a clue?
thx in advance ,
B.
--- End Message ---
--- Begin Message ---
Assuming v4.2.x of PHP
Is register_globals set to On or Off? If set to Off (default) then you need
to use $_POST['lastname'] instead of $lastname, and $_SERVER['PHP_SELF']
instead of $PHP_SELF
Cheers
Rich
-----Original Message-----
From: Luis Moreira [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2002 15:40
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] form-problems
Looks confusing or at least incomplete.
If you have <FORM> to start where is </FORM> to end it ?
Send the complete text(s) and I will take a peek
Luis
----- Original Message -----
From: "bw" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 3:10 PM
Subject: [PHP-WIN] form-problems
Hi,
new to PHP and already problems with simple stuff.
Created a simple html/php-form with a couple of inputfields like:
<form action="<? echo $PHP_SELF;?>" method="post">
<input type="text" name="lastname" value="<?php echo $lastname;?>
and
I expected to get back the variables in the simple answerpart:
<?php
echo "your lastname is <br>$lastname<br>";
......
?>
but get back nothing but the raw answer text.
Code should be o.k. Perhaps some missing ini -entries? or browser-problem
(MSIE5.00) ?
Working with Apache 1.3.26 on W2k.
Anyone a clue?
thx in advance ,
B.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have an application that needs to perform some large processes, moving
data as well as generating some rather large output files. This process
might take about 15 to 20 minutes to complete and "MUST" be completed. It
is only run by 1 administrator every and not a general user.
1)Is there anything I should do to adjust this script to optimize/ensure it
doesn't time out before finished?
2)Will a long process like this keep the general users from using the
system?
Thanks,
william
--- End Message ---
--- Begin Message ---
The set_time_limit() function can be used to stop your script from
timing out, without having to change your php.ini file and give all
scripts a huge time limit.
http://www.php.net/manual/en/function.set-time-limit.php
As for performance of other users... Probably depends on what is making
the script take so long. Without knowing what it does, or seeing the
code, it's kinda hard to say what you can do to optimize it...
HTH,
Richy
==========================================
Richard Black
Senior Developer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 951 3481
Email: [EMAIL PROTECTED]
-----Original Message-----
From: William [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2002 18:33
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] long admin processes. script timeout.
I have an application that needs to perform some large processes, moving
data as well as generating some rather large output files. This process
might take about 15 to 20 minutes to complete and "MUST" be completed.
It is only run by 1 administrator every and not a general user.
1)Is there anything I should do to adjust this script to optimize/ensure
it doesn't time out before finished?
2)Will a long process like this keep the general users from using the
system?
Thanks,
william
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
--- End Message ---