Jump to content
MakeWebGames

HauntedDawg

Members
  • Posts

    476
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by HauntedDawg

  1. Simple, yet effective method. The users have no admin access, there is no "in-game" built in admin panel. You build it outside of the game, such as http://admin.gamename.com or http://gamename.com/admin/. Lock it down with htpasswd Separate users than the actual game. The table and/or database to be separate from the games users table.
  2. You seem very hesitant to show your coding. Therefor, until you do, no one will hire you.
  3. That upload was in 2009. I re-call GRPG being out since 2007 - 2008? I may be wrong though.
  4. I recently had a go at something like this for another project, and I found that regardless of what you try, it still relies on what the end user has installed to view videos. But here is what I done: When uploading a file, you have the $_FILES['name']['type'] parameter. I found that by using that "type" parameter, you can store it in the database, and by using php headers Content-Type, use the type from the DB. You can also use that same Content-Type in your html5 video tag. The problem comes in with certain file formats, specifically wma. Requires the end user to install quicktime. I would switch to DigitalOcean VPS, or even still, use a cheap $5 vps on DigitalOcean to connect to your database, fetch the files & convert them using ffmpeg (you can install it onto your own vps). And then on your website server, serve the files from the VPS (http://enable-cors.org/). There are many approaches. It depends on what you feel like using :cool:
  5. Wow, you really take your self that high. Lets see. You most probably have one dedicated server with 4 gigs of ram? Let me tell you that If i had to run a game on there with 100 active users, your server would die shortly :rolleyes: You don't offer command line access. That right there, already blows anyone out of the water in terms of competition against digital ocean. You don't offer auto setups. That again, good bye to your hosting, as Digital Ocean offer it up in 55 seconds, automatically. They have a few hundred staff to manage their servers and multiple datacenters. You have 1 server admin, and 1 dedicated server in 1 datacenter. Sure, digital ocean is hardly a competitor. Cause it can't even compete against the likes of your small (let me guess, 6 months max?) hosting company.
  6. Find someone on here willing to charge $15 - $30 to slice the design. So when you have a potential customer and they require it to be coded. You know you have someone to go to straight away. Obviously also finding them to do it well. You are more than welcome to contact me. $50 to slice the "Base" (1) template, login & register (or combine login & register to one with jQuery (magic if you don't know what jQuery is haha)). $5 - $10 per page there after if the pages have their own designs. If they are purely text, then it falls under the $50 principle of "Base". 1: "Base" - Essentially everything outlining the game play, menu, side menu etc etc.
  7. sudo /etc/haproxy/haproxy.cfg - will work, not sure why you used "su root /etc/haproxy/haproxy.cfg" -- edit -- After looking at haproxy setup, you might be on the wrong route: https://www.digitalocean.com/community/tutorials/how-to-use-haproxy-to-set-up-http-load-balancing-on-an-ubuntu-vps vi /etc/haproxy/haproxy.cfg - will allow you to edit it.
  8. phpMyAdmin for database management vsFTPd for file management (FTP) Assuming you are using ubuntu, here are links: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-12-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-on-ubuntu-12-04
  9. DIGITAL OCEAN for the world!
  10. The ignorance on this guy is just amazing.
  11. I agree, Grab a droplet from digital ocean. I have around 6 droplets with them.
  12. Hi, do you have any examples to the ones that exist?
  13. Surely you are a bot?
  14. http://makewebgames.io/showthread.php/33419-mccode-v2-Stock-Market-Working-Secured?highlight=stock+market ;)
  15. I don't know where you get your information from. But how does 46% over 38% mean its dying out? Sure, yeah, people are trying out different repositories, but it does not mean its simply "dying out". I for one know 3 corporations here in SA that use SVN, and have tried GIT and they will never use it again, as SVN accommodates there usage more. Just because you worked for 2 companies that used git, does not mean its DYING OUT! Now, to climb on the bandwaggon, we can search on google SVN vs GIT, and most people will say GIT, others will say SVN, and then the random few will just utterly not bother and suggest bazaar. Ill put it like this: http://svenpet.com/2013/02/21/dont-use-git/ - DONT USE GIT. http://www.altdevblogaday.com/2011/03/09/its-time-to-stop-using-subversion/ - DONT USE SVN. Everyone has their opinions, and for you to say its dying out, is utterly stupid.
  16. Curious why at the end of each line you have echo "< br / >"; (without spaces) when you could put that at the bottom of the function...
  17.   If I were in your shoes, id just disable error reporting. Majority of mods copied from here, will report errors. Since you are not sure how to resolve them, rather just disable the error reporting. By the way. $id = abs ((int) $_GET['id']); === $id = (array_key_exists('id', $_GET) && ctype_digit($_GET['id'])) ? $_GET['id'] : false;
  18. If its displaying in seconds correctly. 300/60 = 5 $minutes = intval($database['seconds'] / 60); should do it.
  19. No offense, but this is why most people get flamed. Did you try it in mysql? No. Did you try it in phpmyadmin? No. Will it work with mysql? Yes. Will it work in phpmyadmin? Yes. Why will it work? Because it still uses MySQL driver. Mysqli is a framework for mysql. How do i get it to work? Change mysqli_query to mysql_query.
  20. If you are storing it in a field as datetime type, you could do it via the query.   mysqli_query('UPDATE `users` SET `time` = DATE_ADD(NOW(), INTERVAL '.intval($_POST['time']).' MINUTE) WHERE `id` = {ID}');
  21. Yup... don't see it happening.
  22. If you wanted no secure function, you could do this:   function Secure($param) { return $param; }   Not sure how many parameters its meant to take. Alain will definitely be able to give you better advice.
  23. Although this is not intended on telling you what to do. But you should really consider using prepared statements on any input data. Although you state you are securing against what you know. There are many other hacks that you do not know of, and those will bite you directly between your legs down the line. Not sure if you have looked into it, but it's pretty easy.   $prep = $db->prepare('INSERT INTO `table` (`column1`, `column2`,`column3`) VALUES(?, ?, ?)'); $prep->bind_param('sss', $_GET['column1'], $_GET['column2'], $_GET['column3']); $prep->execute(); $prep->close();   And that will take care of any sql injections i know of, and that i do not know of. Just a thought to take in :)
  24. You start with a business model. What functionality and story line your game is going to have. It's no use having a **** ton of modules and no story line. Have your story line in place, then you start with the basic DB structure for accounts, login data, and so forth. Then your script to your DB. The login & register, then any modules that are first in place in your story line.
  25. No where do I entail that users should suppress the errors. Was just stating a fact. And just because it is "deprecated" does not mean it can no longer be used. Just imagine all those websites out there that are out of date, and they are on shared hosts, and they upgrade php, then all those websites don't work? Thus is why you get "deprecated" errors. Not that it won't work any more. Tell me, how much better is mysqli over pdo? Also, tell me, how often do you find yourself using the other drivers of PDO? Also, how many people have jumped on the bandwagon of PDO, thinking its "THE" way forward, and are pretty much using the mysql driver? Again, PDO is just another option forward, its not "THE" way, so stop putting that out to everyone reading your posts. As you stated yourself "PDO is harder to learn if your not a object orientated programmer", which goes to all new mccode game owners, cause mccode's does not have OOP! As for industry standards. It might be a requirement to get a job if you got PDO on your CV. But its not an industry standard, never will be. Many industries will have their own reasonings as to why to choose mysqli over pdo, but thats their own opinion. After all, the PDO MySQL driver uses the same client library as MySQLi The flexibility of PDO far outweighs mysqli, but then again, its to the coder as to what he requires. I do not want to create an argument. And should be told that PDO is a better option forward, than just "ITS THE WAY FORWARD AND THATS THAT" attitude.
×
×
  • Create New...