Jump to content

Recommended Posts

Heres a list of directories i can access on my server through ftp

 

public_html

tmp

public_ftp

www

bash_history

bash_logout

bash_profile

bashrc

contactemail

ftp_quota

lang

last_login

pearrc

zshrc

php

mail

bin

ssh

access_logs

 

and a few other misc stuff

 

Can i do something with this

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838017
Share on other sites

[quote author=dreamwest link=topic=253079.msg1188769#msg1188769 date=1242819173

Do i run it in my browser or do i need root access of the server and run it through something like putty

The question you should ask your self is "why do I want to run this bash script". If you want to run it by calling a url in your browser you could use php using the exe function

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838777
Share on other sites

[quote author=dreamwest link=topic=253079.msg1188769#msg1188769 date=1242819173

Do i run it in my browser or do i need root access of the server and run it through something like putty

The question you should ask your self is "why do I want to run this bash script". If you want to run it by calling a url in your browser you could use php using the exe function

 

Im on a mission to learn every available programming language i can - Its my hobby

 

I didnt know you can run shell commands with a function

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838791
Share on other sites

The question you should ask your self is "why do I want to run this bash script". If you want to run it by calling a url in your browser you could use php using the exe function

 

Im on a mission to learn every available programming language i can - Its my hobby

 

I didnt know you can run shell commands with a function

Then you're better of installing linux, freeBSD or anything else that runs bash on one of your computers and use a terminal. Using a webserver to learn bash isn't really gonna cut it

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838797
Share on other sites

Then you're better of installing linux, freeBSD or anything else that runs bash on one of your computers and use a terminal. Using a webserver to learn bash isn't really gonna cut it

 

Ok - will do.

 

Ill do some searching tonight on how to set it up

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838799
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.