0

I'm using the new code what people have been telling me to use. I just cant figure out why the PHP is not being accessed. ok, the php are stored on a server else where and the folder structure is - public/work/return.php.

So far I have set my code as

  <?php
  include_once("pdo_mysql.php"); 
  pdo_connect("***", "***", "***");
  pdo_select_db("***");

but I keep getting the error of

include_once(pdo_mysql.php): failed to open stream: No such file or directory

2 Answers2

0

Now you have to use $_SERVER['DOCUMENT_ROOT'] to access file path

0

For including files you can use : include_once __DIR__ . '/file/to/path'

Similar : include_once __DIR__ ."/pdo_mysql.php";