This script will work from the command line though. So how do I get file_get_contents() to read from the server's file structure instead of just the working directory? Edit : For example, this will not work through the browser : <?php $input_map = "/home/..."; $map_contents =...
I then used dns_get_record to test resolving the hostname on my own and then that's how i found out it was actually the dns lookup that was failing and not something specific to the smtp functions.