[PHP] getting content with fput, SESSIONS and frames
Hi Guys, i wanna get some content from an other website with a sessionid and a frameset. my starting code looks like this: http://domain.tld/frameset.php?q=string";, "r"); if($fp){ while($in = fread($fp, 1024)) $reply .= $in; echo ("$fp\n\n"); echo ("$reply\n\n"); fclose($fp); } ?> now i got in $replay a frameset that links to the main.php without the session id. the paket header including the forward looks like this: HTTP/1.1 302 Found Date: Mon, 26 Jan 2004 11:38:51 GMT Server: Apache X-Powered-By: PHP/4.3.1 Location: http://domain.tld/c17c340a3e6a2cb268451f3eda5930ce/frameset.php?q=string Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html now i'm looking for a method to get the location into a $var to extract the sessionid any ideas for that? regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ## Getting into Netscape.com Inbox
Hi, i'm trying to access my netscape.com inbox with php, so i started to decode the ssl session and got all sent packets in plaintext, not really hard. but know i have to deal with encrypted cookies and i have no clue what i have to do. i found no help while i crawled the web for hours. an example: Cookie: MC_MS_LDC=1 activationde 1 1086246633 0 1086245744 0; MC_NPID=mc-sr12.websys.aol.com/9738; MC_SESSION0=%2FO7gI0OrZnCyKU9ZmWBsOA%3D%3D-diAxLjAga2lkIDIwMDQwNjAyMDEwMDAxM TE1OQ%3D%3D-nrVhh6NyA2ucnTGoqHuGR%2FW8HXEp74Oo%2FBWpqzwyvOvf77IyX6CWZ0YIHJyg TZzKxaQ4181tOTlZwZI11OGY1TfbIX1JRDLS3LL2xDtnIaXYf7V8yDXTeA%3D%3D; C_SITE_ACT=yiBeRJ8fvFTwAFG+ZefJmA==-yI/TFXODOR4TuSu2hocH7bDa744fsOwU+92Ub3mW tfBUOnWuJkVCJ34mEq9zmEsz5mto1KN24NA=; MC_SITE_ACT=yiBeRJ8fvFTwAFG+ZefJmA==-yI/TFXODOR7m9s106Mf3qlzvgDhdyOqWVpA43Kx 7G1H3uij9bZQ7iXEb3BgZsRJwqoPSTd1IzJ4=; MC_SITEID=nscpenusmail; MC_SSTATE=mach5%3d1; MC_AUTHLEV=2 i tried to use rawurldecode() and base64_decode and i got only one small part in plaintext: diAxLjAga2lkIDIwMDQwNjAyMDEwMDAxMTE1OQ%3D%3D v 1.0 kid 200406020100011159 someone in here that have a clue what should i do next? regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] >>>>>> THREADS IN PHP
hi, i'm looking for a methode to use threads in php (on linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Remove Dynamic String between StringA and StringB
Hi :), i'm looking for a function to remove multiple dynamic parts of a string, there are only the start and end strings given (remove all between string A and string B) got somebody a working procedure for that? regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] >>Remove Dynamic String between StringA and StringB
Hi :), i tried your code zu replace some parts of a string, the problem is that this method only replaces when there is only 1 word between stringA and stringB. i got the problem that the part between both strings is a dynamic one and much larger then 1 word. i really tried to use the php manual and google to find some help for this, but i got no luck with that :( $stringA = "AA"; $stringB = "BB"; $string = "AA oneword BB AA two words BB"; $pattern = "/$stringA.\w*.$stringB/"; $replacement = ""; echo preg_replace($pattern, $replacement, $string); i think it have to do something with the \w in the pattern, is there a parameter to resolve my problem too? regards manuel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?
Hi, i'm looking for a method to setup php to use a proxy for all http/ftp connections. i know it's possible to write a script that can do this, but i need to setup php itself for that (php.ini or something like this) i tried different tools for that to tunnel all connection but i didn't found anything that works for me regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?
The problem is that i'm using a windows for that, the anomizer i use to connect to different proxys waits on 127.0.0.1/localhost, so i can't redirect the whole outbound traffic on port 80 for that Hi, There is a topic called transparent proxying. Don't have any links in my bookmarks but if you visit either the squid proxy websites or the iptables website you will find it. (this is usually done with this combination but can be done with other proxy/firewall combos as well). Basically what happens is that at the network layer all outbound port 80 traffic is redirected by iptables to the proxy server (which will have to run on a different port). Most ISPs in asia resort to this tactic. all the best Jack Bauer wrote: >Hi, > >i'm looking for a method to setup php to use >a proxy for all http/ftp connections. >i know it's possible to write a script >that can do this, but i need to setup php >itself for that (php.ini or something like this) > >i tried different tools for that to tunnel all >connection but i didn't found anything that >works for me > > >regards > > > -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php