No input file specified.
になってしまうときの対処方法。
php.ini に下記を書く。
cgi.fix_pathinfo = 1
.htaccess に 下記を書く。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]
以上!
No input file specified.
cgi.fix_pathinfo = 1
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]
SoundPool soundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0); int soundID = soundPool.load(context, R.raw.lalala, 1); soundPool.play(soundID, 1.0F, 1.0F, 1, 0, 1.0F);
// AudioManagerオブジェクトを取得 AudioManager audioManager = (AudioManager)getSystemService(AUDIO_SERVICE); // 着信音モードを取得 int ringerMode = audioManager.getRingerMode(); switch (ringerMode) { case AudioManager.RINGER_MODE_NORMAL: // 通常(音あり) SoundPool soundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0); int soundID = soundPool.load(context, R.raw.lalala, 1); soundPool.play(soundID, 1.0F, 1.0F, 1, 0, 1.0F); break; case AudioManager.RINGER_MODE_SILENT: // サイレントモード(音なし) case AudioManager.RINGER_MODE_VIBRATE: // バイブレートモード(マナーモード?) default: break; }※理解しやすいようにその場で音声データをload()しているが、通常はもっと前段階でload()しておく。
SoundPool soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 0); int soundID = soundPool.load(context, R.raw.lalala, 1); soundPool.play(soundID, 1.0F, 1.0F, 1, 0, 1.0F);
AudioManager audioManager = (AudioManager)getSystemService(AUDIO_SERVICE); int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_RING); int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_RING); float volumeRate = (float)currentVolume / maxVolume; soundPool.play(soundIDs[i], volumeRate, volumeRate, 0, 0, 1.0F);
SoundPool soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 0); // ① int soundID = soundPool.load(context, R.raw.lalala, 1); // ② soundPool.play(soundID, 1.0F, 1.0F, 1, 0, 1.0F); // ③
Map<string, string>map = new HashMap<string, string>(); map.put("name", "のび太"); map.put("sex", "男性");
Map<string, string>map = new HashMap<string, string>(){{ put("name", "のび太"); put("sex", "男性"); }};
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, world!"); } }
<?php $contents = file_get_contents('http://www.yahoo.co.jp/'); $contents = str_replace('yahoo', 'oohay'); echo $contents; ?>さすがに file_get_contents や str_replace をハイライトしてくれないか~( ̄▽ ̄;ヨクバリ
<script type="text/javascript"> <!-- document.write("Hello, "); document.write("world!"); // --> </script>