Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

imap_open Alternative

Status
Not open for further replies.

redletterrocko

Programmer
Aug 8, 2005
53
US
Well, I've been working on a simple moblog software, and I'm pretty proud of what it's become. I've set it up so that a php script goes out at a set interval and looks for new mail from my cell phone (only mine for security purposes...) and parses the email into an xml file using a custom template that any user can edit and put their {VARIABLES} in the their desired places. Then it can be seen by the world. I tested everything, and it works fine locally. However, my webserver @ eventuallyanyway.com didn't compile --with-imap and they don't want to (apparently for security reasons...stupid...) so I get the unknown function imap_open error. Does anyone know of a third party script that I could also implement that would do the same thing as imap_open without the --with-imap apache option compiled? If I have to change syntax, I don't mind that. I just want to get this to work.
 
Here's the configuration that is installed. I got it from my phpinfo() function...

'./configure' '--with-apache=/root/vdeck/scripts/../work/apache_1.3.33' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-openssl=/usr/local/ssl' '--with-curl=/usr/local/lib' '--enable-ftp' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-zlib' '--with-mcrypt' '--with-gd' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--enable-safe-mode' '--with-ming=../work/ming-0.2a'

I can't tell if sockets are available or not. Maybe you could help me figure it out. Is there a command I could use to figure it out?
 
PHP was compiled with the '--enable-sockets' option, so it will at least have the low-level socket functions. Your hosting provider sounds appropriately paranoid, so other functions may or may not be available.

But a quick Google search of php imap class found several pages, the second of which ( provides a PHP class that is described as, "It accesses IMAP server using TCP socket connections without using the PHP IMAP extension."

Perhaps that will be of use to you.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top