[PHP] curl ,response headers and gzip encoding

2011-11-28 Thread Tontonq Tontonq
hi i am trying to build a proxy server for opera's turbo mod $value) { $data.= "\n$name: $value"; } $data=str_replace('Host: w.com','Host: '.$domainadi,$data); $data.="\r\n\r\n"; if($_SERVER['REQUEST_METHOD']=='POST') { $data.=@file_get_contents('php://input'); } #echo $domain;exit; #echo $data

Re: [PHP] array_unique by id multi-dimensional array

2011-10-28 Thread Tontonq Tontonq
thanks it works 2011/10/28 sivaji j.g > > On Fri, Oct 28, 2011 at 1:22 PM, Tontonq Tontonq wrote: > >> let me explain again >> this is my array >> Array >> ( >> [0] => Array >> ( >> [likes] => 137846 >> [name] => blabla >>

Re: [PHP] array_unique by id multi-dimensional array

2011-10-28 Thread Tontonq Tontonq
k] => http://www.facebook.com/pages/bigit/10497735291210 [likes] => 0 ) ) but as you see there are 2 sub array with [id] => 157644197612598 i want to delete sub arrays repeated with same id.? 2011/10/28 tamouse mailing lists > On Thu, Oct 27, 2011 at 10:31 AM, Tontonq Tontonq > wrote: &

[PHP] array_unique by id multi-dimensional array

2011-10-27 Thread Tontonq Tontonq
i have an array like [0] => Array ( [likes] => 113091 [name] => blabla [access_token] => AAABZCTx [id] => 188206217874932 ) [1] => Array ( [likes] => 113091 [name] => blabla [access_token] => AAABZCTz [id] => 188206217874932 ) i want to filter the array by [id] sub value?

[PHP] memory overflow :/

2011-08-04 Thread Tontonq Tontonq
hi i can't see anything wrong that will cause memory problem but parsing 1gb memory limit doesn't come enough for just parsing a 50 kb file but when i try to parse another file that is 24 kb 24 mb becomes enough memory here is the script http://pastebin.com/H9mG7ucU if you go to rss.php?id=17

[PHP] imap_search ?

2011-03-06 Thread Tontonq Tontonq
hi ! it works if there is / are emails in the box before script run (i use cli not web based) but after it works 1 time it doesnt work again it enters to infinite loop , at that line while(!$emails) { $emails = imap_search($inbox,'ALL'); echo "email yok\n"; print_r($emails); } imap_search($inbox

[PHP] extract price by preg_match_all

2011-02-14 Thread Tontonq Tontonq
example data: old price 829,00 €your price 58,90 € * another : 9,90 € * i want to extract 829,.00 & 58,90 from first source , 9,90 from the second i tried many way like preg_match_all('/(\$[0-9,]+(\.[0-9]{2})?)<\/span>/',$data,$prices); it doesn't work

[PHP] curl & rtmp

2011-01-09 Thread Tontonq Tontonq
does cUrl supports rtmp protocol? if so is there any example? do we need enable different library? so if not can we save rtmp by curl? if not is there any other rtmp downloader that u know ?

[PHP] range header in curl?

2010-11-21 Thread Tontonq Tontonq
hi im downloading files from h0tf1le as a premium user by curl i want to do something like streaming i want it resend to user what it got from server i couldnt find any resource about curl and streaming the executed source so i did by the Range header but sometimes i see files are corrupted i check

Re: [PHP] smary assign var

2010-11-19 Thread Tontonq Tontonq
t; > Echo $yuzde; > This is no reason to truncate or escape html since the strings do not > contain them. > I might suggest you read > http://www.php.net/manual/en/function.round.php > for a better understand the precision options with round. > > > > > Richard L. Buskirk &g

[PHP] smary assign var

2010-11-18 Thread Tontonq Tontonq
hi guys i have 2x sub value [reduction] => 4 [price_without_reduction] => 22 [price] => 18 and i want to calculate how much i did reduction percent {assign var='yuzde' value=$product.reduction*100} {assign var='yuzde' value=$yuzde/$product.price_without_reduction} -{$yuzde|truncate:3:''|escape:

[PHP] extract an image's elements by gd

2010-09-02 Thread Tontonq Tontonq
Hi! as first i want you look at this image http://i56.tinypic.com/2zic001.png i can read all pixels , make picture black and white,add length of black pixel's to array like (from 300x 20y to 320x to 20y). I can dump coordinates blue square as easily but i cant say this for yellow ellipse. So the

Re: [PHP] a quick question about array keys

2010-08-31 Thread Tontonq Tontonq
i think its my mistake it will begin from first value of array it will continue until if its more big than +2 and it 2010/8/31 Ashley Sheridan > On Tue, 2010-08-31 at 19:06 +0300, Tontonq Tontonq wrote: > > Ty four your all replies i got 9 replies less than 10 minutes :) > > th

Re: [PHP] a quick question about array keys

2010-08-31 Thread Tontonq Tontonq
d understand me :D 2010/8/31 la...@garfieldtech.com > The fastest way is going to be array_values(): > > http://www.php.net/array_values > > --Larry Garfield > > > On 8/31/10 10:43 AM, Tontonq Tontonq wrote: > >> a quick question >> lets say i have an array like tha

[PHP] a quick question about array keys

2010-08-31 Thread Tontonq Tontonq
a quick question lets say i have an array like that Array ( [300] => 300 [301] => 301 [302] => 302 [303] => 303 [304] => 304 [305] => 305 [306] => 306 [307] => 307 [308] => 308 ... how can i change keys to 0,1,2,3,.. by faster way (it should like that) > Array ( [0] => 300 [1] => 301 [2] =>

[PHP] multi thread work?

2010-08-04 Thread Tontonq Tontonq
Hi how to make a script multi task based like this http://www.facebook.com/ajax/reqs.php?__a=1' ); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Opera/9.80 (Windows NT 5.1; U; tr) Presto/2.6.22 Version/10.50"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt(

İlgi: [PHP] a for loop and probability random all i need is make them to reverse

2008-11-22 Thread Tontonq Tontonq
sorry i think i did tell u wrong about it problem is not showing name of it as exaclty i just wanted give a point to it thats not real problem real problem is i want it be more unpossible when i give the class's add function's higher value 2008/11/22, Yeti <[EMAIL PROTECTED]>: > That should output

[PHP] a for loop and probability random all i need is make them to reverse

2008-11-22 Thread Tontonq Tontonq
i want it returns *Raptor +1 (1 in 62,000) * but it returns me nearly everytime how can i make them reverse help me please index.php > $y) { $yy = arasi(" in ",")",$y); $yy = str_replace(",","",$yy); $xcx[]=$yy; #echo $yy.""; $itemisim = explode("(",$y); $itemisim=$itemisim[0]; $xcx[isim][]=$item