The straightforward way to earn money in PetVille is to clean and feed your pet. You can do the same for other people's pets, sell items, and play games over at the arcade. There's also one more method that can net you huge amounts of cash, though it doesn't always work.
Open PetVille and stay inside your own house. To pull this off, install Cheat Engine 5.5. Once it's installed, click on "Process" and select the web browser you're using. Then type the amount of money you currently have into the "Value" box and change the "Value Type" to Double. Click "First Scan."
In the list on the left side of the screen, select all the results that appear; they should move to another box at the bottom. Tick the boxes next to each entry, then click the numbers below "Value" and change them to whatever amount you want. Make sure you do this for every entry.
Head back to PetVille and visit a friend's house. Do something that earns money, like cleaning or washing their pet, and your balance should shoot up to the amount you chose.
Warning: There's a catch. Your computer may prompt you to refresh the page. If you do, the cheat won't be saved, and the next time you log in your money will return to its original amount. I'm not certain how to prevent this, but there is apparently a way around it.