var testObject = { 'one': 1, 'two': 2, 'three': 3 };
// Put the object into storage
localStorage.setItem('testObject', JSON.stringify(testObject));
// Retrieve the object from storage
var retrievedObject = localStorage.getItem('testObject');
console.log('retrievedObject: ', JSON.parse(retrievedObject));
<code>
Типа того?
ffmpeg version N-63131-gbc2e39c-syslint Copyright (c) 2000-2014 the FFmpeg developers
built on May 14 2014 18:00:39 with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
libavutil 52. 83.100 / 52. 83.100
libavcodec 55. 61.101 / 55. 61.101
libavformat 55. 37.102 / 55. 37.102
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 5.100 / 4. 5.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
[concat @ 0x25d1d00] Estimating duration from bitrate, this may be inaccurate
Input #0, concat, from 'test.txt':
Duration: 00:00:00.00, start: 0.000000, bitrate: 1515 kb/s
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1395 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc
Stream #0:1: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s
final.mpeg: Permission denied
<code>
<?php
$output = exec('ffmpeg -f concat -i video -c copy final.mpeg');
echo "<pre>$output</pre>";
?>
<code>
<?php
session_start();
?>
<?php
if(isset($_SESSION["session_username"])){
// вывод "Session is set"; // в целях проверки
header("Location: intropage.php");
}
if(isset($_POST["login"])){
if(!empty($_POST['username']) && !empty($_POST['password'])) {
$username = htmlspecialchars($_POST['username']);
$password = htmlspecialchars($_POST['password']);
$query = mysql_query("SELECT * FROM usertbl WHERE username='".$username."' AND password='".$password."'");
if (!$query) {
$message = 'Неверный запрос: ' . mysql_error() . "\n";
$message .= 'Запрос целиком: ' . $query;
die($message);
}
$numrows=mysql_num_rows($query);
if($numrows!=0)
{
while($row=mysql_fetch_assoc($query))
{
$dbusername=$row['username'];
$dbpassword=$row['password'];
}
if($username == $dbusername && $password == $dbpassword)
{
// старое место расположения
// session_start();
$_SESSION['session_username']=$username;
/* Перенаправление браузера */
header("Location: intropage.php");
}
} else {
// $message = "Invalid username or password!";
echo "Invalid username or password!";
}
} else {
$message = "All fields are required!";
}
}
?>
<code>
if(!empty($_POST['username']) && !empty($_POST['password'])) {
$username=htmlspecialchars($_POST['username']);
$password=htmlspecialchars($_POST['password']);
$query =mysql_query("SELECT * FROM usertbl WHERE username='".$username."' AND password='".$password."'");
$numrows=mysql_num_rows($query);
if($numrows!=0)
<code>