Re: Re: [PHP] Execute permission question

2011-10-28 Thread Tim Streater
On 28 Oct 2011 at 16:01, Tedd Sperling wrote: > On Oct 27, 2011, at 7:49 PM, Daniel Brown wrote: > But does having execute permissions set on a script affect the scripts ability > to run shell commands? No, as Dan has said. But if you have a file called wiggy, containing the following: #!

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
On Oct 28, 2011, at 11:07 AM, Daniel Brown wrote: > On Fri, Oct 28, 2011 at 11:01, Tedd Sperling wrote: >> >> But does having execute permissions set on a script affect the scripts >> ability to run shell commands? > >Negative. It won't inherit permissions, though one might expect > that

Re: [PHP] Execute permission question

2011-10-28 Thread Daniel Brown
On Fri, Oct 28, 2011 at 11:01, Tedd Sperling wrote: > > But does having execute permissions set on a script affect the scripts > ability to run shell commands? Negative. It won't inherit permissions, though one might expect that to make sense. > For example, if I have a script that contain

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
On Oct 27, 2011, at 7:49 PM, Daniel Brown wrote: > On Thu, Oct 27, 2011 at 19:44, Tedd Sperling wrote: >> >> One of the things I'm trying to understand is a php script can execute a >> shell command, right? Is there a way via permissions to prevent that -- or >> -- does that even have anything

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
On Oct 28, 2011, at 7:19 AM, Geoff Shang wrote: > On Thu, 27 Oct 2011, Tedd Sperling wrote: > >> You answered a question I wasn't prepared to ask, which was "How can php >> scripts be executed when their execute permissions aren't set?" > > Because as far as the system is concerned, the thing w

Re: [PHP] Execute permission question

2011-10-28 Thread Geoff Shang
On Thu, 27 Oct 2011, Tedd Sperling wrote: You answered a question I wasn't prepared to ask, which was "How can php scripts be executed when their execute permissions aren't set?" Because as far as the system is concerned, the thing which is being executed is either PHP itself or something in

Re: [PHP] Execute permission question

2011-10-27 Thread Daniel Brown
On Thu, Oct 27, 2011 at 19:44, Tedd Sperling wrote: > > One of the things I'm trying to understand is a php script can execute a > shell command, right? Is there a way via permissions to prevent that -- or -- > does that even have anything to do with it? That's where I'm fuzzy. Sure. What

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote: > On Thu, Oct 27, 2011 at 18:15, Tedd Sperling wrote: >> That question begged the question of "What does execute mean?" > >It means "execute." Not to be confused with what others are > mentioning here, which is "read and interpret." If you ru

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote: > On Thu, Oct 27, 2011 at 18:15, Tedd Sperling wrote: >> >> Ash: >> >> You answered a question I wasn't prepared to ask, which was "How can php >> scripts be executed when their execute permissions aren't set?" >> >> That question begged the qu

Re: [PHP] Execute permission question

2011-10-27 Thread Daniel Brown
On Thu, Oct 27, 2011 at 18:15, Tedd Sperling wrote: > > Ash: > > You answered a question I wasn't prepared to ask, which was "How can php > scripts be executed when their execute permissions aren't set?" > > That question begged the question of "What does execute mean?" It means "execute."

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
On Oct 27, 2011, at 4:51 PM, Ashley Sheridan wrote: > Yes, I just ran a quick test PHP script without any execute permissions set > at all, only rw-rw-r-- and it ran just fine, suggesting it is just an > argument as Larry said. > > I don't think Apache needs execute permissions set on PHP files

Re: [PHP] Execute permission question

2011-10-27 Thread Ashley Sheridan
On Thu, 2011-10-27 at 14:41 -0600, Larry Martell wrote: > On Thu, Oct 27, 2011 at 2:26 PM, Tedd Sperling > wrote: > > Hi gang: > > > > Another question -- in the context of file permissions (rwx) is the execute > > permission limited to shell commands -- Or -- is there more? > > Not sure I ful

Re: [PHP] Execute permission question

2011-10-27 Thread Larry Martell
On Thu, Oct 27, 2011 at 2:26 PM, Tedd Sperling wrote: > Hi gang: > > Another question -- in the context of file permissions (rwx) is the execute > permission limited to shell commands -- Or -- is there more? Not sure I fully understand your question, but to execute anything directly - shell scri

