Re: [PHP] Running php scripts under cygwin

2006-01-16 Thread Jochem Maas

Robert Fitzpatrick wrote:

I have a php script that I use for backup with rsync over ssh and those
tools work great under cygwin. I'd like to use this same script that I
use on my unix/linux servers.

You would think I could find lots of info on this subject, but for some
reason I can't. I found info from googling the subject and some mention
of building php with cygwin, but do not see PHP in cygwin setup. I hope
someone here has PHP running on cygwin and can perhaps point me to some
information or suggest how I can get my php script to run under cygwin,
hopefully via cron service. I am not sure if I need PHP in cygwin or can
access the php.exe already installed under Windows? I tried to run a php
script from a cygwin prompt using the php.exe installed into Windows,
but get lots of module not found errors. Is it possible to run a php
script under cygwin.


I know next to nothing about cygwin but It seems logical that you wou need
to have a php binary built specifically for the cygwin environment in order
to run your *nix script. I can also imagine that you might have to tweak your
script to take note of some of the differences between *nix and windows
filesystems (like the directory seperator).

from what I can gather (a quick web search) you should be able to download a
linux source tarball untar it, and then run through the configure/make/make 
install
procedure all from within your cygwin environment; with the a php build as a 
result.





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Running php scripts under cygwin

2006-01-15 Thread Robert Fitzpatrick
I have a php script that I use for backup with rsync over ssh and those 
tools work great under cygwin. I'd like to use this same script that I 
use on my unix/linux servers.


You would think I could find lots of info on this subject, but for some 
reason I can't. I found info from googling the subject and some mention 
of building php with cygwin, but do not see PHP in cygwin setup. I hope 
someone here has PHP running on cygwin and can perhaps point me to some 
information or suggest how I can get my php script to run under cygwin, 
hopefully via cron service. I am not sure if I need PHP in cygwin or can 
access the php.exe already installed under Windows? I tried to run a php 
script from a cygwin prompt using the php.exe installed into Windows, 
but get lots of module not found errors. Is it possible to run a php 
script under cygwin.


--
Robert

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Running php scripts under cygwin

2006-01-15 Thread Robert Fitzpatrick

I have a php script that I use for backup with rsync over ssh and those
tools work great under cygwin. I'd like to use this same script that I
use on my unix/linux servers.

You would think I could find lots of info on this subject, but for some
reason I can't. I found info from googling the subject and some mention
of building php with cygwin, but do not see PHP in cygwin setup. I hope
someone here has PHP running on cygwin and can perhaps point me to some
information or suggest how I can get my php script to run under cygwin,
hopefully via cron service. I am not sure if I need PHP in cygwin or can
access the php.exe already installed under Windows? I tried to run a php
script from a cygwin prompt using the php.exe installed into Windows,
but get lots of module not found errors. Is it possible to run a php
script under cygwin.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Running php scripts stored in mysql

2004-07-08 Thread Martin Blint
Hello,

is this possible?

I have a script stored in mysql database. For simplicity let's say:

?
phpinfo();
?
 is stored in db.

Is it somehow possible to include this script to a running php process for
execution? Some analogy to include(file); but for a mysql stored script?

Thanks
Martin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Running PHP scripts in PHP Nuke

2003-09-08 Thread Jason Wong
On Monday 08 September 2003 01:27, Dan Anderson wrote:
  You need to be more specific. What error do you get?

 I don't get any error.  It will ask me for the HTML code to the page and
 just not work.  So I'm assuming that instead of being processed by
 Apache and a preprocessor that can send it to PHP it's being printed to
 the screen.

You would be better off asking on a php-nuke forum/list.

-- 
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
--
/*
Surely you can't be serious.
I am serious, and stop calling me Shirley.
-- Airplane
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Running PHP scripts in PHP Nuke

2003-09-07 Thread Marek Kilimajer
How does it not work. It explodes? Well, this happens with phpnuke 
sometimes, that how it's got its name.

You need to be more specific. What error do you get?

Dan Anderson wrote:
I have a client who wants me to install a script on their web site. 
Only problem is they use PHP nuke and when I edit a pages content and
type in :

?php include(script.php); ?

Or do something like:

OBJECT DATA=http://www.site.com/script.php;/OBJECT

It doesn't work.  Can anybody tell me how to run a script from within a
PHP nuke page?
Thanks,

Dan Anderson

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Running PHP scripts in PHP Nuke

2003-09-07 Thread Dan Anderson
 You need to be more specific. What error do you get?

I don't get any error.  It will ask me for the HTML code to the page and
just not work.  So I'm assuming that instead of being processed by
Apache and a preprocessor that can send it to PHP it's being printed to
the screen. 

-Dan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Running PHP scripts in PHP Nuke

2003-09-06 Thread Dan Anderson
I have a client who wants me to install a script on their web site. 
Only problem is they use PHP nuke and when I edit a pages content and
type in :

?php include(script.php); ?

Or do something like:

OBJECT DATA=http://www.site.com/script.php;/OBJECT

It doesn't work.  Can anybody tell me how to run a script from within a
PHP nuke page?

Thanks,

Dan Anderson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Running PHP scripts from the shell

2002-03-11 Thread andy thomas

Just wondering but is there any way PHP scripts can be run from the
command line from a standard Unix shell like, for example, perl rather
than being invoked via a browser and running web server, etc?

Such a feature would be very nice as there are a number of things that
can be done better from PHP than from a shell script - MySQL access being
one of them.

Andy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Running PHP scripts from the shell

2002-03-11 Thread Jason Wong

On Monday 11 March 2002 20:18, andy thomas wrote:
 Just wondering but is there any way PHP scripts can be run from the
 command line from a standard Unix shell like, for example, perl rather
 than being invoked via a browser and running web server, etc?

 Such a feature would be very nice as there are a number of things that
 can be done better from PHP than from a shell script - MySQL access being
 one of them.

PHP can be compiled as a stand-alone program (for use as CGI  thus shell 
scripting). See manual, Installation for details.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
I've seen the forgeries I've sent out.
-- John F. Haugh II ([EMAIL PROTECTED]), about forging net news articles
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Running PHP scripts from the shell

2002-03-11 Thread andy thomas



On Mon, 11 Mar 2002, Jason Wong wrote:

 On Monday 11 March 2002 20:18, andy thomas wrote:
  Just wondering but is there any way PHP scripts can be run from the
  command line from a standard Unix shell like, for example, perl rather
  than being invoked via a browser and running web server, etc?
 
  Such a feature would be very nice as there are a number of things that
  can be done better from PHP than from a shell script - MySQL access being
  one of them.

 PHP can be compiled as a stand-alone program (for use as CGI  thus shell
 scripting). See manual, Installation for details.

I will try doing this, thanks a lot for the suggestion.

Andy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] running php scripts

2001-07-17 Thread Pétur Björn Thorsteinsson

hi, I was wondering if someone could help me with a small problem I'm
having.

I'm running a script that periodically dumps information from one server to
a database on another. We're running suse 7.1 and apache on the server
containing the information, and the problem is I don't know how to make
linux run the php script, or how to set up crobtab with the php script in
mind. anyone have any ideas?


-petur


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] running php scripts

2001-07-17 Thread Johan Holst Nielsen

 We're running suse 7.1 and apache on the server
  containing the information, and the problem is I don't know 
how to make
  linux run the php script, or how to set up crobtab with the php
 script in
  mind. anyone have any ideas?

 You can use this Tutorial
 http://www.faqts.com/knowledge_base/view.phtml/aid/1005

 I think it can help you :o)

If your problem was how to execute the script you can etc. use Lynx (or
wget)... if you use lynx use follow

/path-to-lynx/lynx http://www.domain.com/scriptname.php -source

Regards

Johan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] running php scripts

2001-07-17 Thread Pétur Björn Thorsteinsson


thanx for the help man, the script is running and I get to keep my job  ,)

-petur


   

Johan Holst   

Nielsen To: [EMAIL PROTECTED]   

johan@1way2pr   cc:   

int.net Subject: Re: [PHP] running php scripts

   

17.07.2001 

13:17  

   

   





 We're running suse 7.1 and apache on the server
  containing the information, and the problem is I don't know
how to make
  linux run the php script, or how to set up crobtab with the php
 script in
  mind. anyone have any ideas?

 You can use this Tutorial
 http://www.faqts.com/knowledge_base/view.phtml/aid/1005

 I think it can help you :o)

If your problem was how to execute the script you can etc. use Lynx (or
wget)... if you use lynx use follow

/path-to-lynx/lynx http://www.domain.com/scriptname.php -source

Regards

Johan



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]