Click here to Skip to main content
15,887,683 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Please help me Pin
Richard MacCutchan2-Oct-11 23:08
mveRichard MacCutchan2-Oct-11 23:08 
AnswerRe: Please help me Pin
Mohibur Rashid5-Oct-11 16:58
professionalMohibur Rashid5-Oct-11 16:58 
AnswerRe: Please help me Pin
wenbin.wu21-Oct-11 15:49
wenbin.wu21-Oct-11 15:49 
Questionسلام به همه ایرانی های عزیز Pin
rahmani12328-Sep-11 21:37
rahmani12328-Sep-11 21:37 
AnswerRe: سلام به همه ایرانی های عزیز Pin
Richard MacCutchan30-Sep-11 22:00
mveRichard MacCutchan30-Sep-11 22:00 
GeneralRe: سلام به همه ایرانی های عزیز Pin
Luc Pattyn19-Oct-11 2:01
sitebuilderLuc Pattyn19-Oct-11 2:01 
GeneralRe: سلام به همه ایرانی های عزیز Pin
Richard MacCutchan19-Oct-11 2:28
mveRichard MacCutchan19-Oct-11 2:28 
Questionencode & decode Pin
mryazdani22-Sep-11 10:02
mryazdani22-Sep-11 10:02 
Hi,
I'm new in PHP.

PHP
define('BUFSIZ', 4095);
$url = $_GET["addr"];
$msk = $_GET["key"];
$msklen = count($msk);
$rfile = fopen($url, 'r');
$lfile = fopen(basename($url), 'w');
while(!feof($rfile))
{
    $content = fread($rfile, BUFSIZ);
    while($i=0; $i < BUFSIZ; $i++)
         $content[$i] = $content[$i] ^ &msk[$i % count($msk)]; 
    fwrite($lfile, $content, BUFSIZ);
}
fclose($rfile);
fclose($lfile);


this code is not working after performing towice in a file my file will be change.
what is wrong with my while statement?

thanks.
No Comment.

AnswerRe: encode & decode Pin
Luc Pattyn22-Sep-11 10:30
sitebuilderLuc Pattyn22-Sep-11 10:30 
GeneralRe: encode & decode Pin
mryazdani22-Sep-11 10:57
mryazdani22-Sep-11 10:57 
AnswerRe: encode & decode Pin
Luc Pattyn23-Sep-11 2:03
sitebuilderLuc Pattyn23-Sep-11 2:03 
GeneralRe: encode & decode Pin
mryazdani26-Sep-11 9:58
mryazdani26-Sep-11 9:58 
Questionprevent Click Jacking in PHP Pin
Shama Shahzadi20-Sep-11 19:07
Shama Shahzadi20-Sep-11 19:07 
AnswerRe: prevent Click Jacking in PHP Pin
Mohibur Rashid30-Sep-11 21:30
professionalMohibur Rashid30-Sep-11 21:30 
QuestionCurrency Converter using PHP Pin
lovelyMAT20-Sep-11 9:32
lovelyMAT20-Sep-11 9:32 
AnswerRe: Currency Converter using PHP Pin
CodingLover21-Sep-11 21:54
CodingLover21-Sep-11 21:54 
AnswerRe: Currency Converter using PHP Pin
Smithers-Jones22-Sep-11 1:01
Smithers-Jones22-Sep-11 1:01 
QuestionGenerate quotation using FPDF Pin
Shah Rizal13-Sep-11 20:59
Shah Rizal13-Sep-11 20:59 
AnswerRe: Generate quotation using FPDF Pin
Mohibur Rashid14-Sep-11 17:42
professionalMohibur Rashid14-Sep-11 17:42 
GeneralRe: Generate quotation using FPDF Pin
Shah Rizal14-Sep-11 21:54
Shah Rizal14-Sep-11 21:54 
GeneralReview of Python Tools for Visual Studio Pin
AditSheth13-Sep-11 20:35
AditSheth13-Sep-11 20:35 
GeneralRe: Review of Python Tools for Visual Studio Pin
Pete O'Hanlon13-Sep-11 22:01
mvePete O'Hanlon13-Sep-11 22:01 
Questionxml to html Pin
AndyInUK13-Sep-11 1:00
AndyInUK13-Sep-11 1:00 
AnswerRe: xml to html Pin
Matt Meyer13-Sep-11 11:19
Matt Meyer13-Sep-11 11:19 
AnswerRe: xml to html Pin
cjoki15-Sep-11 7:31
cjoki15-Sep-11 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.