質問編集履歴
1
コードを記載しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,52 @@
|
|
1
1
|
最近sentos7にて自作サーバーを立てている者です。
|
2
2
|
レンタルサーバーなどでは正常に動作するphpページが自作環境だとファイルの取得は上手くいくものの、ファイルを作るとなると正常に動作しません。また、何かエラーを吐くこともありません。(パーミションエラーも出ません。)
|
3
3
|
php.iniにて何か設定が必要なのでしょうか?
|
4
|
-
ご教授お願いします
|
4
|
+
ご教授お願いします
|
5
|
+
```php
|
6
|
+
<?php
|
7
|
+
$howmany = $_GET["howmany"];
|
8
|
+
list($puren, $ooba, $cheese, $number, $kimuti) = preg_split("[-]", $howmany);
|
9
|
+
$nextordernumber ="./ordernumber/".$number;
|
10
|
+
$trueorfalse=touch($nextordernumber);
|
11
|
+
$hour = date("H");
|
12
|
+
$minute = date("i");
|
13
|
+
if ($minute < 30){
|
14
|
+
$minutes ='00';
|
15
|
+
}else{
|
16
|
+
$minutes ='30';
|
17
|
+
}
|
18
|
+
echo '<html>~略~</html>';
|
19
|
+
|
20
|
+
$orderfile = "./orders/".$number.".txt";
|
21
|
+
$cashfile = "./cash/".$number.".txt";
|
22
|
+
$cashingfile = "./cashing/".$number.".txt";
|
23
|
+
$presentfile = "./presenter/".$number.".txt";
|
24
|
+
|
25
|
+
$timesale = './halfhour/'.$hour.''.$minutes.'/'.$number.'.txt';
|
26
|
+
$makingfile =touch($orderfile);
|
27
|
+
$current = file_get_contents($orderfile);
|
28
|
+
$current= 'オーダー'.$number.'<br/>プレーン'.$puren.'<br/>大葉'.$ooba.'<br/>チーズ'.$cheese.'<br/>キムチ'.$kimuti.'<br/><hr width="100%" size="4" color="black">';
|
29
|
+
|
30
|
+
|
31
|
+
$currentcash= 'オーダー'.$number.'<br/>プレーン'.$puren.'<br/>大葉'.$ooba.'<br/>チーズ'.$cheese.'<br/>キムチ'.$kimuti.'<br/>
|
32
|
+
<input type="button" onclick="startcash'.$number.'()" class="square_btn" value="会計NO.'.$number.'"><script>
|
33
|
+
function startcash'.$number.'(){
|
34
|
+
location.href="cashing.php?value='.$number.'";
|
35
|
+
}
|
36
|
+
</script><hr width="100%" size="4" color="black">';
|
37
|
+
|
38
|
+
$presenters= '<style>a {color: black;text-decoration: none;}</style><a href="./presentserve.php?value='.$number.'"><div>オーダー'.$number.'<br/>プレーン'.$puren.'<br/>大葉'.$ooba.'<br/>チーズ'.$cheese.'<br/>キムチ'.$kimuti.'<br/>
|
39
|
+
<hr width="100%" size="4" color="black">
|
40
|
+
</div></a>';
|
41
|
+
|
42
|
+
$timedetail= ''.$puren.'-'.$ooba.'-'.$cheese.'-'.$kimuti.'';
|
43
|
+
|
44
|
+
$currentcasher= ''.$number.'-'.$puren.'-'.$ooba.'-'.$cheese.'-'.$kimuti.'';
|
45
|
+
file_put_contents($orderfile, $current);
|
46
|
+
file_put_contents($cashfile, $currentcash);
|
47
|
+
file_put_contents($cashingfile, $currentcasher);
|
48
|
+
file_put_contents($presentfile, $presenters);
|
49
|
+
file_put_contents($timesale, $timedetail);
|
50
|
+
|
51
|
+
?>
|
52
|
+
```
|