/    Sign up×
Community /Pin to ProfileBookmark

IE crashes with a require command

Hi everyone,

I’m making a site and in some part i need to download content based on a variable i’m setting (it is not being set directly from any $_GET nor $_POST, it is first verified and then set), the variable then inserts the file needed by calling a require command like this:

[code=php]
require($wanted_dir.”/config.php”);
[/code]

It runs perfectly in firefox and mozilla, but when i tried it in IE it crashes with a Microsoft Visual C++ Runtime Library error:

Runtime error!
Program: C:program filesinternet exploreriexplore.exe

R6025
-pure virtual function call

I have tried putting the dir without the variable and i still get error, the only way of not getting this error is by putting the file in the root directory.

Any thought on why this is happening? why the hell can’t i have the file inside some dir?

Thanks in advance for any help any of you guys can provide on this.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@drythirstOct 23.2004 — whats wrong with putting it in the root directory??

and whats wrong with using a include or include_once?
Copy linkTweet thisAlerts:
@MayaPTauthorOct 23.2004 — Hi drythirst,

I appreciate your reply, i know i can put it in the root dir, i just don't understand why i should limit myself on some strange bug that's why i was asking if anyone knows why i keep getting that error, so i could solve it without having to put it in the root dir.

About the use of require is because include can't read files in dirs that are protected, while require can. Besides require will output some error if it can't use the file while include won't (according to the manual)

Thanks for your reply anyway.
Copy linkTweet thisAlerts:
@drythirstOct 23.2004 — [font=arial]Oh, ok! But I don't think anybody could get around that since it's not a problem in the script; I think that it's more of a problem in the browser. I don't think you need to test the page in both Mozilla and Firefox (or even in Netscape); Only one of them since they all run on [/font][font=trebuchet ms][URL=http://www.mozilla.org/docs/dom/domref/preface.html#998241]Gecko[/URL][/font][font=arial]

. I think that you'd probably need a patch from Microsoft (if they ever get to it "IMO the lazy bums").[/font]

edittt: whoah! i just edited the post like 5 times lol
Copy linkTweet thisAlerts:
@MayaPTauthorOct 23.2004 — Hey,

Sorry if i sounded too harsh, i was just trying to understand what was happening. Sorry if i was rude.

Thanks for the replies ?
×

Success!

Help @MayaPT spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...