sparkx
Members-
Content Count
368 -
Joined
-
Last visited
Everything posted by sparkx
-
Thank you both for the help. Right now I am using both. First javascript but if the person has javascript disabled then it uses php to check it. I can't remember the exact code off hand but it was something like this: if(preg_match(...Well anyway it worked. Thanks Quatrux. I just want to ask one quick question before this topic gets closed. Is it possible to check where a form came from? I am not using it as a "Secure" way to check (because I know you can edit and run the source of a page quite easyly) but rather a log, to see if any website are submitting forms to my php. If there is a way could you link me to the code or tell me the fuction at least? Thank you very much for the help. I am getting more and more of this php stuff down, Sparkx
-
That is true about the server, however what if they turn of php. Here are some ideas I have but I am not sure if they will work effectivly. Would you look them over?A: Put both so if the javascript works then the php checks. This will provent people from copying my page, editing my javascrpt and resubmitting or even turning of javascript period.B: Is there a way to check what url a form came from. I could check the url and make sure it is my url essuring that the above doesn't happen.C: I was woundering rather stop some charicters I should only allow others like A-Z, a-z and a few others like _ that would be easier then just finding all the charectors that do not work. If you know how I could do any of the above or if you have other ideas please post them. Everything is welcome and appriciated. Thanks,Sparkx
-
Ok as you all know by now I have been working on a php based game to help me learn php. It has been going great and it is almost done. I got some very good help on issues here and along with sites like php.net. However I am stuck and can not find a solution to a problem anywere. My Problem: I want users to join but I don't want some charicters to be in there name (example I dont want < so the name '<Test' would come back as an error). Anyway I see a lot of sites that check for this and I know you can check for it in javascript but I want to use php to do it because php is more secure. I have tried lots of things like strstr ect and they don't seem to work with what I want. Anouther variable that comes into play is that I want it to check an array. Here is an example. Disallowed Charicters: <, >, ', " I would array like: $string = array(<, >, ', ");This for some reason does not work for. if(strpos($name, $string)){//error stuff hereexit();}Do you get what I am saying anyone? This simply essures that noone adds html ect to there name. Thanks for the help, Sparkx
-
Stop anything from making it ur homepage!
sparkx replied to Thunder1405241469's topic in Websites and Web Designing
Basicly what your are doing is making a shortcut to a website, am I correct? This would help but I hardly ever see my homepage (in fact I don't think I have one). I use Opera and have it set so it opens up what I was doing the last time. I have a few sessions set for variuse tasks (Homework, website updates, forum posting ect.) I wouldn't recomend Internet Explorer, the new one (version 7) stoped working for my computer about a week after I downloaded it and I don't have any viriuses. Im not sure if Firefox can have it's homepage changed via virus but I'm sure there are a lot fewer viriuses for Firefox then there are for Internet Explorer. If it really bugs you, you should probably just switch to a better browser.Thanks,Sparkx -
Nasa Unveils Hubble Telescope’s Successor
sparkx replied to webguru's topic in Science and Technology
Seems very intresting. This new telescope looks real advanced but what gets me is that it only has a 10 year life expectancy. That does that mean they only need to maintance it every 10 years or does it mean that it will stop working in 10 years (im sure it doesn't matter anyway because of the increased rate in technology). I can't wait to see the origans of the univers. What if science was all wrong about it... Once question that keeps getting to me is wouldn't it be cheaper to simply add on to the Hubble or are the changes neccissary to big and its simpler to just send anouther telescope into space?Thanks,Sparkx -
Slavehack An Online Hacker pwnage game
sparkx replied to SilverFox1405241541's topic in Computer Gaming
I played it once. I beat the game in 30 minutes. I found a guy with a level 4.5 water wall and no firewall, then I hacked anouther guy with a 4.5 firewall and got that also (I upgraded my hard-drive for space). Then I changed my password and IP and havent played it sence. It a fun game but it gets boaring when you get 4.5 water wall. @Silverfox: It takes time to reset your password because if it didn't you could do it as many times as you want. You should keep your IP safe from people so they cant track you down anyway. Do that by editing the log files every time you Hack someone, Buy something, or log onto someone as an Admin.The credit in you bank is the amount of credit you have stored in one bank account when you get more advance you can get multiple bank accounts so if someone hacks your bank you don't loose all your money. Your total credit is how much you have in all your bank accounts.Enjoy,Sparkx -
Now I this helps if the dvd is stolen out of a store but doesn't stop people from downloading it off the internet illigally. What would be good is if they made it so you could store personal information and documents on a CD allowing the user to activate the chip and make the CD only readable (and editable) if a password is sent to the chip. That would be quite advanced but I bet it would be popular (assuming it wasn't to expensive and was on re-wrightable CDs. However I am not sure how long CD/DVD or game consulse that use CDs will last. They have already changed it for music and computers, it probably won't be long until your DVD player has a USB port and your game system uses memory cards as the games.Thanks,Sparkx
-
Text Based Games www.chaoticworlds.net.
sparkx replied to blues1405241546's topic in Computer Gaming
Maby you download it at http://www.chaoticworlds.net/ if anywere. I am not sure if it is the type of a game you download. You need to sign up for it then log on. I will try it out when I get the time. Seems intresting but it sound a little like a roll play game (if you know me you know I don't like roll play games too much). I thought text based games where games made in php but I might be wrong about that one.Thanks, Sparkx -
Its an online php game. It doesn't really have a main format so its not a 'regular' game. I think it is a great way to learn php, but thats me. Ill show you it when I finish. Its real basic but I am getting soo much done but I keep running into little errors here and there. I guess that is expectable as this is my first php project. Im sorry if it seems like Im asking too many questions but in compairesion to what I am getting accomplished it is actually very few. Anyway... I have an array that uses the key=>value method and I wanted to check if a value existed in that array. I use this code: $array = explode(',',0=>0,1=>1);$check = ($amount.'=>'.$ID);if (in_array($check,$array, TRUE)){true}else{false}Now I know this is a bad way to handle this but anyway. $ID is a set amount recieved from a form (and is the only thing I want to check), but amount can be changed (meaning the array 5=>1 which is the same ID but different amount). This will not work if the person chooses to buy more of that item this statment will go to false. Thats not good. I know I am very confusing and if you didn't understand any of what I just said thats ok. My ideas of fixing this are to have an any value set to $amount or in_string statment (if exists). Is there a way I can set a variable so that it can be anything and will be true no-mater what? Anouther way I was thinking is if there was such thing as in_string (like in_array but doesn't require the commos). Thanks again for all the help. Everyone here is very good at php I owe you guys big time, Sparkx
-
How To Learn A Programming Language The two methods discussed
sparkx replied to amitbhandari's topic in Programming
In my opinion books are one of the best ways to learn programing. Costly (from $20-$100) depending on how long it is. I use visual stuff most of the time. Anouther good way not listed is:Open Source: If you know the very basics looking down an open source code (not a big one like phpbb but rather a small one like javascript or small php files) is the best way to learn programing in my opinion. This doesn't work for C++ or C but its great for web based programing. Just make sure you under stand all the tags being used. If you don't know what something is simply type it into a search engine and you will get lots of results. I found that a good way to understand lines of code and how these things can be combined via variables. I would strongly recomend this if your looking to learn programing (along with the ways listed above).Thats my opinion,Sparkx -
Thanks bluefish and vijsa. I ended up useing the explode method. I am trying to make a game but few places on the internet have good tutorials for php and even fewer of them use my method. Now I have got a decent (low end) inventory now I need to set up a way to buy things. First I checked to see if the user has enough money then I would subtract the cost and add the id to the sql entry. As before however I have the 0,1 ect method in the being used in the sql (I know its not the best way). I simply add the variable ($ID) to the end of the sql statment. Anyone relize my problem yet though? If someone buys the item again they will recieve two entries for the same ID (0,1,1). This messes me up a little (as my items are stackable). I want to eventually store a key and a value in the sql (one for the item ID the other for the quantity owned). I tired an IF statment but because the variables don't match the problem continues. Is there a way I can search the sql entry for a value so lets say it this is the first of an item someone gets, it simply adds the var to the end of the sql, but if they aready have this item it adds to the quantity without duplicating the item ID. Do you understand what I am saying?Thank you all for the help that you have provided me with in php. This is by far the number 1 resource for me learning php,Sparkx
-
It sounds like you have no idea how to program. Well that ok everyone starts somewhere. Thier are some easy ways to make games but you dont learn to program and then there are the harder ways and you learn a little programing. The easy ways: Game maker: Nice download, very limited on what you can do but you can make some good games. It is free but you can pay to have an upgrade. It makes download games but you learn no coding what so ever and if you want to make good games shouldn't use this program. Game Maker Visual Pinball: Great for making a downloadable pinball game. You learn basic programing (though you will not use it again untill your are a real good programer). It is free and is updated lots. You can make your pinball machine look and feel like the one pre-installed on windows xp. Lots of possiblities and great to start off with. Easy and fun way to learn basic if programing. Visual Pinball The good ways: Macromedia Flash 8: It costs money but is real effective. Most games on the internet are made with it and has almost endless possiblilites. You can make great games with it and you learn action script as well. Very handy think to know (even though no actuall programing language uses it). You can also make movies with Flash also. This is by far the best option in making games that is if you can afford it. You can get a 30 day free trial and see if you like it first. Macromedia Flash 8 Now these reviews are my opinion. Others may dissagree with them and thats fine. I just hope you find what you are looking for in a program to make games. Maby some day you will be a good programer. Thanks, Sparkx
-
What Mmorpg Is Everyone Addicted To Right Now? LEAVING OUT WoW.
sparkx replied to Rokuso's topic in Computer Gaming
Now im not sure how you classify Multi-Player online roll play games but I think it is anything that allows you to have an inventory and level up. Now I don't play games anymore but I can remember a few you might be intested in. NavyField: Its free, you need to download it. The objective is to join a team and kill all the other battleships on the other team (usually 2 teams battle but you can have up to 8). Every battle you win you get a cash for the people you (or in Great Battles your team) kills. You can upgrade you ship or buy a new one. It is one of you the best roll play games in my opinion (however I don't like roll play games that much as they are quite boaring). Navy Field Slavehack: Real basic php scripted game that allows you to act as an online hacker without knowing how to hack. Your job is to hack other members and put viruises on thier account. You get money from the viriuses that can be used to upgrade you computer. You can also hack bank accounts (and people can hack yours). You can also upgrade your software (firewall, antivirus, waterwall ect). Its a little confusing at first but is a fun game in the end. Slave Hack These are the best roll play games that are multi-player that I know of. Enjoy but don't get too addicted lol. Thanks, Sparkx -
Could you tell me the best way to do this type of a thing? Im am stuck and getting a little mad. I don't undstand: IF a database entry has 1,2 and is connected to with the variable $example and used like $arr=array($example);foreach ($arr as &$value) {echo<<<ENDYour saved value is $exampleEND;}Is different then the array being: $arr=array(0,1);But apparently you cant array db feilds. OK so could someone just give me ideas about what I should do in my situation. This is a close example to but not exact situation. It is simplifyed a little. I have an multi-player online game based 100% off of php (yes it is stupid but its a good way to learn php). A user can have an inventory. I wan't the users inventory to display the item name, discription and quantity they have. I wan't however the discription to be connected to anouther database table so it I can edit everyone's discription in just one quary (I know how to do that). The problem I am having is repeating and displaying the code that does it. First I connect to the user's sql and get the items they have and thier quantity. Then I look up the items they have and display it's details. I wan't to have a simple layout like: Items: ID: 0 | Discription: Can help you out | You own: 5 ID: 2 | Discription: Can help your friends out | You own: 2 Is this it possible for me to do this? Could you help me out by providing example codes or links to tutorials that might help? That would be great. Thanks, Sparkx
-
I get an odd little error when I tried to use foreach with require. It seams that it should work but I can't seem to figure it out. I am a little new at php so I don't know the best way to discribe the problem. I use the following code (simplified for post): <?php$arr=array("Sparkx", "Studios");$include = "/My/Directory";foreach ($arr as &$value) {include($_SERVER["DOCUMENT_ROOT"]."$include/test.php?test=$value");}?> My page being included has a simple code that looks up and displayes information about the user. What I want to do it have it so that my page lookes up different user's details and all the information on one page (like a members list). Example: Username: Sparkx ID:1 Username: Studios ID:2 With the code above however I get the "Failed opening" error. Any suggestions? Am I on the right track? Thanks for the help, Sparkx
-
Now I need a review. My site is a very small community where I offer free web related services. A little hard to discribe but basicly I give away free programs to make a site more user-friendly and costum. I require people to post to get upgrades or to keep there accounts. This is my one of my first sites (my first public one) that I have ever made. Would you guys review it for me? If it works I will add more services to it but for right now it is kinda a beta. That would be greate. URL: Sparkx Studios One service we offer is: - Easy Forum Poster: This is a small script that allows your forum members to make posts on your forum by filling out a servay. The results will be inserted into your forum with any format you would like. For the demo you must create an account. Please only do that if you are intrested. I don't want people making new accounts just to see the demo. Demo Demo out-put Thank you very much for reading. Please don't flame me too badly. I lack confidence as it is. Sparkx
-
Game: Stop Stop -> How Timely Are You?
sparkx replied to turbopowerdmaxsteel's topic in Computer Gaming
Its sounds cool, simple but probably addicting. I can open in though. I extracted the Stop Stop.zip and tried opening it but Windows XP asks what program to open it with. I tried looking at the properties and cant seem to find how to open it. Any suggestions? Is it suppost to be a .exe file and extract again or is that one file the actual game? I look forward to playing it. Seems like something you could play all day lol.Thanks,Sparkx -
I don't think youtube and other sites like it will ever replace Television stations. No-matter if it is live feed or old video shots, the Television is simple and doesn't use up bandwidth. It is also free (if you have basic like I do) sure it has commercials but I can garentee any website that has a live feed will have ads. As for radio stations, they may be a thing of the past (not yet but soon). In car television is becoming more and more popular and music videos are funner to watch I think it is OK if youtube posts copyright stuff that has been around for a while. After-all if people want it bad enough (and it is a year or two old), they can simply find a television channel that is playing that movie and record it. You can also record the radio with new digital divices. I dissagree with them if they post new stuff however (suff still in the movie theiters ect). They shouldn't be doing that.Thanks, Sparkx
-
Everyone could stop watching videos off of youtube if they tried it would just be a little hard for some people because they use it so much for me however I hardly use it and not useing it is as easy as forgetting to check my email. I still think that youtube has some good stuff on it that is not copyright or braking any law. You can't say that simply because it has some bad stuff that youtube is bad. That is what made people think limewire is 100% for illigal use only. It was orrigionally made so people could upload persional stuff and show other users without using downloads.com or other sites like it. Thanks, Sparkx
-
Now why did you quote yourself? Anyway, it seems good but doesn't offer much information about it. I also noticed how they tried to "hide" the downtime error by aligning it right. I would like it more if it didn't have a feature list that doesn't really explain itself. I need to agree with cszweb on this one. It says it will allow me to make money, but how? Does it have ad programs that you charge for? Does it have an online shop of some sort? If you could answer me these questions then I would be glad to look into it. Bandwidth is apparintly the only thing that you would take into account if you wanted to be hosted off of this site (after all without php few sites on the web would exist). Thats my opinion, Sparkx
-
Bravehost Hosting Is Not The Way To Go For the love of God...No
sparkx replied to mpinsky's topic in General Discussion
I think I tryed bravehost. I didn't like the cpanel set up and it didn't support much scripting or it had ads. I came to Xisto after trying about every other web host on the web. This is the only host with good space bandwidth (not the ulimited scam), nice uptime and speed, and best of all support for php and sql without ads. Do even look for anouther host better then Xisto lol. I don't like that bravehost uses pictures to make there site seem better then it is. I have never seen a site that combines two images to form a word (look at Get your hosting free now, its two images lol).Thats my input,Sparkx -
Unofficial Astahosted Members Directory
sparkx replied to turbopowerdmaxsteel's topic in Programming
The third version is very good. I like the dual search technque it is really needed. Now Jeig, Mark420 ect the mods will be listed. So you didn't list members that have been suspended or expelled? That was needed. I kept coming up with the expelled page. Ill look down the members later and report any false or not shown links.Very nice,Sparkx -
I asked some people about it and they say it doesn't matter when they were suppost to be born but rather when they were born. They say you can be twins if you are more then 2 days apart and that these twins arn't actually twins just sisters. Most people look simalur to there siblines (if they had the same parents). So I don't know if I agree that they are twins. However my source is a group of highschool kids which might not be the best people to get a good opinion on this.Thanks,Sparkx
-
Mysql Server Not Stable After Hard Disk Swap On April 6th
sparkx replied to niran's topic in Web Hosting Support
I agree. I had made a very nice forum/topsite listing program it was working just fine but now once every 10 or 15 minutes. I get an error simaler to this: Now I get this 100% of the time on my topsite area. I have looked through the code and it is connecting to a valid sql server. I may re-upload my latest backup and see if it starts working then. Maby the server moved around the files. I am back to using the orrigional cpanel (not the cpanel x). I have been looking for a solution for this problem and just came to the conclusion to simply add to my sql error that my visitors should refresh the page. Phpbb isn't that stable of a program in the first place. Try reconfiguring manually the mysql. Search for a file that contains sql in the name then edit it to a new database and re-run your sql for the new database (you may need to backup your files to do this).Thanks, Sparkx