php-windows Digest 27 Sep 2004 21:34:45 -0000 Issue 2411
Topics (messages 24648 through 24655):
Re: Running php as scripting language
24648 by: Ross Honniball
24655 by: DvDmanDT
PHP-GTK plugin ?
24649 by: william.candillon.tiscali.fr
SetEnv problem
24650 by: Ilja Polivanovas
24651 by: Ed Lazor
24652 by: Ilja Polivanovas
24653 by: Ed Lazor
24654 by: Ilja Polivanovas
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 ---
Pretty easy.
If you check the directory you installed php to (mine, for example, is
c:\php), there should be a directory 'cli'.
Within this there should be an executable 'php.exe'.
To do an initial test, go there in DOS mode, set up a dummy script and put
it in this same directory. To run it, at prompt just type 'php
test_script.php' and hit enter.
Also, as far as timing out goes, just use php command set_time_limit(0).
Hope this gets you started.
Ross.
At 06:57 PM 27/09/2004, you wrote:
How easy is it to set php up to run as a scripting language
on Windows? I've set it up and ran it on web servers before
but not as a local scripting language.
What I am needing to be able to do is run a php script like
you would a batch file, and I need it to not time out after
30 seconds as well. As I'm needing to call a php script
from a batch file so I can add information to a MySQL
database via the batch file.
Cheers,
Daniel
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
. Ross Honniball. JCU Bookshop Cairns, Qld, Australia.
.
--- End Message ---
--- Begin Message ---
You can either associate all .php files (or some other extension) with
php.exe (php5) or cli\php.exe (php4).. I would probably write a batch file
to run the cli executable with some parameters to get the right php.ini and
so on.. My biggest problem was to get the HTML to the browser (I wanted to
be able to doubleclick a .php file and get the results shown in explorer)..
I think I succeded somehow though..
--
// DvDmanDT
MSN: dvdmandt�hotmail.com
Mail: dvdmandt�telia.com
"Danielb" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> How easy is it to set php up to run as a scripting language
> on Windows? I've set it up and ran it on web servers before
> but not as a local scripting language.
>
> What I am needing to be able to do is run a php script like
> you would a batch file, and I need it to not time out after
> 30 seconds as well. As I'm needing to call a php script
> from a batch file so I can add information to a MySQL
> database via the batch file.
>
> Cheers,
>
> Daniel
--- End Message ---
--- Begin Message ---
Hello,
Why not write an php-gtk plugin for browser which can interpret an php gtk application
byte code like applets in java ? I don't think there is already a similar project
whereas it will be very usefull.
Regards,
William CANDILLON
************************ ADSL ILLIMITE TISCALI + TELEPHONE GRATUIT
************************
Surfez 40 fois plus vite pour 30EUR/mois seulement ! Et t�l�phonez partout en France
gratuitement,
vers les postes fixes (hors num�ros sp�ciaux). Tarifs tr�s avantageux vers les mobiles
et l'international !
Pour profiter de cette offre exceptionnelle, cliquez ici :
http://register.tiscali.fr/adsl (voir conditions sur le site)
--- End Message ---
--- Begin Message ---
There is a documentation bug http://bugs.php.net/bug.php?id=29694 about
SetEnv setting in httpd.conf
Rasmus says that "PHP checks the real environment, not the Apache
environment for PHPRC."
In this sutuation i've problem. The problem is how to run 2+ versions of
apache server (2+ different httpd.conf) with each own php.ini file?
Before this bug, there was a theoretical solution of running 2+ versions
of apache setting different SetEnv variable for each copy of php.ini file.
But now i can only provide 1 path to file. so? no way to run 2 different
php versions at one time?
--
Ilja Polivanovas
--- End Message ---
--- Begin Message ---
Use the PHPIniDir directive in httpd.conf to specify different locations for
the php.ini file.
PHPIniDir "C:/windows"
> -----Original Message-----
> There is a documentation bug http://bugs.php.net/bug.php?id=29694 about
> SetEnv setting in httpd.conf
>
> Rasmus says that "PHP checks the real environment, not the Apache
> environment for PHPRC."
>
> In this sutuation i've problem. The problem is how to run 2+ versions of
> apache server (2+ different httpd.conf) with each own php.ini file?
>
> Before this bug, there was a theoretical solution of running 2+ versions
> of apache setting different SetEnv variable for each copy of php.ini file.
> But now i can only provide 1 path to file. so? no way to run 2 different
> php versions at one time?
--- End Message ---
--- Begin Message ---
Is seems to me that ir works in apache2 only,
what about 1.3.x?
Use the PHPIniDir directive in httpd.conf to specify different locations
for
the php.ini file.
PHPIniDir "C:/windows"
-----Original Message-----
There is a documentation bug http://bugs.php.net/bug.php?id=29694 about
SetEnv setting in httpd.conf
Rasmus says that "PHP checks the real environment, not the Apache
environment for PHPRC."
In this sutuation i've problem. The problem is how to run 2+ versions of
apache server (2+ different httpd.conf) with each own php.ini file?
Before this bug, there was a theoretical solution of running 2+ versions
of apache setting different SetEnv variable for each copy of php.ini
file.
But now i can only provide 1 path to file. so? no way to run 2 different
php versions at one time?
--
Ilja Polivanovas
--- End Message ---
--- Begin Message ---
I'm not sure. I'll see if I can find something. Meanwhile, have you
checked the manual for the ini_set command?
-Ed
> -----Original Message-----
> Is seems to me that ir works in apache2 only,
> what about 1.3.x?
>
> > Use the PHPIniDir directive in httpd.conf to specify different locations
> > for
> > the php.ini file.
> >
> > PHPIniDir "C:/windows"
--- End Message ---
--- Begin Message ---
Yes, i do, but i'm interested in fundamental thing, as i remember i cannot
set Any paramater via ini_set, so developing server/applications which
uses apache + php can be a little complicated.
Sure i can find any workaround i.e. setting many php_value/php_value, but
isn't there any support of cleaner way. Maybe php guys should think about
it?
I'm not sure. I'll see if I can find something. Meanwhile, have you
checked the manual for the ini_set command?
-Ed
-----Original Message-----
Is seems to me that ir works in apache2 only,
what about 1.3.x?
> Use the PHPIniDir directive in httpd.conf to specify different
locations
> for
> the php.ini file.
>
> PHPIniDir "C:/windows"
--
Ilja Polivanovas
--- End Message ---