NEWBIE Question: how to read php file?

Discussion in 'PHP' started by linduh, Jun 13, 2007.

  1. #1
    I know this question probabbly sound VERY stupid.... but I'm trying to learn from this php code someone else wrote, and I dont know how to get access to it....

    Thanks in advance.
     
    linduh, Jun 13, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Your right, it does sound VERY stupid......

    Open the file in notepad if you don't have a editor that supports php syntax highlighting ....

    The best free php IDE IMO is php designer, you should also download that as it will be helpfull with its syntax highlighter for you to understand where blocks of code start and finish.....
    http://www.download.com/3000-20-10575026.html?part=undefined&subj=dl&tag=button
     
    krakjoe, Jun 13, 2007 IP
  3. speda1

    speda1 Well-Known Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #3
    PHP files are just text files.
     
    speda1, Jun 13, 2007 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Well, in a way yeah, but the same can actually be said for any file on a pc, they are all made of text .....
     
    krakjoe, Jun 13, 2007 IP
  5. speda1

    speda1 Well-Known Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #5
    They way I see it, files are either text or binary.
     
    speda1, Jun 13, 2007 IP
  6. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #6
    it's all 1's or 0's no matter how you look at it.
     
    ansi, Jun 13, 2007 IP
  7. coderbari

    coderbari Well-Known Member

    Messages:
    3,168
    Likes Received:
    193
    Best Answers:
    0
    Trophy Points:
    135
    #7
    The best way to read a PHP file is :turn on your PC ,turn on your monitor(if it is off).open a file with .php extension in notepad and read it.If you cant read it then you may be forgot to wear your glasses,so put on them.but after doing this if you cant read then you may either have to change the power of your glasses or have to learn how to read :D

    by the way all the files in a PC are combination of 1 and 0.but we cant see those 1s and 0s(thanks god!!!!) .these are formatted in many ways according to the type of the file and text is just file type.
     
    coderbari, Jun 13, 2007 IP
  8. linduh

    linduh Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
     
    linduh, Jun 14, 2007 IP
  9. linduh

    linduh Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thx man......
     
    linduh, Jun 14, 2007 IP
  10. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    dank, i've been paying attention with you.. always mean.. -.-"

    answering to your question, you can also use XAMPP, you can just search it in google, download, and install it so that you can test it on your local machine.
     
    ProgrammersTalk, Jun 14, 2007 IP
  11. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #11
    If you're trying to learn from php code that someone else wrote, how will a server help ??

    I'm not mean, he said it was stupid and I was merely observing that it is .... I did still however answer the question satisfactorily

    I'm actually a very nice guy .........
     
    krakjoe, Jun 14, 2007 IP
  12. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I can see that
     
    ProgrammersTalk, Jun 14, 2007 IP