1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

w3schools

Discussion in 'General Programming Chat' started by pearljamming, Apr 9, 2012.

  1. pearljamming

    pearljamming Registered Member

    Joined:
    Apr 8, 2012
    Messages:
    67
    Likes Received:
    2
    Occupation:
    Computer Repair
    Location:
    Kentucky - BIGBLUE
    This site is the place that I went to learn HTML/CSS. I still go there to reference anything I may have forgotten.

    Now that I'm on PHP I find it difficult to learn it the way they have their tutorials set up.

    Is w3schools pretty much end all be all of web languages or are there any better sites to learn PHP?
     
  2. Vibrance

    Vibrance Junior Member

    Joined:
    Jul 6, 2011
    Messages:
    129
    Likes Received:
    2,117
    For books:

    - PHP In Action
    - PHP Objects, Patterns and Practice

    Additionally, the tutorials at the following site are very good:
    Code:
    http://www.tizag.com/phpT/
    Also, php.net (the official site documentation) should pretty much be your homepage - as you will need it alot.
     
    • Thanks Thanks x 1
  3. pearljamming

    pearljamming Registered Member

    Joined:
    Apr 8, 2012
    Messages:
    67
    Likes Received:
    2
    Occupation:
    Computer Repair
    Location:
    Kentucky - BIGBLUE
    Thanks, I'm trying to follow the guide now.

    I didn't want to install xamp on my computer so I went with trying to do it on my domain and it's giving me a 404 error when trying to load any .php extension files. This web host supports PHP and has MySQL, not sure what I'm doing wrong :(.

    EDIT: 403 error, my bad.
     
  4. Vibrance

    Vibrance Junior Member

    Joined:
    Jul 6, 2011
    Messages:
    129
    Likes Received:
    2,117
    Make sure that your operating system isnt set to "Hide Extensions for known file types", otherwise you may find that your files are like:

    myphpfile.php.txt

    Are you using cPanel on your host, or do you have FTP access? Ensure that you are trying to load a file from the correct directory


    EDIT: For a 403 error, make sure that the files are in the correct directory. Do you have a public_html or a www directory? As your files will need to be in that/those directories or a subdirectory of them. Accessing any files that are not in those directories may give you the 403 Access Forbidden error
     
    Last edited: Apr 10, 2012
  5. pearljamming

    pearljamming Registered Member

    Joined:
    Apr 8, 2012
    Messages:
    67
    Likes Received:
    2
    Occupation:
    Computer Repair
    Location:
    Kentucky - BIGBLUE
    Yes at first it was using a php.txt extension but I fixed that and I still received the same error. The .php file is located in the html folder, I'm still stumped.

    I also use FTP to access my files.

    EDIT:uhm, so I got it to work by putting the actual file name at the end....sitename/blahblah.php

    I understand I'm doing something wrong, I just dont know what it is.
     
    Last edited: Apr 10, 2012
  6. LongBanana

    LongBanana Regular Member

    Joined:
    Oct 23, 2009
    Messages:
    411
    Likes Received:
    247
    Location:
    Chicago, IL
  7. pearljamming

    pearljamming Registered Member

    Joined:
    Apr 8, 2012
    Messages:
    67
    Likes Received:
    2
    Occupation:
    Computer Repair
    Location:
    Kentucky - BIGBLUE
    Okay! So I fixed it! Thanks Vibrance!

    Anyways when I was using just html it would only load as welcome.html and not index.html (WHY? who knows).

    Now the only way that my .php file will work is if I use it as index.php.

    yuno be consistent ant server!
     
  8. Chris22

    Chris22 Regular Member

    Joined:
    Sep 29, 2010
    Messages:
    400
    Likes Received:
    1,059
    W3Schools is one of the worst resources to use nowadays. Despite the name they are not actually affiliated with W3C in any way.

    http://w3fools.com/
     
    • Thanks Thanks x 1
  9. laowai

    laowai Power Member

    Joined:
    Feb 27, 2011
    Messages:
    522
    Likes Received:
    184
    Not sure why you didn't want to install xamp, but it's much more convenient to code and manage projects locally than in server if you end up having more than one project. At least that's my experience. You can always use some virtual machine like virtual box if you are worried that xamp does something to your system that you don't like.
     
  10. necro

    necro Regular Member

    Joined:
    Dec 23, 2010
    Messages:
    292
    Likes Received:
    189
    You can run xampp portable...
     
  11. c0ntenth|ef

    c0ntenth|ef Power Member

    Joined:
    May 20, 2009
    Messages:
    788
    Likes Received:
    118
    Location:
    california
    they are good for newbies and to get into web development but for anything more advanced i wouldn't recommend them.