jjshell — 2012-12-31T09:15:32-05:00 — #1
I'm having a strange problem. I upload a "banner.php" file on my server using FileZilla. This file is included in index.php. No matter what I do, the changes to banner.php are not reflected in index.php. Yet the file seems to be included correctly. When I cut and paste the content of banner.php into index.php instead of including the file, everything works fine.
It's as if require_once was caching an older version of banner.php and always including it, which, afaik is not possible.
So I deleted banner.php from my server and completely removed it. But index.php keeps on including it as if it was there. The "old" version, of course.
Thanks in advance.
2ndmouse — 2012-12-31T09:50:25-05:00 — #2
I think you need to provide some example code. However, just a shot in the dark, have you tried using include() rather than require_once()? Does it make any difference?
cups — 2012-12-31T10:30:26-05:00 — #3
Look carefully at the list of folders which stored in your include_path directive.
It usually looks something like:
ie contains many directories including the dot (present working directory).
Alternatively use the *nix locate command to find how many instances you have of the include file name "banner.php" -- delete all but the fresh one you uploaded.
If you are using APC then flush the cache, you never know.
rubble — 2012-12-31T10:54:54-05:00 — #4
Try clearing your browser cache and/or checking it on another computer?
system — 2014-10-07T23:28:01-04:00 — #5
This topic is now closed. New replies are no longer allowed.