Search found 4 matches

by Lobster
Sun Sep 11, 2005 10:26 am
Forum: PHP - Code
Topic: gzfile problems
Replies: 3
Views: 207

Ugh. I hate it when people say that and then it works. I had tried it at least twice. Still, it's a little irritating that it acts all erratic like that. I just noticed that my host is running Zlib 1.1.4, while the latest version is 1.2.3. Do you think it's worth pushing them to upgrade?
by Lobster
Sun Sep 11, 2005 10:20 am
Forum: PHP - Theory and Design
Topic: how to store database connection details?HOST,USERNAME,PASS
Replies: 9
Views: 1874

Even if you haven't got access to anything outside the webroot, you're still fairly safe with a php file so long as it's guaranteed to be parsed. Just to be sure (you never know what might happen if php gets damaged/reinstalled) I put a Deny from all on the file using .htaccess
by Lobster
Sun Sep 11, 2005 10:14 am
Forum: PHP - Code
Topic: gzfile problems
Replies: 3
Views: 207

gzfile problems

Hi there, I'm trying to read various URLs using gzfile(), and one of them is http://www.phpmyadmin.net/ which to nobody's surprise works fine from my browser. However, when using gzfile() I get the following error: Warning: gzfile(): php_network_getaddresses: getaddrinfo failed: Name or service not ...
by Lobster
Sun Sep 11, 2005 10:08 am
Forum: PHP - Code
Topic: Return xx nuber of letters
Replies: 6
Views: 370

New lines aren't rendered in (X)HTML. Pass it through nl2br()