I have to use an IIS server for a site I'm working on. I need to include a php file with parameters. Everything works fine with the include until I add a parameter to the include then I get errors. Is there a way to get this to work? Right now I am defining the variable before I call the script, but I would rather get it to work the way it does on Apache so I don't have to re-do a bunch of code.
Thanks
This is the include and the errors.
<?php include("includes/dir.php?dirname=documents"); ?>
Warning: main(includes/dir.php?dirname=documents): failed to open stream: No such file or directory in D:\Production\finance.html on line 37
Warning: main(includes/dir.php?dirname=documents): failed to open stream: No such file or directory in D:\Production\finance.html on line 37
Warning: main(): Failed opening 'includes/dir.php?dirname=documents' for inclusion (include_path='.;C:\php4\includes\pear;D:\CUPHD test\;') in D:\Production\finance.html on line 37
Thanks
This is the include and the errors.
<?php include("includes/dir.php?dirname=documents"); ?>
Warning: main(includes/dir.php?dirname=documents): failed to open stream: No such file or directory in D:\Production\finance.html on line 37
Warning: main(includes/dir.php?dirname=documents): failed to open stream: No such file or directory in D:\Production\finance.html on line 37
Warning: main(): Failed opening 'includes/dir.php?dirname=documents' for inclusion (include_path='.;C:\php4\includes\pear;D:\CUPHD test\;') in D:\Production\finance.html on line 37