Dear all!
It is a frustrating problem I have, so close before the end of the year Would be nice if someone could give me a hint - I believe this must be very simple to solve:
I am developing a web application in PHP that uses a MySQL database; I work both on a Windows notebook as well as my Mac with XAMPP.
I just migrated my project to the Mac, where XAMPP makes several problems; my biggest problem is the following (and this is my question):
I put all connection parameters for the MySQL-database (such as the server name, the user, password, database name) into PHP string variables in a single PHP-file that I include in all pages where it is needed; for several reasons, I could not upload my sql-file with PHPMyAdmin (which otherwise works), so I decided to create a new database on the Mac; I then adjusted the MySQL settings in the setup.php to the new values. However, the problem is that each time I reload my application, PHP still uses the old values (for user, password etc), and thus fails to connect to the database. Even copying the whole PHP-application folder inside the htdocs-folder of XAMPP didn't resolve the problem - and I am absolutely sure that everything should work!!!
So, my question: is it possible that XAMPP on the Mac caches the PHP-files, so that it still has the old values in its memory??? I did everything I could think of to prevent it (I restarted XAMPP, restarted the Mac - even used different browsers in my despair, although the PHP script should not be handed to the browser, not to speak of being cached there...).
I am getting desperate... Would be very nice if someone could give me a hint on where the problem may be - hopefully, then the next year can begin succesfully!
Thanks for any hints! Have a nice new year's eve!
Björn