Re: [PHP] execute my php code before every php call

2011-06-12 Thread Stuart Dallas
On 12 Jun 2011, at 19:46, "techloop" wrote: > Hi all, > > I have a simple code that override some env vars but i need it to run before > any other php code on every php execution. > I would like to avoid any change of all php code (even if its only to > include the include command). > > Any o

Re: [PHP] execute my php code before every php call

2011-06-12 Thread Tamara Temple
On Jun 12, 2011, at 1:46 PM, techloop wrote: I have a simple code that override some env vars but i need it to run before any other php code on every php execution. Have you looked at http://us.php.net/manual/en/ini.core.php#ini.auto-prepend-file ? -- PHP General Mailing List (http://w

RE: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Tommy Pham
> -Original Message- > From: Sebastian Detert [mailto:php-maill...@elygor.de] > Sent: Tuesday, October 19, 2010 6:51 AM > To: Ferdi; PHP General > Subject: Re: [PHP] Execute a php page and don't wait for it to finish > > Ferdi schrieb: > > Hi List, > &

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Sebastian Detert
Ferdi schrieb: Hi List, I have a php page that updates data from one database to another when it is run. My query is, how can I trigger the execution of this update page from another php / javascript without the calling page having to wait for the update page to finish? Basically, I think the up

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Marc Guay
A simple AJAX script would do the trick, no? Or does the script which was triggered by JS get aborted if that page is unloaded? If javascript is unavailable you could trigger it through the tag like so: Again, not sure if it will keep running if the caller is unloaded. -- PHP General Mailin

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread chris h
What about simply having the script trip a flag that another background script checks every 60 seconds or so? Once a minutes a background script checks to see if it needs to preform any tasks. When a user hits a certain page it does an ajax request to trip this flag and immediately returns. The ne

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Steve Staples
On Tue, 2010-10-19 at 18:50 +0530, Ferdi wrote: > Hi List, > > I have a php page that updates data from one database to another when it is > run. > My query is, how can I trigger the execution of this update page from > another php / javascript without the calling page having to wait for the > upd

[PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-11 Thread Al
On 4/10/2010 9:07 PM, Kristijan Marin wrote: Hi, I'm experiencing very slow performance of my php scripts ... At first and for a long time I thought it was Oracle fault cause I didn't use binding (I rewrote the code ), but the performance is still bad. So I tested my sql statement and did

Re: [PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-11 Thread kranthi
have you tried using a profiler like xdebug? or may be it is not a php issue at all.. i find https://addons.mozilla.org/en-US/firefox/addon/1843 to be helpful in these situations -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-10 Thread Kristijan Marin
one more thing ... I use lot of includes in the code to display some specific content BR, Kris ""Kristijan Marin"" wrote in message news:06.35.16158.4e021...@pb1.pair.com... > Hi, > > > > I'm experiencing very slow performance of my php scripts ... At first and > for a long time I though

Re: [PHP] Execute flash files with PHP

2009-02-19 Thread tedd
There's a tutorial here: http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two (have not tested it myself). The php code is available for download from that page as well. And the video there is awesome! The narrator sounds like the one in my video: http://webb

Re: [PHP] Execute flash files with PHP

2009-02-19 Thread Chris
R B wrote: Hello. I have two scripts in php that reads a .swf or .flv movie file, like this: SCRIPT # 1 SCRIPT # 2 The script # 1 with the .swf file works fine: the video is executed with streaming. The script # 2 with the .flv file is executed but without streaming. There's a tutorial

Re: [PHP] Execute flash files with PHP

2009-02-19 Thread Chris
R B wrote: Hello. I have two scripts in php that reads a .swf or .flv movie file, like this: SCRIPT # 1 SCRIPT # 2 The script # 1 with the .swf file works fine: the video is executed with streaming. The script # 2 with the .flv file is executed but without streaming. If i execute the mo

Re: [PHP] Execute EXE with variables

2009-02-18 Thread Michael A. Peters
Yannick Mortier wrote: 2009/2/13 Dan Shirah : Using both exec() and system() I am getting the error: Unable to fork This sounds to me like it is an restriction on the server that doesn't allow php to fork so it could start another process. Maybe you should ask your hoster if you are not

Re: [PHP] Execute EXE with variables

2009-02-18 Thread Yannick Mortier
2009/2/13 Dan Shirah : >> >> Use the system() command, and enclose both your command and its >> parameters in a pair of single quotes, as: >> >> system('mycmd -a alfa -b bravo'); >> >> Paul >> -- >> Paul M. Foster >> > > Using both exec() and system() I am getting the error: Unable to fork > Thi

Re: [PHP] Execute EXE with variables

2009-02-14 Thread Ashley Sheridan
On Sun, 2009-02-15 at 00:16 +1300, German Geek wrote: > Hi, > > I've had a lot of problems with shell_exec too. Mostly it was permissions or > environment variables not being set. i dont know if there is a way to set > environment variables in the php.ini but if not you can set them with > shell_e

Re: [PHP] Execute EXE with variables

2009-02-14 Thread German Geek
Hi, I've had a lot of problems with shell_exec too. Mostly it was permissions or environment variables not being set. i dont know if there is a way to set environment variables in the php.ini but if not you can set them with shell_exec as well, at least on unix it works. You can simply concatenate

Re: [PHP] Execute EXE with variables

2009-02-13 Thread Dan Shirah
> > Use the system() command, and enclose both your command and its > parameters in a pair of single quotes, as: > > system('mycmd -a alfa -b bravo'); > > Paul > -- > Paul M. Foster > Using both exec() and system() I am getting the error: Unable to fork

Re: [PHP] Execute EXE with variables

2009-02-13 Thread Paul M Foster
On Fri, Feb 13, 2009 at 02:30:38PM -0500, Dan Shirah wrote: > Hello all, > > Can someone point me in the right direction? > > I'm trying to call an EXE from PHP and pass it two variables. > > I looked at the exec() command and I see that this can call the executable, > but I don't see that it c

Re: [PHP] Execute command line as a different user

2008-07-07 Thread Daniel Brown
On Tue, Jul 1, 2008 at 1:17 PM, Matt palermo <[EMAIL PROTECTED]> wrote: > My PHP is running as a user with limited rights. I'd like to execute a > command line as a different user. I'm trying to delete a file and the PHP > user doesn't have access to do this. I know the username and password for

Re: [PHP] Execute command line as a different user

2008-07-01 Thread Dan Joseph
On Tue, Jul 1, 2008 at 1:17 PM, Matt palermo <[EMAIL PROTECTED]> wrote: > My PHP is running as a user with limited rights. I'd like to execute a > command line as a different user. I'm trying to delete a file and the PHP > user doesn't have access to do this. I know the username and password fo

Re: [PHP] Execute php commands that are in an array

2008-06-05 Thread Daniel Brown
On Thu, Jun 5, 2008 at 12:34 PM, Ryan S <[EMAIL PROTECTED]> wrote: > Hey, > its easier to start with code and then explain: > > $t_array[]='chr(rand(97,122))'; > echo $t_array[0]; > > The above code outputs > chr(rand(97,122)) > > How can i execute that above code from the array instead of displayi

Re: [PHP] Execute command from web browser

2008-05-04 Thread Craige Leeder
Well, you're missing a semi-colin after the exec() statement, and the echo. If it wasn't the syntax error, make sure the program exists with file_exists(); - Craige On Sat, May 3, 2008 at 11:28 PM, <[EMAIL PROTECTED]> wrote: > > Hi all > > > I try write a code to execute service in my server

Re: [PHP] Execute command from web browser

2008-05-03 Thread Casey
On 5/3/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all > > > I try write a code to execute service in my server from web browser > > I write next > > /var/www/html/squidup.html Should it be... squidup.php? >exec ('/usr/bin/squid/sbin/squid') > echo "Squid UP" > ?> > > but, do

RE: [PHP] Execute script and redirect

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 3:42 am, Peter Lauri wrote: > That was a smart solution. However, my client have not given me access > to > the MySQL database at this stage (just doing a small side project of > the > clients web site). If you could not take advantage of database and > cron job, > what would

RE: [PHP] Execute script and redirect

2006-04-20 Thread Peter Lauri
jobs DS! -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 2:57 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Execute script and redirect On Thu, April 20, 2006 2:23 am, Peter Lauri wrote: > 1.Fill out form

Re: [PHP] Execute script and redirect

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 2:23 am, Peter Lauri wrote: > 1.Fill out form and click submit > 2.Script validates data > 3.Data is being sent to external source via Web Service > 4.A file is being downloaded (redirects to files location) > > The problem is that #3 is taking around 15 secon

Re: [PHP] Execute a shell command using thttpd-php

2006-03-15 Thread James E Hicks III
Nelson Carreira wrote: James E Hicks III wrote: Nelson Carreira wrote: Yes, I've tried using both absolute and relative paths. The system output is 0 when I execute, for example, "nvram show" from the php. From what I know this output means success. Although there's no output on php. Ne

Re: [PHP] Execute a shell command using thttpd-php

2006-03-14 Thread Chris
Nelson Carreira wrote: Hello, I'm quite new to PHP language and although I got into it pretty fast I'm having some trouble executing system commands using php. I'm using thttpd-php_2.21b-2_mipsel in a Linksys router and I can only execute system commands like "ls" and "cd" from the PHP. I tri

Re: [PHP] Execute appliction and pass parameters to it!

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 10:38 am, Dipesh Khakhkhar said: > -- > > 1) $output = shell_exec('..\phpunit.bat C:\Run.php'); > echo $output; Change shell_exec to exec, and use the extra parameters to get back ERROR MESSAGES and ERROR

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Jason Wong
On Tuesday 18 January 2005 18:59, Tom wrote: > Khan wrote: > > Tom wrote: > >> shell_exec() > > > > yes, I have try that but nothing happenes. here is my code. Is this > > correct? > > > > > shell_exec('/test/acct.sh'); > > ?> Note that shell_exec() expects a filesystem path and not your webserv

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Tom
Khan wrote: Tom wrote: shell_exec() yes, I have try that but nothing happenes. here is my code. Is this correct? looks fine to me, except that I tend to run a check to make sure that it has run ok, like $myReturn = shell_exec('/test/acct.sh'); or if (shell_exec('/test/acct.sh'); On some syste

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Khan
Tom wrote: shell_exec() yes, I have try that but nothing happenes. here is my code. Is this correct? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Tom
shell_exec() Tom Khan wrote: Hello, I have a shell script for ading users to LDAP. It looks like this: #!/bin/bash MUID=userlogin FULLNAME="First Last" LASTNAME="Last" DOMAIN=example.org SERVER=qmail.example.org PASS=userpass cat > .ldif.tmp.$MUID << EOF dn: uid=$MUID,ou=accounts,dc=example,dc=org

Re: [PHP] Execute a scipt in the background

2004-07-20 Thread Justin Patrin
On Thu, 17 Jun 2004 11:59:45 +0530, narender <[EMAIL PROTECTED]> wrote: > I want to start the execution of a script in the background at the time of user > login. In the script there is infinite loop which is checking something after every > 10 seconds and if it get true value the it open a popup

RE: [PHP] execute script via email?

2004-04-06 Thread jon roig
Sure... You can write a small php script that uses PHP's imap or pop functions to monitor any email address. (Check out http://us3.php.net/manual/en/ref.imap.php for details.) Once that's written, just schedule it as a task using the windows scheduler or cron in unix/linux. -- jon ---

Re: [PHP] execute php script with crontab

2004-01-20 Thread rudi
Sorry, for delayed reply, but anyway thanks for your help and your sugestions to check the cron log, after read the tutorial and do some actions (trial and error) for a days, finally i found i know it what's going on, the tutorial say that there is two way to run php script with cron : 1. First

Re: [PHP] execute php script with crontab

2004-01-19 Thread Jason Wong
On Monday 19 January 2004 21:14, Developer wrote: > Could I add a question regarding the cron command? > If you automatically run a php script through the cron command is timeout > taken under account or does it run through the "command line" which is > faster (and timeout is not taken under accoun

Re: [PHP] execute php script with crontab

2004-01-19 Thread Developer
From: "rudi" <[EMAIL PROTECTED]> To: "Jason Wong" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 19, 2004 7:29 AM Subject: Re: [PHP] execute php script with crontab > Ok, thanks i will check it first. soon i will send mail about it.

Re: [PHP] execute php script with crontab

2004-01-18 Thread rudi
Ok, thanks i will check it first. soon i will send mail about it. Jason Wong <[EMAIL PROTECTED]> wrote:On Monday 19 January 2004 12:01, rudi wrote: > 01 * * * * root run-parts /usr/bin/php /var/www/html/cron/testcron.php I believe 'run-parts' takes a directory as argument. Try: 1 * * * * root /

Re: [PHP] execute php script with crontab

2004-01-18 Thread Jason Wong
On Monday 19 January 2004 12:01, rudi wrote: > 01 * * * * root run-parts /usr/bin/php /var/www/html/cron/testcron.php I believe 'run-parts' takes a directory as argument. Try: 1 * * * * root /usr/bin/php /var/www/html/cron/testcron.php Also if you have: #!/usr/bin/php as the first line in

Re: [PHP] execute php script with crontab

2004-01-18 Thread Robert Cummings
On Sun, 2004-01-18 at 23:01, rudi wrote: > Hi There, > > I am a new be in php programming ussually i using php under windows, but now i am > migrate to linux. > > I have php script to write time (testcron.php owner apache chmod 775) into file > testcron.txt(owner apache chmod 775), and i want

Re: [PHP] Execute a linux binary that generates a registration code...

2003-12-04 Thread Sophie Mattoug
See www.php.net/passthru Karam Chand wrote: Hello I have got an app wherein you need to pass a name as the first parameter and it will output that is cout << a registraion code for my app based on the name. I would like to give a web based interface wherein a user can give his name on the for

Re: [PHP] Execute programs

2003-11-22 Thread Eric Wood
- Original Message - > > 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 progra

Re: [PHP] Execute programs

2003-11-22 Thread John Nichel
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

Re: [PHP] Execute programs

2003-11-22 Thread Bas
"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 w

Re: [PHP] Execute programs

2003-11-22 Thread John Nichel
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, ohmanual http://www.php.net/manual/en/ref.exec.php -- By-Tor.com It's all a

Re: [PHP] Execute Background Process

2003-11-12 Thread Burhan Khalid
apur kurub ver.1 wrote: dear all i will execute background process like $program & is there posible in php to process that statement? and return to php immediately; http://www.php.net/system -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentati

RE: [PHP] execute command line script from browser

2003-09-02 Thread Jay Blanchard
[snip] Is there a way to execute a command line php script from a browser by, say clicking a button and then having the browser let go and let the script run independet of the browser? Hope I explained that correctly. [/snip] You could invoke the CLI using an exec() http://www.php.net/exec HTH!

Re: [PHP] execute a command

2003-06-22 Thread Don Read
On 22-Jun-2003 Mattia wrote: > How to execute a command capturing the stanndard error, in addition to > standard output? example: > > echo system('/bin/rm ...'); > > I need to know when this command fails, and when it fails, i need to > know why. Any hints? > > _Mattia_ > $cmd='/bin/rm foo'

RE: [PHP] Execute command which has root privileges

2003-06-09 Thread esctoday.com | Wouter van Vliet
Probably you should look over here for info about suexec http://httpd.apache.org/docs/suexec.html, or check the 'sudo' man pages... With that you could gain root privilages.. -Oorspronkelijk bericht- Van: vijaypatel [mailto:[EMAIL PROTECTED] Verzonden: maandag 9 juni 2003 6:06 Aan: [EMAIL

Re: [PHP] Execute at a defined time

2003-02-05 Thread Miguel BrĂ¡s
Thx all for the help Problem solved Miguel "Jason Sheets" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Miguel, You can use cron to execute the CGI or CLI version of PHP against your PHP script, for example /usr/local/bin/php example.php, simply create a

Re: [PHP] Execute at a defined time

2003-02-05 Thread Andrew Brampton
If you have PHP compiled as cgi then you can run something like: php /path/to/my/script.php or if you can request the page via your website with something like: lynx -dump "http://your site.com/yourscript.php" Also if you want to know how to use cron, try typing "man cron" in your shell Hope this

Re: [PHP] Execute at a defined time

2003-02-05 Thread Jason Sheets
Hi Miguel, You can use cron to execute the CGI or CLI version of PHP against your PHP script, for example /usr/local/bin/php example.php, simply create a cron entry that will execute at the desired time. If you need information on the crontab format do a man crontab or search google for cron help

Re: [PHP] Execute at a defined time

2003-02-05 Thread Tom Rogers
Hi, Wednesday, February 5, 2003, 11:49:35 PM, you wrote: MB> Hi, MB> I was looking on PHP manual but didn't find anything about it. MB> How can I execute a script all days at the same time? I kno i must have MB> access to the CRON of the system, but don't know what function should I use MB> to m

Re: [PHP] execute shell commands

2003-01-16 Thread Marek Kilimajer
Use sudo (man sudo) Mantas Kriauciunas wrote: Hey! What I want to do is, There is user that logs into the channel. And I need to make script to change his password. How do I execute shell command: passwd ? or what should I do to change that password? Thanks! mNTKz -- PHP General Mailing Li

Re: [PHP] Execute a cgi inside of php?

2002-12-11 Thread Philip Olson
The error you get does not have to do with that note, but rather that code of yours has many other issues such as: a) The syntax is incorrect print "a b " c " d"; // bad print "a b \" c \" d"; // good print "a b ' c ' d"; // good print 'a b " c " d'; // good ...

RE: [PHP] Execute...

2002-10-08 Thread Jon Haworth
Hi Bruno, > Can anyone tell me if I can execute windows calculator > trought a PHP script on a web page to allow customers > to check final prices?! Not on my Linux box you can't. You might find it tricky on my Dad's Mac as well. There's more to the web than Windows (thankfully). If you must

Re: [PHP] Execute...

2002-10-08 Thread Marco Tabini
Unfortunately no, because the calculator is a Windows application that runs on your local desktop and cannot be seen by your web-based users. If you need your customers to use a calculator through their browsers, you're probably looking for a Javascript calculator. Take a look at this as an examp

Re: [PHP] Execute script then output image.

2002-07-11 Thread JJ Harrison
I found it. I used header("Location: http://www.yoursite.com/images/stat.gif";); -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 11 Jul 2002 22:01:03 +1000, you wrote: > > >> You need to o

Re: [PHP] Execute script then output image.

2002-07-11 Thread David Otton
On Thu, 11 Jul 2002 22:01:03 +1000, you wrote: >> You need to output the correct content-type header for the image (eg >> image/gif), take it's size and output it as content-length, and >> suppress error reporting. Then output the image data. >There was a much simpler way. It just said the locat

Re: [PHP] Execute script then output image.

2002-07-11 Thread JJ Harrison
There was a much simpler way. It just said the location of the file. I could use your method but the other one was much simpler. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 11 Jul 2002

Re: [PHP] Execute script then output image.

2002-07-11 Thread David Otton
On Thu, 11 Jul 2002 21:00:36 +1000, you wrote: >How do I output a static image through a php script? > >it had something to do with headers but I can't remember exactly what. You need to output the correct content-type header for the image (eg image/gif), take it's size and output it as content-

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Coggeshall, John
If you are running apache, open httpd.conf and search for .php (the line where it specifies what types of files are PHP files)... Simply add .html to the list. John -Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 3:41 PM To

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Kevin Stone
If you only have a web account you can download the .htaccess file from your home directory and add the following lines. Whether this will work or not may depend on your host. AddType application/x-httpd-php .html AddType application/x-httpd-php .htm -Original Message- From: Lic. Carlo

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Miles Thompson
This idea sounds very appealing, but remember that PHP will then parse every HTML file. Make certain this won't result in a performance hit. Miles Thompson At 03:43 PM 3/12/2002 -0500, Hunter, Ray wrote: >Yes, > >However, you need to add the .html file extension to the php parser so that >it pa

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Hunter, Ray
Yes, However, you need to add the .html file extension to the php parser so that it parses the .html file. Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 1:4

Re: [PHP] Execute Perl CGI within PHP

2001-10-05 Thread Stefan Rusterholz
It seems I didn't read the descrition of 'exec()' good enough when I read it the first time :( Now it works, thank you From: "Krzysztof Kocjan" <[EMAIL PROTECTED]> To: "Stefan Rusterholz" <[EMAIL PROTECTED]> > See exec() and system functions in PHP > > Krzysztof > > Stefan Rusterholz wrote: > > >

Re: [PHP] execute a script on access to a directory

2001-09-07 Thread Enrique Vadillo
ter suggestions? Enrique- >From: "Jason Bell" <[EMAIL PROTECTED]> >To: "Enrique Vadillo" <[EMAIL PROTECTED]>, "PHP Users" ><[EMAIL PROTECTED]> >Subject: Re: [PHP] execute a script on access to a directory >Date: Fri, 7 Sep 2001 12:12:58 -07

Re: [PHP] execute a script on access to a directory

2001-09-07 Thread Jason Bell
You could always add an include() for every page under the /go directory. Simplest way that I can think of. - Original Message - From: "Enrique Vadillo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 12:09 PM Subject: [PHP] execute a script on access to a

RE: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread Michael Geier, CDM Systems Admin
AIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 15, 2001 9:30 PM Subject: Re: [PHP] Execute a PHP script from unix (crontab) > > From: "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, August

Re: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread Kunal Jhunjhunwala
D]> Sent: Wednesday, August 15, 2001 9:30 PM Subject: Re: [PHP] Execute a PHP script from unix (crontab) > > From: "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, August 16, 2001 1:04 AM > > Subject: [PHP] Ex

Re: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread Tom Henry
Hi First get your PHP script working correctly...;-) The use crontab to run lynx (as a browser that runs the PHP script for you). Here's an example crontab line (works for me) that even gets lynx to handle an .htaccess protected_dir ;-): 5 5 * * * /usr/local/bin/lynx -dump -nolog -auth=user

