Openoffice DNS Delay

Hello!

I was working with Openoffice and I seemed to be missing some fonts I wanted. So this short blog will maybe help you.

I was trying to install msttcorefonts and I kept getting the following type of errors.

Resolving umn.dl.sourceforge.net… failed: Connection timed out.
–14:13:43– http://switch.dl.sourceforge.net/sourceforge/corefonts/arialb32.exe
=> `./arialb32.exe’

After much searching I finally found the script that was failing. The script is at /usr/sbin/update-ms-fonts

The problem that I have is that my DNS always seems to take forever. So increased the DNS timeout for the wget function call on line 131 to 30 seconds.

I hope this helps someone out!

-Kim

file_get_contents and Godaddy

Godaddy.com and more problems. I was trying to use file_get_contents in PHP to access an HTTPS server. It worked fine for HTTP servers, but once I tried using it ot access an HTTPS server…everything went to …..

After a bunch of research, I finally found the answer on godaddy’s website. It works, but its a pain. I wonder why everyone likes to make things more complicated then they are? Most likely a security feature.

http://help.godaddy.com/article.php?article_id=289&topic_id=435

In case you are board, here are a bunch of links I went to trying to figure out what the problems was.

http://help.godaddy.com/article_list.php?topic_id=435
http://us2.php.net/manual/en/function.curl-exec.php
http://paypaldev.org/topic.asp?TOPIC_ID=13079
http://www.higherpass.com/php/Tutorials/Using-Curl-To-Query-Remote-Servers/
http://us.php.net/curl
http://us3.php.net/ref.info
http://us.php.net/manual/en/function.fread.php
http://us.php.net/fopen
http://us3.php.net/fopen
http://www.thescripts.com/forum/thread706918.html
http://forum.jajah.com/index.php?showtopic=4563
http://www.google.com/search?q=php+file_get_contents+times+out


And it goes on. I needed to get a file in a downloadable form from my website without ever actually existing. Using PHP I managed this trick by following the following webpage’s suggestion.

http://us3.php.net/header

It took me a while to get everything the way I wanted it to…but it works like gold! Anyways, if you are bored….here are a bunch more of the random links for some sort of random entertaining purpose.

http://www.sweeting.org/mark/blog/2005/07/12/base64-encoded-images-embedded-in-html
http://us2.php.net/manual/en/function.ircg-html-encode.php
http://www.google.com/search?q=embedded+files+in+html
http://www.alternatiff.com/howtoembed.html
http://www.planetpdf.com/mainpage.asp?webpageid=1682
http://www.ozzu.com/ftopic67590.html
http://forum.java.sun.com/thread.jspa?threadID=5206450&tstart=30
http://www.paulstimesink.com/post/2005/06/29/http_post_with_curl
http://www.google.com/search?q=curl+post+php
http://curl.haxx.se/mail/curlphp-2006-07/0003.html
http://netevil.org/blog/2006/nov/http-post-from-php-without-curl
http://www.phpbuilder.com/columns/ian_gilfillan20050525.php3
http://blog.mypapit.net/2006/02/sending-http-post-with-php-curl.html
http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html
http://www.google.com/search?q=php+file+extension+change
http://radio.userland.com/stories/storyReader$8979
http://us2.php.net/manual/en/features.http-auth.php
http://www.utoronto.ca/webdocs/HTMLdocs/Book/Book-3ed/appb/mimetype.html#imag
http://www.google.com/search?q=%3CA+href%22+post
http://aujava.wordpress.com/2007/01/17/postable-html-links/
http://www.codingforums.com/showthread.php?t=93227
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2005-May/003897.html
http://www.w3.org/TR/html4/interact/forms.html
http://www.microsoft.com/technet/isa/2006/http_filtering/9a0d125c-1ee9-4f5c-be28-7d5a185d4c93.mspx?mfr=true
http://www.google.com/
http://support.microsoft.com/kb/208427
http://us.php.net/nl2br