How Do I Create a PHP Page from Scratch?

20 replies
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.
#create #page #php #scratch
  • Profile picture of the author energyguy
    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.
    Signature

    On Vacation

    {{ DiscussionBoard.errors[183614].message }}
  • Profile picture of the author Simon Nicholls
    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.
    {{ DiscussionBoard.errors[183631].message }}
  • Profile picture of the author hiphil
    Go check out this site: w3schools.com/php/default.asp

    This is a great place to learn about php scripting, and it's free!
    Signature

    Create your first website by 3:45 this afternoon - using Free software. (Free Download).
    www.hiphil.net

    {{ DiscussionBoard.errors[187270].message }}
    • Profile picture of the author kidino
      If you want to create a review site, I recommend using WordPress and install the WPReviewSite plugin. The plugin is $97 though...

      http://www.wpreviewsite.com/

      Unless you have something else in mind, I think this will shortcut the process. Or you can take a look at this. It lists out all the many PHP scripts for rating and reviews

      PHP Review and Rating Script and Programs :: Hot Scripts
      Signature

      DIPPEC - PHP Script for Selling Digital Products with Paypal. No more monthly SaaS fees. No more commission fees. Keep it all for yourself (except for Paypal fees).

      Free Pricing Table Builder

      {{ DiscussionBoard.errors[190399].message }}
      • Profile picture of the author Dan Grossman
        Originally Posted by kidino View Post

        If you want to create a review site, I recommend using WordPress and install the WPReviewSite plugin. The plugin is $97 though...

        http://www.wpreviewsite.com/
        $77 if you purchase through the WSO.

        To the OP, if you have the money, I recommend Microsoft Expression Web 2 for an editor. It can do split screen between code and design views which updates as you type.
        Signature
        Improvely: Built to track, test and optimize your marketing.

        {{ DiscussionBoard.errors[192177].message }}
      • Profile picture of the author zoobie
        you don't need a plugin, basically you just need to know how to create simple landing page style wordpress and that's it. basically you just use the default wordpress page and edit that page to chop off all the unnecessary heading, side bar and that';s it. for editor you can use notepad, I don't recommend dreamweaver as this is NOT for programming and they consume too much memory. If you really want an editor, I recommend, jedit, an open source programming editor which do more good than dreamweaver and the best part free!

        but ezy dollar you need to understand some php codes before you can edit
        the typical style code will be having <?php ?> in your html files.
        {{ DiscussionBoard.errors[192462].message }}
  • Profile picture of the author JustVisiting
    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
    Signature
    "...If at first you don't succeed; call it Version 1.0"
    {{ DiscussionBoard.errors[190438].message }}
  • Profile picture of the author kidino
    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
    Signature

    DIPPEC - PHP Script for Selling Digital Products with Paypal. No more monthly SaaS fees. No more commission fees. Keep it all for yourself (except for Paypal fees).

    Free Pricing Table Builder

    {{ DiscussionBoard.errors[190487].message }}
  • Profile picture of the author JustVisiting
    Originally Posted by kidino View Post

    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

    Originally Posted by Ezy Dollar View Post

    Obviously I only want to create a single page that won't start to muck up the overall design of the site.
    Perhaps Simon could clarify his posting since we have different interpretations ?
    Signature
    "...If at first you don't succeed; call it Version 1.0"
    {{ DiscussionBoard.errors[190542].message }}
  • Profile picture of the author kidino
    Ah... Dan Grossman. I forgot who's the owner of that WPReviewSite. Love your stuffs from Awio
    Signature

    DIPPEC - PHP Script for Selling Digital Products with Paypal. No more monthly SaaS fees. No more commission fees. Keep it all for yourself (except for Paypal fees).

    Free Pricing Table Builder

    {{ DiscussionBoard.errors[192308].message }}
  • Profile picture of the author BIG Mike
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[192386].message }}
    • Profile picture of the author ryanstreet
      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
      Signature
      Ryan Street
      PHP Developer Specializing in WordPress and Magento
      {{ DiscussionBoard.errors[192413].message }}
  • Profile picture of the author Simon Nicholls
    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.
    {{ DiscussionBoard.errors[193793].message }}
    • Profile picture of the author Dan Grossman
      Originally Posted by Ezy Dollar View Post

      I already have Microsoft Expression, although can't afford the 2nd version just yet .(I'm still waiting to make my first $!) ;-)
      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).
      Signature
      Improvely: Built to track, test and optimize your marketing.

      {{ DiscussionBoard.errors[215813].message }}
      • Profile picture of the author wayfarer
        Originally Posted by Dan Grossman View Post

        Ah, that's a shame, because Expression Web 2 added syntax highlighting, code completion and built-in server support for the PHP language.
        Syntax highlighting is very important, as common mistakes, such as forgetting to close a quote, or improperly named arguments, will be quickly caught by syntax highlighting. However, if anyone is looking for a free editor that has full features, with shortcuts and full highlighting, I definitely recommend Aptana. It has support for many languages, including PHP, ASP, JavaScript, HTML, CSS, and many more. Best of all, it is free.
        Signature
        I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
        {{ DiscussionBoard.errors[219089].message }}
        • Profile picture of the author ChristianM
          Originally Posted by wayfarer View Post

          Syntax highlighting is very important, as common mistakes, such as forgetting to close a quote, or improperly named arguments, will be quickly caught by syntax highlighting. However, if anyone is looking for a free editor that has full features, with shortcuts and full highlighting, I definitely recommend Aptana. It has support for many languages, including PHP, ASP, JavaScript, HTML, CSS, and many more. Best of all, it is free.
          I second the vote for Aptana - it's also pretty good for organising projects.

          Aptana Studio -- The Web 2.0 IDE for Ajax, PHP, Ruby on Rails, Jaxer and more
          {{ DiscussionBoard.errors[255060].message }}
  • Profile picture of the author kristine08m
    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
    {{ DiscussionBoard.errors[194694].message }}
    • Profile picture of the author vikas1234
      Banned
      [DELETED]
      {{ DiscussionBoard.errors[195225].message }}
      • Profile picture of the author Janet Sawyer
        Originally Posted by vikas1234 View Post

        to create a php file compy paste existing file from internet and see how it works

        Do tell

        How does that work then?

        What program do you suggest pasting it into?

        How do you save it, view source? does that work for php files?

        What do you need to view the pasted php file and to see how it works?
        If it's reading a mysql database file or has java script embedded how do you tell what files scripts sources are being used?

        Just wondering, thanks for your response.

        Janet
        {{ DiscussionBoard.errors[196951].message }}
  • Profile picture of the author Jonno
    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!
    {{ DiscussionBoard.errors[215391].message }}
  • Profile picture of the author -Nick-
    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.
    Signature

    For Tips and Tricks Webmaster Blog | For Latest Check Software Downloads

    {{ DiscussionBoard.errors[253934].message }}
  • Profile picture of the author Plinko
    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.
    {{ DiscussionBoard.errors[256146].message }}

Trending Topics