Making a Database driven PHP website...

Discussion in 'PHP' started by pratik, Aug 1, 2006.

  1. #1
    hey there

    i just got my hands on a new project, but was wondering if i will be able to deliver it... :confused:

    anyways, the project if making a database driven php site.... and for the same i am referring to this book... "SitePoint Build Your Own Database Driven Website Using PHP MySQL" ...

    before going forward let me add tht i know the following lang. HTML / CSS / Java Script... thtz it..

    firstly, i would like to know if i can run php pages on my PC? cause everytime i open a php page i only see the codings no design... !!

    also, wht is AJAX.. i know tht it is something tht i used for dynamically changing the page contains.. so can i use this formy php site... ???



    thankz :)
     
    pratik, Aug 1, 2006 IP
  2. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #2
    to run php you should need to install a server on your computer. Run a search for wamp and you can get the one i generally use. You have to do this because php is a server side language. You can check out their read me files to figure out how to view things.

    Ajax uses java to check other files for information and send it back, you can check a variety of files including php and xml. For a good example of ajax check out the dp spy which updates as people post.
     
    klown, Aug 1, 2006 IP
  3. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes, you can run php on your pc... but you need to have a web server (e.g. apache) and php installed first. even then, you can only actually 'run' the pages through a browser served by the web server installed on your pc...

    not worth the hassle if you ask me - might as well get a fat client application...
     
    daboss, Aug 2, 2006 IP
  4. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You CAN setup a PHP system on your PC, if you have some know-how. Earlier, I used to test all my scripts, even the silliest ones by uploading to my webhost. This was driving me nuts. Finally I installed PHP,MySQL and Apache manually on my system and its very easy to test the scripts now.

    The only thing thats hard will be to configure the PHP to make it work correctly. Everything else is easy.

    You can try the EasyPHP Package.
    http://easyphp.org/

    It seems to be good. Haven't tried it though.

    Another thing is...
    This is not true. AJAX does NOT use java, it uses JAVASCRIPT, which is an entirely different thing. Need proof? Check this out: http://en.wikipedia.org/wiki/Javascript .

    Ajax basically provides you with the functions to send an HTTP request using Javascript. So you can send requests to your server without reloading the page and update the values on the page using Javascript only. A very good free library that can be used code with AJAX is this:
    http://www.modernmethod.com/sajax/

    Hmm... They should have hired me as their marketing rep or something... I dunno how many times I have recommended this to someone .. :D .

    But I think you should learn PHP, before you start with Javascript. After you learn PHP, you can use some light-weight PHP framework, like Code Ignitor,
    http://www.codeigniter.com/

    It makes it very easy to develop applications with PHP.

    Thomas
     
    coderlinks, Aug 2, 2006 IP
    pratik likes this.
  5. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #5
    I also wouldn't bother programming a PHP/MySQL driven site from scratch, I would just use an Open Source tool such as Joomla. It will save you loads of time and headaches
     
    frankcow, Aug 2, 2006 IP
  6. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #6
    Or perhaps you should stop accepting projects that you are not qualified to do...

    I know if I hire an expert to do work for me that I can't do myself I expect them to know what they're doing.

    If I were hiring you and I found out you're on forums trying to figure out what to do and considering building my site based on a tutorial you found on sitepoint I'd be pissed.

    You'll probably deliver a project full of security holes and have no idea how to support them if it breaks.
     
    GeorgeB., Aug 2, 2006 IP
    mad4 likes this.
  7. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #7
    While you make a good point GeorgeB, you have to admit that the majority of software/services sales people sell greater than what they can deliver
     
    frankcow, Aug 2, 2006 IP
  8. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I agree. You would be better off building yourself a php/mysql website before unleashing something full of bugs onto your client. Don't forget that if something doesn't work you will be the one who has to fix it.
     
    mad4, Aug 2, 2006 IP
  9. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #9
    True but there's a difference between overbooking and promising something you cannot deliver.
     
    GeorgeB., Aug 2, 2006 IP
  10. pratik

    pratik Notable Member

    Messages:
    2,307
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #10
    firstly thankz a lot coderlinks & Klown...

    well as for taking projects tht i dont know here is my say for it... you see there is always a first time for everyone.. and the project will i am wrkin on is for one of my dear friend who already knows wht i know and can do.... so there is no harm in tryin.. to be clr m not wrkin on some highly paid stuff... and i like to be proud of the work i do.. so not cuttin in tht...

    anyways, thankz again guys... i ahve installed wamp and now wrkin on makin a PHP site.. and then will slowly add some AJAZ to the same :) ...

    will chk postin here it i need hellp and upadates... :)
     
    pratik, Aug 2, 2006 IP
  11. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #11
    no prob, if you want an easy to understand ajax example go here to download. it uses php btw so use wamp
     
    klown, Aug 2, 2006 IP
  12. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #12
    Look at jQuery - it makes AJAX trivial.
     
    Rukbat, Sep 10, 2011 IP