Re: [PHP] Intercepting fopen, mysql_connect, and similar functions for migration

2007-06-09 Thread Richard Lynch
Unless you want to install the run-kit extension [shudder] you cannot do that. Fix the code. On Fri, June 8, 2007 8:42 pm, Kelly Jones wrote: > I'm migrating a website from one server to another, and my file paths > and dbs have changed. > > For example /a/b/c/foo.txt on the old machine is at /x/

[PHP] Intercepting fopen, mysql_connect, and similar functions for migration

2007-06-08 Thread Kelly Jones
I'm migrating a website from one server to another, and my file paths and dbs have changed. For example /a/b/c/foo.txt on the old machine is at /x/y/z/foo.txt on the new machine. The MySQL db "foo" on the old machine is "bar" on the new machine. Can I intercept fopen() and mysql_connect() so tha