+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 13

Thread: how do i look at a php file when i download it? do i

  1. #1
    mldebo is offline Junior Member mldebo is on a distinguished road
    Join Date
    May 2007
    Posts
    1

    Default how do i look at a php file when i download it? do i

    need a program to do that?

  2. #2
    pandera p is offline Junior Member pandera p is on a distinguished road
    Join Date
    May 2007
    Posts
    1

    Default

    If you've got the whatever.php file, you can open it in Notepad.

  3. #3
    da4stringer is offline Junior Member da4stringer is on a distinguished road
    Join Date
    May 2007
    Posts
    1

    Default

    You can view it with any text or HTML editor. However, you might want to view it with Dreamweaver or some other software that recognizes php code. This will make the code more readable as it will use different colors for various keywords and stuff.

  4. #4
    penguin_cogdill is offline Junior Member penguin_cogdill is on a distinguished road
    Join Date
    May 2007
    Posts
    1

    Default

    You can use notepad or an IDE like Eclipse. However, I would have to ask how you downloaded it. Did you download the source code from a directory or did you try to save from a web browser? You can't download a php page like you can a simple html page from a website. A PHP file will compile on the server end and then display the compiled web page on your browser. You will not see the source code behind it. Sorry if you already knew that but I just wanted to make sure.

  5. #5
    zerofool2005 is offline Junior Member zerofool2005 is on a distinguished road
    Join Date
    Aug 2007
    Posts
    15

    Default

    Open it in Notepad++ or did you download it form a server. You can only download the raw php code when the php deamon is turned off

  6. #6
    stalker is offline Junior Member stalker is on a distinguished road
    Join Date
    Dec 2007
    Posts
    11

    Default

    you can open it with whatever text edititor.

    bbedit is a good editor that you can demo

    i like to use dreamweaver. you can also get a demo of that.

    Adobe - Dreamweaver CS3, Web Site Design, Web Page Design, Web Design Software

  7. #7
    Jace is offline Senior Member Jace is on a distinguished road
    Join Date
    Feb 2007
    Posts
    362

    Default

    Notepad and up should work. Sometimes it it's in UTF8 though. So normal notepad won't work so then you'll need alternatives like Microsoft word and Notepad ++

    I've never used dreamweaver. Is it worth purchasing?

  8. #8
    snoop1990 is offline Senior Member snoop1990 is on a distinguished road
    Join Date
    Dec 2007
    Location
    Germany (in a small town)
    Posts
    357

    Default

    dreamweaver is a wonderful tool for editing html but I do not need it for php because there are others available for free or less money. But that is an decision everybody has to do no his / her own.

    About saving a php file, just just have to look for the ending, an php file ends with .php ,not .html, .htm or any other, just .php .

    Regrades Snoop1990

  9. #9
    bizzard is offline Senior Member bizzard is on a distinguished road
    Join Date
    Jan 2006
    Location
    A small remote village in Kerala, India
    Posts
    467

    Default

    I have a doubt. Is it possible to view the code of PHP file, which generates the HTML code directly from the net?

    I prefer notepad++ for editing my php files.

  10. #10
    snoop1990 is offline Senior Member snoop1990 is on a distinguished road
    Join Date
    Dec 2007
    Location
    Germany (in a small town)
    Posts
    357

    Default

    Quote Originally Posted by bizzard View Post
    Is it possible to view the code of PHP file, which generates the HTML code directly from the net?
    In general it should not be possible for security reasons (you do not want the others to get your database password stored in a php file). If you set all permissions the right way nobody should be able to access your files.

    Regrades Snoop1990

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 02-17-2010, 03:22 AM
  2. HTML Link To a Download File?
    By Nboy114 in forum HTML/CSS/DHTML
    Replies: 2
    Last Post: 02-15-2010, 10:58 PM
  3. Replies: 0
    Last Post: 01-09-2010, 11:05 PM
  4. Why is it that every time I try to download and open a file it goes to
    By sunshine in forum Programming / Scripting / Coding Forum
    Replies: 2
    Last Post: 12-25-2009, 03:21 AM
  5. How can i download a php file?
    By Sukhminder S in forum PHP
    Replies: 1
    Last Post: 12-22-2009, 12:56 AM

Posting Permissions

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