Use $variable from file1.php in file2.php (different file paths)


I have $variable_1 = '5'; in /public/includes/themes/theme-section-users-score.php and I want to use its value in another php file with a different location /plugins/name/other/users-time.php , I tried using include_once , require_once and others but I can’t, might be the .htaccess doesn’t allow me? please help, thanks in advance.

WordPressGeek 3 weeks 0 Answers 5 views 0

Leave an answer