User Profile

Collapse

Profile Sidebar

Collapse
sectrait
sectrait
Last Activity: Mar 5 '13, 11:20 AM
Joined: Feb 5 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Accessing variables defined in unit testcase file in src file using phing

    I have defined some variables in my test file then i call a function from my test file to src file and verify the result. While using phing it is not working, but if i use php or phpunit to verify it is working fine.

    Example: add.php (source file) (present in the src directory)
    Code:
    <?php
    function add_two_numbers()
    {
        global $a,$b; /* defined in test file*/
        return ($a + $b);
    }
    ?>
    ...
    See more | Go to post
    Last edited by sectrait; Mar 3 '13, 05:42 AM. Reason: corrected errors and using correct format

  • How can we maintain the counters for each process of apache without using getmypid()

    Suppose I have a php script. Now i am benchmarking that script using apache benchmark tool. Let us say with the command. ab -n 10 -c 4 filename.php Many different apache processes will be created so as to fulfill the requests.

    Suppose total 4 processes are created to fulfill this request. Now, Let us say that the processes have ids p1,p2,p3,p4 and requests are r1,r2,.....r10.

    As an example assume how requests are completed....
    See more | Go to post
No activity results to display
Show More
Working...