Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webhook-test-zsy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张思远
webhook-test-zsy
Commits
7973d638
Commit
7973d638
authored
Dec 21, 2023
by
张思远
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
a4bb6cbb
Pipeline
#175
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
webhook.php
webhook.php
+0
-32
No files found.
webhook.php
View file @
7973d638
...
@@ -41,35 +41,3 @@ if ($stderr) {
...
@@ -41,35 +41,3 @@ if ($stderr) {
}
}
echo
'</dl>'
;
echo
'</dl>'
;
echo
'linux远程:<br>'
;
$cmd
=
'bash t1.sh'
;
$descriptorspec
=
[
[
"pipe"
,
"r"
],
// stdin
[
"pipe"
,
"w"
],
// stdout
[
"pipe"
,
"w"
],
// stderr
];
$proc
=
proc_open
(
$cmd
,
$descriptorspec
,
$pipes
,
null
,
null
);
if
(
$proc
==
false
)
{
// do sth with HTTP response
}
else
{
$stdout
=
stream_get_contents
(
$pipes
[
1
]);
fclose
(
$pipes
[
1
]);
$stderr
=
stream_get_contents
(
$pipes
[
2
]);
fclose
(
$pipes
[
2
]);
$status
=
proc_close
(
$proc
);
// 释放proc
}
echo
'<dl>'
;
echo
'<dt>输出</dt>'
;
echo
'<dd><pre>'
.
$stdout
.
'</pre></dd>'
;
if
(
$stderr
)
{
// echo '<dt>出错了!</dt>';
echo
'<dd><pre>'
.
$stderr
.
'</pre></dd>'
;
}
echo
'</dl>'
;
exit
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment