-
Content Count
1,705 -
Joined
-
Last visited
Everything posted by shadowx
-
Hey guys, en route to college earlier i was reading the metro paper, the free one on the tube, and i found this article: http://metro.co.uk/contact-us/article-1337003727804-1315b6a6000005dc-512140_636x1454/ which warns of a new worm attacking symantec anti virus: Major companies are at risk from a crippling new computer bug which targets their antivirus software, it was claimed on Thursday night.Already, a division of the world's biggest media corporation, Time Warner, has been hit.Experts believe a disgruntled hacker with a grudge against software firm Symantec is behind the new trojan virus, a version of the 'Rinbot' bug. Once in it is said to crack weak passwords and the like to access the network and do what worms do best, spread, to create slave/zombie machines and then use them for its own purposes. Apparently Norton isnt affected and they have patched the issue: Symantec said its Norton products were not affected and it had released new protection against the virus yesterday morning. I assume the patch was an automated update but as i dont use symantec i wouldn't know so best to visit their website see if you can find any info about the update. Hopefully this will send a message to all that paid software isnt always better than free software! Shame it has to be a destructive message though.
-
Um, what do you mean by a query web browser?As i understand it this is just a website to download a MYSQL server which isnt a browser. MYSQL is after all a database query language and as such wouldnt be very useful as, or in, a web browser. If im wrong then feel free to tell me so!
-
I imagine "nervous" could mean something like agrophobia, which is a fear of large crowds of people or sometimes people in general and so weorking would cause massive fear and anxiety and maybe devloip as panic attacks etcetera. Instead of giving benefits why dont they give government paid counselling and psychiatry to overcome this problem and thus let them be able to work?Of course this wouldnt work for things like cancer or having no legs although even without legs i assume you could still work from home if you had the skills and facilities, all you need is a computer and desk space and a wheelchair. Instead of paying for so many benefits for people they should pay for helping those that can be helped to get them into work and then pay the benefits to those who truly deserve them who definately cant work.
-
as i understand it the version of RS avaliable at the RS site is RS2 as the previous version was RS classic which was taken down a long long time ago and was avaliable for a short time for registered paying members, check out RS on wikipedia, im sure you can find a link from google. Im pretty sure that what ive said is right but wiki will have the history of the game and will say something like "the current version of RS, RSX, started in... blah blah"
-
Looks good to me! Im glad you made this so i can see how i can modify mine. The problem i have with working with DB's is not the coding itself but the planning of the coding, i start it then realise i need another table or DB and eventually it messes up and i give up! I also like the fact that not the entire page needs to be refreshed, by using the IFRAMES you can have only that frame refreshing to update the shouts. Im not much of a fan of frames though so i guess either of us could use an include or something which is what i generally use nowadays and then use the data from a variable to echo out to the page, by doing this it might be possible to update just the data inside a DIV, either way i used a textarea because its simpler I also like the fact you included some NULL data checking if (($name!=="") || ($name!=="Name") || ($mail!=="") || ($mail!=="E-mail") || ($message!=="") || ($message!=="Your text")) I think thats a good idea to help with spamming issues, if you wanted to get even more in depth you could also record IP's and ban them from shouting for several seconds to stop flooding but now im just being picky! Good work there
-
The Extract() Function Something I just found out
shadowx replied to ghostrider's topic in Programming
humm this could be useful to me in the case! i always find it so tedious to sit and write 5 lines of assigning variables from a POST array. Thanks for the info! -
The Extract() Function Something I just found out
shadowx replied to ghostrider's topic in Programming
I might be able to make use of this, but first, i dont fully understand. Say i had an array like this: by that i mean that $array['username'] is "shadowx" Now if i were to use EXTRACT would it give me three variables called $username, $password and $ip or do i have to say what i want it to call the variables somehow? -
How To Make A Simple File Based Shoutbox Using Php And Html
shadowx replied to shadowx's topic in General Discussion
The textarea thing was something else that was, ill admit, very low on my list of things to do, ive concentrated a lot on php and less on HTML for a while so i wouldn't think of any other object except a frame which could have a scrollbar. And i figured they could change the textarea content and that way change the shouts but those changes wouldn't be saved as the only data taken to the form is that from the two input boxes for name and their shout, the textarea is only a container. Im working on the conversion now but its 11pm so i gave up now! I have a very odd thing going on, i have a database which stores the shouts and im using numbers for the moment as the name and shout so i can track them easily in the database and its fine for numbers between 1 and 3, eg: name shout1 12 23 3 but at number four i get this in the database: name shout1 12 24 43 3 So that will need a closer look either way its about time i got some sleep for an early start tomorrow! Im interesting in seeing your version of the shoutbox though, i think the best way to develop yourself as a coder is to see how other people would solve the same problem Without direct copying though! that's just cheating! And by the way, welcome to Xisto! -
How To Make A Simple File Based Shoutbox Using Php And Html
shadowx replied to shadowx's topic in General Discussion
The post and files have been edited Im currently adapting this script to work with a database that will automatically cut out a certain number of post to keep only the most recent so i will also add the header code to that one, and if i complete it i might post a tutorial for that too. Thanks for letting me know about that! I just realised im spending a saturday evening writing website code...whats wrong with me?! -
How To Make A Simple File Based Shoutbox Using Php And Html
shadowx replied to shadowx's topic in General Discussion
It definitely would! the reason i didn't do it is because in php the header function must be the first line of outputted text so i tend never to use header unless i have to but after testing it myself it works perfectly so i shall edit the above post.kudos to you! -
A simple tut to make a simple shoutbox. Let me jump right in. First of all you need the standard equipment for PHP, an IDE like XAMPP and an editor like PHP EDITOR 2OO7. Were going to make a simple guestbook using three files, webpage.php, shout.php and shout.txt. Webpage.php can be changed to whatver you want, it will be the page on which the guestbok is shown, you could even use this code and add it to another php page n your site. Shout.php is the proccessing page and shout.txt is where the shouts are stored. Firstly we need to make the visual design of the box. Mine is very simple, like the one here at T17 just a big box for the text and two more boxes for your name and message. I wont go into the HTML code for this form as im concentrating on the PHP so here is the HTML code for the form: <?echo<HTML><center><BR><BR><BR><form action=shout.php method=post><textarea name=shouts rows=7 cols=65></textarea><BR><input type=text name=name value=name> -- <input type=text name=shout value=Message><BR><input type=submit value=submit></form>;?> We will go back to this code later but for now just use ECHO or PRINT to show this text to the user in the first PHP file, the one you want the shoutbox to appear on. Now were going to look at the shout.php processing page. The first thing to do is to get the variables from the form, as we used the POST method we will need to use this array when getting the values in php. As you might know to get a value from the POST variable into another variable the code looks like this: $shoutname = strip_tags($_POST['name']);$shouttxt = strip_tags($_POST['shout']); So now whatever the user put into the boxes is now contained in the two variables called SHOUTNAME and SHOUTTXT to use later on. Note i used STRIP_TAGS to make the data more safe. As were storing the data as a text file any code wont get run anyway but this is just a precaution, i had someone try to inject code into my shoutbox and it didn't work even without the strip_tags so its fairly safe anyway. Now we have the data we need to play with it meaning we need to store it somewhere, we could use a database but why bother? I think that's only useful in you need to hide the contents of the shoutbox or if you plan on getting thousands of shouts because the file would get very large with thousands of messages in it. I didnt plan n getting this many shouts so a file based one was fine for me and that is the route this tutorial will follow! To write to a file we need three functions, FOPEN, FWRITE and FCLOSE, fairly easy to understand, they open, write to, and close files respectively. But before we write everything to a file we need to reverse the text, this is so that the latest shouts end up at the top of the shoutbox, otherwise it would be very annoying to scroll down to see the last shout. And before we reverse the string we first need to make it. We want the messages to look like this: to arrange this using PHP we can do something like this: $shoutn = "$shoutname : \n $shouttxt \n --------------------------------------------------------------- \n"; So now we have arranged the text we need to reverse it using STRREV: $shout = strrev($shoutn); Now you might have realised by now that all the text is also back to front and unreadable, but thats not a problem as we will be reversing it again shortly which is when it will become readable again. Now we can get back to the file functions of opening, writing and closing. First we use FOPEN to open the file, FOPEN returns what is called a handle which is sort of a reference to the file and to use this handle we need to assign it to a variable: $handle = fopen(shout.txt, "ab"); This code opens the fileshout.txt in APPEND mode which means we can write to the file and it will be written at the end of the file. Now we need to write to the file using FWRITE, this is where we use the $handle variable to reference the file we want to write to, in this case shout.txt: fwrite( $handle, $shout ); See how the handle comes first to let PHP know where we want to write and then the variable $shout, which we said earlier is the reversed version of the user's input, which is what must be written. So now the data is saved in the file and we have to close the file or we wont be able to open it again the next time they leave a message. We use FCLOSE for this, and again we use the $handle variable to let it know what to close: fclose($handle); Now that is pretty much the end of the PHP file except the user can only see a blank screen by now so we need to redirect them, After friiks replied with some useful code i have edited this line and came up with this: header("Location: ".$_SERVER['HTTP_REFERER']);?> The header function in php can be used so long as it is the first line of outputted text, this means that if there is an ECHO or PRINT command above it anywhere it will not work but in this script we dont have any ECHOs or PRINTs so we can use a header as friiks said. The "location: ".$_SERVER['HTTP_referer'] simply means "go back to the last page" and so we are taken back to whichever page we entered out shout. Now for the final additions to the first page we wrote because otherwise we will never see the shouts made already. Again we will be using FOPEN and FCLOSE but this time we will also be using FREAD to read the file and get its contents. So open the first file which i called webpage.php it should already have the starting tag for php <? On the line under this tag, above the ECHO and html parts we need to use FOPEN, FREAD and FCLOSE. First of course FOPEN in the same way as before: $handle = fopen(shout.txt, "rb"); Now we need to use FREAD, its another simple tag that uses the $handle variable again but it also needs another variable which is the size of the file, this is so it knows how much data it needs to read, of course WE dont know the size but PHP does and by using the function FILESIZE we can find out the size of our file and give that value to FREAD: $contents = fread($handle, filesize(shout.txt)); Not how we used another variable, $contents, this variable now contains all the data from our shout.txt file which is of course, all the shouts made by our users. Now we need to close the file, easy enough: fclose($handle); if you remember back a bit we reversed the contents of that file so now in the $contents variable we have a load of back to front text that is useless, unless of course we reverse it again, which is what we are going to do: $text = strrev($contents); so now the text should be the right way round and with the last shout at the top. Hopefully! So now we just need to get this text into the textbox we made on the first page. As its a TEXTAREA this is really easy!!! WE just need to put $text inside the textarea, so edit the textarea code so it looks like this: <textarea name=shouts rows=7 cols=65>$text</textarea> And bingo!! We are done! An important note is that PHP does not like empty files so the file shout.txt will always need something in it, a normal SPACE is enough, or even just a newline. Also you might need to refresh the first page to see your shout in the shoutbox, i suspect this can be solved with JavaScript but im not very good with JS so if you are then reply and let us all know how to solve that problem! Otherwise, enjoy this tut. Ive attached my versions of what i wrote just so you can check if you went wrong! You might have trouble if you just copy and paste my code as i wrote it in open office and i had a problem with the quote marks myself so if it doesnt work try copying by hand and if it still doesn't work then drop me a line NOTE my version of "webpage.php" is "index.php" in the attachments and i didn't attach the shout.txt file as its simply a text file with one space in it. EDIT** minor edit to solve a problem in IE, added an extra "\n" to the string which is saved to the file. Also edited thanks to Friiks as below index.php shout.php
-
Learning Php -- Where Do I Start? I want to learn PHP
shadowx replied to dtuhy's topic in Programming
Hey there!!! Glad to know php is still interesting to new scriptwriters! What you will first need is a php server, you can have this on your own computer so easilly, check out https://www.apachefriends.org/index.html for the package called XAMPP and of course download and install it depending on which operating system you use. The installation guide will take you through that easily. the idea is that with PHP you have to have it on a server, this usually means you have to upload it to a webhost which is really annoying but XAMPP basically makes your computer able to run PHP files and almost gives you your own server to play with. The guide included with XAMPP should explain. if you want you can check out the tutorial i wrote on my own website here: http://forums.xisto.com/no_longer_exists/ It starts from the absolute begging and was aimed at people who aren't sure of what PHP means and what it is and how its used, its definitely not the best tutorial in the world but i think for beginners its very good, by the end you will be able to understand how to write php and a few of the key rules of it. Otherwise use the links posted above. In addition to getting XAMPP i recommend you get MPSOFTWARE's PHP Designer at: http://forums.xisto.com/no_longer_exists/ this FREE so long as you take the PERSONAL version, this only means you cant sell the scripts you write. And its such a small download. The idea is that this program works like a text editor but for code, so when you make a new document you choose the language its in, probably PHP, and if you type in a function it will show you how to finish it, and it will always add in quote marks and brackets to make sure you dont accidentally miss them. Very nice! I think ive rambled enough here! I would definitely take a look at all the links in the above posts and in mine of course! and definitely get the software i suggested, ive used it for about a year now and not one problem. Then once you get php and HTML down then you can make yourself a website for real. -
Well the one good thing about the US is that life in jail actually means life most of the time, i mean here in the uk that guy wuld get about twenty years inside and then get let out to do it again. IN which case i would say torture him to a slow and painful death lasting several months if possible. However, as he realy will be in prison until he dies i prefer that because the psychological torture over 4O or more years is almost good enough for my liking. Though if i was in charge or prisons in any country id ensure there was severe psychological torture for such people so they break into a quivering mass in the corner of their cell. Anyone who can do that kind of thing to any woman is no man, they arent even human and so dont deserver any human rights at all. Not even animal rights.
-
If we say that each post takes abut 5 or 6 minutes for reading the topic and thinking of a reply etc.... then that's a hell of a long time for one measly dollar IMHO its a waste of my time, that's like 42 cents per hour, i could find that much money on the streets of london, as i live in the UK not USA, how much would you have got if you, most likely against the TOS of that forum and this forum, got a referral?Fair play to anyone who wants to try this but i wouldn't and you need to read the rules or get the hell of these forums because we don't want silly referral links here, as the mods have pointed out
-
When i first saw the black and white one i was going to say "add colour" but i read on and see the colour ones too but i did like the shape of the black and white one better because the "arms" of the children taper and i likeds that shape better, it also suggests that the lines are almost, reaching out for something or someone, perhaps knoweledge, almost exploring if that makes sense?I like how simple it is and it dsefinately suits its audience showing that science and the like cdan be fun and interesting and maybe they will link the logo with the planets and almosat strengthen their interest/knowledge. I like the colours too, they are simple but not so simple that you take a look and ignore them. OVerall i think you did good so far. I personally would add the taper like effect of the B+W version on the 'arms' as i think it makes the logo much more interesting rather than being just a circle, but then again im not a graphic designer or a member of the target audience so i could just be talking twaddle Good job so far though **EDIT: Score out of ten? hum..... 8.5-9/10 adding the taper effect would IMHO make it a 9-9.5/10 i dont like to give things a 10/10 because...well i dont know why so 9.5 is basically top marks in my scale!
-
i think i understand, im not very good with JS but i think theres a way that goes something like "formname.submit()" and if you were to put that function into an OnClick event on the button eg: <button OnClick="form1.submit(); form2.submit();">Submit</button> then it should submit all the forms at once, again ill say im not very good with JS but you can try googling the form.submit function and see what you find.
-
Im not very worried but then i don't get very worried about things like this so maybe its just me, but as quoted above its not very likely to hit us anyway.And i understand from the article that a "gravity tractor" is simply a big spaceship that exerts gravitational force due to its size, as all objects do, which is enough to move the asteroid perhaps a millimeter of curse every few thousand miles that accumulate to be enough to steer it off course and avoid us.
-
Hey there, first off i want to say that both PK and free running look great in my opinion and id love to learn either/both one day when im fitter! Im assuming your question refers to how usefull each would be in martial arts combat in which case id say PK because by the way you described both it sounds more useful, as i understood from my brief karate experience most martial art combat styles arent about killing your enemy theyre more about defending their attacks and throwing back a few to either scare them off or stop them being a danger or to let yourself escape and as such PK, as you described it, would be more useful as it would allow you to escape.Maybe they should teach police officers PK...then they might be able to catch criminals for a change!
-
Hey i use the GIMP too, im no graphic designer though! far from it! i mainly use it for making silly little graphics testing out things i read here and there about cool effects. Maybe you could write a tutorial on making a signature image with the GIMP? Get you loads of credits and people like me might learn a thing or two! As delivi said, welcome and enjoy yourself here! If you get a chance then read the Xisto readme and if theres anything you dont understand that's not in the readme then dont be afraid to ask, only a few people bite!
-
The site and the tutorials look very good, unlike most tutorials it really does start from scratch which is something i found hard to grasp when i was learning as every tutorial i found started halfway up the ladder assuming i knew what PHP was etc...Only bad pint about the site is lesson three doesnt work, i get a horrible 4O4 there... annoying!
-
The Do's And Don'ts Of Web Designing
shadowx replied to delivi's topic in Websites and Web Designing
Someone who thinks like me, i think flash intros and flash websites are the most annoying things ever! there are a few good flash websites out there but most of the time i hate them! Every film that comes out seems it must have a flash based website, why?! they take ages to load they look bad, they sound bad, they act bad in terms of navigation, they're always dark and half the time you need this or that plugin anyway! Just stick with HTML!!! A useful guide for anyone creating a website, especially anyone creating a professional website. EDIT: it does seem that marquee text does work in FF2, something i never knew, i also thought it only worked in IE as it was basically made by and for IE, there ya go! something new everyday! -
Um...as much as i dont doubt some university guys/girls i really dont think regularly taking medicines which you do not need is a good idea. For a start when you do need aspirin it would probably have less of an effect than it usually would have, also you might become addicted to aspirin as it is possible and i know that it isnt a lot to be taking but nor is one cigarette a day which turns into 5 then ten and so on... I think the best advice for avoiding cancer is to stay fit and healthy, eat the right foods with plenty of vitamins etc... and accept the fact, however morbid it may be, that cancer might still attack you anyway. You cant really avoid it, you can reduce your chances by being healthy and making sure your body is in good shape to fight back but thats the most you can do im afraid.
-
The tutorial isnt bad but in my opinion its not much of a tutorial, it basically gives you some code and says look at that, now copy and paste, change a few variable names and youve just written some code. I prefer tutorials that are more like: Ok we need this this and this, to make it work we put this here and that there, now test it and see how it works, now change this that and that etc etc etc... But still if you wanted a quick system that seems good at a glance. i did a system similar to this myself but it worked in a very different way, instead of using a case statement i simply used an IF to make sure that the page variable wasnt NULL and then used the page variable value eg "news" as the page name so that would link to a file called "news.htm" just added ".htm" to the end of the page variable's value and tried to open that file, if it works then they see the page, if not they get an error also controlled by an IF statementI suppose its not the most secure method but it seems to work, ive tried to open files in other directories and on other domains and i just get an error.
-
Vista Installation Video You MUST see this one...
shadowx replied to jlhaslip's topic in General Discussion
LOL! It's about all Vista is good for really! bedding for your pet hamster! But i agree, thats a hell of a lot of cash to be wasting, unless of course he already installed it on a machine and didnt need the disk or manuals anymore. Great find though