You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 87 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Webmail Help, Parse error [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
dac
Nuke Soldier
Nuke Soldier


Joined: Feb 24, 2003
Posts: 12


PostPosted: Mon Feb 24, 2003 7:05 pm Reply with quoteBack to top

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
Find all posts by dacView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Mon Feb 24, 2003 7:20 pm Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
dac
Nuke Soldier
Nuke Soldier


Joined: Feb 24, 2003
Posts: 12


PostPosted: Mon Feb 24, 2003 7:29 pm Reply with quoteBack to top

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.
Find all posts by dacView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Mon Feb 24, 2003 8:49 pm Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
dac
Nuke Soldier
Nuke Soldier


Joined: Feb 24, 2003
Posts: 12


PostPosted: Mon Feb 24, 2003 9:12 pm Reply with quoteBack to top

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!!
Find all posts by dacView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Tue Feb 25, 2003 4:46 am Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
dac
Nuke Soldier
Nuke Soldier


Joined: Feb 24, 2003
Posts: 12


PostPosted: Tue Feb 25, 2003 4:43 pm Reply with quoteBack to top

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?
Find all posts by dacView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.886 Seconds - 490 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::