Jump to content

sKunKbad

Members
  • Posts

    1,832
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by sKunKbad

  1. I'm guilty, so shoot me.

  2. Even on my day off I end up in Codeland.

  3. It's too hot to work. Wish I had a pool.

    1. davidannis

      davidannis

      Just move to Michigan.

  4. PHP 5.6.0 released!

  5. If you're only internet is a touch screen device, I feel sorry for you.

  6. I'm way overdue for a vacation.

  7. Time changes this weekend. Ahhhhhhhhh!

  8. class Homepage extends CI_Controller { public function __construct() { parent::__construct(); // Assuming layout.php or Layout.php is located in /application/libraries/ $this->load->library('layout'); } public function index() { $whatever = $this->layout->some_method(); } }
  9. I am envious of your short URL, but that being the most interesting thing about your site, I'd say you have some work to do.
  10. I think you might be going about this all wrong... or at least that is my opinion. When playing war, player one and player two are both dealt a hand of cards, or 1/2 the deck. You might represent these cards as arrays that are held in a cookie or session array. These arrays would be added to (if the player wins), or subtracted from (if the player loses), but in your game the cards come from a sizeless deck that doesn't ever ends. Also, the cards in each players hand do not get played randomly in a real game of war. The card that is played comes off the top of the players dealt hand (which is face down in front of them). So, I think you need to go back to the basics of how to play the game of war, and then think about using cookies or the session array to hold your cards. There's only 52 cards in a deck, and none of them are the same (with the exception of jokers). Again, consider using cookies or the session array.
  11. It's hard to see what is going on without seeing cardfunctions.php
  12. Any basic MySQL w/ PHP tutorial should be sufficient to get your started. What you are trying to accomplish is the basics of a web database application. Try seaching Yahoo! or Google for tutorials. I'm sure you will find millions.
  13. You should simplify your script to the bare essentials for testing, and also use code tags when posting.
  14. I've been a "super moderator" of a vBulletin form before, and I hate it. I think this forum is fine the way it is.
  15. How is that different or even "more advanced" than "...to run an automated process on all POST data". I was only referring to 9three's original post. You had posted before I hit the post button, and I didn't feel the need to change my post. Sorry for the confusion; we had the same idea. I usually use php's data filtering: http://php.net/filter
  16. to start, all of those else ifs should just be ifs.
  17. A more advanced way would be to filter each array so that any time the array is used it is considered clean. Frameworks that I have used do this automatically, but before I started using frameworks I did the same thing. If you don't use a framework, or don't want to use a framework, you might consider downloading one just to see how it handles common tasks.
  18. If I can get some free time in the next few days, I could look at the script, but I can't promise anything. I think you oughta go back to those other forums and start being annoying!
  19. Have you read the docs and asked this in their forum? I'd be reluctant to use a script that doesn't have support from the author/community. It does look nice though...
  20. Wow, that is sweet! I did it with relative ease. I got hung up thinking that putty was somehow going to display as a browser, but once I figured out (by reading) that all I needed to do was to change the way my Firefox connects to the internet, all was good. I actually tested the connection without modifying the phpmyadmin.conf, but now that I know how it works making that change is simple enough. Thanks! Thread Solved!
  21. First thing you gotta do is log in to your LAN's router. Once logged in, you need to find the port forwarding configuration. Make sure to forward http traffic (port 80) to your machine. If you don't know your LAN address, try checking the router's DHCP table to see the name of your computer. In most cases it will be something like 192.168.1.104 or similar. Once you set up the port forwarding to your machine, as long as your router isn't reset, you will be able to access your website using your static or dynamic WAN IP (assuming Apache is listening on port 80). It is better to set up a static connection from your machine to the router if you can, that way there is one less DNS setting to go wrong. As far as WAN goes, dyndns is ok, but I prefer zoneedit. Once a zoneedit account is configured, you can use ddclient to update zoneedit, and your connection will be as good as a static connection.
  22. OK, yes phpmyadmin is installed to /user/share/phpmyadmin on ubuntu also. As for using it via ssh tunnel... remember I am just learning. I would need to find a tutorial or more info to do that.
  23. Thanks, I probably should have thought better about my questions, and worded them differently (or put them somewhere else). Yes, I am just trying to see how things work. I'd like to eventually have enough experience (and I know that may be a long ways away) to add "linux web server administration" to my list of skills. Yes, I am running the latest Ubuntu Server Edition (8.04). Yes, I installed with apt-get, but there is no vhost listed for phpmyadmin in /etc/apache2/sites-available. There is also no phpmyadmin directory in www, even though phpmyadmin is accessible from http://localhost/phpmyadmin. I'll have to look around and see what I can find. Since I am still just learning, I will want to have experience with all of the different ways to configure. I've kept a log of what I have done, and uploaded all of the files I have changed, so I can use them as reference in the future. While there are plenty of "Install Ubuntu LAMP Server" tutorials out there, they only represent one way of doing things, and my goal is to learn. I'd like to attempt to run other distros as well, but want to feel that I have at least semi-mastered the one I am working with now before moving on. On the side, have you or have you ever thought about writing a linux how-to book? You seem to know everything, and explain things well. There are a lot of books out there, but one that would specifically speak in detail about web server administration would be great. The one I have is 350 pages, and only 15 pages are dedicated to web server info.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.