Hello everybody, this is the error I am receiving,
Parse error: parse error in /path_to_my_site/site/modules/WebMail/pop3.php on line 71
Here is the debug.
Code:
67 function OpenConnection() {
68 if ($this->DEBUG) echo "Openning Connection to: ".$this->hostname."
";flush();
69 if ($this->hostname=="") :
70 this->AddError("You must specified a valid hostname");
71 this->connection = fsockopen($this->hostname,$this->port, &$errno, &$errstr);
72 if ($this->DEBUG) echo "Connection opened
";flush();
73 if (!($this->connection)) :
74 if ($errno == 0)
75 $this->AddError("Invalid Mail Server Name or Server Connection Error");
76 this->AddError($errno." ".$errstr);
77 endif;
78 return true;
79 }
Can anybody direct me where to go from here!
Thanks
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Mon Feb 24, 2003 7:20 pm
If this is really a bug i'm sure it must have been addressed before but anyway try changing that function like so:
Code:
function OpenConnection() {
if ($this->DEBUG) echo "<b>Openning Connection to: </b>".$this->hostname."<br>";
flush();
if($this->hostname=="")
$this->AddError("You must specified a valid hostname");
$this->connection = fsockopen($this->hostname,$this->port, &$errno, &$errstr);
if ($this->DEBUG) echo "<b>Connection opened </b><br>";
flush();
if (!($this->connection)) :
if ($errno == 0)
$this->AddError("Invalid Mail Server Name or Server Connection Error");
$this->AddError($errno." ".$errstr);
endif;
return true;
}
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
dac Nuke Soldier
Joined: Feb 24, 2003
Posts: 12
Posted:
Mon Feb 24, 2003 7:29 pm
ok maybe I should of ask for you to speak to me like I am an idiot.
sorry, but you lost me.
Aren't Parse errors server orientated? Could I have something miss configured?
Thanks for your help.
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Mon Feb 24, 2003 8:49 pm
Actually a parse error could occur with incorrect formatting in files, in the code i posted two lines had what could make them into an error, as an example:
if ($this->DEBUG) echo "<b>Openning Connection to: </b>".$this->hostname."<br>";
flush();
appears on the pop3.php file as :
if ($this->DEBUG) echo "<b>Openning Connection to: </b>".$this->hostname."<br>";flush();
The ; before flush() in that line is used to signify the end of a line, in this case it ends twice.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
dac Nuke Soldier
Joined: Feb 24, 2003
Posts: 12
Posted:
Mon Feb 24, 2003 9:12 pm
ok, now I get these errors
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /path_to_my_site/site/modules/WebMail/pop3.php on line 70
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /path_to_my_site/site/modules/WebMail/pop3.php on line 70
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /path_to_my_site/site/modules/WebMail/pop3.php on line 138
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /path_to_my_site/site/modules/WebMail/pop3.php on line 140
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /path_to_my_site/site/modules/WebMail/pop3.php on line 162
Any ideas?
Thanks again!!
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Tue Feb 25, 2003 4:46 am
This has been covered already, check the bug reports forum.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
dac Nuke Soldier
Joined: Feb 24, 2003
Posts: 12
Posted:
Tue Feb 25, 2003 4:43 pm
chatserv wrote:
This has been covered already, check the bug reports forum.
Ok, that lead me to the announcements forum with the directions to edit the php.ini file. Where is that file located, is it related installing php on the server?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum