Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Jamesking56

  1. How would I actually be able to create my own simple and easy to use one for my script? doesn't have to be anything fancy
  2. Hi,I need a class that can connect to different database types and query them if needed.In a config it will set:Database Type (MySQL, SQLite etc.)Database Connection (localhost / IP / Hostname)Database Username (root)Database Password (password)Database Name (nameofdb)How can I do this in a PHP class so all i'd have to do was: $db = new Database($type, $conn, $user, $pass, $name);$db->query("SELECT * FROM whatever"); in my script?What is the best way to achieve this?
  3. I thought something like GitHub but private and free... are you sure this is the only way?
  4. Is there a better private revisioning solution that can stay up 24/7? As my XAMPP is not online 24/7 so this wouldn't be useful.
  5. Hey,I am planning to develop a new project and have a few collaborators but I have a problem.The code will be sold and most of it will be encrypted. How can I collaborate with other users using Subversion / Git privately so that we can all work on the project together?How do I do this for completely free?
  6. Jamesking56


    Hi,I was wondering... What actually is CakePHP and is it useful to use when developing a huge PHP application (Which I am planning to develop soon)?
  7. Hi,I have made a Status Check with PHP & AJAX using fsockopen to check.For some reason, the results it comes out with a very inaccurate?Is it my host blocking parts of it or is it my code?My status checker is: http://status.jamesking56.co.uk
  8. I'm using a class to manage the database connection (So I can have different types of database without extra coding).How would I do a mysql_fetch_array through a class?Currently, my page loops forever on a while loop with my current fetch_array class...How can I do it?
  9. Hey!I'm making a shoutbox system and wondered how I could make it so that when the browser's size was too small, it would keep the footer at the bottom and cause the middle area (Where the shouts are) to be scrollable.How can I do this?
  10. Hey,What do you think is the best system to use for a documentation area? So I can add instructions for my software etc.Do you think it should be a wiki? or in my forum? Or part of my Wordpress site?
  11. Yeah that would be a bit too difficult.... Got any script ideas I could do though?
  12. Hey,I want to design a good script in PHP that people can buy from me....I want to sell licenses for it (Maybe do different license options and stuff) but I am stuck at what to design.Here are some ideas I came up with: Support system - Ticket Tracking, Knowledgebase etc. PHP Security Script - Checks for security holes in your PHP setup Web Developer Client System - Has client billing, ticket support and keep client's login details etc. Anyone got any good ideas? Anyone want to team up or something?
  13. Fatal error: Call to a member function Setting() on a non-object class Settings { # internal variables function Setting ( $setting ) { // Get Setting Strings $get = mysql_query("SELECT sval FROM settings WHERE skey='" . $setting . "'"); echo $get; return $get; } } What have I done wrong?
  14. UPDATE: I've sorted it, if anyone wants the solution then reply below.
  15. Hi!Can someone write a .htaccess file for me please?I need it so that:it forces www on my main domain (force www.domain.com)then, for each subdomain it forces that subdomain (e.g. force community.domain.com over domain.com/community)can someone write this please and teach me how I can add more for more subdomains?
  16. No, can someone make a proper code with full tutorial and test before publishing please I really need this to work!
  17. I cannot do that because they are scripts not actually my code
  18. That code does not work in my .htaccess file.... it still allows any!
  19. Hey!I have a web address and I'm in need of htaccess code to force a subdomain for it. I have a subdomain setup so I can access a folder hrough 3 different urls:http://mydomain.com/bugs/http://www.mydomain.com/bugs/http://bugs.mydomain.comI would like to FORCE the last one so that the other URLs would redirect to that URL.Can someone help?btw. I have MOD_Rewrite installed.
  20. Hey!I am trying to make a clients panel using PHP....I have a variable which can make it go offline for maintenance and show a splash screen with a notice and an Admin Override button.Now, when I press the admin override button it pops up with javascript prompt box asking for secret key.How can I make a secret key that won't be revealed in the View Source of the page? Is there a way I can make it not hackable?Any suggestions? I did think about MD5 Encryption but javascript can't do that apparently?
  21. http://www.herohost.co.uk
  22. It works perfectly thank you!
  23. Hi,I have made a function in PHP to grab settings from a mysql table. But I keep getting errors on it?Can someone tell me whats wrong with it? function setting ( $key ) { $tmp = mysql_query("SELECT value FROM settings WHERE key = '".$key."' LIMIT 1") or die(mysql_error()); $tmp = mysql_fetch_assoc($tmp); return $tmp['value']; } And here is the error I am getting: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = 'site_name' LIMIT 1' at line 1
  24. I think you should make an iPhone and iPod touch app
  25. Jamesking56


    Hi guys!I am designing a register form and I want to make it so that only letters (both cases), number and -=?!@:., are allowed.How can I check this in PHP?
  • Create New...