WordPress Inclusion
-
ok I have a simple yet frustrating problem.
I am currently coding a script which i want to do the following in:
– Loop through an array of wp config files
– Include the currently selected file
– Do stuff
– CLOSE THE SELECTED FILE/CONNECTION
– ContinueMy code is perfect and fine, the wordpress being included isn’t.
When I include the first one in the array, it will connect fine and do the “stuff” i specify. But when it gets to the second array entry, it includes the file but continues to use the first file’s connection.
I tried mysql_close and even unsetting $wpdb but no luck, wordpress just doesn’t want to be closed.
Its so simple yet WP makes it so complex and irritating.
If anyone can answer this I will be very greatful.
Thanks
J
- The topic ‘WordPress Inclusion’ is closed to new replies.