Php 当magic_在Apache Xampp上引用_gpc时关闭

Php 当magic_在Apache Xampp上引用_gpc时关闭,php,windows,apache,xampp,Php,Windows,Apache,Xampp,我知道这个问题有很多可能的答案,但这发生在我身上,仍然没有解决,所以我想知道为什么。如果这个问题太宽泛,我很抱歉 我正在使用Win10和XAMPP控制面板V3.2.2。没有Skype或任何端口80应用程序正在运行。要停止sql注入,我只需在php.ini文件中打开magic_quotes_gpc并重新启动服务器,但它没有运行,而是显示错误,Windows错误消息显示“Apache HTTP停止工作”。当我关闭它时,它会恢复正常,XAMPP正在运行。我想在不关闭XAMPP的情况下修改php.ini

我知道这个问题有很多可能的答案,但这发生在我身上,仍然没有解决,所以我想知道为什么。如果这个问题太宽泛,我很抱歉

我正在使用Win10和XAMPP控制面板V3.2.2。没有Skype或任何端口80应用程序正在运行。要停止sql注入,我只需在php.ini文件中打开magic_quotes_gpc并重新启动服务器,但它没有运行,而是显示错误,Windows错误消息显示“Apache HTTP停止工作”。当我关闭它时,它会恢复正常,XAMPP正在运行。我想在不关闭XAMPP的情况下修改php.ini文件。需要帮忙吗

XAMPP中出现错误:

12:10:15 AM  [Apache]   Error: Apache shutdown unexpectedly.
12:10:15 AM  [Apache]   This may be due to a blocked port, missing dependencies, 
12:10:15 AM  [Apache]   improper privileges, a crash, or a shutdown by another method.
12:10:15 AM  [Apache]   Press the Logs button to view error logs and check
12:10:15 AM  [Apache]   the Windows Event Viewer for more clues
12:10:15 AM  [Apache]   If you need more help, copy and post this
12:10:15 AM  [Apache]   entire log window on the forums
看见PHP 5.4中删除了
magic\u quotes\u gpc
。那里的信息有点过时,但防止SQL注入的其他解决方案是使用PDO或mysqli准备好的查询。请参阅。。。PHP 5.4中删除了
magic\u quotes\u gpc
。那里的信息有点过时,但防止SQL注入的其他解决方案是使用PDO或mysqli准备好的查询。