Page 1 of 1

Help me about two things....

Posted: Wed Jun 06, 2007 3:03 pm
by Ankan
Hi,
I am facing two sloppy problems : file("www.google.com").....returns an array. If that URL does not exist then it shows an warning which I dont want to show to the user. How can I solve this without try...catch. Since I am doing this in PHP 4 that does not support try..catch.

Another problem is that how can I configure PHP 5 with apache manually.
Please let me know ....
Regards
Ankan.

Posted: Wed Jun 06, 2007 3:16 pm
by Christopher
file() returns an array. file_get_contents() returns a string. There are several way to check, see the manual:

http://www.php.net/manual/en/ref.filesystem.php

Descriptive subjects

Posted: Wed Jun 06, 2007 8:58 pm
by feyd
Please update the thread's title to be more descriptive.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.