Skip to main content
edited tags
Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459
Source Link
Jimmy
  • 13
  • 1
  • 5

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.