Hi there after a few years abscence, Ive picked up the Netbeans IDE and trying to sort out an Ecart PHP code thats giving me problems.
Heres the code:
define(‘FS_DIR_HTTP_ROOT’, rtrim(str_replace("\", ‘/’, realpath($_SERVER[‘DOCUMENT_ROOT’])), ‘/’));
This code I feel is erroneous as its used to define another CONSTANT and the other constant already has the same path info.
In real life the code works fine on a non temporary web host directory, but goes ape if temporary url and wont work under debug with netbeans due to same directory issues which I’d like to sort for the author.
In the code there are over 200 instances of the FS_DIR_HTTP_ROOT which are leading to issues. I would like to leave the instances in place with a substitution.
Is this possible ? reason I dont want to remove all 200 instances and have to reinstate them.
BTW I thought in the IDE I might be able to assign a null to the constant, but cant figure out how to do that.
Kindest regards,
Alistair.