|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi gang:
I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
tedd wrote:
> Hi gang: > > I would like to run a php script that creates a web page and AFTER it is > finished creating the page, then it runs another php script -- how you > do that? CLI or apache2 module? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 --------------------------------------------------------- Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador --------------------------------------------------------- |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Thu, 2007-10-18 at 15:04 -0400, tedd wrote:
> Hi gang: > > I would like to run a php script that creates a web page and AFTER it > is finished creating the page, then it runs another php script -- how > you do that? exec() Cheers, Rob. -- .................................................. .......... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! .................................................. .......... |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On 10/18/07, Robert Cummings <robert@interjinn.com> wrote:
> On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: > > Hi gang: > > > > I would like to run a php script that creates a web page and AFTER it > > is finished creating the page, then it runs another php script -- how > > you do that? > > exec() > > Cheers, > Rob. > -- > .................................................. ......... > SwarmBuy.com - http://www.swarmbuy.com > > Leveraging the buying power of the masses! > .................................................. ......... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Or, if you just want to be sure the other script runs, regardless of whether or not the user wants it to, you could add this just before the script terminates: <? // Code.... ignore_user_abort(); include('second_script.php'); ?> -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished.... |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
At 3:13 PM -0400 10/18/07, Robert Cummings wrote:
>On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: >> Hi gang: >> >> I would like to run a php script that creates a web page and AFTER it >> is finished creating the page, then it runs another php script -- how >> you do that? > >exec() > >Cheers, >Rob. Rob: I'm sure you're right, but I can't seem to get the hang of it. Thus far, I'm using something like: exec("/var/www/vhosts/example.com/httpdocs/mydir part2.php"); where part2.php is what I want to run and the path is what's provided by __FILE__. Where am I going wrong? Cheers, tedd -- ------- http://sperling.com/ |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
At 3:13 PM -0400 10/18/07, Robert Cummings wrote:
>On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: >> Hi gang: >> >> I would like to run a php script that creates a web page and AFTER it >> is finished creating the page, then it runs another php script -- how >> you do that? > >exec() > >Cheers, >Rob. Rob: I'm sure you're right, but I can't seem to get the hang of it. Thus far, I'm using something like: exec("/var/www/vhosts/example.com/httpdocs/mydir part2.php"); where part2.php is what I want to run and the path is what's provided by __FILE__. Where am I going wrong? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
![]() |
| Outils de la discussion | |
|
|