getting error while migrating to windows....
hai all...
i had developed a site using joomla...the work is almost over...i had done it using linux and opera....and i just copied the folder and database into windows xp to see how it looks like in IE....everything works absolutely fine except a single page where i have displayed the members of a department and given their e-mails...
in that page i am getting an error on top saying:
Warning: rand(): Invalid range: 1..100000 in c:\apache\htdocs\tsr_website\includes\joomla.php on line 1744
this line is getting repeated 14 times....so i guess it has got something to do with the emails on the page....since i have listed out exactly 14 employees and their emails on the page...
the specified lines in \includes\joomla.php also point in this direction..
1737 function emailCloaking( $mail, $mailto=1, $text='', $email=1 ) {
1738 // convert text
1739 $mail = mosHTML::encoding_converter( $mail );
1740 // split email by @ symbol
1741 $mail = explode( '@', $mail );
1742 $mail_parts = explode( '.', $mail[1] );
1743 // random number
1744 $rand = rand( 1, 100000 );
1745
1746 $replacement = "\n<script language='JavaScript' type='text/javascript'> \n";
there are some more lines in the function but i guess that is not relevant...
these are the steps i followed while migrating to windows....
1.I copied the whole site folder into the corresponding folder of windows..
2.imported the whole site database.
3.made changes in configuration.php in the following lines.
$mosConfig_absolute_path
$mosConfig_cachepath.
now the only other variable i thought i should change is
$mosConfig_sendmail = '/usr/sbin/sendmail';
but i didn't know its value in windows...so i left as it is..
so,any ideas as to what is wrong????thanks in advance....
|