* @param array $bindings * @param bool $useReadPdo * @return array */ public function select($query, $bindings = [], $useReadPdo = true) { return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; } // For select statements, we'll simply execute the query and return an array // of the database result set. Each element in the array will be a single // row from the database table, and will either be an array or objects. $statement = $this->prepared($this->getPdoForSelect($useReadPdo) ->prepare($query)); $this->bindValues($statement, $this->prepareBindings($bindings)); $statement->execute(); return $statement->fetchAll(); }); } /** * Run a select statement against the database and returns a generator. * * @param string $query * @param array $bindings * @param bool $useReadPdo * @return \Generator */ public function cursor($query, $bindings = [], $useReadPdo = true) { $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; }
"Allowed memory size of 134217728 bytes exhausted (tried to allocate 4019904 bytes)"
Key | Value |
time | "closed"
|
Key | Value |
REDIRECT_HTTPS | "on"
|
REDIRECT_SSL_TLS_SNI | "www.tendernotices.lk"
|
REDIRECT_STATUS | "200"
|
HTTPS | "on"
|
SSL_TLS_SNI | "www.tendernotices.lk"
|
HTTP_ACCEPT | "*/*"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_HOST | "www.tendernotices.lk"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
SERVER_SIGNATURE | "<address>Apache/2.4.41 (Ubuntu) Server at www.tendernotices.lk Port 443</address>\n"
|
SERVER_SOFTWARE | "Apache/2.4.41 (Ubuntu)"
|
SERVER_NAME | "www.tendernotices.lk"
|
SERVER_ADDR | "162.0.231.194"
|
SERVER_PORT | "443"
|
REMOTE_ADDR | "44.210.86.29"
|
DOCUMENT_ROOT | "/var/www/html/public"
|
REQUEST_SCHEME | "https"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/var/www/html/public"
|
SERVER_ADMIN | "admin@tendernotices.lk"
|
SCRIPT_FILENAME | "/var/www/html/public/index.php"
|
REMOTE_PORT | "48046"
|
REDIRECT_URL | "/tenders-sri-lanka/bed_sheets_&_pillow_cases"
|
REDIRECT_QUERY_STRING | "time=closed"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "time=closed"
|
REQUEST_URI | "/tenders-sri-lanka/bed_sheets_&_pillow_cases?time=closed"
|
SCRIPT_NAME | "/index.php"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1711720058.409
|
REQUEST_TIME | 1711720058
|