www.webdeveloper.com
Results 1 to 12 of 12

Thread: FAQ - Please Read Before Posting!

  1. #1
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    FAQ - Please Read Before Posting!

    Last edited by NogDog; 04-09-2006 at 12:36 AM.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    What is PHP?

    What is PHP?

    PHP is a recursive acronym for "PHP: Hypertext Preprocessor". PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Much more info can be found at PHP.net.
    Last edited by NogDog; 04-09-2006 at 12:30 AM.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    Are there online documentation and tutorials that can help me learn PHP?

    Are there online documentation and tutorials that can help me learn PHP?

    The manual is on-line at http://www.php.net/manual/en/ (see http://www.php.net/docs.php for other languages and downloadable versions).

    For a beginner's tutorial on PHP, check out this Zend.com tutorial.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    Can I run PHP locally on my PC?

    Can I run PHP locally on my PC?

    Yes, but note that in addition to PHP you will need a web server running on your PC, too. A very convenient and effective way to do this is to download and install Apachefriends.org's XAMPP, which is an open-source program which will install PHP, Apache web server, MySQL DBMS, and phpMyAdmin onto your PC.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    How do I make my code color-coded and indented in my postings here?

    How do I make my code color-coded and indented in my postings here?

    For PHP code, wrap your text in [ php ] and [ /php ] tags (without the spaces. For text which you want to be indented and with a fixed-spaced font, but not color-coded, use the [ code ] and [ /code ] tags.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  6. #6
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    How do you upload images (or other files) using PHP?

    How do you upload images (or other files) using PHP?

    See this sticky thread for much useful information and example code on this subject.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  7. #7
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    How can I create a CMS (Content Management System) with PHP?

    How can I create a CMS (Content Management System) with PHP?

    This is not a trivial project (unless done very poorly and with little to no consideration for security). Consider using one of the many open-source CMS's which are available. See http://www.opensourcecms.com/ for info on some of the many choices.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  8. #8
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    I get an error at line number X when I run my PHP script, but I don't see any problem

    I get an error at line number X when I run my PHP script, but I don't see any problem on that line.

    The line number in a PHP parse error message is the line where PHP "got too confused and gave up," but it's not necessarily the line where the root cause of the problem occured. When you get such a message start looking at that line, then start working your way back through the code for various syntax errors (missing ";", unbalanced brackets or quotes, etc.) It is worth using an editor with PHP syntax color-coding to help you see some of these errors.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  9. #9
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    My script isn't working right, but I can't figure out why.

    My script isn't working right, but I can't figure out why.

    Learn to code defensively. Do not assume variables are set the way you think they should be; instead check their values before proceeding using functions like isset() and empty(). Learn to use PHP's error-handling functions.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  10. #10
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    How can I help you to help me?

    How can I help you to help me?

    See this thread for some tips on providing us the necessary info in your posts to help us answer your question.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  11. #11
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    How can I use PHP to create login-controlled web pages?

    How can I use PHP to create login-controlled web pages?

    This is usually done by using PHP sessions in conjunction with a database. The database contains login information which is used to verify the user's login. Upon successful login, a session variable can be set. Controlled pages can then first check to see if this session variable exists and is properly set, and if not then redirect the user to the login page. Here is one article of many on the web on this subject.
    Last edited by NogDog; 04-06-2006 at 10:56 AM.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

  12. #12
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384

    How do I send emails with PHP?

    How do I send emails with PHP?

    Simply put, by using the mail() function. For more info, check out this article by forum member Bokeh.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us
    Share on Google+

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles