我有一个php
应用程序,我想从excel读取数据,插入数据库,然后为特定用户生成pdf报告.我在互联网上搜索了很多,但没有具体说明这两件事.如果有人可以提供教程或其他东西,那将是一个真正的帮助.
我有一个基于 php 和 mysql 的应用程序,对于我的一些客户来说,它托管在他们组织的本地主机上,而对于其他客户来说,它托管在 Web 服务器上。我关心的是如何保护本地主机上的代码?我只是不希望任何具有一点编程知识的人能够查看我的应用程序代码。事实上,代码将位于组织一台机器上充当本地服务器的 www/public_html 文件夹中的 localhost 上,这一事实让我对我的代码被盗感到偏执。
谁能建议一些技术来实现这一目标?密码保护?或其他最佳实践?
我会要求社区成员不要立即关闭这个问题,因为它是含糊不清或断章取义的。我非常需要一些专家的建议。
我正在使用这个:
$t = "#hashtag #goodhash_tag united states #l33t this";
$queryVariable = "";
if(preg_match_all('/(^|\s)(#\w+)/', $t, $arrHashTags) > 0){
array_filter($arrHashTags);
array_unique($arrHashTags);
$count = count($arrHashTags[2]);
if($count > 1){
$counter = 1;
foreach ($arrHashTags[2] as $strHashTag) {
if (preg_match('/#\d*[a-z_]+/i', $strHashTag)) {
if($counter == $count){
$queryVariable .= $strHashTag;
} else{
$queryVariable .= $strHashTag." and ";
}
$newTest = str_replace($arrHashTags[2],"", $t);
}
$counter = $counter + 1;
}
}
}
echo $queryVariable."<br>"; // this is list of tags
echo $newTest; // this is the remaining text …
Run Code Online (Sandbox Code Playgroud)