找回密码
赶紧注册吧

QQ登录

只需一步,快速开始

当前位置: 交友网 > 技能必杀技 > 生活技能分享 >

php如何读取文本内的的 自定义常量?

文章地址: http://www.tflove.com/jineng_sh/a22837.html
文章摘要:
你看看能解决你得问题不? ?php $username = "白瑾浩"; $title = "我的主页"; $fp = fopen('test.html','r'); $content = fread($fp,filesize('test.html')); $content =str_replace('{ username }', php如何访问js对象? - PHP进阶讨论 ,$username,$content); $content =str_replace('{ title }',$title,$c
时间:2013-09-20 22:51来源:未知 作者:admin 点击: 次 《php如何读取文本内的的 自定义常量?

你看看能解决你得问题不?
<?php
$username = "白瑾浩";
$title = "我的主页";
$fp = fopen('test.html','r');
$content  = fread($fp,filesize('test.html'));
$content =str_replace('{ username }',php如何访问js对象? - PHP进阶讨论,$username,$content);
$content =str_replace('{ title }',$title,$content);
echo $content;
?>


test,php如何将表单数据提交给远程服务器.html代码:

<html>
<,phpcmsTag_标签 如何调用浏览次数;head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{ title }</title>
</head>
<body style="color:red,php 中如何给二维数组赋值; background:blue,php cookis创建如何实现代码; " >
你好!欢送你{ username },进入我的web设计;
<,photoshop激活完成后如何打开;/body>
</html> (责任编辑:admin)
分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏0