/    Sign up×
Community /Pin to ProfileBookmark

FAQ – Please Read Before Posting!

Frequently Asked Questions

(If you have comments or suggestion for this FAQ, post them in [url=http://www.webdeveloper.com/forum/showthread.php?t=102045]this thread[/url].)

  • 1. [url=http://www.webdeveloper.com/forum/showthread.php?p=546765#post546765]What is PHP?[/url]

  • 2. [url=http://www.webdeveloper.com/forum/showthread.php?p=546766#post546766]Is there online documentation and tutorials that can help me learn PHP?[/url]

  • 3. [url=http://www.webdeveloper.com/forum/showthread.php?p=546767#post546767]Can I run PHP locally on my PC?[/url]

  • 4. [url=http://www.webdeveloper.com/forum/showthread.php?p=546768#post546768]How do I make my code color-coded and indented in my postings here?[/url]

  • 5. [url=http://www.webdeveloper.com/forum/showthread.php?p=546769#post546769]How do you upload images (or other files) using PHP?[/url]

  • 6. [url=http://www.webdeveloper.com/forum/showthread.php?p=546770#post546770]How can I create a CMS (Content Management System) with PHP?[/url]

  • 7. [url=http://www.webdeveloper.com/forum/showthread.php?p=546771#post546771]I get an error at line number X when I run my PHP script, but I don’t see any problem on that line.[/url]

  • 8. [url=http://www.webdeveloper.com/forum/showthread.php?p=546772#post546772]My script isn’t working right, but I can’t figure out why.[/url]

  • 9. [url=http://www.webdeveloper.com/forum/showthread.php?p=546773#post546773]How can I help you to help me?[/url]

  • 10. [url=http://www.webdeveloper.com/forum/showthread.php?p=546774#post546774]How can I use PHP to create login-controlled web pages?[/url]

  • 11. [url=http://www.webdeveloper.com/forum/showthread.php?p=546775#post546775]How do I send emails with PHP?[/url]
  • to post a comment
    PHP

    11 Comments(s)

    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — 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 [url=http://www.php.net/]PHP.net[/url].
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — 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 [url=http://www.zend.com/php/beginners/index.php]this Zend.com tutorial[/url].
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — 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 [url=http://www.apachefriends.org/en/xampp.html]Apachefriends.org's XAMPP[/url], which is an open-source program which will install PHP, Apache web server, MySQL DBMS, and phpMyAdmin onto your PC.
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — How do I make my code color-coded and indented in my postings here?

    For PHP code, wrap your text in [b][ php ][/b] and [b][ /php ][/b] tags (without the spaces. For text which you want to be indented and with a fixed-spaced font, but not color-coded, use the [b][ code ][/b] and [b][ /code ][/b] tags.
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — How do you upload images (or other files) using PHP?

    See [url=http://www.webdeveloper.com/forum/showthread.php?t=101466]this sticky thread[/url] for much useful information and example code on this subject.
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — 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.
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — 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.
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — 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 [url=http://www.php.net/manual/en/ref.errorfunc.php]error-handling functions[/url].
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — How can I help you to help me?

    See [url=http://www.webdeveloper.com/forum/showthread.php?t=64280]this thread[/url] for some tips on providing us the necessary info in your posts to help us answer your question.
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — How can I use PHP to create login-controlled web pages?

    This is usually done by using [url=http://www.php.net/sessions]PHP sessions[/url] 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. [url=http://www.charles-reace.com/PHP_and_MySQL/Login_Control/]Here is one article[/url] of many on the web on this subject.
    Copy linkTweet thisAlerts:
    @NogDogauthorApr 06.2006 — How do I send emails with PHP?

    Simply put, by using the [url=http://www.php.net/manual/en/function.mail.php]mail() function[/url]. For more info, check out [url=http://bokehman.com/mime_mail_script]this article[/url] by forum member Bokeh.
    ×

    Success!

    Help @NogDog spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.15,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...