search
HomeBackend DevelopmentPHP Tutorialphp文件用DW编辑,电脑突然断电,重启后文件乱码 怎么办?

在本地php,用DW打开调试PHP文件,电脑突然断电,重新开机以后,php乱码,用notepad打开是这样,DW直接空白,这个怎么办? 有什么办法可以恢复吗?


回复讨论(解决方案)

这个得问比尔盖茨

不过比尔盖茨会对你说:我已经给了磁盘清理程序,你不用那怪谁呢?为了访问迅速,临时文件都保存在虚拟的驱动器中了

不过比尔盖茨会对你说:我已经给了磁盘清理程序,你不用那怪谁呢?为了访问迅速,临时文件都保存在虚拟的驱动器中了



啥意思呢 没看懂

没希望了,放弃吧。重新写过,权当磨练。

我写一个PHP,保存刷页面,保存刷页面,都好好的。突然停电,开机打开,文件全部丢失。。。
以后还是老老实实,用DW调好HTML后,就换记事本吧。

是的 无解...重新苦B的敲键盘吧

可怜的楼主,我也遇到过这种情况,文件莫名其妙丢失了。

笔记本是自带不间断电源的。

有些软件有自动备份功能的,不知道DW有木了。 编辑的时候最好是要经常ctrl+s一下了

好像没救了,大侠,请重新来过!

有些软件有自动备份功能的,不知道DW有木了。 编辑的时候最好是要经常ctrl+s一下了


这个问题,是DW的一个bug。我中间保存过很多次,也执行过很多次。断电,就突然全部清掉了。跟经常ctrl+s无关。

突然有个想法,不知道可行不可行。就是你把保存文件的目录设置成自动同步的。自动同步的服务挺多的,比如微软的SkyDrive,百度也有。不过会消耗一些系统资源。

突然有个想法,不知道可行不可行。就是你把保存文件的目录设置成自动同步的。自动同步的服务挺多的,比如微软的SkyDrive,百度也有。不过会消耗一些系统资源。


不过断电之后应该是不可以马上联网启动电脑,否则则一启动马上就会开始同步出错的文件了。那样就悲剧了。
不过Dropbox可以查看历史版本,这个实在是太逆天了,不知道历史版本占不占用空间。另外操作系统本身也提供系统还原的功能,就是可以查看某些文件以前的版本,但是一般盗版的操作系统默认好像都是把这个关了的。另外这个好像只能在单个磁盘上启用,好像是不能针对某个文件夹。

Dropbox之前被墙过,但是最近被解禁了,不知道什么时候又会被墙了。
https://www.dropbox.com/

敲了个关键程序,从写到改,用了一天,突然它乱码了,我重写

突然断电。我的是一片空白 
搜到答案,苦恼中.....

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Dependency Injection in PHP: Avoiding Common PitfallsDependency Injection in PHP: Avoiding Common PitfallsMay 16, 2025 am 12:17 AM

DependencyInjection(DI)inPHPenhancescodeflexibilityandtestabilitybydecouplingdependencycreationfromusage.ToimplementDIeffectively:1)UseDIcontainersjudiciouslytoavoidover-engineering.2)Avoidconstructoroverloadbylimitingdependenciestothreeorfour.3)Adhe

How to Speed Up Your PHP Website: Performance TuningHow to Speed Up Your PHP Website: Performance TuningMay 16, 2025 am 12:12 AM

ToimproveyourPHPwebsite'sperformance,usethesestrategies:1)ImplementopcodecachingwithOPcachetospeedupscriptinterpretation.2)Optimizedatabasequeriesbyselectingonlynecessaryfields.3)UsecachingsystemslikeRedisorMemcachedtoreducedatabaseload.4)Applyasynch

Sending Mass Emails with PHP: Is it Possible?Sending Mass Emails with PHP: Is it Possible?May 16, 2025 am 12:10 AM

Yes,itispossibletosendmassemailswithPHP.1)UselibrarieslikePHPMailerorSwiftMailerforefficientemailsending.2)Implementdelaysbetweenemailstoavoidspamflags.3)Personalizeemailsusingdynamiccontenttoimproveengagement.4)UsequeuesystemslikeRabbitMQorRedisforb

What is the purpose of Dependency Injection in PHP?What is the purpose of Dependency Injection in PHP?May 16, 2025 am 12:10 AM

DependencyInjection(DI)inPHPisadesignpatternthatachievesInversionofControl(IoC)byallowingdependenciestobeinjectedintoclasses,enhancingmodularity,testability,andflexibility.DIdecouplesclassesfromspecificimplementations,makingcodemoremanageableandadapt

How to send an email using PHP?How to send an email using PHP?May 16, 2025 am 12:03 AM

The best ways to send emails using PHP include: 1. Use PHP's mail() function to basic sending; 2. Use PHPMailer library to send more complex HTML mail; 3. Use transactional mail services such as SendGrid to improve reliability and analysis capabilities. With these methods, you can ensure that emails not only reach the inbox, but also attract recipients.

How to calculate the total number of elements in a PHP multidimensional array?How to calculate the total number of elements in a PHP multidimensional array?May 15, 2025 pm 09:00 PM

Calculating the total number of elements in a PHP multidimensional array can be done using recursive or iterative methods. 1. The recursive method counts by traversing the array and recursively processing nested arrays. 2. The iterative method uses the stack to simulate recursion to avoid depth problems. 3. The array_walk_recursive function can also be implemented, but it requires manual counting.

What are the characteristics of do-while loops in PHP?What are the characteristics of do-while loops in PHP?May 15, 2025 pm 08:57 PM

In PHP, the characteristic of a do-while loop is to ensure that the loop body is executed at least once, and then decide whether to continue the loop based on the conditions. 1) It executes the loop body before conditional checking, suitable for scenarios where operations need to be performed at least once, such as user input verification and menu systems. 2) However, the syntax of the do-while loop can cause confusion among newbies and may add unnecessary performance overhead.

How to hash strings in PHP?How to hash strings in PHP?May 15, 2025 pm 08:54 PM

Efficient hashing strings in PHP can use the following methods: 1. Use the md5 function for fast hashing, but is not suitable for password storage. 2. Use the sha256 function to improve security. 3. Use the password_hash function to process passwords to provide the highest security and convenience.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool