• generate random number between two numbers php
    echo mt_rand($min,$max);
  • enctype= multipart/form-data

    HTML forms provide three methods of encoding.

    • application/x-www-form-urlencoded (the default)
    • multipart/form-data
    • text/plain

    Work was being done on adding application/json, but that has been abandoned.

    (Other encodings are possible with HTTP requests generated using other means than an HTML form submission. JSON is a common format for use with web services and some still use SOAP.)

    The specifics of the formats don’t matter to most developers. The important points are:

    • Never use text/plain.

    When you are writing client-side code:

    • use multipart/form-data when your form includes any  elements
    • otherwise you can use multipart/form-data or application/x-www-form-urlencoded but application/x-www-form-urlencoded will be more efficient

    When you are writing server-side code:

    • Use a prewritten form handling library

    Most (such as Perl’s CGI->param or the one exposed by PHP’s $_POST superglobal) will take care of the differences for you. Don’t bother trying to parse the raw input received by the server.

    Sometimes you will find a library that can’t handle both formats. Node.js’s most popular library for handling form data is body-parser which cannot handle multipart requests (but has documentation that recommends some alternatives which can).

    If you are writing (or debugging) a library for parsing or generating the raw data, then you need to start worrying about the format. You might also want to know about it for interest’s sake.

    application/x-www-form-urlencoded is more or less the same as a query string on the end of the URL.

    multipart/form-data is significantly more complicated but it allows entire files to be included in the data. An example of the result can be found in the HTML 4 specification.


  • हम गाड़ी की सर्विस तो करवाते है लेकिन क्या हमने अपनी शरीर की सर्विस करवाई कभी?

    हम गाड़ी की सर्विस तो करवाते है लेकिन क्या हमने अपनी शरीर की सर्विस करवाई कभी?

    1. लिवर की सफाई के लिए :

    20 ग्राम काली किशमिस और 1 ग्लास पानी लेकर मिक्सर मे ज्युस बनाकर सुबह खाली पेट 15 दिनों तक सेवन करने से लिवर की सफाई होती है |

    1. किडनी की सफाई के लिए :

    हरा धनिया 40 ग्राम +1 ग्लास पानी मिक्स करके मिक्सर मे पिस करके सुबह खाली पेट लिजिए यह 10 दिनों तक करने से किडनी की सफ़ाई होती है और हमारी किडनी स्वस्थ रहती है।

    1. हार्ट की सफाई के लिए :

    60 ग्राम अलसी को मिक्सर मे पीस लिजिए फिर सुबह शाम खालीपेट 10-10 ग्राम की मात्रा मे सेवन से हमारा हार्ट (हृदय) स्वस्थ रहता है यह उपाय 1 महिने तक करनां है।

    1. दिमाग की सफाई के लिए :

    बादाम 8 और अखरोट 2 नग लेकर रात को 1 ग्लास पानी मे भिगोकर सुबह खाली पेट सेवन करें। यह पूरे 2 महिनों तक करने से दिमाग को पूरी तरह से जहरमुक्त किया जा सकता है।

    1. फेंफडो की सफाई के लिए :

    2 चम्मच शहद + 1 चम्मच नींबू का रस + 1 चम्मच अदरक का रस सभी चीजो को मिक्स करके सुबह खाली पेट सेवन करने से बिड़ी, सिगरेट, गुटखा या तंबाकु से जो नुकसान हमारे फेंफडो को हुआ है उन्हे सुधार होगा और हमारे फेंफडे पुरी तरह से स्वस्थ हो जाते है। यह प्रयोग करीब 20 दिनों तक करना है।

  • Cost to Company (CTC)

    Cost to Company (CTC) is the yearly expenditure that a company spends on an employee. Each employee spend depends on their salary and variable. CTC is calculated by adding salary and additional benefits that an employee receives such as EPF, gratuity, house allowance, food coupons, medical insurance, travel expense and so on. CTC in colloquial terms is the cost an employer bears to hire and sustain its employees.

    Formula: CTC = Gross Salary + Benefits.

    If an employee’s salary is ₹40,000 and the company pays an additional ₹5,000 for their health insurance, the CTC is ₹45,000. Employees may not directly receive the CTC amount as cash.

    1. What is Cost to Company (CTC) and gross salary?Gross salary is the aggregate amount of compensation discharged or spent by an employer or company towards the employment of an employee, before any deductions. The aggregate compensation would be the Cost to Company or CTC to employees.
    2. How is Cost to Company (CTC) calculated in salary?CTC = Direct Benefits + Indirect Benefits + Savings Contributions
      • Direct Benefits: This refers to the employee’s take-home or net salary or the amount paid to the employee monthly by the employer and is subject to government taxes.
      • Indirect Benefits: These refer to the benefits that employees enjoy without paying for them. While the company pays them on behalf of the employee they are added to the employee’s CTC since it is an expense from the company’s point of view.
      • Savings Contribution: This refers to the monetary value added to the employee’s CTC, for eg: EPF.
    3. What does Cost to Company (CTC) include?CTC contains all the monetary and non-monetary amounts spent on an employee. These include:
      • Basic Pay
      • Dearness Allowance (DA)
      • Incentives or bonuses
      • Conveyance allowance
      • House Rent Allowance (HRA)
      • Medical allowance
      • Leave Travel Allowance or Concession (LTA / LTC)
      • Vehicle Allowance
      • Telephone / Mobile Phone Allowance
      • Special Allowance
    4. What is expected Cost to Company (CTC)?Expected CTC is a term used to understand what a candidate is expecting from the organisation in terms of his/her CTC.
    5. Is Cost to Company (CTC) the same as take-home salary?Take-home pay is the net amount of income received by the employee after the deduction of taxes, benefits, and other voluntary contributions from their paycheck.Whereas CTC or Cost to Company is the sum or total amount a company is spending on an employee in a year. It includes the Take Home Salary along-with other benefits and allowances.
    6. What is Cost to Company (CTC) breakup?The CTC is made up of several different components including the take home pay, benefits, allowances, and more. Here are the crucial components of the CTC break-up:
      1. Basic Salary: This is the largest part of the salary structure usually comprising 40-45% of CTC.
      2. HRA: The employer provides house Rent Allowance to the employee to meet accommodation expenses in the city of employment.
      3. Medical Allowance: It is a fixed amount paid by the employer to the employee irrespective of the actual expenses incurred for medical treatment.
      4. Employee Contribution to EPF: It is a contribution of 12% of basic salary along with dearness allowance (if any) and is deposited in the employee’s EPF account.
    7. What are the Cost to Company (CTC) Benefits in India?There are two kinds of benefits, direct and indirect:
      1. Direct Benefits: These are paid to the employee monthly and form part of their take-home pay after deducting income tax plus any additional state taxes.
      2. Indirect Benefits: Benefits (also called Perquisites in legal Indian government terms) that an employee enjoys without paying for them. The company takes care of these however they are added to the monetary value to an employees CTC since it is an expense for the company.
    8. How to make the most of Cost to Company (CTC) being offered?When negotiating, make sure to try and increase the direct benefits component as much as possible. Here are a few ways:
      1. Ask for conveyance allowances rather than a pick-up or drop facility, since this is tax -free.
      2. Ask for food allowance and the option to convert your subsidized food bills to it.
      3. In case the company is offering ESI benefits, ask if the health cover can be converted into into medical reimbursements.
      4. Ask for health cover for family members.
    9. What is the difference between CTC and in hand salary?In-hand salary is the net amount of income received by the employee after the deduction of taxes, benefits, and other voluntary contributions from their paycheck.Whereas CTC or Cost to Company is the sum or total amount a company is spending on an employee in a year. It includes the In-hand salary along-with other benefits and allowances.
  • Is TATA Tiago worth buying?

    I will tell you the genuine experience as i own TIAGO ever since August 28th 2021.

    After scrolling lot many portals, studying the reviews of many already tiago bought car holders and their experience with the tiago.

    I concluded to buy a TIAGO XZ NEW petrol white.

    I booked tiago on August 18th and it got delivered 28th of August.

    On the day of delivery, my tiago was kept in front of showroom which was neatly decorated and cleaned. We just impressed with the design and outlook of tiago which made me happy and smile on the first look.Sales person explained all the functionality of the car and handed over the key to me. It was costed me around 6 lakhs on road with free insurance for one year in offer.

    Its been almost 4 months and we traveled around 1200 kms in these four months. Believe it or not the interiors are so good with awesome dashboard, and the best part is its music system which is powered by Harman Video system and i will tell you its just outstanding.

    When it comes to mileage, on the highways i got 23–24 kmpl and in city it was 16–17 with traffic, which was totally okay for me.

    On the second gear, it was bit lagging and felt it missed faster pick up. Once you revs into the 3rd to 5th gear it was really smoth and the drive becomes heaven with the harman kardon at 100kmph speed. I didn’t notice any vibrations in the cabin, and no noise at all. Automatic ECO mode provided by tata is to save the fuel or for better economy, but car slows down and seems to be low powered. I recommend city driving at every where as it is also giving better mileage and performance.

    Over all am really happy to own a Tiago. I will definitely recommend.