php - accessing values globally -


मेरे पास 2 फ़ाइलें हैं:

  1. uploading.php
  2. emaillinks.php

दोनों में एक फ़ाइल शामिल है inc.php जिसमें सभी शामिल फ़ाइलें हैं और आरंभ करें डेटाबेस कनेक्शन।

फ़ाइल uploading.php में एक वेरिएबल घोषित किया गया है, मुझे यह जानना चाहता था कि मैं इसे कैसे emaillinks.php में देख सकता हूं, I cant uploading.php में emaillinks.php शामिल है।

मैं कुकीज़ से बचना चाहता हूं क्योंकि डेटा बड़ा और हमेशा अलग होता है।

Emaillinks.php द्वारा इसे सुलभ बनाने का सबसे अच्छा विकल्प क्या है?

धन्यवाद

यह क्या है पर निर्भर करता है, आप इसे डेटाबेस में डाल सकते हैं या ( $ _SESSION )


Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

NHibernate Passing Session to the Repository -

objective c - Mouse events for an NSSegmentedCell subclass? -