I have an apache server on a Linux device.
我在Linux设备上有一个apache服务器。
I have two PHP scripts.
我有两个PHP脚本。
I want to make one of them only executable from the other one.
我想让其中一个只能从另一个执行。
1 个解决方案
#1
-1
I have two PHP scripts.
我有两个PHP脚本。
I want to make one of them only executable from the other one.
我想让其中一个只能从另一个执行。
Delete the former, and write it as a subroutine in the latter.
(Or, maybe better, first copy the former into the latter, then delete it.) ;-)
删除前者,并将其作为子程序写入后者。 (或者,也许更好,首先将前者复制到后者,然后将其删除。);-)
#1
-1
I have two PHP scripts.
我有两个PHP脚本。
I want to make one of them only executable from the other one.
我想让其中一个只能从另一个执行。
Delete the former, and write it as a subroutine in the latter.
(Or, maybe better, first copy the former into the latter, then delete it.) ;-)
删除前者,并将其作为子程序写入后者。 (或者,也许更好,首先将前者复制到后者,然后将其删除。);-)