Using PHP

Discussion in 'PHP' started by paparaaapa, Apr 23, 2008.

  1. #1
    Hi there, i am newbie in this. Recently i bought a template from template monster,it is a e-commerce template, i have all the files i need, what i want to know now is that i have the php files in folder too, but i don't know how to make it work with my pages. I only have the first page that show up but i don't know how to make it link and working with my php files. Does it need to store in Database? I don't really know how it works...
     
    paparaaapa, Apr 23, 2008 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    PHP should render correctly and output HTML for your browser, if it is in fact outputting something.

    Could you show us your site? I have a feeling there might be configuration files of some sort, or possibly that your server doesn't have PHP compiled.
     
    Louis11, Apr 23, 2008 IP
  3. paparaaapa

    paparaaapa Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    my site is not setup yet since the code is not running so i took it off again, i am using Frontpage to do it. If my server doesn't have PHP complied what should i do then? i thought it is something with database because my sites aiming on online store, where customer can register their account and buying thing from me. Does this mean i need a database? I bought the template and now i don't know how to apply it...sad.
     
    paparaaapa, Apr 23, 2008 IP
  4. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #4
    My first bit of friendly advice: uninstall frontpage, and never touch it again.

    Second, verify with your hosting that you in fact have PHP installed. Otherwise when you access pages, you will just get a bunch (seemingly) foreign text (should be the PHP code).

    You will definitely need a database for an online store. Unless your using text files to hold all of the information, in which case you need to get a script. So, verify with your hosting company that you have PHP installed. If not, you may consider transferring to another hosting company (or upgrading).

    One final thing you may check, is to make sure you updated all of the values in any of the configuration files and made sure that the files had necessary permissions.

    Let me know if there is anything else I can help you with :)
    - Louis
     
    Louis11, Apr 23, 2008 IP
  5. paparaaapa

    paparaaapa Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    this is the scripting feature, i assume that my domain have PHP installed right?

    Scripting Features
    Microsoft ASP Scripting
    Microsoft ASP.NET
    Microsoft .NET Framework 1.1
    Microsoft XML
    PHP5 Scripting
    Python Scripting
    Cold Fusion Scripting
    Perl Scripting

    but for now, how do i make my php work? i purchase the template with template monster, they only provided me a few folder, one of the folder is name "OSC" then from inside i can see a lot of PHP and some folder. You ask me not to use frontpage, what should i use then? Dreamweaver? i thought u just upload all the thing into my domain then i can use all the thing, but it doesn;t seems like it to be, your help is appreciated~Thanks.
     
    paparaaapa, Apr 23, 2008 IP
  6. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #6
    If you don't know PHP - pay a coder. TO save money, get them to integrate the template with Zen Cart or some other prebuilt solution.
     
    blueparukia, Apr 23, 2008 IP
  7. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #7
    Yes it looks like you have PHP installed.

    I recommend using anything but Frontpage. Editing things in frontpage will completely ruin any working code that you had. I personally try to stay away from any WYSIWYG editors.

    If its a shopping cart of some sort, you're going to need to integrate it with a database (and probably change some configurations in one of the files).

    Cheers,
    Louis
     
    Louis11, Apr 24, 2008 IP
  8. phpl33t

    phpl33t Banned

    Messages:
    456
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
  9. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #9
    Well said my friend, well said :D
     
    Louis11, Apr 24, 2008 IP
  10. paparaaapa

    paparaaapa Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    thanks for all the helps, i guess it is something related to OScommerce, and it state that i can upload all my thing in web storage and run "://my-web-address/install/" then i can call up their osc software installer and install it to my web, but it's seems like this is not working at all...i guess this is their problem about all this thing.
     
    paparaaapa, Apr 25, 2008 IP
  11. paparaaapa

    paparaaapa Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Finally i successfully install the OSC, Thanks for all the help out there.

    One thing i will like to ask,Now i have to type "http://www.mysites.com/shop/index.php then i can reach my sites
    but when i type "http://www.mysites.com" it display the page not found...how do i make it when people type "www.mysites.com" to reach my sites then? Instead of typing the long address...
     
    paparaaapa, Apr 28, 2008 IP
  12. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #12
    Create a new file on your root directory called ".htaccess"

    In it, write:

    
    DirectoryIndex shop/index.php
    
    Code (markup):
     
    blueparukia, Apr 29, 2008 IP
  13. paparaaapa

    paparaaapa Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Found the code

     
    paparaaapa, Apr 29, 2008 IP