Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: how to run php file in browser

  1. #11
    Join Date
    Mar 2011
    Location
    India
    Beans
    73
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to run php file in browser

    thanks man its working....i tried it without sudo...i thought 1 sudo was enought for one terminal

  2. #12
    Join Date
    Nov 2010
    Beans
    120
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to run php file in browser

    I am happy you learned, know you can get the homework on time.

  3. #13
    Join Date
    Mar 2011
    Location
    India
    Beans
    73
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to run php file in browser

    so do i have to copy every php file and pictures and videos in to /var/www to run them.....is there a way to organise em there...i mean can we create a sub directory say library for my current project?????

  4. #14
    Join Date
    Mar 2011
    Location
    India
    Beans
    73
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to run php file in browser

    and if i want to edit the file i have to do it through terminal ??...i have download a book abt shell commands then???

  5. #15
    Join Date
    Mar 2011
    Location
    India
    Beans
    73
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to run php file in browser

    hope i could...thanks for help

  6. #16
    Join Date
    Oct 2009
    Location
    Upminster, Essex, UK
    Beans
    544

    Thumbs down Re: how to run php file in browser

    open a terminal

    type:

    Code:
    gksu nautilus
    This will open up nautilus file explorer with root permission - so caution required!

    get to the folder you files are in - CTRL+A to select them all CTRL+C to copy

    navigation to /var/www and CTRL+V to paste
    Code:
    cd /fridge/beer | drink && fallover

  7. #17
    Join Date
    Nov 2010
    Beans
    120
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to run php file in browser

    Quote Originally Posted by ravikanth.vva View Post
    and if i want to edit the file i have to do it through terminal ??...i have download a book abt shell commands then???
    There is one tool I really like: bluefish.

    Get it from package manager.

    Go to terminal, and type:

    Sudo bluefish

    Now you can edit the file in /var/www

    and magic you can see your code in colors and another tools.

  8. #18
    Join Date
    Oct 2009
    Location
    Upminster, Essex, UK
    Beans
    544

    Thumbs down Re: how to run php file in browser

    It would be simple to have you public folder (ie /var/www) pointed to a folder under your home folder... but that is a tutorial all of it's own

    So if you need to get work done rather than server config-ing you might want to leave it until after the weekend
    Code:
    cd /fridge/beer | drink && fallover

  9. #19
    Join Date
    Mar 2011
    Location
    India
    Beans
    73
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to run php file in browser

    Quote Originally Posted by satanselbow View Post
    open a terminal

    type:

    Code:
    gksu nautilus
    This will open up nautilus file explorer with root permission - so caution required!

    get to the folder you files are in - CTRL+A to select them all CTRL+C to copy

    navigation to /var/www and CTRL+V to paste
    thanks especially "for get to the folder you files are in - CTRL+A to select them all CTRL+C to copy

    navigation to /var/www and CTRL+V to paste" theres no way i could have known that......

  10. #20
    Join Date
    Mar 2011
    Location
    India
    Beans
    73
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to run php file in browser

    Quote Originally Posted by dozycat View Post
    There is one tool I really like: bluefish.

    Get it from package manager.

    Go to terminal, and type:

    Sudo bluefish

    Now you can edit the file in /var/www

    and magic you can see your code in colors and another tools.
    i instantly switchd to bluefish...thanks
    Last edited by ravikanth.vva; May 7th, 2011 at 03:11 PM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •