Jump to content

ramanjaneyulu

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by ramanjaneyulu

  1. Hi,I’m trying to access php-demo portlet in Jetspeed Portal, but it showing the following errorCase-1:Portlet is Not Available: php::php-demoReason: no php4 in java.library.pathCase-2:If we set the path LD_LIBRARY_PATH its showing the following errorPortlet is Not Available: php::php-demoReason: /usr/lib/httpd/modules/libphp4.so: /usr/lib/httpd/modules/libphp4.so: undefined symbol: ap_loaded_modulesSo could you please help me out in this issue. Thanking you,Ram..

  2. HiI receiving following error when I’m downloading the mails in the eventum application when we download the mails. could you please tell me what may be the problem.The error message: 'Failed to connect to smtp.servername.com:110 [sMTP: Invalid response code received from server (code: -1, response: POP3 Ready smtp.servername.com 00021958)]' A more detailed error message follows: '' A backtrace is available: Array( [0] => Array ( [file] => /var/www/html/eventum/include/class.mail_queue.php [line] => 177 [function] => _sendEmail [class] => Mail_Queue [type] => :: [args] => Array))

  3. Hi Thank you so much, I used the following code according your suggestions its working fine.I have one question. Is it any problem if the file size is big? (10MB)$FileName = $_GET["DwnFileName"];header( "Content-Type: application/octet-stream" ); header( "Content-Disposition: attachment; filename=$FileName" );$Path = "FielPath";$Filename_Path = $Path.$FileName;$FielContents = file_get_contents($Filename_Path);print "$FielContents";

  4. I have the links to the text file like this.<a href="File1.txt" >DownloadFile1</a><br /><a href="File2.txt" >DownloadFile2</a><br /><a href="File3.txt" >DownloadFile3</a><br /><a href="File4.txt" >DownloadFile4</a><br /><a href="File5.txt" >DownloadFile5</a><br />So if I click any of the link, it has to open the file download box.So my questions. According to your suggestion we need to read each file.Is there is any other way to over come this problem.

  5. Logic behind Pagination#START PAGINATION#$RowCount is total no of records$Limit = 25;$Pagination = true;$StartRows = $_GET["StartRows"];$Total_Pages = ceil($RowCount / $Limit); $Modulus = $RowCount % $Limit;$LastRows = ($Total_Pages*$Limit) - 2*($Modulus) -1;if (!isset($StartRows)){ //Default to this: $StartRows = 0 ; $EndRows = $StartRows + $Limit; $Current_Pages_No = $Total_Pages - ceil(($RowCount-$EndRows -1) / $Limit); $Previous = $StartRows; if($EndRows > $RowCount) { $EndRows = $RowCount; $Current_Pages_No = $Total_Pages - ceil(($RowCount-$EndRows -1) / $Limit); $Previous = $EndRows; $Pagination = false; } }else{ $EndRows = $StartRows + $Limit; $Current_Pages_No = $Total_Pages - ceil(($RowCount-$EndRows -1) / $Limit); $Previous = $Current_Pages_No*$Limit - 2*$Limit; if($EndRows > $RowCount) { $EndRows = $RowCount; $Current_Pages_No = $Total_Pages - ceil(($RowCount-$EndRows -1) / $Limit); $Previous = ($Current_Pages_No-2)*$Limit; } }$No_Pages = "<div align= 'right'> ".($StartRows + 1)." - ".$EndRows." of about ". $RowCount."  </div>";print "$No_Pages" ;#END PAGINATION

×
×
  • Create New...