cwconline
Members-
Content Count
61 -
Joined
-
Last visited
About cwconline
-
Rank
Member [Level 1]
- Birthday 06/06/1989
Contact Methods
-
Website URL
http://aogpro.com
Profile Information
-
Location
Somewhere Your Not! Well... Maybe your here. Who Knows?
-
It's easy to save... just save it as a .php file so in words file.php
-
Yeap another cool thing is this <?php$msg["welcome"] = "Welcome to our site";$msg["GoodBye"] = "Take it easy... come back and see us";echo $msg["welcome"];?> this is a good way to keep your message or your errors on a sepearte file to make it easy to call upon an error... although i did something completly diffrent than that above.
-
Hello,I havent really seen to many coldfusion tutorials around. I also looked for some on here which I couldnt find any... (Must have over looked if I did'nt see it). Anyways we are going to be learning the basics of ColdFusion and from now on I may refer to it as CF so please do not get confused.CF is a very powerfull scripting language, it is a easy transistion if you know PHP, and is also easy to learn if you do not.In CF you have diffrent operators styles and IF formats.Example:PHP Operators in a IF statement if( var1 == var2 ){// What Happens Here} Now in ColdFusion. <cfif var1 eq var2><!-- Whatever happens Here //--></cfif> The operator (eq) is the same as (==) meaning EQUALS.ColdFusion in a sense is kinda more logical than PHP, although some may beg to differ.Most of the ColdFusion operators compared to PHP CF ----What it Does------ PHPeq ------ Equals -------------------------- ==lt -------- Less than -------------------------- <gt ------- greater than ----------------------- >gte ------ greater than or equal too -------- >=lte ------- less than or equal too ----------- <= Those abover are just the common ones.Setting Variables in ColdFusion.I'm not really going to go over how to see up Variables in PHP but in case you dont know its. $var = "what ever it is";// Where $var is the variable. Now, setting a variable in ColdFusion looks like this... <cfset var1 = "whatever"> Now calling out CF statments variables is not so diffrent than from PHP for this reasonIn PHP you cannot call out a variable unless you have it in the area of the program that is going to be complied by the php interpeter.Example... <?php// your codeecho "$var1";// you code?> Now doing this in Coldfusion looks like this... <cfoutput>#var1#</cfoutput> Just rember that (var1) is the variable that you set, it will be whatever you named it...Also notice the #'s Around the variable... This is what I call the RUN FUNCTIONS although its not really called that.I like to keep things simple... Just remember KISS = Keep It Simple Stupid... You will go far.Ok... Now more to expalin the <cfoutput> and the </cfoutput> The CFOUTPUT is basicly the <?php in php... although in coldfusion you do not need the cfoutput to set a variable.and the </cfoutput> is the ?> in php... Remember this.. all good things must come to an end so its best to endit now than to get hurt in the long run.So Lets Review some of what we know. <cfset var1 = "whatever"> <!-- Sets a variable //--><cfoutput> allows us to call on our variables. OK! We are doing good... now in php there is a thing called a SESSION which gives you some gobally guke that looks like this23988kald8923920112 or whatever....and COLDFUSION makes it look more professional with less risk of the possible SESSION HIJACKING! (WHICH WE WANT GET INTO YET)So....How do I set a CF session?Well... It's simple...As soon as you logon to a coldfusion server you are giving one of these session numbers,However, it updates per page you are going because you have not yet set that session on there machine.(if that confuses you like it does me, just know how to set it on the machine and get it OVER WITH!!!!)How to Display the SESSION NUMBER <cfoutput> #createUUID()# </cfoutput>Just think of the above like this Create Unique User Id --- thats what it stands for The code aboves allow you to see what the session number and how it looksNow how do I set a session on there computer?Well, it deals with cookies....How do I set a cookie?Setting a cookies is very idiot proof when it comes to coldfusion.... <cfcookie name="namethecookie" value="#createUUID()#"> Now to call on the cookie.... <cfoutput>#namethecookie#</cfoutput> Now ok... its set but it still gives me a diffrent number every time... WHY?Well thats because you need to check to see if that cookie exsist... and if it doesget the value... if it doesnt set a new value...So here is what it is doing... even thou you set a cookie.....FIRST ACCESSPAGE ACCESS --- GIVE UUID --- SET COOKIE TO UUIDPAGE REFRESHREFRESH --- GIVE UUID -- UPDATE UUIDHow to fix this is like so APPLING WHAT YOU KNOW!!!!!!!!!! Yippie Skippie.... <cfif #thecookienameyouset# lt ""><cfcookie name="thecookienameyouset" value="#createUUID()#"><cfset token = "#thecookienameyouset#"><cfelseif><cfset token = "#thecookienameyouset#"></cfif>Now to call upon it <cfoutput> #token# </cfoutput> The above is just the quickest was to check to see if the cookie exsit... however you can slow check to validatethe TOKEN by a couple means that i'm not going to get into untill later...TO BE CONTIUNED...
-
My Designs I will post my template designs here
cwconline replied to matak's topic in Websites and Web Designing
Yes, awesome site design, all though some of the colors do look a little strainy on the eyes, but it is well planned out by the way it looks, so u should be proud of yourself, maybe revising colors would make it excellent. but still looks good -
Ip Blocking Php Script! Stop the bad guys before they stop you.
cwconline replied to cwconline's topic in Programming
Sorry, I couldnt find my post, I am going to fix it right now... allow me until tomorrow to post what I fixed -
Laptop Thief May Go To Prison For Life
cwconline replied to Saint_Michael's topic in General Discussion
I did some research it's NOT THEFT it is FELONIES there is a big diffrence and besides, stealing anything under 15.00$ is non-prosuctiable and is a maximum of an over night stay. So, it only counts towards felonies. -
World's Ugliest Website I believe I have found it
cwconline replied to BooZker's topic in Websites and Web Designing
Hey! That is so mean talking about my site like that It took me 5 hole mintues to make that rainbow ... J/K Yeah, no offense to the person and all i repect them for doing it, well trying to do it. It probally was just something a little kid made that is just learning HTML, just respect him/her for they are just trying but it does look bad... I wouldnt tell them that to there face thou. -
New All Black Myspace Layout I find it pretty sweet.
cwconline replied to BooZker's topic in Websites and Web Designing
You are in direct violation of the terms and conditions of myspace.com/ Go and click on the Terms of Service link Sorry to burst your bubble... just make it where the top advert is showing, and make sure it knows to center itself so it doesnt look all messed up. -
Free Long Distance Calling From Computer To Phone
cwconline replied to reconraiders's topic in Computer Networks
Yes, actually i do it's called iCall and it's free I use it all the time.. try it out. -
Google has mulitiple servers, with multiple hard drives, i have a lapto and the hd is no bigger than the palm of my hand and it's over 160 GB, and there are terabyte drives no, so I am pretty sure, there soon will be teras in computers really soon... Do you rember back in 1997 when computers had only like 500 megs of storage, and if u had like a 1 gig hd u where like super kool, and lucky because they where rare, and now days some files are 500 megs or more... man thous where the sucky days... j/k the 90's rocked. as far as i can remember.
-
Hello and Great Day or Night either one. Have you ever been to a site and seen a index page or any page at all control everything such as index.php?do=home&action=logout something similar to the above? Well I am going to show you how easy it is to make this all own your own, and only have to use one web template or design to make it work. Before we get started you need to go ahead and find the web design that you want to use. After you find the site you want to use go ahead and save it... and save it like this so we can work together, ok! Note* We are going to be skipping around a little bit and this probably will be a long tutorial but it is worth it. 1.) Create a New Folder Called site 2.) in the site folder save the page as temp.php 3.) do not move your css or img files into the same folder leave them in the root folder where your index file for your site is. 4.) now we are going to create the index page <?php$page = $_GET["do"]; // this is going to get the page that is being requested$act = $_GET["action"]; // this is going to be the action that is going to be processed if any.// We are now going to set where the "do" is going to go.######################################## This is the home page ########################################if( $page == "home" or $page == "main" or $page <= " " ){ include "site/temp.php"; }######################################## This is the About Page ########################################if( $page == "about" ){ include "site/temp.php";}###################################### Contact us Page ######################################if( $page == "contact" ){ include "site/temp.php";}####################################### Members Page #######################################// Note* you may want the user to login before hand, if you do so I would recommend using sessions, instead of cookies. for the purpose of this tutorial.if( $page == "members" ){ include "site/temp.php";}// Note you can always make more members pages but to speed up things im just going to show you how to make them really fast/*if( $page == "members" and $act == "thepage" ){ include "site/temp.php";}*/// Note* the $act == "thepage" is the page that you wish for them to request.. I have blocked commented it out....##################################################### Now this is when the user logs out only works with sessions. #####################################################if( $page == "members" and $act == "logout" ){ session_destroy(); header("Location: index.php");}?> Now, you are probally thinking why doesn't he just make it all in one if? well, i tried it and got an error when i was designing my Exchange program. especially when a user logged out, it would get an error. error would say HEADERS have already been sent. So, whats next lets see now we need to make... a page that is going to show what needs to be shown... You need to add the content your self I am going to be using dummy text as an example. So, lets create another file called show.php we need to save this in a new folder, so create a new folder called plugins and then save it. We need to add the following into the show.php file Now this part may confuse you but I will explain it at the end. You also need to create a couple more files, for your index page create a new folder inside of plugins and call it site and so it would be like plugins > site now create and save a file in this folder called home.php this will be your HOME PAGE! so it should look like plugins/site/home.php now in the site folder still create a file called contact and about both with .php exts ok. Ok, now we need to just go ahead and create the members page, remember i said you can just create all the pages you want, but i wasnt going to, it would take to long but i did show you how rember that... now for the members page go to the plugins folder and create a folder called members and in that folder create a file called home.php so it should look like plugins/members/home.php In those files just go ahead and add your forms our what ever... adding dummy text would just make this tutorial way to long, so go ahead and add the content to all the files giving to create, or however you want to do it. <?php if( $page == "home" or $page == "main" or $page <= " " ){ include "plugins/site/home.php"; }if( $page == "contact" ){ include "plugins/site/contact.php";}if( $page == "about" ){ include "plugins/site/about.php";}if( $page == "members" ){ include "plugins/members/home.php";}?> That should do it for that file, now remember the temp.php file? make sure it is blank, and place the following code where you wish for the content to show up at <?php include "plugins/show.php"; ?> Now how does the navagation work? well, just remember what you created and how you wish to make it look in the url... ex home page would be index.php?do=home or about us index.php?do=about or member logout index.php?do=members&act=logout It's just so easy once you understand it. try it you will see and if you dont understand just PM me... also u can take a quick look at a example that is limited in functions, but shows u what it can do at http://forums.xisto.com/no_longer_exists/ it is just to show you what it can do and most features are disabled, some dont even work at ALL!
-
Well its just a few diffs in the way you run queries. also SQL is more like Microsoft SQL or, PortSQl, there are so MANY DIFFRENTS and SQL just means structer query language thats all.
-
HTML can not be used for game design how can you make a game out of the following HTML CODES? <html> </html> - Opening and closing html tags<body> </body> - Opening and closing body tags<title> </title> - Opening and closing title tags<br /> - line breaks<p> - paragraph breaks???<font><a href></a> Thats just a couple of the HTML codes it is NOT POSSIBLE To MAKE ANY PROGRAM WITH HTML ALONE! HTML IS JUST FOR PLACING CONTENT ON A PAGE!!