Ok, just incase my topic title is'nt specific enough, I'll explain in more detail.
I have a huge amount of files running my website, and I need to update all the php code in each file to add either
?name=' . $variable . '
if there is'nt already a value contained in the URL, (Two or more values put in an URL with ? will cause errors) or:
&name=' . $variable . '
to all URLs.
I've tried editting the files manually, I've been doing it for a good few days, and I haven't even got a quarter of the way through, it's driving me insane!
What I am asking is if there is a way to automaticly add one of the above lines of code to all URL's in my site. All the files include config.php, so I could add some sort of code there.. But how could it be done....??? Can it be done?
Also the script would have to identify which line of code needs to be added to the URL, if a ? is already present, use the & line of code, if a ? is'nt present, use the ? line of code....
Please help, it is really driving me insane... :mad: