PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 22nd, 1999, 04:08 AM
Ulrik N
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
How do I execute one .php3 script from another.
Passing one or two arguments, and then receiving
the output?

I have tried using the exec and passthru function,
with no luck.

-ulrik-


------------------
-ulrik-

Reply With Quote
  #2  
Old September 23rd, 1999, 11:17 AM
moderator
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
PHP scripts are interpeted thus you cannot "run" them. However, you could include() one in your script which basically does the same thing.

Reply With Quote
  #3  
Old September 24th, 1999, 02:43 AM
Ulrik N
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks, I got the picture...

------------------
-ulrik-

Reply With Quote
  #4  
Old October 10th, 1999, 04:11 PM
jfl.dk
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
You can do it like this :
exec("chp3php.exe -q d:weblibSendMemberMail.php3");

But I can't make exec let go of it, so it hangs. Any suggestions anyone ?

Reply With Quote
  #5  
Old October 12th, 1999, 11:34 AM
riddler
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I would like to be able to do this myself.

The header() function can redirect the browser to a new page, but only at the very beginning -- not good enough.

Since I haven't yet found a way within PHP to just say switch_to_page ("new.php3"), I've been cheating and using javascript:

echo ("<SCRIPT>self.location.replace('new.php3');</SCRIPT>");
exit;

It's an ugly and flawed solution and I hate it. It would be great if anyone could offer a better way.


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Executing scripts...

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap