有人可以帮助我将这个PHP代码转换为提示“我的文本”的javascript提示代码吗? [英] Can someone help me transform this PHP code into a javascript prompt code that prompts for "my text?"

查看:70
本文介绍了有人可以帮助我将这个PHP代码转换为提示“我的文本”的javascript提示代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这是我网站上禁止系统的代码:

So here's the code for a ban system on my website:

<?php
$f = fopen(".htaccess","a+");
fwrite($f,"my text");
fclose($f);
?>

我想要的是提示输入IP地址信息 (我的文字) 添加到.htaccess文件,因此将用户添加到我的htaccess文件更容易。 所以我想知道如何做这个

What I would like is for it to prompt for the IP address information ("my text") to add to the .htaccess file, so it's easier to add users to my htaccess file. So I was wondering how I would go about doing this?

推荐答案

f = fopen ( 。htaccess < span class =code-string> a +);
fwrite(
f = fopen(".htaccess","a+"); fwrite(


f, my text);
fclose(
f,"my text"); fclose(


f);
?>

我想要的是提示输入IP地址信息 (我的文字) 添加到.htaccess文件,因此将用户添加到我的htaccess文件更容易。 所以我想知道如何做这个

What I would like is for it to prompt for the IP address information ("my text") to add to the .htaccess file, so it's easier to add users to my htaccess file. So I was wondering how I would go about doing this?


这篇关于有人可以帮助我将这个PHP代码转换为提示“我的文本”的javascript提示代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