Diasbled Function In Php.ini
Apr 12, 2007suppose that i am a costumer. is it possible to see disabled function in php.ini?
(using any script)
suppose that i am a costumer. is it possible to see disabled function in php.ini?
(using any script)
It possible to disable the disable function for all user expect one account for running few application i need shell_exec, passthru, exec these so for other account it possible to disable it?
View 2 Replies View RelatedHow can figure out which functions are active on my server?
I have root access and the server is Linux.
I want to know wheather the function "fsockopen" is open or not.
Fatal error: Call to undefined function: curl_init() in /home/user/public_html/news/include/function.php on line 1526
how to fix this.??
thanks
NB: My server info
Centos
apache1
my php -v give :
Code:
php -v
PHP 4.4.7 (cli) (built: Jul 27 2007 18:31:31)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
I got this warning message from a script I was working on to read XML feeds.
Warning: file_get_contents(url) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:Apache2.2htdocs est5.php on line 8
but when i run the url itself, it works fine.
i already set allow_url_fopen = On
I am starting to webhosting company in it I have included a package will be free and add supported and also I want to disable some functions like mail() ..........I mean I want to disable SMTP services anyone have idea how can I do that.
View 14 Replies View RelatedCan anyone tell me in order to use the crypt function (amd md5sum) in a c++ program (g++ on CentOS assuming the cryptography libary is installed) what do I have to
#include
?
I got PHP working. But some of the Ajax functions it not working.
For example:
in wordpress admin, i can only use HTML mode to start a new post. I cant switch to VISUAL mode. And it was working before though.
What option do i need to compile PHP with to make it work?
Right now i have:
Quote:
'./configure' '--prefix=/opt/lsws/lsphp4' '--with-litespeed' '--with-mysql' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib'
the php mail function not work on my server!
when I run this function not show any error too.
for example I run this code:
<?php
echo "ok";
$to = 'myemail@mydomain.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: test@domainname.com' . "
" .
'Reply-To:test@test@domainname.com' . "
" .
'X-Mailer: PHP/' . phpversion();
if(mail($to, $subject, $message, $headers)){
echo "sent";
}else{
echo "notsent";
}
?>
I have just changed servers and uploaded a mail() script which was working on my previous config but does not work on the new server config. What is stopping the emails from being delivered, is there something new in WHM that I need to do?
Here are my WHM and cPanel details:
WHM 11.11.0 cPanel 11.15.0-R18264
REDHAT 4 i686 on standard - WHM X v3.1.0
I just re-installed PHP4, Apache, and MySQL and now the "mail" function in PHP will not work. Is there a way to correct this? Is there some configuration value in Apache or PHP I must change?
View 2 Replies View RelatedI have mixed feelings on the mail() function in php. I've seen it send out amazing numbers of emails and yet I keep reading that it is prone to problems. I'm wondering if someone can put an approximation on what you could/would send out in say 60 seconds. I know that there are tonnes of variables, so i'll try and remove a few:
- server hardware is typical of a cpanel/WHM shared hosting environment
- running apache/linux
- email is say 20kb HTML format
- mail is sent in a php script loop, one by one; alternatively, mail() could be called in clusters of x emails - like send 5 emails at once
- there are 400 recipients
Ive searched google and this forum for hours and have not found any solution to this below error on a site of mine.
I am using php 5.2
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/comosabe/public_html/footer.php on line 5
We setup a new server and we're trying to use virtual() function to work with a certain script that requires it.
We already tried several ways to make it work. But at this moment, we only could make it work on PHP 4 with DSO.
how to know if mail() function is enabled or disabled on my server? how to enable/disable it?
can it be done via server control panel or is there a shell command for it?
one more thing, where to get/edit the SMTP data for my server?
I used the mail function in php to send mails to my 25000 members in a loop..
After using it my server has gone very slow.. Load has increased a lot from 2 to around 20.. Major load is taken by sql and then httpd (both have increased)..
I had restarted mysql and httpd.. even reinstalled apache but no help..
I have a dedicated that suddenly stop php mail() function to work.
Very strange because if I run php script with mail() function as root on command line all working fine.
But If I run php script with mail() function in my browser so not work. Seems that only ROOT can run mail() function.
We transfer some hosted website from our usa server to our cana server and they have function.include error in new server.
View 2 Replies View RelatedI recently started using lighttpd + with PHP using Fast-CGI on a server hosting 14 blogs powered by WordPress, the server works great and this change reduced server load in about 50% which is nice for us, considering some of our blogs have a very high visitor traffic.
Our only problem so far is that since we switched to lighttpd the PHP's mail() function is just not working. I have compiled and re-compiled PHP and Lighttpd without any effects. I have a test site still working with Apache and PHP scripts can send mail without problems.
I've searched forums and Google for some kind of answer but none whatsoever maybe someone can give me pointers on how to solve this. Thanks a lot!!
Server details:
Lighttpd version: 1.4.15
PHP version: 4.4.4
Kernel: 2.6.9-42.0.3.ELsmp
Server has cPanel/WHM installed
PHP configure options:
--prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-xmlrpc --with-zlib --with-kerberos --with-imap-ssl --enable-fastcgi --enable-force-redirect
how to set up the mail () function in my PHP.ini on a Linux server.
Is there a generic path that I need to use in order to allow the mail function to work in the scripts?
We do have a mail server set up, the address of which being "mail.companyname.com" ... do I need to insert that into the ini file somwhere instead?
I 'd like to enable php function "mail" via directive for specific account in httpd.conf
what's directive syntax for it,
I just purchased a vps from rapidswitch, installed lamp, webmin, etc. All is working fine, with one exception. I can't send mail via mail() function.
I have set the MX so that my email addresses are handled by google for domains so i can send and receive mails without problems.
What i cant do, is for example to install a cms and make it send emails for the new registered users, etc.
I have installed postfix via yum, and i've tried to configure it.. but i kind of give up after a few hours of trying.
Someone could point me to the right direction on how to configure postfix for just this ? to be able to send mails via php.
I don't care if it's postfix, qmail, etc.
i use VPS linux, And one of my member asked me To help him.
He faced an error that say, 'FreeType library not available. (Function imagettftext does not exist)'
and requested me to avtivate this for him.i have no information about it that how can i do it.
When I click Start Firewall
I get this
iptables LKM ip_tables missing so this firewall cannot function unless you enable MONOLITHIC_KERNEL in /etc/csf/csf.conf
Error: aborted, at line 156
Does the iptables service need to be running in order for APF to function? If so, can APF act like it is running, when the iptables service is not running, thus giving you a false sense of security?
View 14 Replies View RelatedPHP Mail Function not work and i cant fix it :/
i dont know whats the problem, but php.ini is right.
i also test email-function here: [URL]
I am getting the "Function not implemented" error from /var/log/plesk/panel.log I have tried reading this article but it seems to only apply to Ubuntu and I am running CentOS 6 x64
How can I get past this error?
Fatal error: Call to undefined function: imagettfbbox()
I am getting the above given error message.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/.../public_html/enhu.com/includes/connection.php on line 5
Database connection failed: Access denied for user 'root'@'localhost' (using password: YES)
i'm using wamp.
how must i fix this error?