QUOTE(aviansuicide @ Mar 26 2005, 11:39 PM)
QUOTE(sjthomas @ Mar 26 2005, 07:36 PM)
passthru is actually a PHP function available since PHP 3 (http://uk2.php.net/manual/en/function.passthru.php). its actually very powerfull and I'm surprised more people don't use it. And yeah th eproblem is that ot does contain a reference to the file structure, thats been the crux of my problems!
[right][snapback]25297[/snapback][/right]
Um..dude..I
know what passthru is.I was referring to the /includes/blah part of the argument ^_~
I don't use it because I don't need it.I may when I start work on my next big project(server administration panel,eg: CPanel but better ^_~).
Hmm...if you don't feel comfortable posting it -- why don't you pm me the info on exactly what it does(and the shell script version of the code) and I'll see if I have any ideas as to how to remove that crux?
[right][snapback]25299[/snapback][/right]
lol sorry man, bit of a misunderstanding there lol
The script that is being pass throughed (is that even a word!?!?!?) is the graphviz program (or the dotty program from the Graphviz project anyway) thats here:
http://www.graphviz.org/Its a program for automatic graph layouts that I'm using for a project. The problem is that its going to be in locations that I don't control (on web servers) but its likely to be in the same place every time I run it in Windows and the same place when I run it on Solaris. I'm just going to assign a global variable in my configuration file and check that when using passthru and doing other stuff that relates to files. I think its just going to be easier that way. See Im always changing the code on either Windows OR Solaris so I always end up having to hack my way through the code to change all the file related code and passthru functions when I change platforms. Its a bit of a nightmare so I was trying to figure out a better way to deal with it. Which I think is your suggestion!