Re: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread Hugh Bothwell
> From: "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 16, 2001 1:04 AM > Subject: [PHP] Execute a PHP script from unix (crontab) > > How can I execute a php script from the unix? > > like perl it's (perl "file"), but in unix we don't have > > a "ex

Re: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread ReDucTor
do you mean perl?!? - Original Message - From: "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 16, 2001 1:04 AM Subject: [PHP] Execute a PHP script from unix (crontab) > Hi. > > How can I execute a php script from the unix? > > like pearl it's

[PHP] Re: PHP Execute as User ???

2001-08-01 Thread Richard Lynch
> I have php files which run on various VirtualHost's and there is suexec on > those VirtualHosts, however, when I look at the user/group which PHP runs > under it always seems to be the main web user (nobody, www, or whatever we > set it to). Is there any way for PHP to be able to execute as the

Re: [PHP] Execute mixed php code from mysql?

2001-07-31 Thread mike cullerton
the way i have solved this is to have another column of data_type. switch ($data_type) { case "php": exec($data); break; case "html": include($data); break; } mike on 7/31/01 3:24 PM, Kyle at [EMAIL PROTECTED] wrote: > For example I have in a database: > ---

Re: [PHP] Execute an invisble URL ?

2001-07-24 Thread Curts
simply call it using file: http://www.xyz.com/scripts/sending.php'); ?> [EMAIL PROTECTED] wrote: > > Hi > > I have a little scripting problem with php.I want to execute an extern URL with my >php file.But this url must be execute invisible.So how should i make this ? > Here is an example. >

Re: [PHP] Execute Shell command?

2001-04-01 Thread Chris Fry
I use a package called sudo which allows you to give limited root rights to the user that your webserver is running as. Using this I'm able to add/delete a user from a PHP script and also change passwords using poppassd. http://www.courtesan.com/sudo/ Chris [EMAIL PROTECTED] wrote: > Hi, > > D

Re: [PHP] Execute Shell command?

2001-04-01 Thread Steve Werby
<[EMAIL PROTECTED]> wrote: > Does anyone know if there is a way to execute a shell command in a php > script? I am trying to execute the following: > > /usr/sbin/cadduser -d www.domain.com -f Adrian -u testing -p testing -q 10 -w > [EMAIL PROTECTED] If you're running an Apache module version of P

RE: [PHP] Execute sql a number of times

2001-03-14 Thread Jon Haworth
What about wrapping it in a FOR loop: for ($counter = 1; $counter <= $NumCases; $counter++) { // do the sql stuff } (http://www.php.net/manual/en/control-structures.for.php) I don't think the type of database will make any difference to this. HTH Jon -Original Message- From: