php Questions
1
I am working with a database based session driver at the moment, to allow us to store some persistent data across our application,
we create the session like this:
Auth::loginUsingId($user->i...
3
Solved
I'm using CodeIgniter's active record class and the query looks something like this:
$query = $this->db
->get_where('Table', array('field' => $value));
What's the fastest way to get a fi...
Schulze asked 6/12, 2010 at 23:19
4
Solved
Is there a good php syntax highlighter for Emacs? I'm using Emacs 23. I've tried php-mode, but that doesn't do anything. I've tried nXhtml, but that ignores my color theme and reverts to some awful...
2
Solved
3
How should I document an anonymous function when it's passed as an argument? For example:
// Call my_function(), passing 2 arguments.
my_function( 'foo', function() {
// Body of the anon function...
4
I'm trying to access & write my dummy calendar make new functionality of the website but something prevents me from making changes to my dummy calendar.
So far when I try to used this code:
...
Acrodont asked 28/3, 2019 at 12:59
7
Need Help 🛬
Framework - Laravel
Hosting - Hostgator
Problem Statement :- I need to run the 'composer update'. All dependencies required minimun php -v of 5.5.9. I have manualy Upgrade the php...
4
Solved
I'm trying to add a patch route to routes/api.php but I get "route not found" even after trying route:cache. it's registered in route:list and other routes in that scope are working.
this...
3
Solved
I am trying to enable sqlsrv drivers for php8.1 on Ubuntu 20.0. It is not showing the extension in phpinfo().
When trying to check the sqlsrv module with commmand php -m, the output is like this:
...
Quean asked 13/11, 2022 at 15:31
6
When using the PHPMyAdmin Designer tool I can not see relations (lines that connect each foreign key relation). The foreign key attributes get a different icon than the other attributes, however th...
Octodecimo asked 14/7, 2015 at 8:9
3
Solved
I want to lint all the files in the current (recursive) directory while printing out only files that have an error, and assign a variable to 1 to be used after the linting is finished.
#!/bin/bash...
Void asked 3/1, 2018 at 20:30
8
Solved
Let's say, I have an array like this:
$array = [
'car' => [
'BMW' => 'blue',
'toyota' => 'gray'
],
'animal' => [
'cat' => 'orange',
'horse' => 'white'
]
];
Then, I wan...
2
Solved
I have read php's manual page on the 'file_get_contents' function which does not state anything about how 'file_get_contents` behaves with respect to php's file locking. However in the comment sect...
4
Solved
I'm trying to fix a php_curl call on a Windows server (running IIS) that is returning the familiar error "SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routine...
4
Solved
I have a simple set-up of Albums and Images, each album has many images. I can get all the data fine but I want to limit the returned number of images to 3. I have tried passing a closure like so:
...
3
Solved
Summernote wysiwyg editor encodes image files into Base64. Well, this seems handy but I expect the DB to be used quite heavily for a long term. This will cause some issues - searching slow, impleme...
Boyla asked 22/12, 2014 at 10:23
3
Solved
I'm trying to get this query to work in CodeIgniter but it's spitting out an error:
A Database Error Occurred Error
Number: 1096
No tables used
SELECT *
If I put the query directly into...
Froh asked 29/1, 2011 at 19:47
4
Solved
It is possible to generate the following query using CI's query builder methods?
SELECT name
FROM table1 t1
JOIN
(SELECT ID FROM table2 ORDER BY id LIMIT 5) t2
ON t2.id=t1.t2_id
WHERE t1.id&...
Priestley asked 10/1, 2013 at 5:29
1
I`m using PHP on Windows since two weeks. Until now i don´t had any problems what so ever. But now i need to change something in my "php.ini" and i can´t do it because no file is loaded as a config...
6
Solved
I need to replicate memcached to another key value system (couchbase). How can I query the contents of a memcached server to get a list of what is in there so that I can copy it over?
4
Solved
I run into a problem on my code when moved to production because the production server is 32bit while my development machine is 64bit (I'm running Kubuntu 12.04 64bit). My question is. Is it possib...
4
Solved
Spamassasin gives the following flag on my emails:
*
0.8 RDNS_NONE Delivered to internal network by a host with no rDNS
"This test checks to see if there is a reverse DNS entry
for the las...
Messieurs asked 6/9, 2012 at 10:17
3
Solved
script.php
$filename = realpath(sprintf("%s/%s", getcwd(), $argv[1]));
var_dump($filename);
Let's try some things
[/foo/bar/bof] $ php script.php ../foo.txt
string(16) "/foo/bar/foo...
Symbolics asked 11/5, 2014 at 4:41
3
Solved
I find this "code highlighting" very annoying. Can someone show me how to disable it on PHPStrom, and perhaps explain why this happens?
Here's an image of my Js/Jquery code on PHPStorm IDE:
Siphonophore asked 30/6, 2015 at 19:28
7
Solved
In WooCommerce I would like to hide Out of Stock products from Related products in single product pages. Is it possible?
Any track is appreciated.
Rover asked 1/3, 2019 at 20:29
© 2022 - 2024 — McMap. All rights reserved.