Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question get text for other places

    hey all!
    im making a web page and i need my page to take text and pictures from some other file like .txt, .pdf or .doc but i cant find any tutorials that mention it. i have made it in css and html (cuz i cant put anything else in it).
    can any 1 help me about my problem??

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Try googling javascript includes if you are truly stuck with HTML/CSS only. Otherwise, look into PHP as this is very robust and does not rely on the user's machine having javascript enabled (it's also better for SEO since most search engines don't crawl javascript-generated content).
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #3
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if il use php dont i need a sql server or something? (i havent studied much about php)

  • #4
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by ants21 View Post
    if il use php dont i need a sql server or something? (i havent studied much about php)
    MySQL and PHP are very commonly used together but you don't need MySQL (or SQL or any other database for that matter) for anything that doesn't involve a database. Databases are commonly used for user accounts to hold login and account information, etc. For example: blog suites, such as wordpress, use a database for storing, sorting, and filtering user accounts, preferences, blog posts, and replies.

    If all you need is file includes then PHP will work for you all by itself.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #5
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So if I want to make a page with accounts then i need a sql database? (Iv thought about that do)

  • #6
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    It wouldn't necessarily have to be SQL, but yes, a secure database of some sort would be needed. Your hosting provider would be able to tell you whether MySQL or some other database is provided with your hosting package. If you have a free host this can be hit-or-miss but for paid plans it is pretty much standard.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #7
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    now iv got a nother problem i cant open any .php files in firefox or in ie and if i open them in notepad++ it crashes.

  • #8
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    PHP is a server-side scripting language so the best any browser would give you is unparsed code for a lot of it anyway. It wouldn't actually run the script parts so you wouldn't see what you were intending.

    I'm not sure why Notepad++ would crash though. If nothing else regular old Notepad will work (that's what I use most of the time anyway).
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #9
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks il try and see if i can figure it out!


  •  

    Posting Permissions

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