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
Share on other sites

Guest askjames01
You better put all the codes brother and the error message too.
So that the people here can understand your problem easily.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.