Re: Connect() function
| From: | Lars Torben Wilson | Date: | Fri, 01 Feb 2002 11:56:13 +0000 |
| Subject: | Re: Connect() function | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83110@lists.php.net to get a copy of this message | ||
On Fri, 2002-02-01 at 02:46, Jean-Arthur Silve wrote:
> Hi !
>
> I m using PHP 4.0.5 and I try to create a function called "connect" :
>
> function connect() {
> ...
>
> }
>
> My problem is I get this :
>
> Fatal error: Cannot redeclare connect() in
> /opt2/htdocs/www.mydomain.com/html/connexion.php on line 6
In PHP 4.0.5, the function currently known as socket_connect() was
named connect().
You can solve your problem by upgrading, renaming your function,
or disabling the socket functions (either at compile time or in
php.ini).
Cheers,
Torben
> In connexion.php there is only the function declaration and no require or
> include.
>
> I checked the PHP manual, and there is no connect() function !
>
> Any idea ?
>
> thank you !
>
> Jean-arthur
>
> ----------------------------------------------------------------
> EuroVox
> 4, place Félix Eboue
> 75583 Paris Cedex 12
> Tel : 01 44 67 05 05
> Fax : 01 44 67 05 19
> Web : http://www.eurovox.fr
> ----------------------------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
Torben Wilson <torben@php.net>
http://www.thebuttlesschaps.com
http://www.hybrid17.com
http://www.inflatableeye.com
+1.604.709.0506