## MimeType handling
## -------------------
##
## Use the "Content-Type" extended attribute to obtain mime type if
## possible
##
mimetype.use-xattr = "disable"
дело в том что на телефоне (Android) полностью не отображает результат
но мне кажется там библиотеки не подключены
что делать если необходимо их подключить?
в php.ini , спойлер который в начале темы, такие вещи как
[sqlite]
[sqlite3]
[Pcre]
и [PDO]
за комментированы
вопрос: что нужно расскоментировать и на какие файлы (путь к ним) должны указывать раскомменченные строчки?
Fatal error: Call to undefined function sqlite_open()
для Андроида разработана программа sl4a для запуска скриптов php
рабочая папка /mnt/sdcard/com.irontec.phpforan droid/extras/php
в ней находятся два файла Android.php
// Copyright (C) 2010 Irontec SL
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www[dot]apache[dot]org/licenses/LICENSE-2[dot]0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
// @author : Ivan Mosquera Paulo <ivan@irontec.com>
class Android
{
private $_socket;
private $_id;
public function __construct($addr = null)
{
if (is_null($addr)) {
$addr = getenv('AP_HOST');
}
$this->_socket = socket_create(AF_INET, SOCK_STREAM, 6); // bionic doesnt support getprotobyname('tcp')
socket_connect($this->_socket, gethostbyname($addr), getenv('AP_PORT'));
$this->_id = 0;
$this->_authenticate(getenv('AP_HANDSHAKE'));
}
public function rpc($method, $args)
{
$data = array(
'id'=>$this->_id,
'method'=>$method,
'params'=>$args
);
$request = json_encode($data);
$request .= "\n";
$sent = socket_write($this->_socket, $request, strlen($request));
$response = socket_read($this->_socket, 1024, PHP_NORMAL_READ) or die("Could not read input\n");
$this->_id++;
$result = json_decode($response);
[intl]
;intl.default_locale =
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
;intl.error_level = E_WARNING
;PCRE library recursion limit.
;Please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash PHP (due to reaching the
;stack size limit imposed by the Operating System).
; http://php.net/pcre.recursion-limit
;pcre.recursion_limit=100000
[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling define_syslog_variables().
; http://php.net/define-syslog-variables
define_syslog_variables = Off
подскажите пожалуйста, что можно сделать чтоб подключиться к SQLite ?
хотелось просто изменить синтаксис регулярки чтобы не показывать лишнее, понятно что дополнительными строчками можно много что сделать,
а на счет регулярки /(\d+)/ - не получится - цифры в тексте другие присутствуют, нужны цифры которые между словами "на" и "страницу", которые в свою очередь идут после слова "страницу"