Jump to content

Unseen variables


waffle72

Recommended Posts

Here is my problem.

I am developping a web site, the structure is as follow

index.php
[blockquote]include of [b]language[/b] file
include of [b]head[/b] file
include of [b]middle[/b] file
[blockquote]
include of [b]right[/b] file
include of [b]center[/b] file
[blockquote]depending of a case
[blockquote]include of [b]home[/b] file
include of [b]apropos[/b] file[/blockquote][/blockquote]
include of [b]left[/b] file
[/blockquote]
include of [b]footer[/b] file[/blockquote]

In my langguage file, I have all my text in variables.
What's happening is that those variable are not "visible" in the home and apropos files. But they are visible in any other files.
If I do my include language file directly in my home or apropos files, everthink works fine so it is not the way a code.
If I put the home and apropos file in the same directory as my right file, for exemple, nothing change, so it is not the place where they are.
What I don't really get is that it works fine on my localhost but not when I transfert on my hosting server. I have tried other hosting server, same problem.

Since from my point of view when you do an include of a file, it is the same as copiing this file into your code I don't see why the variables are not recognised !

You can have a look here : [a href=\"http://www.labaroude.com/sara/index.php?option=apropos\" target=\"_blank\"]http://www.labaroude.com/sara/index.php?option=apropos[/a]
I am a bit lost here. Any idea would be very welcome.
Link to comment
https://forums.phpfreaks.com/topic/8294-unseen-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.