How Do I Create a PHP Page from Scratch?

by 20 replies
24
Hi All,

Some of you may have seen my thread over in the main forum;
http://www.warriorforum.com/main-int...f-website.html

I'm going to create a PHP page with some reviews of golf products, I'm a little stuck as I don't really know where to start . . .

I need a good PHP editor where I can view the design and edit the code at the same time. Obviously I only want to create a single page that won't start to muck up the overall design of the site.

Can anyone suggest a (hopefully free)! program that'll let me perform such tasks? I've found a site which I would like to base my page design on - Golf Swing Lessons Reviewed

Simon.
#programming #create #page #php #scratch
  • Designing a php page is not that difficult. If it is just a basic page, it is very similar to an html page.

    I know you mentioned that you were looking for a free program, but that will give you limitations.

    I love to use adobe dream weaver..was hard at first but now I use it just as efficiently as I do with MS Office apps.

    You may also want to consider outsourcing. It would be 3 times as fast which means you get to work on your business much quicker.

    'astly, since you have a design in mind, you could maybe consider buying a template and modifying it to the way you want it. For example, there are thousands of joomla templates available for free. Once installed on you server it is a piece of cake. I believe they are all in php format as well.
  • Hey,

    I know basic PHP but just not enough, as my wordpress has frames already I just need to add a new "template" as such - I may give that a go . . .

    Simon.
  • Go check out this site: w3schools.com/php/default.asp

    This is a great place to learn about php scripting, and it's free!
    • [1] reply
  • I think you need to check out the Wordpress.org forum.

    I use Wordpress for creating websites. It's possible to create template pages which are:

    => straight sales pages (without sidebars)
    => sidebars left or right, or both
    => have different widgets
    => different headers
    => different footers

    ...all on the same Wordpress driven website.

    But there is a learning curve.

    May be I should put together a template pack that includes all these different configurations and offer it as WSO
  • Alright... seems like we are starting to talk about WordPress instead of PHP. But considering the real objective that Simon wants to build a review site, he may want to consider doing it with WordPress... or maybe other solutions listed in HotScripts.com
  • Simon's already used Wordpress to build his site. I think he wants to add review pages to his Wordpress site

    Perhaps Simon could clarify his posting since we have different interpretations ?
  • Ah... Dan Grossman. I forgot who's the owner of that WPReviewSite. Love your stuffs from Awio
  • Banned
    [DELETED]
    • [1] reply
    • Crash Course:

      Download Netbeans IDE, the php version. (free and open source).
      http://www.netbeans.org/downloads/index.html

      Install and open Netbeans.

      Go to PHP Tutorial

      Run through the entire course. (trust me, its worth it).

      Start making your page.

      Put code in the format like below:

      Your code looks like this:
      -------------------
      <?PHP

      your code goes here...

      ?>

      All other HTML can go here
      --------------------


      Upload file to your server, then point your browser to it.

      Presto!

      I hope this helps

      Ryan Street
  • Hi All,

    Sorry about not replying sooner!
    If possible I'd like to continue to use Wordpress, I'll take a look at that Plugin!

    I already have Microsoft Expression, although can't afford the 2nd version just yet .(I'm still waiting to make my first $!) ;-)

    I'd like to have a page, then lots of pages coming off with new products etc - but also self updating . . . . . hmmm!
    Simon.
    • [1] reply
    • Ah, that's a shame, because Expression Web 2 added syntax highlighting, code completion and built-in server support for the PHP language. I didn't like coding PHP in the first version (I tried it when it was free as a beta version).
      • [1] reply
  • The first step to get us on our way to programming in PHP would be to set up an ideal development environment. You need a web server software like Apache (which would be what we are going to use) which is only one of many out there. Most of these web servers are open-source meaning that they are free. Now, being free doesn't mean that they are not up to standards for there are standards that are set by independent groups that are comprised of the many developers who together formulate or give a loosely defined set of standards for others to follow. Apache has versions for Linux but there are also for the Windows, Unix and Mac OS. The Intaller can be downloaded along with the detailed manual from PHP.net
  • Its a good idea to set up your own server so you can test without being online etc , get yourself a copy of wamp (wamp.com) its free and a very easy install, it installs apache, php and mysql on your pc / mac / linux

    As for the suggestion of copying a php file, this would have to be on an example page that has a marked up example to copy, downloading a sites .php page or doing a view source will only show the code generated by the php, not the actual php code (which is more than likely in a different file).

    There are heaps of free tutes on the web and as mentioned before w3schools.com/php/default.asp is a great free resource.

    hope that helps!
  • I am not able to post links but you can check my sig and first link in it. There is a blog post about setting webserver on your PC.

    Once that is set you can just open notepad write <?php ?> and it is PHP.
  • I haven't followed this thread that close but I must give recognition to Dan's WP plugin. Dan always give great advice in the forum and I recognize him as an accomplished and talented fellow programmer. You'll get a great review site for an awesome deal and save yourself a ton of time through his WSO.

Next Topics on Trending Feed