santa
santa

Reputation: 12512

Unable to reach dir with script after PHP upgrade

I was asked to fix a site that was fine just days ago and now is not able to include files due to the host's upgrade of the PHP to v.5.3

There's a script that reads directory and builds a list of PDFs in it. FOr some reason the script stopped working and I get the following error messages:

failed to open dir: No such file or directory...

However I see the directory on the server and if I point to a file directly it opens.

Earliuer I had an issue when I was trying to include files and was getting somewhat similar messages. It seems the problem is caused by a deprecated php.ini setting: register_globals = on. in PHP 5.3

What are the possible solutions?

Upvotes: 0

Views: 35

Answers (1)

cetver
cetver

Reputation: 11829

May be this dir was in old php.ini include_path directive

Upvotes: 1

Related Questions