/    Sign up×
Community /Pin to ProfileBookmark

I was wondering if there was a way to find out what was in the
[B]/bin/env[/B]

Ty

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@chazzyJan 10.2009 — maybe

[code=php]
exec("ls /bin/env",$results);
print_r($results);
[/code]


http://us2.php.net/function.exec
Copy linkTweet thisAlerts:
@moiseszaragozaauthorJan 10.2009 — Thanks

i am going to try that now
Copy linkTweet thisAlerts:
@moiseszaragozaauthorJan 10.2009 — by any chance do you know if i there is a way to copy files from 1 site to another in the same server?
Copy linkTweet thisAlerts:
@MindzaiJan 10.2009 — If they are on the same server, and assuming you have the necessary permissions to the directories in question, you can use the copy function.
Copy linkTweet thisAlerts:
@NogDogJan 10.2009 — Everything you need for handling files on the server is here: http://www.php.net/manual/en/ref.filesystem.php
×

Success!

Help @moiseszaragoza spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...