René's URL Explorer Experiment


Title: PHP: shell_exec - Manual

X Title: PHP: shell_exec - Manual

Open Graph Description: Execute command via shell and return the complete output as a string

X Description: Execute command via shell and return the complete output as a string

X: @official_php

direct link

Domain: www.php.net

DescriptionExecute command via shell and return the complete output as a string
twitter:cardsummary_large_image
twitter:creator@official_php
twitter:image:srchttps://www.php.net/images/meta-image.png
Nonehttps://www.php.net/images/meta-image.png
og:imagehttps://www.php.net/images/meta-image.png

Links:

update page nowhttps://www.php.net/x-myracloud-5958a2bbbed300a9b9ac631223924e0b/1768538750.013
https://www.php.net/
Downloads https://www.php.net/downloads.php
Documentation https://www.php.net/docs.php
Get Involved https://www.php.net/get-involved.php
Help https://www.php.net/support.php
https://www.php.net/releases/8.5/index.php
https://www.php.net/lookup-form.php
https://www.php.net/menu.php
PHP 8.5.2 Released!https://www.php.net/index.php#2026-01-15-3
Getting Startedhttps://www.php.net/manual/en/getting-started.php
Introductionhttps://www.php.net/manual/en/introduction.php
A simple tutorialhttps://www.php.net/manual/en/tutorial.php
Language Referencehttps://www.php.net/manual/en/langref.php
Basic syntaxhttps://www.php.net/manual/en/language.basic-syntax.php
Typeshttps://www.php.net/manual/en/language.types.php
Variableshttps://www.php.net/manual/en/language.variables.php
Constantshttps://www.php.net/manual/en/language.constants.php
Expressionshttps://www.php.net/manual/en/language.expressions.php
Operatorshttps://www.php.net/manual/en/language.operators.php
Control Structureshttps://www.php.net/manual/en/language.control-structures.php
Functionshttps://www.php.net/manual/en/language.functions.php
Classes and Objectshttps://www.php.net/manual/en/language.oop5.php
Namespaceshttps://www.php.net/manual/en/language.namespaces.php
Enumerationshttps://www.php.net/manual/en/language.enumerations.php
Errorshttps://www.php.net/manual/en/language.errors.php
Exceptionshttps://www.php.net/manual/en/language.exceptions.php
Fibershttps://www.php.net/manual/en/language.fibers.php
Generatorshttps://www.php.net/manual/en/language.generators.php
Attributeshttps://www.php.net/manual/en/language.attributes.php
References Explainedhttps://www.php.net/manual/en/language.references.php
Predefined Variableshttps://www.php.net/manual/en/reserved.variables.php
Predefined Exceptionshttps://www.php.net/manual/en/reserved.exceptions.php
Predefined Interfaces and Classeshttps://www.php.net/manual/en/reserved.interfaces.php
Predefined Attributeshttps://www.php.net/manual/en/reserved.attributes.php
Context options and parametershttps://www.php.net/manual/en/context.php
Supported Protocols and Wrappershttps://www.php.net/manual/en/wrappers.php
Securityhttps://www.php.net/manual/en/security.php
Introductionhttps://www.php.net/manual/en/security.intro.php
General considerationshttps://www.php.net/manual/en/security.general.php
Installed as CGI binaryhttps://www.php.net/manual/en/security.cgi-bin.php
Installed as an Apache modulehttps://www.php.net/manual/en/security.apache.php
Session Securityhttps://www.php.net/manual/en/security.sessions.php
Filesystem Securityhttps://www.php.net/manual/en/security.filesystem.php
Database Securityhttps://www.php.net/manual/en/security.database.php
Error Reportinghttps://www.php.net/manual/en/security.errors.php
User Submitted Datahttps://www.php.net/manual/en/security.variables.php
Hiding PHPhttps://www.php.net/manual/en/security.hiding.php
Keeping Currenthttps://www.php.net/manual/en/security.current.php
Featureshttps://www.php.net/manual/en/features.php
HTTP authentication with PHPhttps://www.php.net/manual/en/features.http-auth.php
Cookieshttps://www.php.net/manual/en/features.cookies.php
Sessionshttps://www.php.net/manual/en/features.sessions.php
Handling file uploadshttps://www.php.net/manual/en/features.file-upload.php
Using remote fileshttps://www.php.net/manual/en/features.remote-files.php
Connection handlinghttps://www.php.net/manual/en/features.connection-handling.php
Persistent Database Connectionshttps://www.php.net/manual/en/features.persistent-connections.php
Command line usagehttps://www.php.net/manual/en/features.commandline.php
Garbage Collectionhttps://www.php.net/manual/en/features.gc.php
DTrace Dynamic Tracinghttps://www.php.net/manual/en/features.dtrace.php
Function Referencehttps://www.php.net/manual/en/funcref.php
Affecting PHP's Behaviourhttps://www.php.net/manual/en/refs.basic.php.php
Audio Formats Manipulationhttps://www.php.net/manual/en/refs.utilspec.audio.php
Authentication Serviceshttps://www.php.net/manual/en/refs.remote.auth.php
Command Line Specific Extensionshttps://www.php.net/manual/en/refs.utilspec.cmdline.php
Compression and Archive Extensionshttps://www.php.net/manual/en/refs.compression.php
Cryptography Extensionshttps://www.php.net/manual/en/refs.crypto.php
Database Extensionshttps://www.php.net/manual/en/refs.database.php
Date and Time Related Extensionshttps://www.php.net/manual/en/refs.calendar.php
File System Related Extensionshttps://www.php.net/manual/en/refs.fileprocess.file.php
Human Language and Character Encoding Supporthttps://www.php.net/manual/en/refs.international.php
Image Processing and Generationhttps://www.php.net/manual/en/refs.utilspec.image.php
Mail Related Extensionshttps://www.php.net/manual/en/refs.remote.mail.php
Mathematical Extensionshttps://www.php.net/manual/en/refs.math.php
Non-Text MIME Outputhttps://www.php.net/manual/en/refs.utilspec.nontext.php
Process Control Extensionshttps://www.php.net/manual/en/refs.fileprocess.process.php
Other Basic Extensionshttps://www.php.net/manual/en/refs.basic.other.php
Other Serviceshttps://www.php.net/manual/en/refs.remote.other.php
Search Engine Extensionshttps://www.php.net/manual/en/refs.search.php
Server Specific Extensionshttps://www.php.net/manual/en/refs.utilspec.server.php
Session Extensionshttps://www.php.net/manual/en/refs.basic.session.php
Text Processinghttps://www.php.net/manual/en/refs.basic.text.php
Variable and Type Related Extensionshttps://www.php.net/manual/en/refs.basic.vartype.php
Web Serviceshttps://www.php.net/manual/en/refs.webservice.php
Windows Only Extensionshttps://www.php.net/manual/en/refs.utilspec.windows.php
XML Manipulationhttps://www.php.net/manual/en/refs.xml.php
GUI Extensionshttps://www.php.net/manual/en/refs.ui.php
system » https://www.php.net/function.system.php
« proc_terminate https://www.php.net/function.proc-terminate.php
PHP Manualhttps://www.php.net/index.php
Function Referencehttps://www.php.net/funcref.php
Process Control Extensionshttps://www.php.net/refs.fileprocess.process.php
Program executionhttps://www.php.net/book.exec.php
Program execution Functionshttps://www.php.net/ref.exec.php
stringhttps://www.php.net/language.types.string.php
stringhttps://www.php.net/language.types.string.php
falsehttps://www.php.net/language.types.singleton.php
nullhttps://www.php.net/language.types.null.php
backtick operatorhttps://www.php.net/language.operators.execution.php
popen()https://www.php.net/function.popen.php
stringhttps://www.php.net/language.types.string.php
falsehttps://www.php.net/reserved.constants.php#constant.false
nullhttps://www.php.net/reserved.constants.php#constant.null
nullhttps://www.php.net/reserved.constants.php#constant.null
exec()https://www.php.net/function.exec.php
E_WARNINGhttps://www.php.net/errorfunc.constants.php#constant.e-warning
exec()https://www.php.net/function.exec.php
escapeshellcmd()https://www.php.net/function.escapeshellcmd.php
Learn How To Improve This Pagehttps://github.com/php/doc-base/blob/master/README.md
Submit a Pull Requesthttps://github.com/php/doc-en/blob/master/reference/exec/functions/shell-exec.xml
Report a Bughttps://github.com/php/doc-en/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2Ffunction.shell-exec%0A%0A---
+add a notehttps://www.php.net/manual/add-note.php?sect=function.shell-exec&repo=en&redirect=https://www.php.net/manual/en/function.shell-exec.php
uphttps://www.php.net/manual/vote-note.php?id=106250&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=106250&page=function.shell-exec&vote=down
trev at dedicate.co.ukhttps://www.php.net/function.shell-exec#106250
https://www.php.net/function.shell-exec#106250
uphttps://www.php.net/manual/vote-note.php?id=118495&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=118495&page=function.shell-exec&vote=down
alexandre dot schmidt at gmail dot comhttps://www.php.net/function.shell-exec#118495
https://www.php.net/function.shell-exec#118495
uphttps://www.php.net/manual/vote-note.php?id=88052&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=88052&page=function.shell-exec&vote=down
Rgeminihttps://www.php.net/function.shell-exec#88052
https://www.php.net/function.shell-exec#88052
uphttps://www.php.net/manual/vote-note.php?id=125577&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=125577&page=function.shell-exec&vote=down
smcbride at msn dot comhttps://www.php.net/function.shell-exec#125577
https://www.php.net/function.shell-exec#125577
uphttps://www.php.net/manual/vote-note.php?id=90176&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=90176&page=function.shell-exec&vote=down
joelhyhttps://www.php.net/function.shell-exec#90176
https://www.php.net/function.shell-exec#90176
uphttps://www.php.net/manual/vote-note.php?id=79061&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=79061&page=function.shell-exec&vote=down
RoBorghttps://www.php.net/function.shell-exec#79061
https://www.php.net/function.shell-exec#79061
uphttps://www.php.net/manual/vote-note.php?id=78279&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=78279&page=function.shell-exec&vote=down
eric dot peyremorte at iut-valence dot frhttps://www.php.net/function.shell-exec#78279
https://www.php.net/function.shell-exec#78279
uphttps://www.php.net/manual/vote-note.php?id=123710&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=123710&page=function.shell-exec&vote=down
pedroxam at gmail dot comhttps://www.php.net/function.shell-exec#123710
https://www.php.net/function.shell-exec#123710
uphttps://www.php.net/manual/vote-note.php?id=115702&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=115702&page=function.shell-exec&vote=down
jack dot harris-7ot2j4ip at yopmail dot Comhttps://www.php.net/function.shell-exec#115702
https://www.php.net/function.shell-exec#115702
uphttps://www.php.net/manual/vote-note.php?id=48654&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=48654&page=function.shell-exec&vote=down
Anonymoushttps://www.php.net/function.shell-exec#48654
https://www.php.net/function.shell-exec#48654
uphttps://www.php.net/manual/vote-note.php?id=20329&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=20329&page=function.shell-exec&vote=down
tonysb at gmx dot nethttps://www.php.net/function.shell-exec#20329
https://www.php.net/function.shell-exec#20329
http://www.vbcn.com.arhttp://www.vbcn.com.ar
uphttps://www.php.net/manual/vote-note.php?id=95651&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=95651&page=function.shell-exec&vote=down
codeslinger at compsalot dot comhttps://www.php.net/function.shell-exec#95651
https://www.php.net/function.shell-exec#95651
uphttps://www.php.net/manual/vote-note.php?id=78506&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=78506&page=function.shell-exec&vote=down
kamermans at teratechnologies dot nethttps://www.php.net/function.shell-exec#78506
https://www.php.net/function.shell-exec#78506
uphttps://www.php.net/manual/vote-note.php?id=129029&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=129029&page=function.shell-exec&vote=down
shell masterhttps://www.php.net/function.shell-exec#129029
https://www.php.net/function.shell-exec#129029
uphttps://www.php.net/manual/vote-note.php?id=129009&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=129009&page=function.shell-exec&vote=down
mamedul.github.iohttps://www.php.net/function.shell-exec#129009
https://www.php.net/function.shell-exec#129009
uphttps://www.php.net/manual/vote-note.php?id=31235&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=31235&page=function.shell-exec&vote=down
mcbeth at broggs dot orghttps://www.php.net/function.shell-exec#31235
https://www.php.net/function.shell-exec#31235
uphttps://www.php.net/manual/vote-note.php?id=125899&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=125899&page=function.shell-exec&vote=down
Numabytehttps://www.php.net/function.shell-exec#125899
https://www.php.net/function.shell-exec#125899
uphttps://www.php.net/manual/vote-note.php?id=83151&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=83151&page=function.shell-exec&vote=down
saivert at saivert dot comhttps://www.php.net/function.shell-exec#83151
https://www.php.net/function.shell-exec#83151
uphttps://www.php.net/manual/vote-note.php?id=109693&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=109693&page=function.shell-exec&vote=down
wally at soggysoftware dot co dot ukhttps://www.php.net/function.shell-exec#109693
https://www.php.net/function.shell-exec#109693
uphttps://www.php.net/manual/vote-note.php?id=37971&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=37971&page=function.shell-exec&vote=down
jessop bigfoot comhttps://www.php.net/function.shell-exec#37971
https://www.php.net/function.shell-exec#37971
uphttps://www.php.net/manual/vote-note.php?id=38905&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=38905&page=function.shell-exec&vote=down
Martin Rampersadhttps://www.php.net/function.shell-exec#38905
https://www.php.net/function.shell-exec#38905
uphttps://www.php.net/manual/vote-note.php?id=67183&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=67183&page=function.shell-exec&vote=down
rustleb at hotmail dot comhttps://www.php.net/function.shell-exec#67183
https://www.php.net/function.shell-exec#67183
uphttps://www.php.net/manual/vote-note.php?id=82278&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=82278&page=function.shell-exec&vote=down
gabekon at gmail dot comhttps://www.php.net/function.shell-exec#82278
https://www.php.net/function.shell-exec#82278
uphttps://www.php.net/manual/vote-note.php?id=69160&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=69160&page=function.shell-exec&vote=down
ruan at nospam dot tillcor dot comhttps://www.php.net/function.shell-exec#69160
https://www.php.net/function.shell-exec#69160
uphttps://www.php.net/manual/vote-note.php?id=51782&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=51782&page=function.shell-exec&vote=down
phillipberry at NOSPAM dot blisswebhosting dot comhttps://www.php.net/function.shell-exec#51782
https://www.php.net/function.shell-exec#51782
uphttps://www.php.net/manual/vote-note.php?id=122676&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=122676&page=function.shell-exec&vote=down
smithnigelw at gmail dot comhttps://www.php.net/function.shell-exec#122676
https://www.php.net/function.shell-exec#122676
uphttps://www.php.net/manual/vote-note.php?id=69706&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=69706&page=function.shell-exec&vote=down
Paul Cookhttps://www.php.net/function.shell-exec#69706
https://www.php.net/function.shell-exec#69706
uphttps://www.php.net/manual/vote-note.php?id=61998&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=61998&page=function.shell-exec&vote=down
rigsbr at yahoo dot com dot brhttps://www.php.net/function.shell-exec#61998
https://www.php.net/function.shell-exec#61998
uphttps://www.php.net/manual/vote-note.php?id=88621&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=88621&page=function.shell-exec&vote=down
dburles@NOSPAMgmailDOTcomhttps://www.php.net/function.shell-exec#88621
https://www.php.net/function.shell-exec#88621
uphttps://www.php.net/manual/vote-note.php?id=56935&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=56935&page=function.shell-exec&vote=down
concept at conceptonline dot huhttps://www.php.net/function.shell-exec#56935
https://www.php.net/function.shell-exec#56935
uphttps://www.php.net/manual/vote-note.php?id=57215&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=57215&page=function.shell-exec&vote=down
php [AT] jsomers [DOT] behttps://www.php.net/function.shell-exec#57215
https://www.php.net/function.shell-exec#57215
uphttps://www.php.net/manual/vote-note.php?id=59898&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=59898&page=function.shell-exec&vote=down
Ashraf Kaabihttps://www.php.net/function.shell-exec#59898
https://www.php.net/function.shell-exec#59898
uphttps://www.php.net/manual/vote-note.php?id=44438&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=44438&page=function.shell-exec&vote=down
James McCormackhttps://www.php.net/function.shell-exec#44438
https://www.php.net/function.shell-exec#44438
uphttps://www.php.net/manual/vote-note.php?id=126980&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=126980&page=function.shell-exec&vote=down
Which shell?https://www.php.net/function.shell-exec#126980
https://www.php.net/function.shell-exec#126980
uphttps://www.php.net/manual/vote-note.php?id=96249&page=function.shell-exec&vote=up
downhttps://www.php.net/manual/vote-note.php?id=96249&page=function.shell-exec&vote=down
martin at intelli-gens dot comhttps://www.php.net/function.shell-exec#96249
https://www.php.net/function.shell-exec#96249
+add a notehttps://www.php.net/manual/add-note.php?sect=function.shell-exec&repo=en&redirect=https://www.php.net/manual/en/function.shell-exec.php
Program execution Functionshttps://www.php.net/ref.exec.php
escapeshellarghttps://www.php.net/function.escapeshellarg.php
escapeshellcmdhttps://www.php.net/function.escapeshellcmd.php
exechttps://www.php.net/function.exec.php
passthruhttps://www.php.net/function.passthru.php
proc_​closehttps://www.php.net/function.proc-close.php
proc_​get_​statushttps://www.php.net/function.proc-get-status.php
proc_​nicehttps://www.php.net/function.proc-nice.php
proc_​openhttps://www.php.net/function.proc-open.php
proc_​terminatehttps://www.php.net/function.proc-terminate.php
shell_​exechttps://www.php.net/function.shell-exec.php
systemhttps://www.php.net/function.system.php
Copyright © 2001-2026 The PHP Documentation Grouphttps://www.php.net/manual/en/copyright.php
My PHP.nethttps://www.php.net/my.php
Contacthttps://www.php.net/contact.php
Other PHP.net siteshttps://www.php.net/sites.php
Privacy policyhttps://www.php.net/privacy.php
javascript:;

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.