Allow me to jump right in:
I have a script, and it uses variables defined in the URL to explode a file in a different directory into about seven different variables. So here is an example of the text file (the file does not have a extension recognized:
pepperoni
sausages
cheese
mushrooms
olives
pinapple
anchovies
I want to put these into a table, each as its own variable. The code I am using is this:
<?PHP
$pizza=file('http://www.redhelix.com/$dir/$file.$ext');
list($toppinga, $toppingb, $toppingc, $toppingd, $toppinge, $toppingf, toppingg) = explode ("\n", $pizza);
?>
And from there I pretty much use the various $topping variables inserted into a table. This does not work, however. $dir and $file and $ext are defined in the URL of the page, and they effect the outcome of the page. $file.$ext, in this case, contains the toppings listed above as an example. But for some reason, in the file function the variables don't parse and are just coughed up as words with a dollar sign in front of them, or $toppinga just shows up as "Array" and the rest of the variables show up blank, as if they were undefined. I have tried doing the same thing various ways, such as using the file function and the file's URL by themselves in the explode function instead of inserting that into a variable and using that in the function. I have also tried using the alternate path, /home/sites/sites3/user/web/ etc. I have also tried alternate functions, such as file_get_contents and fgets but with those I get a "called to an undefined function" error. My script is not actually very much like this, it is more complicated and would take more time to explain everything, but my essential problem boils down to that. All help is appreciated greatly.