tags:

views:

28

answers:

3

Ok, I'm pretty new at programming and have been using curl to execute scripts in other folders of my site and passing get and post variable that way.

Am I being stupid or is this the only way to do this?

A: 

Interesting way to do it but it's definitely overkill. You can just invoke the files with calls to include or require. If those files require externally set variables, simply set them before including them.

webbiedave
A: 

I think this is the only way to do this if the script is expecting get or post variables.

@Pekka why are you requesting code - it is a generic problem being asked

Martin
A: 

Maybe you're looking for PHP CLI :)

Tom