php-windows Digest 18 May 2002 17:59:51 -0000 Issue 1150
Topics (messages 13852 through 13857):
AOLserver + php + windows?
13852 by: Eduards Cauna
php4.2.1:install problem
13853 by: linccg
How to get all combinations
13854 by: Steen Rabol
Re: EXEC and Windows
13855 by: firepages
13856 by: Scott Carr
Re: Extra space added on import
13857 by: Hugh Bothwell
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 ---
Anybody ever installed AOLserver + php + windows?
Eduards
--- End Message ---
--- Begin Message ---
I compiled php 4.2.1 in VC 6.0 on WinXP, but get an error:
Linking...
LINK : fatal error LNK1181: cannot open input file "ApacheCore.lib"
Error executing link.exe.
My setting is:
Set Active Project Configuration
php4apache - Win32 Release_TS_inline
Configure
Win32 Release_TS_inline
Could somebody help me? Thank you.
--- End Message ---
--- Begin Message ---
Hi
I have 6 arrays with data and would like to have all possible
combinations
Eg.
$a1 = array(1,2);
$a2 = array(3,4);
$a3 = array(5,6);
$a4 = array(7,8);
$a5 = array(9,10);
$a6 = array(11,12);
the result should then be a new array like this:
[0] = 1,3,5,7,9,11
[1] = 1,4,5,7,9,11
[2] = 1,6,5,7,9,11
etc....
I know I end up with A LOT, but I need it ;-)
Any hints?
Thanks in advance.
Steen
--- End Message ---
--- Begin Message ---
try
exec('start c:\progra~1\swish-e\swish-e.exe -w test -f
C:/Progra~1/EasyPHP/www/atelier_dev/data/index.swish-e',$out);
will start a seperate process but may kickstart it for you, I find exec a
bit wobbly on windows depending on the .exe in hand so I more often than not
just create a batchfile with my command-line in it and then exec the bat
file, but then you get no returned value anyway :) , not knowing exactly
what your script is doing its hard to know how to help.
Regards,
Simon Wheeler
firepages
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> 'exec' will returm the last line of any output.
>
> The syntax is:
>
> <snip src="http://www.php.net/manual/en/function.exec.php">
>
> string exec ( string command [, string array [, int return_var]])
>
> </snip>
>
> If you include the second parameter, the contents of the output will be
> placed in the array, each line being an element in the array.
>
> <?php
> $lastline = exec( "$command", $resultsArray );
>
> ## print out the results, if any.
> for($i=0; $i < sizeof($resultsArray); $i++)
> {
> ## you have to echo out the
> ## results from each element
> ## of the array.
> echo $resultsArray[$i] . '<br>';
> }
> ?>
>
> HTH!
> Nicole Amashta
> www.aeontrek.com
>
> Bernard Florent wrote:
> > Hello
> >
> > I try to use EXEC function to execute a command line. The command line
is
> > correct but the exec doesn't return anything.
> >
> > Have you any idea about it ?
> >
> > I give you my source :
> >
> > exec('"c:\progra~1\swish-e\swish-e.exe" -w "test" -f
> > C:/Progra~1/EasyPHP/www/atelier_dev/data/index.swish-e',$out);
> >
> >
>
--- End Message ---
--- Begin Message ---
First, have you made sure to:
$out = array();
before the exec line?
Also, does the program swish-e.exe return anything to output when you run it
from the command line?
--
Scott Carr
OpenOffice.org
Whiteboard-Doc Maintainer
http://whiteboard.openoffice.org/doc/
Quoting firepages <[EMAIL PROTECTED]>:
> try
>
> exec('start c:\progra~1\swish-e\swish-e.exe -w test -f
> C:/Progra~1/EasyPHP/www/atelier_dev/data/index.swish-e',$out);
>
> will start a seperate process but may kickstart it for you, I find exec a
> bit wobbly on windows depending on the .exe in hand so I more often than
> not
> just create a batchfile with my command-line in it and then exec the bat
> file, but then you get no returned value anyway :) , not knowing exactly
> what your script is doing its hard to know how to help.
>
> Regards,
> Simon Wheeler
> firepages
>
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > 'exec' will returm the last line of any output.
> >
> > The syntax is:
> >
> > <snip src="http://www.php.net/manual/en/function.exec.php">
> >
> > string exec ( string command [, string array [, int return_var]])
> >
> > </snip>
> >
> > If you include the second parameter, the contents of the output will be
> > placed in the array, each line being an element in the array.
> >
> > <?php
> > $lastline = exec( "$command", $resultsArray );
> >
> > ## print out the results, if any.
> > for($i=0; $i < sizeof($resultsArray); $i++)
> > {
> > ## you have to echo out the
> > ## results from each element
> > ## of the array.
> > echo $resultsArray[$i] . '<br>';
> > }
> > ?>
> >
> > HTH!
> > Nicole Amashta
> > www.aeontrek.com
> >
> > Bernard Florent wrote:
> > > Hello
> > >
> > > I try to use EXEC function to execute a command line. The command line
> is
> > > correct but the exec doesn't return anything.
> > >
> > > Have you any idea about it ?
> > >
> > > I give you my source :
> > >
> > > exec('"c:\progra~1\swish-e\swish-e.exe" -w "test" -f
> > > C:/Progra~1/EasyPHP/www/atelier_dev/data/index.swish-e',$out);
> > >
> > >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
"Jerry" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> When I import a comma delimited text file into a table using
> MySQL Front, a space is added to one of the fields which is a
> varchar field. How can I keep this from happening?
after importing the table, do an UPDATE and TRIM()
the field.
--- End Message ---