Jump to content

auro

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Posts posted by auro

  1. 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.

  2. 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?

  3. 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. :-)

     

  4. 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!

     

     

  5. 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>
    <?
    }
    ?>
    

  6. 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%

     

  7. 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.

     

     

  8. 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);

  9. 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

×
×
  • 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.