Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Starting PHP

ITAITA Member Posts: 463
How can I get PHP started. I've saved my document as *.php but it only comes up as a txt doc. Du i need 2 link it into a WYSIWYG editor or something? Please Help. Many Thanks.

ITA :-)

Comments

  • KyonKyon Member Posts: 113
    Hi.

    PHP-docs have to be interpreted before you can view them as you're expecting them to be shown. That means you have to get an interpreter (eg. at http://www.php.net) and install it to your system.

    There are two ways you can handle php-documents:
    First you can process them with the commandline-executable and generate the output this way.
    The other (and more common) way would be to install php as a module to a server (eg. Apache) and let the server process the documents as they are requested by clients. This is what you usually see, when requesting a URL in your browser which ends with a .php-file. You don't see the php-document itself - instead the server gets the php-script, executes (or processes) it and send the output to your browser.

    How to set up a server, install php and configure all this is a bit of work - but you'll find lots of help-docs throughout the internet. I was always comfortable with Apache as server - http://httpd.apache.org - and PHP4 as cgi-module - but there are more possibilities to get this to work. The thing about Apache is, that appr. >60% of the webservers worldwide use it. So this should be a good platform to learn on.

    Cheers,
    Kyon

    -- planning is the substitution of hazard by error --

  • mac_doggiemac_doggie Member Posts: 488
    : How can I get PHP started. I've saved my document as *.php but it only comes up as a txt doc. Du i need 2 link it into a WYSIWYG editor or something? Please Help. Many Thanks.
    :
    : ITA :-)
    :

    Try checking the file extention. You say it's .php but if the option hide known file extentions is on your filenames are .php.txt or something and then they are seen as .txt files. You can check this via
    Start/Settings/Mapoptions (second tab) make sure "Hide file extentions for known file types" is off.

    If your files have the extention .php even now. try the third tab in the mapoptions screen. See if there is an extention php If there is not create one. redirect it to the php.exe file.



    ;-)
    -mac-
    mailto:[email protected]
    the Netherlands...


  • Justin BibJustin Bib USAMember Posts: 0

    ______ ( http://forcoder.org ) free video tutorials and ebooks about // Go, Objective-C, Visual Basic .NET, Swift, Delphi, PL/SQL, Ruby, MATLAB, Perl, C, Java, Assembly, Visual Basic, Python, Scratch, PHP, JavaScript, C++, R, C# Crystal, Kotlin, F#, Rust, Prolog, COBOL, Bash, Scheme, ABAP, D, Julia, LabVIEW, VBScript, Hack, Dart, Apex, Erlang, FoxPro, Transact-SQL, Ada, Lisp, Fortran, Clojure, Scala, Logo, Lua, SAS, ML, Alice, Awk // _______

Sign In or Register to comment.