Jump to content

everurssantosh

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Everything posted by everurssantosh

  1. Hi, I want to kill the session varriables and form details of a page, once the back button is clicked or the page is refreshed by using F5 button in a PHP page. Now, hitting the back button and then F5, my page loads again resulting some redunant data which is not acceptable. I want to control this using PHP not with some Javascript restrictions which is again browser depenant and not more secured. Kindly help on this. Thanks Santosh
  2. Hi, I want to implement Digest HTTP Authentication in my site which runs in an apache server. I want to know few details about the procedure to implement this. Also, I want to know is it possible to take id and pwd from database for this type of authentication and validate with the user provided data? Please put light on this. Thanks Santosh
  3. The mail is delivered encoded !!! I am not sure why it is encoding the mail content for some particular mail server....
  4. was this a joke???
  5. Anybody Could Come up with a solution for my problem???
  6. Hi I could understand that is MIME type.. but how to show the original email ??? Thanks Santosh
  7. Hi , I am sending mails to our customers using the below code $headers = "From: ".$from_mail."\r\n"; $headers .= "BCC: " . $email_ids ."\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $boundary = uniqid("HTMLDEMO"); $headers .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n"; $body .= "--$boundary\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $toemail = get_hotel_email($int_pid,$conn); $toemail = $toemail .",". $str_guest_email1.",". $str_guest_email2 ; $body .= chunk_split(base64_encode($return_html),68,"\n"); mail($toemail, $mail_booking_4 , $body, $headers); This program works perfectly for GMAIL and YAHOO. But while using some other emails, instead of showing the right message, it shows some junk characters. Below shown the Junk Characters in the mail Kindly Help me to solve this problem !! Thanks Santosh
  8. Hi, I am sending mails through PHP to our customers using the below demonstrated Code $headers = "From: ". $cc_support_mail ."\r\n"; $headers .= "BCC: " . $email_ids ."\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $boundary = uniqid("HTMLDEMO"); $headers .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n"; $body = "--$boundary\r\n" . "Content-Type: text/plain; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= "--$boundary\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= chunk_split(base64_encode($return_html)); mail($toemail, $mail_booking_4 , $body, $headers); This code sends emails to our customers. This email is shown properly in Yahoo and Gmail. This email is contains HTML Text which shown properly in YAHOO and GMAIL.. Where as, in some other mail servers, these email is shown in some encrypted format. Below is content shown .. I dont understand the same email shown differently in two different mails. Kindly help me to find a solution to this problem Thank You Santosh
  9. Can ANyBody HELP ~!!!!
  10. Hi, I am working for a website where I am managing the security in session. After loggin in i store a unique number in session with user id. On surfing each page, i am checking the session and approving user authentication. But in IE7, if the user opens one mroe tab in the same IE and works, the session is shared and every thing gets meshed up. I want to change the type of authentication and make the application more secured. I also want to make sure that if user presses F5 or refresh the page, the session will expire and user will get logged off. please help me achieve this. Any guidance on authenticating the user and maintaining the same thru out the session without using session varriables wil be a great help thanks santosh
  11. Hi, I have seen three replies but I am not able to get the correct code yet. I have one time in database with mysql timestamp in a format :2008-09-20 07:30:46 The other comparision parameter is the current time of the server. I need the difference in minutes... the functions given doesnt take care of the date or year ... or the 24 hours date format.. . pleaes help Thanks Santosh
  12. I got this while accessing your page... but my query is still not solved. i need the difference in minutes.. if it is 2 days 3 hours 19 mins, then i need it in minutes... pleaes help
  13. Hi , I am working on a project where I need to find out difference between two dates in minutes. First souce is stored in mysql timestamp field and looks like : ]"2008-09-20 06:30:46" [/b Second Souce is a time which I generate at time of executing the cod in PHP looks like : 2008-09-20 08:30:22 which I generate using the follwiing code in PHP $date_now = date("Y-m-d H:i:s ") ; I have tried lot of functions using PHP but I am not able to find the difference between two inputs in minutes. Kindly HELP Thanks Santosh
  14. Hi Thank you for the reply... But I dont want to keep the access code in database after 15 mins. I want to delete the access code after 15 mins... and the code will be generated again when the user requests for the code. I am using PHP and MYSQL.. can I use triggers??? or anything in PHP?? Thanks Santosh
  15. Hi, I am trying to create an Authorization code for a user which should automaticaly get expired after 15 mins of generation. I am using PHP rand function to generate the code. This code will be sent to user by mail. Now, user must use the code with in 15 mins in some other page. The problem : how to I delete the code after 15 mins, though I save the time of generation of the code. Please help me in this regard Santosh
  16. Hi Thanks for the reply... Can we use Date_format or STR_TO_DATE function in the where clause of the select query to help mysql read the date and understand the format ... Please guide me if this is possible Thanks Santosh
  17. Hi , I am writing a query in mysql which will find appropriate fields in a table between two dates given. Below is the query I am using This query was working fine until yesterday since I was using the MM/DD/YYYY (USA) date format. Today we required our application to support both the date formats (USA & UK). So I changed the date format to DD/MM/YYYY. Now this query is returning wrong result set. Kindly help me to solve this problem Thanks Santosh
  18. Hi Ken, I didnt understand it properly. "if not it is sent plain text and could be intercepted"... is it secured ? is it advisable to send information like password, security numbers thru SSL channel in form post ?? Thank you Santosh
  19. Any other suggestion is welcomed !!!
  20. in both the cases, the page takes one round to the server and data comes from server after getting submitted !!! Well, since it is safe to submit the form and get the data in post, i think i sud go for it...
  21. Cant the hackers access my form values? is this becoz of the SSL??
  22. Hi I am not storing the password in hidden field. The password will be masked in a Password filed (input type=password) and I am then submiting the form to go to the other page where I will encrypt the text in PHP. Is this secured over SSL... my concern is : is form post varriables are secured in a SSL channel? Thanks
  23. Hi , I am facing problems in encryting text in PHP. I am having an input form for the user to enter the password and a key for security. I am going to store those in database for future use. My site is SSL enabled too. I want to encrypt the password and store them in database. I will get those varriables to PHP for encryption only after the page is submitted to one more page. My Concern is "To transmit the data through form post varriables from one page to another as plane text." Is it safe to transmit the plane text (password and key) to the other page and then encrypt them and store in the database? I have also tried to encrypt the password in JavaScript and send it across to the other page. But in that page again I need to decrypt and encrypt in PHP and store in database. I am really confused for this issue. Kindly Help..... Thank you. Santosh
  24. Hi, I am working for a Hotel Management Project. This application is developed in PHP and hosted in a public server. As Is: Now, We are doing reservation for the hotels ( Our Customers ). The Guests who will book their rooms in our site have two modes of payment. 1. Reservation by Gurantee. 2. Reservation by Credit Card. For the second type of reservation ( Credit Card ), we need to take the credit card number from the guest and send it across to the customer in order to process the payment. The customer will not process the payment immediately, but they will keep the credit card number with them until the guest reach the hotel. They will also verify the identity of the Guest, by the credit card number, address and name from the bank. But if the Guest doesnt show up until the check in date and the reservation is to expire, the Customer will process the payment with the credit card as a penalty of the wrong reservation. This will be done by the customer and we dont take any responsibility for this. To Be : We need to store the credit card number in our database. Also we need to send the credit card number to the customer. These two actions are not very safe and adviced by anybody. I have consulted the hosting company where we host our server, but they are not going to take any responsibility of the credit card numbers. As the server is a shared server and many other sites are hosted in the same server, I feel there is a pontential amount of risk involved in the action. I am thinking to encrypt the credit card numbers and store them in the database. and we can provide the customer the credit card number by phone after verifing the identity. But still I feel risk. Kindly help me to find answers to my following questions. 1. Is it illegal to store the CC number in database? 2. If No, Do we need to have any permission for any organization to do so? 3. I know the simple encryption technique to use, but can anybody suggest some stong encryption technology? I use PHP and mySQL. Please help me in this regard. Any help for this problem is highly appreciated. Thank you Very Much Santosh
  25. Thanks to everybody for supporting me to solve this problem. Replacing single quote with double quote solved the problem.. Thanks a lot. Santosh
×
×
  • 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.