Jump to content

auro

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Everything posted by auro

  1. You can simply use the -1 to call array items friend.
  2. Friend, As I think, the way you are using to do the needful is the best.
  3. This is impossible according to me. I'm running a chat community where i can trace fake and multiple ids of a user. My special system is 3 layered. I have worked very hard for that. Still there can be 5% users who can escape. So no remedy.
  4. Corbin is absolutely right. Management of sooooooo many files would be very messy. Where exactly do you want to put all those images?
  5. Sure friend, that wont be any problem... you can loop through to fetch them all. You will have to divide it because PHP wont allow you execution for days. :-) good luck!
  6. I have a site on which each page retrieves 10 urls using cURL's multi curl functions. Whenever, there be 200+ users online (800 urls at a time) my dedicated server XEON 3075 consumes more than 75% CPU. And in many cases, my site goes down. Is there any way to reduce CPU load? the single process which consumes the most of CPU (upto 36%) is /usr/local/apache/bin/httpd -k start -DSSL There run many such processes when there are considerable users online. Would anyone please help me?
  7. easy... use this friend. copy($URL, $LOCALFILENAME);
  8. As I can get it best from what you told: In your first text you have written that you don't have access to the code the affiliate ads will contain. So I don't think you can, by any means, track the clicks. And that is because they are leading the users to external pages. There is a way around for that but your ad providers will not like this if they see it. You can change the affiliate code: $adtext="<a href=\"http://externalsite.com/?pid=something\">Link title</a>"; to $adtext="<a href=\"http://$site_url/extbannertrack.php?url=http%3A%2F%2Fexternalsite.com%2F%3Fpid%3Dsomething\">Link title</a>"; That can be done dynamicly using preg_replace. Hope it helps. :-)
  9. I have optimised the Database and the PHP code too..
  10. I really wish to help you with that but i'm not able to get you. Can you please elucidate it?
  11. That is very easy friend. 1. Make a form. 2. Make a processing page (probably) which gets the data from the above page using GET or POST (as convenient). This page will store the results (user response) in a text file or MySQL database. text file will be much easy if your site does not use database at all. Good luck buddy!
  12. This should work for you for sure. Please tell me if it does not. <? if ($_SERVER['PHP_SELF'] == "/index.php"){ ?> <div class="orange"> <div id="tkosmo"> <table width="96%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="410px"><?php include "tkosmo.php"; ?></td> <td width="17px"></td> <td width="390px"><?php include "stonudimo.php"; ?></td> </tr> </table> </div> </div> <? } ?>
  13. Thanks for replying corbin. Currently my site gets nearly 200-300 users online but works most of the time worthless. I have optimised the code to work very efficiently. Each of my pages execute nearly 10-20 queries. (I have tried to optimise the page as much I could) The current database is 2.0 ghz CPU 1.0 ghz RAM 100 mbps Uplink connection The average load is between 5-10%
  14. Hi buddy! You can use mysql or some database to store username/password and other necessary information about users. Further the sessions can also be stored... You need to know a good deal about databases for that friend.
  15. Hi everyone! Currently I have a forum site based on php/mysql on a dedicated server. It is working worthless at present. Can you please tell me what I equipment would i need to be able to host more than 2000 concurrent users online on my site? I will be indebted to the person who helps...
  16. Ya use is_dir($somedir) to determine if a folder exists and then print an error accordingly
  17. I think the best idea is to use: if(!get_magic_quotes_gpc()){ $_GET = array_map('trim', $_GET); $_POST = array_map('trim', $_POST); $_COOKIE = array_map('trim', $_COOKIE); $_GET = array_map('addslashes', $_GET); $_POST = array_map('addslashes', $_POST); $_COOKIE = array_map('addslashes', $_COOKIE); } And when your data is to be displayed in an html page, use htmlspecialchars($text);
  18. hi friend! How are you? Are you limiting the total points to 1000 yourself? Or there is any formula you are using to limit it? I mean eg. 50 questions of 20 points each etc. I think you are rounding of your 365/1000 to get 18/50
  19. Ya i'm retaining the proportion. and yes i'm using imagecopyresampled... but it destroys the image quality to a large extent when i try to resize the image to even 80% I think it is because i'm making small thumbnails. Thumbnail width is 120, 180 etc. from image of 240 Thanks for replying DarkWater and Corbin
  20. Andy such things really matter when traffic is huge. Also most of the shared hosting providers restrict the CPU usage to 4 percent. They'll warn you if your site consumes a lot of resources.
  21. When making thumbnails or icons dynamically, PHP reduces the quality to a large extent. Output seems to be too much distorted. Can anyone please help how to retain the quality?
  22. You are welcome buddy. If you ever need help, tell me.
  23. Hi friend! Try using $keyword = preg_replace('/\+/',' ',$newquery); Or $keyword = str_replace('+',' ',$newquery); This would be faster than preg_replace
  24. Ya rmbarnes82 is right. Nemesis, 'Denial of service' happened with me. My pages were not like that. Page loads were nearly 20/sec and queries per second were 200+/sec My webhost stopped my database.
×
×
  • 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.