Web 开发例子

Web 开发例子,第1张

概述Web 开发例子

下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。

内存溢出小编现在分享给大家,也给大家做个参考。

file = 'index.lua'if headers.uri ~= '/' then file = headers.uri endlocal fexists = file_exists(file)if not fexists then	-- try stat file.lua	fexists = file_exists(file .. '.lua')	if fexists then		file = file .. '.lua'	endendif fexists then	if file:find('.CSS') or file:find('.Js') or file:find('Font') or file:find('.ico') or file:find('images') then		header('http/1.1 200 OK')		header('Cache-Control: max-age=864000')		sendfile(file)	else		header({'Expires:Thu,19 Nov 1981 08:52:00 GMT','Pragma:no-cache'})		dofile(file)	endelse	header('http/1.1 404 Not Found')	dIE('file Not Found!')enddIE()

以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

总结

以上是内存溢出为你收集整理的Web 开发例子全部内容,希望文章能够帮你解决Web 开发例子所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1278359.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存