First thing, you need to know what you need to create??
1. You need to create a pop3 client. Its possible using php.
2. as you are planning to access gmail account, in that case you also need to implement ssl communication so that you can read the data actually,
As a matter of fact you can create a global pop client that will be able to access any pop server.
One thing that struck me when reading your code is you don't care about the actual length of the file: you request a read of 4095, however the file length could be more (in which case you ignore the extra data), or less in which case you are looping over non-existing bytes. The $i < BUFSIZ test is bound to be wrong.
You are right but this might cause some data error in last block of file but my problem is that i have file changing data in whole entire of my file. Let ignore last block, in other block we shoud have any problem in converting file towice but there is some problem.
This code in c++ working well but in php i don't know what happen if I accesing my data with index ([$i]) and change it with xor operation it looks that my original data will be growup.
How can I prevent click jacking in php?
I just have the concept of click jacking , If i implement click jacking in php from code search from internet , then how can i know it is implemented? Kindly clear my concept and tell me Click-Jacking Preventing demo Code in php...
I am waiting for your positive and Quick response...
Currently I'm develop an application same as CRM. To generate report in PDF,i'm using FPDF as my tools. The problem is, to retrieve the data from database,I create temporary file e.g:dldata.php and call that page in my pdf viewer file. U can access the data and easily view the actual data(if you know the address).By using explode(),I retrieve the data and display it on my pdf viewer page. The dldata.php will be delete (using unlink()) after user load the quotation form. Below are the flow to create quotation in pdf:
fill form data(createquotation.php)->insert data to database->create session,dldata.php & write data into it from mysql->redirect page to viewquotation.php(here I call dldata.php)->click print quotation or back to createquotation.php & destroy dldata.php. Anyone that have experience using FPDF to advise me about this issue. I'm afraid the conflict arise when 2 or more users doing the same process at the same time. TQ.
I have no problem with either download or creating the pdf file. The problem is method that i used. I used this code to call dldata.php after i create it.
$pdf = new PDF();
// Column headings$header = array('Product ID', 'Product No', 'Product Description', 'Subtotal#39;);
// Data load from the file and it will be=>1;#13,21321;Pencil;$1.00
$data = $pdf->LoadData('dldata.php');
After load back to the createquotation.php,I destroy dldata.php file. I'm afraid, it will be issue if more than 2 user do this process at the same time. It will be last in,first out. Only The last data store will be appear. Can I just use dldata.php without delete it and call the data without any user can access it by type the url.
Please don't do this. Unless your post adds value to a question, don't go linking to external websites. If you do, your account will be banned and your IP will be tracked. Repeated violations will see your IP being permanently banned.