1. Post #2041
    usa
    Developer
    usa's Avatar
    December 2011
    2,299 Posts
    I know this may be in another thread but where can I start learning PHP online, and what are the best references/resources?

    Also I hate video tutorials.
    Reply With Quote Edit / Delete Windows 7 New Zealand Show Events

  2. Post #2042
    Gold Member
    hexpunK's Avatar
    August 2008
    15,669 Posts
    I know this may be in another thread but where can I start learning PHP online, and what are the best references/resources?

    Also I hate video tutorials.
    I personally learned what little I know and needed from here mostly;
    http://www.tizag.com/phpT/

    Seems quite reliable, and was pretty straightforward.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  3. Post #2043
    Gold Member
    parket's Avatar
    May 2011
    1,168 Posts
    Working on a font generator thing, just to clarify - when using imagettfbox, an angle of 0 is just the default angle of the text right?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  4. Post #2044
    I have a homework to make simple HTML site, but I got interested into it and I went futher by self-learning.I'm trying to get active navigation tab to have other than other links and on mouse hover to change color, but it doesn't work for me.(I'm using html and css only right now)
    Here's how i'm trying to do it.
    Code:
            <div id="menu">
        <ul>
            <li><a href="index.html">Index</a></li> 
            <li><a href="Sistemas_bloks.html">Sistēmas bloks</a></li> 
            <li><a href="monitors.html" class="activelink">Monitors</a></li> 
            <li><a href="skalruni.html"> Skaļruņi </a></li> 
            <li><a href="pele.html"> Pele </a></li> 
            <li><a href="taustatura.html"> Taustatūra </a></li> 
            <li class="spec"><a href="Printeris.html"> Printeris </a></li>
        </ul>
        </div>
    ^ Place where I want to change color

    Code:
    #menu .activelink a{
    color:#FFDA85;
    }
    #menu.activelink a:hover{
    color:#FF7700;
    }
    Any ideas?

    Edit:Nvm, I will use this one http://hicksdesign.co.uk/journal/hig...-page-with-css
    You're using the wrong CSS selectors. What you are telling it to do is style any a elements within an element with the class of activelink.

    Code:
    #menu a.activelink{
    color:#FFDA85;
    }
    #menu a.activelink:hover{
    color:#FF7700;
    }
    Do that instead
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  5. Post #2045
    <nav> <section> <article> <header> <footer> etc. Recommended or overrated?
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  6. Post #2046
    Gold Member
    hexpunK's Avatar
    August 2008
    15,669 Posts
    <nav> <section> <article> <header> <footer> etc. Recommended or overrated?
    Considering they are HTML 5, you should be using them where appropriate if you are working in HTML5. It gives the layout some meaning (semantics), compared to <div id="fuck"/class="shit">, which has no real meaning.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  7. Post #2047
    rookwood101's Avatar
    September 2011
    256 Posts
    modernizr.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  8. Post #2048
    Hup, 2, 3, 4
    Maksim's Avatar
    October 2009
    1,456 Posts
    -snip- fixed it
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  9. Post #2049
    Gold Member
    Bambo.'s Avatar
    April 2011
    487 Posts
    Hey I'm looking for industry standard hosting, i'm not sure if that's even a thing but is there any specific company which does it?
    I have a VPS (hexxeh) but i'm unsure about my webserver setup being sufficient for a *real* purposes.
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Disagree Disagree x 3 (list)

  10. Post #2050
    Dragon Member
    Dragory's Avatar
    January 2006
    1,312 Posts
    Is there no way to have an element stretch to the full height of its parent if the parent has "min-height: 100%;"?
    Reply With Quote Edit / Delete Windows 7 Finland Show Events

  11. Post #2051
    I paid $2 for this
    Miljaker's Avatar
    October 2010
    791 Posts
    Is there no way to have an element stretch to the full height of its parent if the parent has "min-height: 100%;"?
    isn't that just height: 100%?
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  12. Post #2052
    Dragon Member
    Dragory's Avatar
    January 2006
    1,312 Posts
    isn't that just height: 100%?
    That's what I tried, but it just seemed to stretch to the content, not to the parent (which would be at least the height of the viewport).

    If anyone is wondering, I'm trying to have multiple backgrounds that can be higher than the content and should not clip at the content height (and one of the backgrounds also needs to stretch with the content, but has to be under a background that does not - not really a problem, as the one that doesn't stretch can just have no-repeat on its background and the element itself can still stretch).
    Reply With Quote Edit / Delete Windows 7 Finland Show Events

  13. Post #2053
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    Use absolute positioning.
    Reply With Quote Edit / Delete Mac United Kingdom Show Events

  14. Post #2054
    World of Vagax
    darth-veger's Avatar
    December 2008
    21,665 Posts
    A friend of mine wants to buy a site which uses unlimited bandwidth (Fair-use policy)
    He wants to host pretty big files on the site, which one of those is a Unity web player which tends to suck up some MB/s every day

    Is it smarter for him to upload the files and perhaps get a paid account on a upload site to upload the files there or can he easily host them on he's own site?
    I'm quite confused about the fair-use policy..
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  15. Post #2055
    RAPISTS ARE OPPRESSED
    mobrockers2's Avatar
    April 2011
    12,403 Posts
    A friend of mine wants to buy a site which uses unlimited bandwidth (Fair-use policy)
    He wants to host pretty big files on the site, which one of those is a Unity web player which tends to suck up some MB/s every day

    Is it smarter for him to upload the files and perhaps get a paid account on a upload site to upload the files there or can he easily host them on he's own site?
    I'm quite confused about the fair-use policy..
    Fair use usually implies don't use up huge amounts of bandwith like 20gb a day or something.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  16. Post #2056
    I paid $2 for this
    Miljaker's Avatar
    October 2010
    791 Posts
    Fair-use is usually not more then 10x the avarage.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  17. Post #2057
    secretly a furry
    Jelly's Avatar
    April 2011
    2,023 Posts
    It'll probably say in the ToS that you can't use their web hosting as a file hosting service.
    Reply With Quote Edit / Delete Linux Australia Show Events Agree Agree x 1 (list)

  18. Post #2058
    I fucking hate Lori.
    Moofy's Avatar
    April 2010
    2,499 Posts
    Any good Wordpress themes?
    The best I can find is Launch.
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  19. Post #2059
    bake someone a cake with laxatives and viagra and then they will have poopboners
    n0cturni's Avatar
    August 2007
    4,466 Posts
    I'm about to get back into HTML and since I can't really afford Dreamweaver right now (or care to purchase it given my current skill level) I was wondering what a good alternative would be.

    I was thinking of using Visual Web Developer 2010 Express. I've been using Kompozer and was going to switch to BlueGriffon, which succeeds Nvu of which Kompozer was a fork of, but they don't seem to be well "established." I just want to use something that is closer to "industry standard" but is also not Dreamweaver.
    Reply With Quote Edit / Delete Windows Vista United States Show Events Funny Funny x 1 (list)

  20. Post #2060
    Meow :3
    Ac!dL3ak's Avatar
    July 2005
    6,090 Posts
    sublime text 2
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Agree Agree x 2Informative Informative x 1 (list)

  21. Post #2061
    Gold Member
    Asgard's Avatar
    July 2010
    3,681 Posts
    Hi,

    I'm currently working on the portfolio of a friend of mine,


    (don't worry, portrait is a placeholder )

    However, I'm not quite sure how to handle the Projects section,



    Do any of you talented web dev people have suggestions on how I could give a description of every project, and some extra screenshots.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Funny Funny x 1 (list)

  22. Post #2062
    secretly a furry
    Jelly's Avatar
    April 2011
    2,023 Posts
    Underneath the big screenshot have 3 small screenshots that open up using a lightbox when clicked. Heading and description could be above the big screenshot.
    Reply With Quote Edit / Delete Linux Australia Show Events

  23. Post #2063
    asantos3's Avatar
    March 2011
    936 Posts
    I'm about to get back into HTML and since I can't really afford Dreamweaver right now (or care to purchase it given my current skill level) I was wondering what a good alternative would be.

    I was thinking of using Visual Web Developer 2010 Express. I've been using Kompozer and was going to switch to BlueGriffon, which succeeds Nvu of which Kompozer was a fork of, but they don't seem to be well "established." I just want to use something that is closer to "industry standard" but is also not Dreamweaver.
    What's wrong with you people, you don't need expensive programs, that in this case are shit, you just need something like notepad and a few settings like syntax highlighting, in the end notepad++, sublime text 2 and a few others win to the stupid expensive programs.
    Reply With Quote Edit / Delete Windows XP Portugal Show Events Agree Agree x 5 (list)

  24. Post #2064
    Gold Member
    Crhem van der B's Avatar
    January 2010
    1,692 Posts
    Visual Web Developer Express is free..
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 2 (list)

  25. Post #2065
    lkymky's Avatar
    December 2007
    653 Posts
    I have recently discovered the benefits to base64 encoding images for simple things like icons.

    Would it be bad practice to have a single PHP file to handle all icon images and then just load whichever one I want with a queryString?

    like <img src="imageHog.php&image=icon" alt="imageHog.php&alt=icon" />
    Reply With Quote Edit / Delete Windows XP United States Show Events

  26. Post #2066
    secretly a furry
    Jelly's Avatar
    April 2011
    2,023 Posts
    I have recently discovered the benefits to base64 encoding images for simple things like icons.

    Would it be bad practice to have a single PHP file to handle all icon images and then just load whichever one I want with a queryString?

    like <img src="imageHog.php&image=icon" alt="imageHog.php&alt=icon" />
    Why not just serve them as static content...?
    Reply With Quote Edit / Delete Linux Australia Show Events

  27. Post #2067
    lkymky's Avatar
    December 2007
    653 Posts
    Why not just serve them as static content...?
    I guess I'm just looking for excuses to practice PHP, Everytime I learn a new ability I try to find creative ways to use it.

    I am actually looking to add icons to my current site next to the words http://almost-there.org
    I used iconFonts and those were fun but I didn't like having to add <span style="font-family:Icon">A</span>Forums</li> to every single word, I also loaded images individually but thought about all the requests made to the /images/ folder

    Then I played with base64 and saw how they are all loaded once with a single request and really liked that. More load on the client, less on the server...
    Reply With Quote Edit / Delete Mac United States Show Events

  28. Post #2068
    zhed+redball.jpg
    xmariusx's Avatar
    May 2010
    1,447 Posts
    I want the border-radius to be the same at all side, but since I have a top border it changes(no idea how that is calculated). Anything I can do to change this?

    Edited:
    is it public now?
    if not: http://sdrv.ms/MbYuFU
    Reply With Quote Edit / Delete Windows 7 Norway Show Events

  29. Post #2069
    Pass along
    commander204's Avatar
    May 2008
    4,065 Posts
    I want the border-radius to be the same at all side, but since I have a top border it changes(no idea how that is calculated). Anything I can do to change this?

    The image 403's.
    Reply With Quote Edit / Delete Windows 7 France Show Events Agree Agree x 1 (list)

  30. Post #2070
    Dragon Member
    Dragory's Avatar
    January 2006
    1,312 Posts
    I want the border-radius to be the same at all side, but since I have a top border it changes(no idea how that is calculated). Anything I can do to change this?

    Edited:
    is it public now?
    if not: http://sdrv.ms/MbYuFU
    The border radius seems the same on all sides.
    Do you mean you want the corners of the darker area to be of the same radius at each corner? Because currently the border radius is applied to the top border itself, not the darker area, which makes it seem like it's not the same at the top.
    Reply With Quote Edit / Delete Windows 7 Finland Show Events

  31. Post #2071
    zhed+redball.jpg
    xmariusx's Avatar
    May 2010
    1,447 Posts
    The border radius seems the same on all sides.
    Do you mean you want the corners of the darker area to be of the same radius at each corner? Because currently the border radius is applied to the top border itself, not the darker area, which makes it seem like it's not the same at the top.
    Ya, that's what I meant. Is it possible to make the border radius only apply to the area with dark background, and make the border wrap around somehow?
    Reply With Quote Edit / Delete Windows 7 Norway Show Events

  32. Post #2072
    Mikeyspike's Avatar
    August 2007
    173 Posts
    I'm going to skin a rabbit soon. My navigation bar is messing up. I can't see any reason why.
    I've implemented roll over images using CSS. originally I had a single image with all the different states and then used image position to set the image in different states. I've now tried splitting the image up and assigning different images to try and get it to work but I still get the same problem.

    here's my problem (the navigation bar):
    http://www.toomanyfoxes.co.uk

    here's my CSS code for the navbar:

    ul#topnav {width:394px; list-style:none; height:27px;}
    ul#topnav li {display:inline;}
    ul#topnav li a {height:27px; float:left; text-indent:-9999px;}
    
    ul#topnav li#topnav1 a {
    width:90px;
    background:url(../img/navbar/home.png); 
    }
    ul#topnav  li#topnav1 a:hover {
    background:url(../img/navbar/home_over.png); 
    
    ul#topnav li#topnav2 a {
    width:100px;
    background:url(../img/navbar/videos.png); 
    }
    ul#topnav  li#topnav2 a:hover {
    background:url(../img/navbar/videos_over.png); 
    }
    
    ul#topnav li#topnav3 a {
    width:90px;
    background:url(../img/navbar/about.png);
    }
    ul#topnav  li#topnav2 a:hover {
    background:url(../img/navbar/about_over.png); 
    }
    
    ul#topnav li#topnav4 a {
    width:114px;
    background:url(../img/navbar/contact.png); 
    }
    ul#topnav  li#topnav4 a:hover {
    background:url(../img/navbar/contact_over.png); 
    }

    and here is the html

    <ul id="topnav">
    <li id="topnav1"><a href="index.php" title="Home">Home</a></li>
    <li id="topnav2"><a href="videos.php" title="Videos">Videos</a></li>
    <li id="topnav3"><a href="about.php" title="About">About</a></li>
    <li id="topnav4"><a href="contact.php" title="Contact">Contact</a></li>
    </ul>
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  33. Post #2073
    zhed+redball.jpg
    xmariusx's Avatar
    May 2010
    1,447 Posts
    I'm going to skin a rabbit soon. My navigation bar is messing up. I can't see any reason why.
    I've implemented roll over images using CSS. originally I had a single image with all the different states and then used image position to set the image in different states. I've now tried splitting the image up and assigning different images to try and get it to work but I still get the same problem.

    here's my problem (the navigation bar):
    http://www.toomanyfoxes.co.uk

    here's my CSS code for the navbar:

    ul#topnav {width:394px; list-style:none; height:27px;}
    ul#topnav li {display:inline;}
    ul#topnav li a {height:27px; float:left; text-indent:-9999px;}
    
    ul#topnav li#topnav1 a {
    width:90px;
    background:url(../img/navbar/home.png); 
    }
    ul#topnav  li#topnav1 a:hover {
    background:url(../img/navbar/home_over.png); 
    
    ul#topnav li#topnav2 a {
    width:100px;
    background:url(../img/navbar/videos.png); 
    }
    ul#topnav  li#topnav2 a:hover {
    background:url(../img/navbar/videos_over.png); 
    }
    
    ul#topnav li#topnav3 a {
    width:90px;
    background:url(../img/navbar/about.png);
    }
    ul#topnav  li#topnav2 a:hover {
    background:url(../img/navbar/about_over.png); 
    }
    
    ul#topnav li#topnav4 a {
    width:114px;
    background:url(../img/navbar/contact.png); 
    }
    ul#topnav  li#topnav4 a:hover {
    background:url(../img/navbar/contact_over.png); 
    }

    and here is the html

    <ul id="topnav">
    <li id="topnav1"><a href="index.php" title="Home">Home</a></li>
    <li id="topnav2"><a href="videos.php" title="Videos">Videos</a></li>
    <li id="topnav3"><a href="about.php" title="About">About</a></li>
    <li id="topnav4"><a href="contact.php" title="Contact">Contact</a></li>
    </ul>
    You messed up some numbers there.
    Code:
    ul#topnav li#topnav3 a {
    width:90px;
    background:url(../img/navbar/about.png);
    }
    ul#topnav  li#topnav2 a:hover {
    background:url(../img/navbar/about_over.png); 
    }
    You have a second li#topnav2 :hover
    Reply With Quote Edit / Delete Windows 7 Norway Show Events

  34. Post #2074
    Mikeyspike's Avatar
    August 2007
    173 Posts
    You messed up some numbers there.
    Code:
    ul#topnav li#topnav3 a {
    width:90px;
    background:url(../img/navbar/about.png);
    }
    ul#topnav  li#topnav2 a:hover {
    background:url(../img/navbar/about_over.png); 
    }
    You have a second li#topnav2 :hover
    to think I spent around 3 hours yesterday trying to figure it out. I thank you. Now it's time to blow my head off.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  35. Post #2075
    zhed+redball.jpg
    xmariusx's Avatar
    May 2010
    1,447 Posts
    to think I spent around 3 hours yesterday trying to figure it out. I thank you. Now it's time to blow my head off.
    Hehe, glad I could help :)
    Reply With Quote Edit / Delete Windows 7 Norway Show Events

  36. Post #2076
    rookwood101's Avatar
    September 2011
    256 Posts
    to think I spent around 3 hours yesterday trying to figure it out. I thank you. Now it's time to blow my head off.
    I recommend you use sprites as you originally suggested, it will stop the image disappearing on hover as it loads the image.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  37. Post #2077
    own-fucking-zone
    Within's Avatar
    April 2009
    4,016 Posts
    I can't get a recent version of phpMyAdmin to work. I've been trying for hours now.
    The repository I'm using gives me an old version of phpMyAdmin when apt-get install phpmyadmin and I've been trying to figure out how to upgrade, but the thousands of web pages explaining it all does so different for each page and none of it seems to work.

    Any help would be appreciated.

    Debian 6 64-bit
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  38. Post #2078
    Gold Member
    vexx21322's Avatar
    December 2008
    10,661 Posts
    Using the input="num" element, how can I force the increment/decrement to only be what the step is? It appears it uses the mouse's scroll line size times the step value.
    I.E. my mouse is set to scroll 3 lines for every 1 tick. This makes a step of 5 equal 15.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  39. Post #2079
    Gold Member
    Sean C's Avatar
    April 2007
    2,092 Posts
    snip~
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  40. Post #2080
    Gold Member
    biodude94566's Avatar
    July 2006
    6,359 Posts
    I've only had a semester's worth of PHP and MySQL, and despite this I've got a job that I'm going to need to be writing web apps for. I've got the basic knowledge to do so, and a million references at hand for documentation, syntax, etc., but how do I know that my application is considered good coding? I'm going to eventually be working with creating and handling user accounts and private data, and I'm not entirely sure if I'll be able to find something already written that will suit what I need. I don't want to write a weak program, or end up writing hackish solutions to problems, only to find out that I could have easily written it cleaner, neater, and more secure.

    In short, are there any resources on what constitutes good and bad coding practices or conventions?
    Reply With Quote Edit / Delete Windows 7 United States Show Events