Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[resolved] PHP functions disabled
Hi, it probably needs a dev to answer this so I posted it here.
I get this in diagnostics with new install of txp 408:
The following PHP functions (which may be necessary to run Textpattern)
are disabled on your server: proc_close, proc_get_status, proc_nice,
proc_terminate, highlight_file, escapeshellcmd,
define_syslog_variables, posix_uname, posix_getpwuid,
apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid,
posix_setsid, posix_setuid, escapeshellarg, posix_uname, ftp_exec,
ftp_connect, ftp_login, ftp_get, ftp_put, ftp_nb_fput, ftp_raw,
ftp_rawlist, ini_alter, ini_restore, inject_code, syslog, openlog,
define_syslog_variables, apache_setenv, mysql_pconnect, eval,
phpAds_XmlRpc, phpAds_remoteInfo, phpAds_xmlrpcEncode,
phpAds_xmlrpcDecode, xmlrpc_entity_decode, fp, fput
I checked the FAQ link and I seem to be OK, but just want to check if any of the above make the installation risky.
Edit: To make it slightly easier, it is just these that are not mentioned on the FAQ:
posix_uname, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_uname, ftp_exec, ftp_connect, ftp_login, ftp_get, ftp_put, ftp_nb_fput, ftp_raw, ftp_rawlist,
inject_code, eval, fp, fput, xmlrpc_entity_decode,
phpAds_XmlRpc, phpAds_remoteInfo, phpAds_xmlrpcEncode, phpAds_xmlrpcDecode,
Last edited by zero (2009-05-21 15:41:29)
Offline
Re: [resolved] PHP functions disabled
I went ahead and installed the whole site and it all seems to work fine.
But I still need to know if 4.0.8 uses any of the above php functions, as the hosting company will move it to a less secure server with full php enabled, if I wish. To my non-dev brain, perhaps txp uses one of these?
ftp_exec, ftp_connect, ftp_login, ftp_get, ftp_put, ftp_nb_fput, ftp_raw, ftp_rawlist,
inject_code, eval, fp, fput, xmlrpc_entity_decode
Thanks if anyone can help.
Offline
Re: [resolved] PHP functions disabled
eval
is mandatory for executing Textpattern plugins, and for <txp:php>...</txp:php>
. If you do not use either one of these features, Textpattern might work on such a restricted server setup.
Offline
Offline
#5 2009-05-25 13:18:18
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [resolved] PHP functions disabled
Peter, to clarify: Textpattern uses eval
to actually run the plugins, as they are held as text in the database, rather than files that are include
d. So no plugin would work if eval
wasn’t working, unless you had the full PHP copy of it sitting in your plugin cache directory, as those are simply include
d.
Offline
Re: [resolved] PHP functions disabled
Mmm… that’s strange, Mary, Zem contact reborn was working fine before, and it said in Diagnostics that eval
was disabled. I sent a couple of articles and also used the contact form. What do you think happened? Has the plugin accidentally moved into the cache?
The hosts have now kindly enabled eval
and I’ve tried it again and all seems to be well.
Offline
Re: [resolved] PHP functions disabled
You can run stress test and check for eval be this:
<txp:php>eval('echo "Hello world";');</txp:php>
It’s double :) eval
checking which can say – does your hosting allow eval or not.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Offline