LoginSignup
4
4

More than 5 years have passed since last update.

日付を指定してCSVを取得する方法。

Last updated at Posted at 2013-09-04
<script>
       $(function(){
        $('#table').csv2table('.../files/20130904.csv');
     });
</script>

上記script内の20130904に
下記のPHPの $csv を代入して毎日の日付を取得してcsvファイルを読み込んでcsv2tableで表示させたいのですがうまくいきません。
どうすればscript内にPHPをかけるのでしょうか?

<!doctype html>
<html lang="ja">
<head>
<?php
$sD = date('Ymd');
@mkdir($sD[0]);
$csv = (".../files/$sD.csv");
</head>
</html>

宜しくお願い致します。

4
4
12

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4