Jump to content

siddscool19

Members
  • Posts

    133
  • Joined

  • Last visited

    Never

Everything posted by siddscool19

  1. Yup I got it already, thanks for the reply anyway
  2. I was reading a program code and I came across this line of code $result = 0x01111111; when I tried to echo the $result I got this output 17895697 I am not able to get what this operator "x" actually does.. If someone can help me understand. Thanks
  3. Thanks for the reply, I never used AJAX so don't have much idea about it, I will learn and try it
  4. I am connecting to a page using cURL in php and when transferring data to a string using CURLOPT_RETURNTRANSFER and then running my filters on the output. But since the page is very bulky it takes time to load and so i want a sort of progress meter which can show the last line the php is currently retreiving from the page it is fetching.
  5. I am getting 500 Internal server error again. I make a 40-50 connections using curl through my script and i don't know how many connection fails. anyway to prevent it from occurring.
  6. Is there a way to keep running the script even if the user exists the page ? I know about ignore_user_abort but it does stop after a fixed amount of time running in background. i want it to run till script is complete.
  7. how to use that if i already closed the script from my browser? and the script keeps running on server how to interfere the script :S
  8. I want to know how can we stop a script running with ignore_user_abort as true? Like if something goes wrong and i don't want the script to run anymore than how can i stop it in between?
  9. I am facing a weird problem if a page doesn't load like the server is not responding my curl script doesn't stop and keeps showing loading even though i have tried connecttimeout options and set them to the required value.
  10. Is it possible to get curl to only fetch the first few lines from a page rather than loading the whole page like we can set the file size to be fetched. Because loading the full page in my case makes my script damm slow as i have to fetch 100 pages at a time.
  11. Yes I did that. The data in $data1 is the data which I echoed using $data.
  12. I am facing a weird problem with sending data to a site via curl. If i send the value by this $data1="action=capt&tm=1256956853&tmhash=074144d43b5e2fcf34607221bd51b69dded08475&wait=30&waithash=7772647b09ec9995fc3c92d9f04be89029f80564"; curl_setopt($ch2, CURLOPT_POSTFIELDS,$data1); It works in the above case but however if I send the values like this $data="action=".$action."&tm=".$tm."&tmhash=".$tmhash."&wait=".$wait."&waithash=".$waithash; curl_setopt($ch2, CURLOPT_POSTFIELDS,$data); It won't work. Here I set $data1 from the value of $data only by getting its output on screen. So $data1 and $data are same. Just the difference is that $data is in form of variables which I get using preg_match. I use preg_match to get values of action,tm,tmhash and all that.
  13. How to change md5 hash of a file using php?
  14. I want to know how to make the script run in background like I send data to a script and its processing. Now what I want to do is close my browser and the script should still run. How to do this?
  15. Hey dude I found the problem it was due to antivirus. My antivirus was blocking it some way i don't know but when i switched off it worked and when i switched on it stopped. So it was due to antivirus.
  16. I want to know how to use ob_flush() and flush().. I am testing this code: <HTML> <BODY> This page is loading.<br /> <?php ob_flush(); flush(); sleep(10); ?> Almost there...<br /> <?php ob_flush(); flush(); sleep(10); ?> Done.<br /> </BODY> </HTML> But it is not giving me the desired output in firefox Am I wrong in using it or it doesn't work with firefox ?
  17. I want to know how to upload from server to a browse type form. For example to upload an image we select the picture using browse form from our computer and it is uploaded. Instead of this how to transfer picture from server to that site using that form? I know its possible just want to know how to do it Thanks in advance I eagerly need this.
  18. Hey people i found it in one of the files as a custom function But the file in which i saw this function is not linked to the file in which the function is there by any of include or require Then how can it work?
  19. I was reading rapidleech script today and i faced a new function geturl here: $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"],$pauth); What does it do? And is there any page on php.net on it ? I was not able to find myself there Hope someone can help Thanks in advance
  20. did not work it has no option for getting hostname only also when i try to get only directory path it gets also the hostname with it Like $url="http://test.com/tester/index.php"; $path_parts=pathinfo($url); echo $path_parts['dirname'], "<br>"; echo $path_parts['basename'], "<br>"; echo $path_parts['extension'], "<br>"; echo $path_parts['filename'], "<br>"; The result is http://test.com/tester index.php php index What I want is to get only /tester in the first output.
  21. How to get only the hostname from the link? What I want to do is to get only "http://test.com" from "http://test.com/tester" How can we do this? Also can we get only "/tester" from "http://test.com/tester/index.php" Thanks in advance.
  22. When i use fgets the file pointer jumps from one line to another. And i can reset it to first line using reset function. But how do i shift the pointer to the line of my choice like second line so that when i use fgets command it gets second line in the string... Is it possible?
  23. I want to know how to make php show output as php runs... Rather than showing the full output in one go.. Like in my script there are many loops and each loops get different data.. So its like that the script runs for few seconds.. Now what i want that as the script passes first loop it displays data obtained from that loop rather than the script showing all data once it had passed all loops.. Please let me know if you didn't get what I mean
  24. Thanks for your reply I will surely try getting up with rapidleech and if I am not able to get I am sure we can get help from this place
×
×
  • 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.