I need some help with php.
So my external php file(track2.php) is in /wp-content/plugins/buzzr_tracking.
now inside this track2.php i want to access a text file located inside the folder /wp-content/trackclicks
But before i access it i want to check its presence using “file_exists”.
so any ideas what directory structure i should apply while using the function file_exists?
Just do this:
That should get you the contents of the file.