Jump to content

sureshp

Members
  • Posts

    35
  • Joined

  • Last visited

    Never

Everything posted by sureshp

  1. thanks guys. How can we improve the speed with php? I think "speed is the king" for social networking website. I see that Rediff / Yahoo websites are loading very faster. how can they achieved it? is there any possibility to achieve it with PHP? Thanks, Suresh P
  2. Dear ALL, I am thinking about developing a Social Networking website and I am very much concentrating on speed and efficiency. My friends are saying that Python will be faster than PHP. But, I saw most of the social networking websites are built in PHP, Ruby On Rails. For example, Youtube, MySpace,... are built in PHP. What do you think? Kindly suggest me the best option which will lead to build a Social Network website with better loading speed. Thanks in Advance ! Regards, Suresh P
  3. Dear ALL, I am thinking about developing a Social Networking website and I am very much concentrating on speed and efficiency. My friends are saying that Python will be faster than PHP. But, I saw most of the social networking websites are built in PHP, Ruby On Rails. For example, Youtube, MySpace,... are built in PHP. What do you think? Kindly suggest me the best option which will lead to build a Social Network website with better loading speed. Thanks in Advance ! Regards, Suresh P
  4. the attached is the screenshot of the index page after the hacker overwritten my file. I surfed about this through google and found that many websites are hacked by this guy or team. Any Ideas? Thanks! [attachment deleted by admin]
  5. Thanks for your guesses. Im guessing that someone overwritten my file from their server by just following up the file path. Is there any server related configurations to allow the hacker to write files from the external server? Thanks!
  6. HI Thorpe, Thanks for your reply. Is there a way to update a file without giving 777 permission. will 644 work? Also, Can you tell me your view on how the hacker did this hack? Thanks, Suresh P
  7. Hi ALL, I have a bad situation now. I am running a CMS application in a website and the index file of the application is hacked by someone. Is there any way to hack a file and replace with the new file in the server? The file is having 777 permission since it will be updated updated by the admin on a timely basis. Any ideas on how it is happened? Thanks in advance!
  8. Hello, Im using ODBC to connect to my MySQL database. The issue is the ODBC connection is lost within 15 to 30 seconds after connecting. In the log, Im getting the following error. DIAG [08S01] [MySQL][ODBC 3.51 Driver][mysqld-4.1.22-standard]MySQL server has gone away Can anyone know why it is happening like this? Thanks in advance! Regards, Suresh P
  9. Yes -- COUNT will be the best way to retrieve the no. of rows. Others taking time to execute where COUNT is not taking time to execute it in phpmyadmin .
  10. Sphider, phpdig are good lightweight php search engine tools i hope.
  11. Shall we use SQL Lite for this one? it is also well sorted and saved i think so.
  12. Hi All, Anyone know why PHP handles date & time only from 1970 and above? Is there any special reasons & is it a drawback? Or do all programming languages do like this? Expecting replies. Thanks, Suresh P
  13. Better, you should use CAPTCHA in all the forms to avoid SPAM to some limits.
  14. THis is the output I am getting this time. Status: 0 Content-type: text/html Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive. For more information as to why this behaviour exists, see the manual page for CGI security. For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page. the manual page. 255
  15. Try like this ======= // price, availability, condition echo "<div class='price'>"; echo "Price: "; if($row[price]) echo $conf[currency].number_format($row[price]); elseif($row[price_alt]) echo $row[price_alt]; else echo "Call for Price"; if($row[ebay_url]) echo "<BR><a href='$row[ebay_url]' target='_blank'><img class='none' src='comn/ebaymotors.gif'/></a>"; if($row[sale]) echo "<br/><span>New Price: <strong>".$conf[currency].number_format($row[sale])."</span>"; echo "</strong><br/>";
  16. Try by using /?language=english
  17. While I am running the above code, I got the below output. test test0 What do you think? Thanks !
  18. Don't use "../english" or "../deutsch" in the location path. if your website url for english version is http://yoursite.com/english means, just use $_SERVER['DOCUMENT_ROOT'] . "/english" Got it?
  19. I tried the above one too, but its not woking here. Kindly let me know that how can i make sure that in my server whether the system and exec() functions are working or not. Thanks!
  20. If you want to use AJAX to handle the form submission and display the result, just try to use prototype.js or jquery.js. It will make your life easier to do AJAX operations.
  21. Try this: ======== $checked = ($database_value == "YES") ? "checked" : ""; Use this $checked variable in the checkbox html tag as like below: <input type='checkbox' name='something' value='somethingsomething' $checked>
  22. Try this: ====== <?php if ($kbbPrice) { $features_list = ""; for($x=0; $x<count($features);$x++) { if($x%2==0){ $features_list .= " <table width=\"100%\"> <tr> "; } $features_list .= "<td class=\"vehFtrs\"><img src=\"images/Common/KBB/bulletOn.gif\" /> {$features[$x]}</td>"; if($x%2==1){ $features_list .= "</tr></table>"; } } if($x%2==1) { $features_list .= "<td> </td></tr></table>"; } $kbb = ' <div align="center"> <table> <tr><td><img src="images/Common/KBB/hdrL.gif" width="9" height="73" /><a href="http://www.kbb.com/KBB/UsedCars/'.$kbbValue.'" target="_blank"><img src="images/Common/KBB/hdrM.gif" width="153" height="73" /></a><img src="images/Common/KBB/hdrR.gif" width="204" height="73" /></td></tr> <tr><td class="ContHldr" align="center"><img src="images/Common/KBB/hdr01.gif" /></td></tr> </table> <table class="KBB2" width="345"> <tr> <td> <div id="KBB1"> <table> <tr class="KBB2"><td class="txt2" colspan="3">Selected Equipment</td></tr> <tr><td height="30" width="345" colspan="3"><b>Standard</b></td></tr> ' . $features_list . ' </table> </div> <div id="KBB2" align="left">* Connecticut '.$today.'</div> </td> </tr> <tr><td><img src="images/Default/Titles/btm365.gif" /></td></tr> </table> </div><p>';} ?>
  23. Thanks for your response. I tried the way you had mentioned here. But, its not working for me. My exact requirement is the below one. It is possible to spider webpages from the command line, using the syntax: php spider.php <options> where <options> are -all Reindex everything in the database -u <url> Set the url to index -f Set indexing depth to full (unlimited depth) -d <num> Set indexing depth to <num> -l Allow spider to leave the initial domain -r Set spider to reindex a site -m <string> Set the string(s) that an url must include (use \n as a delimiter between multiple strings) -n <string> Set the string(s) that an url must not include (use \n as a delimiter between multiple strings) If you want to reindex the website url, use php spider.php -u http://www.domain.com/test.html -r I am not having cron settings option in my server. So, I need to run it through a php file in the admin panel while clicking a link. Kindly let me know your valuable suggestions to achieve this. Thanks in advance!
  24. Or just use $myFile = "logs/log.txt";
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.