PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > This, then that.
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
This, then that.

Réponse
 
LinkBack Outils de la discussion
Vieux 18/10/2007, 20h04   #1
tedd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut This, then that.

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
  Réponse avec citation
Vieux 18/10/2007, 20h12   #2
Martin Marques
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] This, then that.

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
---------------------------------------------------------
  Réponse avec citation
Vieux 18/10/2007, 20h13   #3
Robert Cummings
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] This, then that.

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!
.................................................. ..........
  Réponse avec citation
Vieux 18/10/2007, 20h30   #4
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] This, then that.

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....
  Réponse avec citation
Vieux 19/10/2007, 16h49   #5
tedd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] This, then that.

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/
  Réponse avec citation
Vieux 19/10/2007, 17h07   #6
tedd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] This, then that

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h09.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17343 seconds with 14 queries