Multiple includes losing variables


Posted on 16th Feb 2014 07:03 pm by admin

Hey all,

just starting out w php and ran into a problem pretty quickly. I'm
including several files into each page. The variables in the first include file are functional in the main page, but are undefined in subsequent include files.
Did you know?Explore Trending and Topic pages for more stories like this.

I've tried using define() to make them global variables but still have had no luck.

Any help would be greatly appreciated!
No comments posted yet

Your Answer:

Login to answer
196 Like 20 Dislike
Previous forums Next forums
Other forums

Select question
Hi,

First I would like to say that php is pretty new for me..
so please don't shoot me if

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

IDOC error
Hi, When i send IDOC from ECC system to MII there is no problem ECC side, i says message sent succe

xApp Analytics in BI 7.0
Dear all,

I am trying to implement xApp Analytics in BI 7.0. After I installed the analyt

SQL Query/echo not working
Hey all,

I'm trying to run (what I thought) was a simple operation and it isn't working. I h

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

Quick fix: Conditional statement with an array
Hi, I'm getting the temperature value off of the Environment Canada website along with the icon file

Unifying logins of two different scripts
I have two different game scripts which I want to embed on my own site. The problem is I don't want

help me, how to find text on an external html site using PHP
Would anyone know how to search an external html file for a work or phrase ?

I was thinking s

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash