need help with this stuff.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fastbenny
Forum Newbie
Posts: 4
Joined: Wed Nov 25, 2009 10:42 am

need help with this stuff.

Post by fastbenny »

(To mods: please forgive me if this post should be in another thread or if it violates rules. If you have to remove this please let me know that it is removed or moved to another part of the forum, thanks.)

Hi my brother and I are creating a website that is being hosted by godaddy and we also are trying to install ioncube loader 3.1 and this is what we get when viewing the index.php.

<?php //0035e
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='/ioncube/ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
?>

Not sure what to do with this and we are not versed in creating websites so this is how we are doing it by asking you and other programmers to help. Please advise on what this is and how we can go about fixing this so we can get our site up and running. Thank you for any help you can give us.
User avatar
iankent
Forum Contributor
Posts: 333
Joined: Mon Nov 16, 2009 4:23 pm
Location: Wales, United Kingdom

Re: need help with this stuff.

Post by iankent »

It means that the PHP file isn't being parsed as PHP, it's just being output as plain text. What file extension are you using? Most hosts expect it to be .php, so if you've used .php4 or .php5 instead that might be why.

edit:
just noticed you said the filename was index.php... can't really think of any other obvious reasons, I'd expect godaddy to have their servers configured correctly (do they definately allow php?!)
fastbenny
Forum Newbie
Posts: 4
Joined: Wed Nov 25, 2009 10:42 am

Re: need help with this stuff.

Post by fastbenny »

In godaddy help center they write:

Which PHP file extensions can I use with my hosting account?
Linux hosting accounts running Hosting Configuration 2.0 and above support both PHP 4 and PHP 5. Depending on the contents of your htaccess file, the following PHP file extensions can be used: .php, .php4, and .php5.

Can I use extensionless PHP files?
For security reasons, we run PHP as a CGI and not as a module. Because of this and the version of Apache we run (1.3.3), you cannot use extensionless PHP files on your website without employing a tool like mod_rewrite

When my brother downloaded the free ioncube loader 3.1 maybe he downloaded one available for Windows platform. He says to me that he has to get the ioncube working properly first and then this will correct it self, but I dont know if he is right about this or not.
fastbenny
Forum Newbie
Posts: 4
Joined: Wed Nov 25, 2009 10:42 am

Re: need help with this stuff.

Post by fastbenny »

Just to add one more thing, is that we are a script for an autosurf site and he says until we get the ioncube properly installed on the site we wont be able to get the site up. I looked at other files on the site and they are all in the same format or he says they are all still encrypted. I have no clue about this stuff and I am only trying to help him out by asking others how to fix this.
User avatar
iankent
Forum Contributor
Posts: 333
Joined: Mon Nov 16, 2009 4:23 pm
Location: Wales, United Kingdom

Re: need help with this stuff.

Post by iankent »

Well clearly it should be parsing PHP files, so try doing this to test it.

1. Create a new file called phpinfo.php, and put this code instead:

Code: Select all

<?php
phpinfo();
?>
2. Upload the file to your godaddy website
3. Try loading the file in your browser

You should see some output from PHP telling you info about itself. That shows the PHP file has been parsed correctly, in which case we can rule out the PHP parser causing a problem.

If all you see is the same code as above, then there's definately some problem with PHP parser (whether thats file permissions or some other error is hard to say). Probably best you contact godaddy and send them a copy of phpinfo.php from above, and tell them you can't get it to run on your website. They should be able to give all the info you need.
fastbenny
Forum Newbie
Posts: 4
Joined: Wed Nov 25, 2009 10:42 am

Re: need help with this stuff.

Post by fastbenny »

You are wonderful. thank you for this and I will try it now. Let you know what happens. thanks again
Post Reply