HI,
I have a class that backup database but when I restore it the farsi charecter can't be shown well and If I backup from it manually from phpmyadmin it doesn't make any problem.So,the question is this;How can backup from database with whole data like tables ,data and the other thing even for farsi or arabic charecter?
I would upload the script if you need it.
Thanks

Look for the character set to while backing up your data.

You mean the class?

Couldn't you just use phpmyadmin to export your database as a .sql file or is there a reason behind having a custom script for the export. Phpmyadmin comes with most servers.

I want it to be automatically and I don't have to get backup every time.
Please help me with that.

I want it to be automatically and I don't have to get backup every time.
Please help me with that.

Then I guess the easiest way to backup automatically is to make a computer generated php file. Simply retrieve the data from the database and add it to a string in the format which will execute as a php file. Hope that helps...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.