Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to open such php script?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SomeoneHere
n00b
n00b


Joined: 10 May 2010
Posts: 11

PostPosted: Tue Jul 12, 2011 8:20 pm    Post subject: How to open such php script? Reply with quote

Hello

I've bought php script, but i'm not able to run it on my gentoo server (on some hostings it's working ok, but i don't have access there). Part of page is displayed properly and part something like:

weblogUpdates.ping '.$tytul.' '.$adres.' '.$adres.' '; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 2); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($ch, CURL .....

Source of script seems to be compiled/encoded/something and all files look like

<?php if (!function_exists("T7FC56270E7A70FA81A5935B72EACBE29")) { function T7FC56270E7A70FA81A5935B72EACBE29($TF186217753C37B9B9F958D906208506E) { $TF186217753C37B9B9F958D906208506E = base64_decode($TF186217753C37B9B9F958D9.............


I don't want to get source, decode or anything like that. I only want to use it on my server. What should I install/configure to be able to do that?
Back to top
View user's profile Send private message
g.e.n.t.u.x.
Guru
Guru


Joined: 21 Aug 2006
Posts: 410
Location: Berlin

PostPosted: Wed Jul 13, 2011 8:15 am    Post subject: Reply with quote

hello someonehere.

i gues u need php5 curl support. which php version do u use?

bye
_________________
Human being isnt a default setted feature.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Wed Jul 13, 2011 8:36 am    Post subject: Reply with quote

It's also worth checking your apache logs to see if there are any errors.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Wed Jul 13, 2011 8:57 am    Post subject: Reply with quote

tomk wrote:
It's also worth checking your apache logs to see if there are any errors.
Also, do so on a system using a development type php.ini, as production types can tend to discard some useful debugging information.
Back to top
View user's profile Send private message
SomeoneHere
n00b
n00b


Joined: 10 May 2010
Posts: 11

PostPosted: Wed Jul 13, 2011 4:57 pm    Post subject: Reply with quote

Hello

I use PHP5. I didn't have curl support, but when I enabled it nothing has changed.
Also in logs there's no errors (error_reporting = E_ALL | E_STRICT )
Back to top
View user's profile Send private message
g.e.n.t.u.x.
Guru
Guru


Joined: 21 Aug 2006
Posts: 410
Location: Berlin

PostPosted: Wed Jul 13, 2011 6:48 pm    Post subject: Reply with quote

dear someonehere.

have u set log_errors = On and error_log = /path/to/log? Please check display_errors and display_startup_errors. both are nessessary to display errors at pages if set to On.

By the way the syntax has changed or is stricter in 5.3 as in 5.2. In example you cant use objektname->objektname for __constructor replacement. now u have to use objektname->__constructor.

bye Steve
_________________
Human being isnt a default setted feature.
Back to top
View user's profile Send private message
SomeoneHere
n00b
n00b


Joined: 10 May 2010
Posts: 11

PostPosted: Wed Jul 13, 2011 7:25 pm    Post subject: Reply with quote

Log is working (tested on test page) but for this case it's empty.

Maybe you're right and it's matter of version, but shouldn't then errors appear in the log? Or maybe another option/parameter is required (like curl sugested earlier) to fully interpret script (as part of it displays correctly)?
Back to top
View user's profile Send private message
g.e.n.t.u.x.
Guru
Guru


Joined: 21 Aug 2006
Posts: 410
Location: Berlin

PostPosted: Thu Jul 14, 2011 7:20 pm    Post subject: Reply with quote

hello someonehere.

can u be really sure that if no errors occurs in log that there are no errors. to what is the display_errors and display_startup_errors set? Have u try it with curl?

On a debian server i have to maintain the error_log directive is set to php.log and appears in my apachelog. notice warnings everything is getting tomy apache log.

bye
_________________
Human being isnt a default setted feature.
Back to top
View user's profile Send private message
SomeoneHere
n00b
n00b


Joined: 10 May 2010
Posts: 11

PostPosted: Tue Sep 20, 2011 8:34 pm    Post subject: Reply with quote

Main issue still unsolved, however I got a clue. Problem is that I can't apply it.
phpinfo() shows that zend multibyte support is disabled. How can I enable it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum