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 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.
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?
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.
Do that insteadCode:#menu a.activelink{ color:#FFDA85; } #menu a.activelink:hover{ color:#FF7700; }
<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.
modernizr.
-snip- fixed it
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.
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%?![]()
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).
Use absolute positioning.
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.
Fair-use is usually not more then 10x the avarage.
It'll probably say in the ToS that you can't use their web hosting as a file hosting service.
Any good Wordpress themes?
The best I can find is Launch.
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.
sublime text 2
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.
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.
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.
Visual Web Developer Express is free..
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...?
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...
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 image 403's.
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?
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.
You have a second li#topnav2 :hoverCode: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); }
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 :)
I recommend you use sprites as you originally suggested, it will stop the image disappearing on hover as it loads the image.
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
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.
snip~
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?