Reply to socket_connect() fails only when called from apache

Your name:

Reply:


Posted by monac3 on 01/13/06 10:15

Hello.

I have made a php network client module which connect to an internal
server and retrieve data using php socket functions. It worked fine but
in some systems, it socket_connect() fails with 'Permission denied'
error.

There is no firewall or any network problem in that machine. Weird
thing is that the error happens only when I call the php file from
apache server. When I just execute the php code with php command line,
it works fine. It looks just like apache blocks outgoing TCP/IP
connection.

System of the problem is Fedora Core 4 with httpd 2.0.54 and php 5.0.4
installed.
Any idea is welcomed.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация