+ Reply to Thread
Results 1 to 9 of 9

Thread: PHP attempt

  1. #1
    Join Date
    Jan 2007
    Location
    Poconos of Pennsylvania
    Posts
    416

    Default PHP attempt

    I use dreamweaver for my web site making. I wanted to play around wiht building a php site for the first time. 1 minute into this and already have a question.

    I created a php page and tried to preview it in IE 7 and all it does is ask me if I want to save the file or open the file, and nothing happens whne I try to open it.......whne I use a regular html page like this the pre view justs open up , it doesn't prompt me for anything. What gives?
    Dave Kovaleski REALTOR
    Pocono Pennsylvania Real Estate Agent
    Pocono Real Estate
    Hideout Real Estate
    Lake Wallenpaupack Real Estate

  2. #2
    Join Date
    Apr 2004
    Location
    Nanaimo
    Posts
    16,026

    Default Re: PHP attempt

    Sounds like your server is not set up to render the .php extension - do you even have PHP installed / enabled on your server?

    Keep in mind, giving a filename a php extention only lets the browser / server that php may be included server side and to execute - There is really no such thing as a "php page" - php is a programming language - so you are writing php code
    Starting LEC 7 soon but it won't be called LEC 7 - LEC 2012 coming soon!

  3. #3
    Join Date
    Feb 2007
    Location
    Fort Lauderdale, Florida
    Posts
    1,498

    Default Re: PHP attempt

    Like webmaster said, most home pc's aren't setup to view a local php file through their browser. Some modifications you can find through google can help you fix that.

    A good analogy would be trying to view a pdf without the browser plugin installed. Your browser will try to download the pdf, instead of view it.
    If you're not remembered, you never existed.

  4. #4
    Join Date
    Jan 2007
    Location
    Poconos of Pennsylvania
    Posts
    416

    Default Re: PHP attempt

    I yield LOL, I was just looking at some php training videos.........way more than I can handle right now. My head hurts! Maybe its time for that phone call after all!
    Dave Kovaleski REALTOR
    Pocono Pennsylvania Real Estate Agent
    Pocono Real Estate
    Hideout Real Estate
    Lake Wallenpaupack Real Estate

  5. #5
    Join Date
    Dec 2007
    Posts
    9

    Default Re: PHP attempt

    Dave,
    Obviously, before you can enable PHP you have to install it. While most servers from hosting services come preinstalled with PHP, it's possible that is not your case.

    Anyhow, bookmark the PHP.net documentation link. It's invaluable for current documentation. Here is the installation link: http://www.php.net/manual/en/install.general.php

    I run several Web sites that are a combination of HTML and PHP and I use Dreamweaver to manage both. Dreamweaver plays rather nicely with PHP.

    Jump in. You'll like it. The power of PHP on the server side gives you endless possibilities.

    LAR

  6. #6
    Join Date
    Nov 2005
    Posts
    18

    Default Re: PHP attempt

    You can download and install a pre-compiled binary of php on your windows machine from here:
    http://www.php.net/downloads.php

    Here is a very good tutorial for php beginners:
    http://www.webmonkey.com/webmonkey/programming/php/
    Colorado Real Estate and luxury resort properties.

  7. #7
    Join Date
    Oct 2007
    Posts
    56

    Default Re: PHP attempt

    You might also want to check out XAMP - http://www.apachefriends.org/en/xampp.html

    I installed XAMP so that I could tinker around with Wordpress on my PC. XAMP contains Apache, PHP, MySQL, and a bunch of other stuff. And it's easy to install.

  8. #8
    Join Date
    Jan 2008
    Posts
    15

    Default Re: PHP attempt

    Agreed. XAMPP is the tops, as it's VERY easy to get running on your personal machine.

    And, about the problem, 99.9% of the time it has to do with trying to open a php page without a server being installed on the local machine.

    So, I concur... Not like you needed me to agree anyhow...

  9. #9
    Join Date
    Nov 2004
    Location
    Orange Beach, AL
    Posts
    2,359

    Default Re: PHP attempt

    I agree I used Xampp and had no knowledge of .php. When you have error messages google them, 9 times out of 10 you can find a forum question that mentions the error and find an answer to your problem.

    I used it with Joomla and Mambo and learned a lot. I still don't know .php, but have been able to use it within those CMS's. It's nice to be able to use REW instead though, I am able to stay more focused than spending a day trying to troubleshoot something that is second nature to them.
    Cal
    Gulf Shores Real Estate | Lake Lanier Real Estate | Madison MS Real Estate

    The Gulfshoreslife.com Team of Keller Williams Alabama Gulf Coast serves the Baldwin County Alabama Real Estate market from The Eastern Shore of Mobile Bay to the Southern Shores of the Alabama Gulf Coast: Orange Beach, Gulf Shores, Fort Morgan, Point Clear, Fairhope, Montrose, Daphne, Spanish Fort, AL. For more information on AL Gulf Coast Real Estate, please contact me or visit our website.

+ Reply to Thread

Similar Threads

  1. php and mysql
    By rajpreet in forum Coding
    Replies: 4
    Last Post: 12-01-2007, 02:20 AM
  2. Php Form Script
    By iorgobe13 in forum Coding
    Replies: 9
    Last Post: 06-04-2007, 12:30 PM
  3. Require PHP scripts to display NWMLS mysql queries on website
    By darthwader in forum MLS listings and IDX Solutions
    Replies: 6
    Last Post: 02-28-2007, 11:00 PM
  4. Replies: 6
    Last Post: 02-12-2007, 03:44 PM

Posting Permissions

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