I am having issues trying to call a php script from another php script with an include. I am passing "keysum" as a variable and have verified that is the case. The include statement is failing with the following error. I am pretty new to php and need to call different programs one for warehouse summary and one for account summary based on the radio button selected.
PHP Warning: include failed to open stream: No such file or directory referer:
PHP Warning: include(): Failed opening
As you see from my code below I have tried many different ways of doing the path.
Here is the include statement loop.
if($_POST['xltype'] == 'keysum') {
file_get_contents()or similar instead?includeis for local files on the same server.keyacctspread.phpwith out the?... your saying fthe file name iskeyacctsum.php?cust=001990R00when its notinclude, set a variable before you include the file and reference that in the other script. If its not including, and giving you warnings - the path is wrong and you must use the right one. :-)