running a script inside a script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Aegiss
Forum Newbie
Posts: 9
Joined: Sat Jun 24, 2006 11:48 pm

running a script inside a script

Post by Aegiss »

hey whats the code to run another script thats on my web server inside a script? thanks :)
User avatar
Cameri
Forum Commoner
Posts: 87
Joined: Tue Apr 12, 2005 4:12 pm
Location: Santo Domingo, Dominican Republic

Post by Cameri »

To me it sounds that you want to execute somebody else's script...

If you are expecting some code here to help you without providing anything, you are out of luck.

Anyways, go to http://www.php.net and look for the include function.
ZephyrWest
Forum Newbie
Posts: 7
Joined: Mon Oct 16, 2006 9:39 pm

Post by ZephyrWest »

User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Cameri wrote:To me it sounds that you want to execute somebody else's script...
This is a very legitamate question, I don't see how executing code on your own server could be malicious in this context.
Aegiss
Forum Newbie
Posts: 9
Joined: Sat Jun 24, 2006 11:48 pm

Post by Aegiss »

ah ok i think that did it. just to make sure, if i write a script and than put an include at the end, it'll run the original script and then run the included one right?
intergroove
Forum Commoner
Posts: 32
Joined: Wed Oct 11, 2006 4:42 pm

Post by intergroove »

That is correct.
Post Reply