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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recompile PHP with IMAP in Windows

Status
Not open for further replies.

RobHudson

Programmer
Apr 30, 2001
172
GB
I'm fairly new to the world of php - and what a world it is!

I had a succesfull installation of php on my XP machine [wow!] but I don't have imap installed. I've found plenty of sites telling me I need to recompile it with imap, but they have all been unix boxes :(

Does anyone have a relatively simple process I can use to get imap running [other than binning xp!]?? Or know any sites that can help??

Thanks
Rob
[Stafford, UK]
 
You don't need to recompile the php ... as you use Windows 32 in the package you have the DLL required for using IMAP. IT's named php_imap.dll and you should find it in the extensions dir of the PHP.

What you need to do, is edit the php.ini file that should be in c:\windows or c:\winnt, and where you find:
;extension=php_imap.dll
just remove the semicolon.

after, call a script with
<?=phpinfo()?>
and look for IMAP there. If you find it, it's already flying Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Thanks for that!
Still bad news though :(

I have got hold of php_imap.dll, uncommented the extension line and made sure the extension_dir is pointing to the right place...scripts still run but I get a warning about not being able to load the dll.

I have restarted iis just in case that made any difference.

If you have any more ideas [however rediculous!] please give me a shout...

Cheers
Rob
 
copy all the files (overwritting the originals) from the dll dir to c:\windows\system32.

Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
same prob

i run


<?
$username = &quot;localhost&quot;;
$password = &quot;&quot;;
$mailserver = &quot;{mail01.xxx.com:143}/imap&quot;;

$link = imap_open(&quot;\{$mailserver}inbox&quot;,$username,$password);
?>

& get

Warning: Couldn't open stream {{mail01.xxx.com:143}/imap}INBOX in c:\apache\htdocs\1.php on line 6

Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\1.php on line 6

u mueta cracker it by now
any tips ?
matt
 
Sorry matey :(
All I remember doing was the dll copying...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top