Jump to content

$_SERVER missing when bcomplied


niwa3836

Recommended Posts

Hi, thanks for looking at my problem, can you please help??

 

Basically when launch some PHP code that has not been bcomplied I see all of the $_SERVER variables (I am interested in REMOTE_ADDR), which is fine, however...

 

When I use bcomplier I dont see an $_SERVER variables at all. The application otherwise runs fine complied, and I do see $_POST and $_GET

 

Any ideas please?

Link to comment
https://forums.phpfreaks.com/topic/165379-_server-missing-when-bcomplied/
Share on other sites

yes I mean the bcomplier function, thanks for clarifing.

 

I use it to help speed the code up a little and also provide "some" protection of my code on the customer site. As I say everything works fine (and I do lots with it already), its just that the $_SERVER vars dont arrive.

 

Do I have to declare it someother way?

Well to start it says EXPERIMENTAL in caps and red so somehow using that for a customer product doesn't sound like that good of an idea. Something else I read is the following

To enable the production of php-gtk applications that could be used on client desktops, without the need for a php.exe.

That makes me think that it simply doesn't support the $_SERVER var since it prob wasn't intended for writting scripts on a webserver.

 

I think you're better using something else for protecting your source

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.