-
How to break down the json, obtained from curl?
I use php curl to retrieve json data from http , and then I use foreach array to display all the data , but when I encounter a problem, how to break it down? what kind of data does the counterparty need to give me? for example, he has a total of 30 yu...
-
How does ubuntu cut the php version?
I found it like this
update-alternatives --set php usr bin php7.2
the original version is 7. 0 installed. I want to cut the past , but I found that etc php 7.2 is also available here. which is the right way? what else should we pay attention to?! ...
-
Php grabs a word of the string, does not replace it, and adds
assume that the string is
abc@gmail.com
Can realize the name of the string before catching @? (abc) no matter how long.
Can automatically add a before each string @? It will not replace any Kansi.
abc
@gmail.com
...
-
After the php curl request, use html to print out the check, how can I print it on this end?
I first send json to the counterpart. If the counterpart checks OK, it will return json,. I can use json_decode ($result); ) to catch , but now that my counterpart json, sends back to HTML, how can I print this value?!
...
-
Php curl is written in the same function, but it is requested at the same time.
I write curl on a function like this:
function httpRequest ($api, $data_string)
{
$ch = curl_init($api);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_st...
-
Apache500, log: End of script output before headers: xxx.php
the php7.2.10+apache2.4, used by the newly installed phpstudy2018, in the home computer will report 500 when executing all php files
error log:
[Thu May 05 17:15:20.696222 2016] [core:error] [pid 21132:tid 1724] [client 127.0.0.1:60080] End of scr...
-
Add foreach loop to php daily system!
this is a php complete Japanese system
class Calendar {
public function __construct(){
$this->naviHref = htmlentities($_SERVER[ PHP_SELF ]);
}
********************* PROPERTY ********************
...
-
Using jquery to control checkbox? The premise is that when the php value is set.
this situation is a bit complicated. the front end shows: first of all, I have a list that will have the member s name plus checkbox (follow) on a date I will display the name of the member with the last day PS:. My form does not have a subscriptio...
-
Write a copy of api for ios, but at first you can't catch the file size?.
I wrote an upload photo api for ios to use:
if($_FILES[ cover ][ size ] != ){
do....
}else{
echo error! ;
}
The counterpart bit is also cover and post matching , but it just happens to be error! can t catch the file size of th...
-
How do php users limit the size of uploaded photos?
check the php upload photos can I catch the height of the photos uploaded by the user? in this way I can restrict the upload px, for example, can only upload photos of the px below 800x600
$_FILES[ xxx ][ size ]
I can know size in this way, but...
-
Mysqli_fetch_array () expects parameter 1 to be mysqli_result error
$con = new mysqli($servername, $username, $password, $mysqldb);
$fineLog = $con->query(
"SELECT * FROM `error_report` "
);
while ($row = mysqli_fetch_array($fineLog)) {
echo $row[ errno ];
}
I don t know why this error occurred
my...
-
Function of php: after the value is processed by function, then spit back the function display, how to do it?
hypothetical
function number($id){
....
sizeof($array);
}
<?= number(id);?>
when number is complete, there will be a value how can I write to my function so that it will be printed ...
-
How to use php's imgcompress?
http: www.vephp.com jiaochen.
I did see this . He wrote on it, you can check the video , but my upload code is like this .
require imgcompress.class.phpclass?
...
-
How does php foreach add up the value? The value of the third and fourth closures!
135.....
I want to calculate the most expensive "price " * "amount " can be multiplied normally, but there will be a problem with the sum
...
-
Calculate the value in the position and add up?
I use the database interaction between curl and my counterpart to give me array where a bit value called available, is a Boolean value the counterpart gives me 10 years in which 4 available is ture how can I figure out "4 " at this point?
for...
-
How to determine the year, month and day of the string? (question update)
$rangeY = range(1950, 2015);
$rangeM = range(1, 12);
$rangeD = range(1, 31);
<select class="profile_birthday_select" name="yy" id="yy">
<?foreach ($rangeY as $key) {?>
...
-
Failed to get access token from facebook?
login.php:
require_once vendor autoload.php ;
$fb = new Facebook Facebook([
app_id => xxx ,
app_secret => xxx ,
default_graph_version => v2.8 ,
]);
$helper = $fb->getRedirectLoginHelper();
...
-
How to obtain the facebook image? Or even save it to this machine?
about facebook login!
print out getPicture () in this format:
{"height":50,"is_silhouette":false,"url":"https: lookaside.facebook.com platform profilepic ?asid=xxx&height=50&width=50&ext=...
-
After being combined to form a thin film, but the film will be shaped, how to have the object-fit:cover effect of css?
I have set the imagecreatetruecolor to be 300x300 , but I have set it to (400,300). I forced it to be 200 , but the film produced by me will be flattened (because the original temperature is 300, I set it to 200, so it will be flattened) how to achiev...
-
What is the principle of the relational number table? There is a query, but the query does not show?
assume that there is an item count table and use an item table when I want to make an item list I want to show an item table the behavior of an item table is to add this item to the goods store but I am shopping. How can I show it? I think of seve...