due to the problem of the company s project, there are a lot of visits. I want to build a picture server and ask how to modify the existing method of saving img to submit img and save it to the picture server. related codes private function _ uploa...
for example, after making content reply and comment, A user commented on the article , B user replied to A user s comment, in the previous development (traditional web development), user A s ID was submitted in the form form, but in the case of comp...
whether you can use throw new to throw a http exception when developing api; then it feels very simple. For example, if the user does not log in, the exception will be thrown directly, and the subsequent code will not be executed. customize a http ex...
http: www.chinawutong.com http: beijing.chinawutong.com just like the website above, you can switch directly to the local sub-station on the main station. After the switching, the information and the delivery place are all the places after the s...
I installed carbon, with composer and got an error when using it: fatal error: Class CarbonCarbon not found I installed it using composer require nesbot carbon. The directory structure after installation is as follows: Do you want to set some...
for example, the array is like this $data = [ [ mobile => 1 , price => 100.00 ], [ mobile => 2 , price => 500.00 ], ]; one-dimensional array can be verified di...
learn to use Tp5.1 when looking at other people s code, I think a lot of operations about the database are written into the controller; public function save() { $data = input( post ); $validate = $this->validate($data,"app commo...
as the title: according to the specified ID number, query the previous record and the next record in the database respectively, and then return the ID number of this record. Please tell a small demo thank you. ...
recently used the queue, used the official queue package top-think think-queue , successfully wrote the data into the queue after installation, but went to the consumption queue, that is, when using php think queue:work-- queue xxx, prompted that the c...
foreground code $.ajax({ type: POST , url: __URL__ add , data:{content:data} }); data is an array $data $_REQUEST ajax ...
background administrator login is the login information stored by Session. The interface is not used to separate the management system to provide interface data to the APP Mini Program and the PC side. One interface provides data to multiple clients . ...
1, there are a module and b module respectively, each of which has its own config configuration file 2. I call the function in the b module controller in module a, but this function uses the config configuration of module a 3. How can I make it use ...
I am using ThinkPHP V5.1.18 php on the server is PHP 5.6.36 (cli) Why does http: abc.com public index.php access the Times on the server with the following error: it can be accessed normally on the local computer [4] ErrorException in Helpers.php...
how to deploy ThinkPHP V5.1.18 to the server without public index.php can also be accessed http: abc.com public index.p. now you need to follow the link rule above to access it. I want to remove public index.php and access it like the following l...
problem description tp5.1 workerman runs php server.php according to the manual and does not respond, as shown in the following figure server.php: php7.0.3publicserver.phppushworkerphp server.phpconsole: the boss who has used tp5.1 workerman, ple...
TP5 model queries with the field () method have a field that does not display Commodity table model ** * * * @return think model relation HasMany * public function goodsComment() { return $this->hasMany( Ma...
http: localhost:8888 thinkphp_5.0.20 public index.php 1. The above link can be accessed, but the following link cannot be accessed. The source code just downloaded http: localhost:8888 thinkphp_5.0.20 public index.php index Index index 2. How to...
is_dir (): open_basedir restriction in effect. File ( ) is not within the allowed path (s): ( home www.abc.com public: home www.abc.com : proc : tmp) shouldn t the key File ( ) point to runtime cache, how can it become , I print var_dump (RUNTIME_P...
how to upload jpg format images of d disk under windows to the server in batch via thinkphp ...
create a server directory under the root directory with a server.php in it. $timer_id = swoole_timer_tick(2000, function ($timer_id) { echo "tick-2000ms n"; (new app index controller Test())->index(time()); }); unexpectedly pr...
identify skin conditions, loose dark circles, pimples and so on? is there a mature api for this currently? or Daniel who has the ability to provide such a functional interface really needs this function. facePP is still a little weak ....
for example, the translated result is % 2Fkns% 2Fbrief.aspx% 3Fcurpage% 3D17% 26RecordsPerpage% 3D20% 26QueryID% 3D0% 26 . is there any way to change% 2F to% 2f? ...
problem description how do I get the body height of vue after loading data? the environmental background of the problems and what methods you have tried for a web page embedded in app, ios needs to get the height of the page. related codes moun...
Why after I updated and replaced the aar package, the aar package-related classes used in my code are all popular, not all kinds of clean rebuild clean cache refresh synchronize. now, after each replacement of the aar package, go to the D:Android.grad...
recently I ve been learning that ts, doesn t quite understand this part of global variables. For example, such an expression in the original node global.sql = require( . tools mysql ).sql; this allows you to define a global variable. and how shou...