Hi! I have been asked to add some functionality to an existing web
site. The user would like to have a form that would email them the
results of the form. Really easy stuff to do, usually. I tried to
run the enhancements, and did not get the results I wanted, either
with writing the results to a log file on the server, nor in sending
the email.
In doing further research, I see that the site is being hosted on a
windows server, and that the php appears to have a bunch of functions
disabled, when I run phpinfo. One of the many that are disabled is
mail, so I'm kind of stuck. Is there any sort of workaround to this,
where the mail function is disabled, but I'd still be able to send
email from a form?
For reference, here are the functions that are disabled:
getmyinode, getopt, getrusage, extension_loade d, dl, mysql_pconnect,
crack_check, crack_closedict , crack_getlastme ssage, crack_opendict,
fsockopen, pfsockopen, mysql_list_dbs, mysql_stat, ini_get, ini_get_all,
ini_alter, ini_set, get_current_use r, get_defined_con stants,
get_include_pat h, php_ini_scanned _files, php_uname, phpcredits,
restore_include _path, set_include_pat h, set_time_limit, version_compare ,
zend_version, getmypid, getmyuid, getmygid, assert_options, assert, fopen,
fwrite, fread, file, fpassthru, file, mail, opendir, readdir, closedir
Thanks!
Scott 3 1995 sa*@worf.netins .net (Scott Evans) wrote:
In doing further research, I see that the site is being hosted on a
windows server, and that the php appears to have a bunch of functions
disabled, when I run phpinfo. One of the many that are disabled is
mail, so I'm kind of stuck. Is there any sort of workaround to this,
where the mail function is disabled, but I'd still be able to send
email from a form?
For reference, here are the functions that are disabled:
getmyinode, getopt, getrusage, extension_loade d, dl, mysql_pconnect,
crack_check, crack_closedict , crack_getlastme ssage, crack_opendict,
fsockopen, pfsockopen, mysql_list_dbs, mysql_stat, ini_get, ini_get_all,
ini_alter, ini_set, get_current_use r, get_defined_con stants,
get_include_pat h, php_ini_scanned _files, php_uname, phpcredits,
restore_include _path, set_include_pat h, set_time_limit, version_compare ,
zend_version, getmypid, getmyuid, getmygid, assert_options, assert, fopen,
fwrite, fread, file, fpassthru, file, mail, opendir, readdir, closedir
Can you use system() to run blat.exe (google for it)?
Also, odd (but irrelevant) that you can't fread() but you can
file_get_conten ts().
miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
getmyinode, getopt, getrusage, extension_loade d, dl, mysql_pconnect,
crack_check, crack_closedict , crack_getlastme ssage, crack_opendict,
fsockopen, pfsockopen, mysql_list_dbs, mysql_stat, ini_get, ini_get_all,
ini_alter, ini_set, get_current_use r, get_defined_con stants,
get_include_pat h, php_ini_scanned _files, php_uname, phpcredits,
restore_include _path, set_include_pat h, set_time_limit, version_compare ,
zend_version, getmypid, getmyuid, getmygid, assert_options, assert, fopen,
fwrite, fread, file, fpassthru, file, mail, opendir, readdir, closedir
I really can't see any reason why these are setup like this. ini_get is
disabled? That pretty much means that any advanced service will fail
when it checks system requirements. phpcredits? Surely that's harmless.
Assert? That's useful for debugging. My gut feeling says that
either: a) the host is trying to be secure, but is just limiting
functionality, or b) the host hasn't setup the server correctly, so they
are trying to avoid these problems. For example, fread could be
disabled to avoid reading files from other accounts. Any properly setup
host would have their permissions configured correctly.
Have you tried contacting them? fwrite and fread are critical for ANY
application and is going to indicate high loads -- caching becomes near
impossible.
Probably not what you want to hear: If they don't want to enable these,
get out. It probably indicates that they don't know what they're doing.
All the best,
Carl
On Tue, 8 Aug 2006 15:27:30 +0000 (UTC), sa*@worf.netins .net (Scott Evans)
wrote:
>Hi! I have been asked to add some functionality to an existing web site. The user would like to have a form that would email them the results of the form. Really easy stuff to do, usually. I tried to run the enhancements, and did not get the results I wanted, either with writing the results to a log file on the server, nor in sending the email.
In doing further research, I see that the site is being hosted on a windows server, and that the php appears to have a bunch of functions disabled, when I run phpinfo. One of the many that are disabled is mail, so I'm kind of stuck. Is there any sort of workaround to this, where the mail function is disabled, but I'd still be able to send email from a form?
Well, the proper answer is to ask the admin to re-enable mail, or switch
hosts. If they've disabled the mail functions, and you do some hacky workaround
to send mail anyway without asking the admins, it wouldn't be that surprising
if the admin of the server got somewhat annoyed...
>getmyinode, getopt, getrusage, extension_loade d, dl, mysql_pconnect, crack_check, crack_closedict , crack_getlastme ssage, crack_opendict, fsockopen, pfsockopen, mysql_list_dbs, mysql_stat, ini_get, ini_get_all, ini_alter, ini_set, get_current_use r, get_defined_con stants, get_include_pa th, php_ini_scanned _files, php_uname, phpcredits, restore_includ e_path, set_include_pat h, set_time_limit, version_compare , zend_version , getmypid, getmyuid, getmygid, assert_options, assert, fopen, fwrite, fread, file, fpassthru, file, mail, opendir, readdir, closedir
If they're locking down things as basic as fopen then you'll have difficulty
communicating with the outside world in any way; you're not likely to be able
to open any sockets to even do SMTP mailing yourself.
--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: haref |
last post by:
hi ng,
what can i do in the following mail function, which hast 400
subscribers
who are read from a database and to which the mails are send in a
loop, when there are some adresses who are not reachable.
My provider receives all the fail mails.
is it possible to send the mail daemons ( failures ) to a special
adress,
so that the provider doesnt reseive so many emailfailures ?
thx for a quick answer
|
by: haref |
last post by:
hi ng,
what can i do in the following mail function, which hast 400
subscribers
who are read from a database and to which the mails are send in a
loop, when there are some adresses who are not reachable.
My provider receives all the failure mails.
is it possible to send the mail daemons ( failures ) to a special
adress,
so that the provider doesnt reseive so many emailfailures ?
he hates me for that. is that a server problem ?
|
by: Jim Seymour |
last post by:
I have a contact form that uses PHP's mail() function. It recently
came to my attention that (some?) MS-Windows mail servers may not
properly process data given to the mail() function that's only
newline-terminated.
The mail() function takes up to five parameters:
mail(recipient, subject, message, ])
The ones of interest here are the first four. The questions are
|
by: Groupe Eurower |
last post by:
Hi,
I would like contribute to the PHP development but i don't really know where
i can submit my codes !
In fact, i'm a Web Hosting and i authorize the utilisation of the mail()
function.
Meanwhile, this function permit to send mail anonyme ! (the sender is the
apache user in fact)
|
by: Data Goob |
last post by:
This one has me stumped.
How did SuSE disable the mail() function in their RPM'd version of PHP?
( This is their install-version of PHP with RPMs not what you download
from PHP.net )
I have an application that emails people a message, and now having installed
my PHP application on my customer's machine it doesn't work, giving an error
message that the mail() function is not defined.
| |
by: Lieven |
last post by:
Hey,
I had a hard disc problem last week on my server. I replaced the disc and
copied al the files to the new hard disc, everything works fine again except
some php scripts that are using the mail() function. When executing these
scripts I get this error:
"500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
|
by: Nert |
last post by:
hello every one, i need help..
how can i use the mail() funtion in php? when ever i execute the mail function i continuesly receive this error message:
what do i need to do in order for me to connect with my localhost mailserver?
can anyone help me with this?
thanks in advance..(^_^)
|
by: shror |
last post by:
hi every body,
i have a problem which is when i was checking my mail() form it work
fine but the problem is that the form configuration is not set
correctly, in details:
the from var is not working and the from is set to be my host provider
email is the sender, so they told me to configure the php.ini file and
i dont know what is this file and how to configure it.
thanks in advance
|
by: Abersparky |
last post by:
Can someone help me with the mail() function???
The below is just to get myself going but I can't seem to get it
working... is there something else I should be doing? I checked
phpinfo() and the sendmail values are below. Those mean it's turn on
right?
sendmail_from
me@localhost.com
sendmail_path
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |