Forums / Contribution-Writing Guidelines / Retrieving DIR_FS_ADMIN from extras?

Retrieving DIR_FS_ADMIN from extras?

Views: 909

Results 1 to 2 of 2
19 Feb 2026, 1:12 AM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Retrieving DIR_FS_ADMIN from extras?

PHP 8.4 / ZC 2.1.0

Is there a way to access the DIR_FS_ADMIN constant when working from the /extras directory? The idea I had was to create an uninstall script that would try to delete from the admin and normal catalog directories.

19 Feb 2026, 4:56 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Retrieving DIR_FS_ADMIN from extras?

retched:

PHP 8.4 / ZC 2.1.0

Is there a way to access the DIR_FS_ADMIN constant when working from the /extras directory? The idea I had was to create an uninstall script that would try to delete from the admin and normal catalog directories.
The DIR_FS_ADMIN constant is set in the admin's /includes/application_bootstrap.php. Your best bet is to create an /admin/uninstall_something.php script that does the deletions, since the admin-side has access to both admin and catalog files.