Jump to content

beermantm

Member
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by beermantm

  1. Try using open dns or googles dns
  2. Out of my snippets from years ago. You could try to adapt it to your needs. HTML <div id="nav"> <ul class="menu"> <li><a href="#">Item 1</a><span class="down">▼</span> <ul class="sub"> <li><a href="#">Item 1.1</a></li> <li><a href="#">Item 1.2</a></li> <li><a href="#">Item 1.3</a></li> </ul> </li> <li><a href="#">Item 2</a></li> <li><a href="#">Item 3</a><span class="down">▼</span> <ul class="sub"> <li><a href="#">Item 3.1</a><span class="right">▶</span> <ul class="sub2"> <li><a href="#">Item 3.1.1</a></li> <li><a href="#">Item 3.1.2</a></li> </ul> </li> <li><a href="#">Item 3.2</a></li> <li><a href="#">Item 3.3</a></li> </ul> </li> <li><a href="#">Item 4</a></li> </ul> </div> CSS <style type="text/css"> * { margin:0; padding:0;} #nav { width: 960px; margin: auto; height: 35px; position: relative; } ul.menu { position: relative; top: 0px; left:0px; list-style:none; } ul.menu li { height: 35px; position: relative; float:left; min-width:125px; background-color: #7d2a35; text-align:center; display: inline-block; } ul.menu li a { display:block; height: 35px; line-height:35px; color:#fff; text-decoration:none; } ul.menu li a:hover { height: 35px; min-width:125px; background-color:#fff; color: #000; } ul.sub { position: absolute; left:0px; top:35px; display:none; } ul.sub li { list-style:none; width:125px; text-align:left; } ul.sub li a { text-indent: 5px; } ul.sub2 { position: absolute; display:none; left:125px; top:0px; } ul.sub2 li a { } ul.menu li:hover .sub {display:block;} ul.menu ul.sub li:hover .sub2 {display:block;} .down { position:absolute; font-size:11px; top:20px; right: 1px;} .right { position:absolute; font-size:11px; top:20px; right: 4px;} </style>
  3. So it needs a description of everything it covers. Good job!
  4. I'm betting dotblock or digital ocean would be what you need and wouldn't drain the bank account to badly. Dotblock seems to have a slightly better benchmark but digital ocean is no dog either.
  5. I wouldn't go with godaddy either. I would stay as far away from fatcow as I could. Fatcow is garbage with their perl ran servers. You know if you want fast and reliable there is rackspace which might be overkill depending. You could always try a block for free at dotblock, amazon web service or google. Dotblock has ssd drives which would definitely serve up pages quicker. Time to first byte seems to be a problem with any shared hosting and some higher cost servers. I'd probably go with a cloud service like amazon that will expand along with your site and you might pay a bit extra but virtual servers like AWS have great upsides for the extra but smaller premiums they charge. All hosting companies get mixed reviews, however your best bets are virtual cloud based servers in my opinion. Just read your new post. maybe go with AWS. you can even consider using NGINX as your server. I've heard people dropping huge dollars on dedicated hosting and still being very upset.
  6. Just cracked a 5 hour energy!! Maybe I can make it a few more hours. That still has me laughing!! I'm Fried!!!!
  7. Oh my!! That is too much!! I've been writing nothing but php code lately. How embarrassing!!! Thanks Ben!! LMFAO!!!! Oh my!! I thought I had gotten enough rest!!
  8. Ok enough with the caps but this one has me going completely bonkers. I'm writing code and decide, I don't want to run this bit of code, so I use a comment block to comment it out. Fun story so far right? Problem I have is, the code doesn't actually get commented out. Hmmm.......... comment = /* put commented stuff here and here and here */ comments should be closed now except that is not the case. As you can see here: http://chicagophil.com/ How has this happened? Must be something simple but it's driving me insane!!
  9. Yeah but it looks like Jquery doing the work.
  10. heck I didn't even notice the links on the left make the slider. All I was seeing was the girls image that kept changing positions. Doesn't seem like it would be to hard to do. I don't think. It's all css as far as I can tell. Forget it I'm way to tired. I might look at this later now that you have me curious.
  11. Congrats on finding one of the most annoying pages on the internet!!
  12. I don't want to waste your time Ben. It looks like I have some reading to do on zend. I assumed the framework would produce some working examples however it looks as though some coding will be require to make zend function properly.
  13. Thanks Ben, After tirelessly and frantically searching for an answer, I decided that fixing the xampp issue of installing composer was going to be harder than just moving all my files and reinstalling xampp. I did a reinstall and just like magic composer and git are operating flawlessly. There was some sort of corruption I'm assuming . Of course, I had installed ioncube and about 50 different apps and I do remember doing some hacking to get things to work throughout all those installs. Either I had caused a corruption along the way or I had been getting around the issue for some time. Now, with a fresh install of the xampp stack, I'm now only experiencing one issue. I was able to get the skeleton zend app installed and running but the files will not dynamically load in dreamweaver. I thought it was the .htaccess rewriting of urls so I first took that out of the equation. I read something about using Pass through before I fell asleep last night so I'm going to keep digging on that. I have to admit composer really makes things easier. I installed fuel framework last night also and at first glance it seems amazing. Also, your assumption of a windows system was accurate.
  14. I have been trying to install as many php frameworks I can locally to experiment and study them but I keep running into problems. 1) Problem: is Composer requirements and running command line. Now I really have no problem with running from the command line however for some reason my computer just does not want to let some of these command line tools to run. I'm confused on Phar files and why composer will not install on my system. Also it seems I need to know git also. Are there any tips you guys might know of as to what might be preventing composer to run? Incidentally when I click the php.exe file it gets all kinds of errors and will not run. Seems all kinds of dll's are missing. 2) Problem: is Zend framework seems to require composer or using the command line. I would love to explore this framework also but I get stuck at problem one however my question is can I use this framework without using any command line tools? Can I just copy files like codeigniter? 3)Problem: is we'll get to three if we could get one and two solved or at least a work around. Thank You for any help
  15. Are you filling the entire header with the image? If yes then size the image to the same amount of pixels as your header. Also remember that web design pictures should be 72dpi to display correctly. Also are you using the image as a background or an inserted image?
  16. Putting it all together in my mind seems to be the difficult task. Mathematical functions seem easier for my brain to comprehend. I'm definitely learning more and at a faster rate at the moment. It will all come together soon I feel. Just rinse and repeat, rinse repeat. I could see where deadlines could become a problem.
  17. function randomNums() { $results_to_gen = 1100; $low_range = 100000; $high_range = 200000; $trim_results_to= 1000; $items = array(); $results = range( 1, $results_to_gen); $i = 1; foreach($results as $result) { $result = mt_rand( $low_range, $high_range); $items[] = $result; } $unique = array_unique( $items, SORT_NUMERIC); $countem = count( $unique); $unique_counted = $countem -$trim_results_to; $sum = array_slice($unique, $unique_counted); foreach ($sum as $key) { $output = $i++.' : '.$key.'<br>'; echo $output; } } randomNums(); CLose to Final result. I think it came out nicely. Just need to swap out numbers for variables.
  18. I had to rethink this so many times, I was pulling out the hair in my head. Pulling out the hair that wasn't falling out naturally. If all PHP if this hard to figure out i might go back to css!! function randomNums() { $items = array(); $results = range(1,10); $i = 1; foreach($results as $result) { $result = mt_rand(1, 200); $items[] = $result; } $unique = array_unique($items, SORT_NUMERIC); $countem = count($unique); $unique_counted = $countem -5; $sum = array_slice($unique, $unique_counted); foreach ($sum as $key) { $output = $i++.' : '.$key.'<br>'; echo $output; } } randomNums(); What do ya think?
  19. beermantm

    Oop In Php

    Did you try to go to killerphp.com? They have great courses of php.
  20. I like joomla for building content heavy websites. Wordpress for just a blog is OK but I really don't like wordpress that much. I think Concrete 5 is a pretty good cms that you could probably extend quite a bit. I've looked at Drupal but getting my head wrapped around it is pretty tough. No CMS's seem to fit the bill perfectly for things you might want to build.
  21. Why bother writing a PHP book when all the examples you put in the book have errors? I don't get the conglomerate of PHP books that are just really poorly written. It's like they enjoy stealing money from people. Even O'Reilly books which are usually known for solid information fall pretty short. I mean Programming php was partially written by the creator of the language.(supposedly) I guess third time isn't the charm in this case. Good God I'm thankful for this site over the years. I'm the type of person who wants to have the big picture very clear before trying to execute something. PHP reminds me of golf. You get the worst advise most of the time. You'll be told how your not going to learn how to golf unless you pick up the club and start swinging. Yes that is true to a degree but if I handed you a golf ball and a golf club and you've never seen the game before you'll just be standing there looking stupid. Now what if started teaching you the basics and gave you an example that just didn't work. Now your standing looking at me like I'm stupid. It's like a vicious cycle of events. Find a new instructor and you get more bad advise. Is there a shortage of bad instructors? No everywhere you look you can find bad instruction. To find the good instruction you have to be able to waddle through all the bad instruction and filter it. Until you find an instructor who wants to make sure the information is correct first and then tries to explain the information in a way that makes it easier to digest. This site which I believe I was around when you originally came online, or close to it, seems to be the filter of all the bad information. I built my first website by buying a basic html course back when the forum was like a yellow forum I believe.(over ten years ago I think) Then I followed that up with css. Now that I've been trying to wrap my head around PHP the information overload and the bad advise and ugly code is like everywhere I look. I haven't spent a lot of money at killersites.com and that is mainly because the information I purchase is always accurate and explained as thoroughly as can be explained. The only part of the PHP course that was a bit hard to follow I felt was the advanced course and not really because it was any harder but because of the switching of documents jumping back and forth. It's like things are happening faster than your mind can absorb them. I have to admit that I like Stefan's teaching style the best here. It's never rushed and almost every move you are completely aware of. I guess this post turned out to be a venting post. I'm frustrated by just seeing this stuff go on though!!  
  22. I forgot to add to stay far far away from fat cow!! You could always go with amazon web services but thats overkill for smaller projects.
  23. Killer sites hosting packages resemble go daddy packages. Is that who they are reselling for?
×
×
  • Create New...