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