Jump to content
xisto Community

Lewisthemusician

Members
  • Content Count

    51
  • Joined

  • Last visited

About Lewisthemusician

  • Rank
    Member [Level 1]
  1. PHP Date Welcome to the PHP Date tutorial, in this tutorial you will learn how to make a date script and also, i will teach you what symbols you can use to put in your date, in each example i have exampled it as a random date so don't be confused. Step 1: Start Off The PHP Script <?php Step 2: Add in the date Which would show up with a short day, short month and the year. E.g Mon Jul 2007 $date = date("D M Y"); Step 3: This would show up as the date in numbers d/m/y E.g 23/07/07 $date2 = date("d/m/y"); Step 4: This would show up as the full date with the day, the month and year in full E.g July 23 2007 $date3 = date("F j Y"); Step 5: This will be saying the number date at the begining adding in a small th, rd or nd at the end. It also includes the Full Month and the year.E.g 23rd July 2007 $date4 = date("jS F Y"); Step 6: This is echoing all the dates, this is what will show up on the page. echo "The Date today is the $date which is also $date2 and $date3 And $date4"; Step 7: Now we have to end the php script, this will tell the page that we are ending the script. ?> Enjoy, i have listed some other symbols you can use on your site (As listed form http://de2.php.net/manual/de/function.date.php):Day d - Day of the month, 2 digits with leading zeros - 01 to 31 D - A textual representation of a day, three letters - Mon through Sun j - Day of the month without leading zeros - 1 to 31 l (lowercase 'L') - A full textual representation of the day of the week - Sunday through Saturday N - ISO-8601 numeric representation of the day of the week - 1 (for Monday) through 7 (for Sunday) S - English ordinal suffix for the day of the month, 2 characters - st, nd, rd or th. Works well with j w - Numeric representation of the day of the week - 0 (for Sunday) through 6 (for Saturday) z - The day of the year (starting from 0) - 0 through 365 Week W - ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0) - Example: 42 (the 42nd week in the year) Month F - A full textual representation of a month, such as January or March January through December m - Numeric representation of a month, with leading zeros - 01 through 12 M - A short textual representation of a month, three letters - Jan through Dec n - Numeric representation of a month, without leading zeros - 1 through 12 t - Number of days in the given month - 28 through 31 Year L - Whether it's a leap year - 1 if it is a leap year, 0 otherwise. o - ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0) - Examples: 1999 or 2003 Y - A full numeric representation of a year, 4 digits - Examples: 1999 or 2003 y - A two digit representation of a year - Examples: 99 or 03 Enjoy!
  2. good idea, i don't blame you.Lots of spam all the time normally in shoutbox's ;)Quite good, i might enforce that rule at my site hehehe
  3. Contents Introduction In this tutorial, you will learn about PHP, i will start with this and then make more parts to it until i have completed a few parts which will cover the whole range of PHP. I hope you will learn lots from this tutorial and when you finish you will know loads. I have benefited from learning this way and that's why i have written it out as a tutorial for others to learn from. Start Off PHP Now to start off create a page with any name, it doesn't really matter. However you need to make the page end it .php When you are using PHP, you need to define it and tell the page you are using it, so this is kind of like : <html>and </html>However in PHP, to start off a PHP script you use: <?or <?phpand to close it you use ?>In this case we will be using the first choice so inside your page place this code. <??> Inside these brackets with question marks you can place any php stuff you like. Echo Then let's say you want to input some text, in PHP there are 4 ways echo 'text';print 'text';return 'text';die 'text';(Note that die will shut down the rest of your script so nothing else below it will run, making it useful for errors and things.)But for now you do not need to know them so we will be using echo. So in between the brackets insert the echo which would look like this. <?echo "Hello";?>You can also change the quotations to single's eg <?echo 'Hello';?>These both would show up like this: Hellobut don't worry about that for now. Variables In PHP there are such things called variables, these define a certain object. To cut it down into baby language imagine you have a file in your "My Documents" folder, then, placing the variable into a echo is like making a shorcut on your desktop. In This example we will be changing the "Hello" text into a variable then place the variable into the echo to show on the page, i have broken this down into steps to explain it. Step 1: Open the PHP brackets <? Step 2: Make a variable called greeting $greeting = ""; Step 3: Define whats happening in the variable so in this case we would say we want text to show up saying "Hello" $greeting = "Hello"; Step 4: Echo this variable echo $greeting; Step 5: Close the PHP Brackets ?> So, altogether that would look like this: <?$greeting = "Hello";echo $greeting;?>This to would end up looking like this on a page Hello That's the end for part 1, look out for part 2 where i will more like the if command and if..else command as well as more in depth explanations of PHP. Enjoy!
  4. Step 1: Make a file, in this case we have named it navigation.php Step 2: Enter the code below. I have added in comments for some help, but still please read the part below to find out more about this script and what you should change in it to integrate it to your site. <?php$name = "Simple PHP Navigation"; //The name of the page$site = "<center><b><u>$name</b></u></center> //A Little Title For Each Page<br />";$filename = "navigation.php"; //Change this to whatever your filename isif ($_GET['page'] == 'page1') { //This is page 1 dataecho "$siteThis is page 1<br /><br /><a href="$filename">Go Back!</a>";}elseif ($_GET['page'] == 'page2') { //This is page 2 dataecho "$siteThis is page 2<br /><br /><a href="$filename">Go Back!</a>";}elseif ($_GET['page'] == 'page3') { //This is page 3 dataecho "$siteThis is page 3<br /><br /><a href="$filename">Go Back!</a>";}else {//below is the navigation and home pageecho "<center><title>$name</title>Welcome to $name, this is a simple PHP Navigation for everyone to use created by Lewis Brand.<br /><b><u>Navigation</b></u><br /><a href="$filename?page=page1">page1</a><br /><a href="$filename?page=page2">page2</a><br /><a href="$filename?page=page3">page3</a><br />";}?> Step 3: Edit some parts of it, you might want to change the $name variable to your site name. Change $filename to the name of the file you have put this code in. Step 4: To edit the pages where it has }elseif ($_GET == 'pagename') { Just edit the pagename text to the name of the page you want. Step 5: To edit the navigation, this is placed at the bottom of the script which is the home page. <a href="$filename?page=pagename">pagename</a><br /> Just edit the parts which say pagename to what you want your page name to be. That's all. Enjoy!
  5. Yo, i'm a fellow mac user, i think macs are way better than PC's, we should have a mac section for mac users to talk, my dad got vista and he's had problem after problem with compatibility issues and also programs keep freezing, the computer is like 1-2 weeks old and it's crashing constantly.I have a home computer and it's completely useless, got millions of virus's. No wonder i got a mac and thank god i did ;)Macs Rule ;)Everyone get one!
  6. i play this game all the time, i find it soo fun and addictive, i sometimes hack on it though because you need good skills to hack, more skill then playing normally ;)The skill of mastering your hack so you can own everyone, it also depends on how good your hack is though but you have to know your hack's good points and bad points and you have to know others so you know their weakness so you can defeat htme
  7. What one are you talking about. First person in the world or first person in space? You keep changing lolWhat one?-Lewis
  8. Apparently Vista Is rubish, i heard it's completely crap.For me i will stick with my macintosh and stay nice and safe with no virus's.-Lewis
  9. Kl. This is really helpful and will help me alot in creating my site.Thanks For Your Help and contribution-Lewis
  10. Quote: There is no doubt that questions about the nature of Jesus has been a source of trouble in the understanding of Christian doctrine and scripture from the earliest days of the church. The question of whether Jesus is God belongs to the branch of theology known as Christology. Christology has been an unholy mess and numerous attempts to solve the mysteries involved have been declared heresies by the eccumenical councils. Ten of the seventeen major heresies have to do with Christology. Arianism: Jesus was originally created by God the Father. Apollinarianism: Divine will overshadowed and replaced the human in Jesus. Docetism: Jesus only seemed to be human, but was really divine. Monophysitism: Jesus had only divine nature not human nature. Nestorianism: Jesus' divinity and humanity were separate in two distinct persons. Tritheism: Jesus is a separate god from God the Father. Socinianism (Unitarianism): The Holy Spirit is God's power and Jesus is a deified man. Modalism (Modal Monarchianism): Jeus is a mode of God the Father. Kenosis: Jesus gave up divine attributes while on earth. Adoptionism (Dynamic Monarchianism): God gave Jesus his powers and adopted him as a son. In rejection of these ideas the eccumenical councils affirmed "hypostatic union" that Jesus is fully man and fully God, and His two natures of human and divine are neither mixed nor separate but united in one person. This is part of the doctine of the Trinity, that there is one God but three persons. But back to the question of whether Jesus is God, when we look up the question we will find these references to scripture used to establish that Jesus is God: John 10:30-38, Matthew 16:13-17, Mark 14:61-64, John 14:6, Hebrews 1:8, Colossians 1:16 and John 12:40-41. However.... Matthew 16:13-17, Mark 14:61-64 only says the Son of God. But... Hebrews 1:10 and Colossians 1:16 say that Jesus is the creator of heaven and earth, which is certainly something we associate with God. Furthermore Hebrews 1:8 gives him the title of God and Colossians 1:19-20 explains that in Jesus all the fulness of God dwells so that in Jesus all things of Heaven and Earth are reconciled to Him. Then of course there is the gospel of John chapter 1 where it says that the "Word" was God and in the beginning with God, that through the "Word" all things were made, and then in verse 14 that the "Word" became flesh (a man) and dwelt among us, and finally John the Baptist bore witness that Jesus was that man. In John 10:30-38, Jesus says "I and My Father are one", in John 12:45, He says, "And he who sees Me sees Him who sent Me", and finally in John 14:7-10, He says, "If you had known Me, you would have known My Father also; and from now on you know Him and have seen Him. Phillip said to Him, 'Lord show us the Father, and it is sufficient for us.' Jesus said to him, 'Have I been with you so long, and yet you have not known Me, Phillip? He who has seen Me has seen the Father; so how can you say, Show us the Father? Do you not believe that I am in the Father and the Father in Me? The words that I speak to you, I do not speak on My own authority; but the Father who dwells in Me does the works.'" The closest thing to this in the first three gospels is Matthew 11:27 "All things have been delievered unto Me by My Father, and no one knows the Son except the Father. Nor does anyone know the Father except the Son, and the one to whom the Son wills to reveal Him", which does not say quite the same thing, or at the very least, is no where near as clear. My conclusion therefore is that although there is no clear declaration that Jesus is God in the first three gospels, it is the clear position of the gospel of John that Jesus is God, and likewise it is clear that the apostle Paul acknowledges and embraces this teaching of John's gospel in His letters. So whether you argue or not that this idea that Jesus is God was added by those who came later, you cannot hold the gospel of John and the letters of Paul to be authoritative and also repudiate this doctrine that Jesus is God. So even though in my own case, the affirmation of the divinity of Jesus is not central to my own faith, I cannot deny it and I even defend the doctrine, for I see sufficient support for it in scripture and I see no contradiction in it. Perhaps I should explain. In the concept of "hypostatic union" (fully man and fully God), it is apparent that the categories of man and God are not mutually exclusive. This does not mean that finite man (though he may have infinite potential) could ever be God who is infinite in actuality. However, it is not beyond the ability of God to become a man. In fact it is clear that God did not simply assume the form of a man, but became as all men begin in their mother's womb, a single cell growing until that time they are born a helpless infant. But now here is the confusing part. Was Jesus a helpless infant? If the infant was God then it seems obvious that the infant could do anything, and was therefore anything but helpless. This seems troublesome to me because if Jesus was not a helpless infant then in what way was He a man since all men are born as such. Yet it is clear that God did nothing that an infant could not do. So I cannot help but conclude that God decided that He would not do anything that a helpless infant could not do. But we are inclined to say, He could have changed His mind! Perhaps He could. But God does not do that. God's decisions are the laws of the universe. It was His decision that gravity would hold us in a certain way to the earth and that decision is the law of gravity. His decisions make everthing in this universe what it is. Therefore if God decided that He would not do anything that an infant could not do, then that is the law of its nature and we can say that God was in truth an infant in every sense. Thus by His own decision, for a time on earth, He was by His own choice emptied of infinite knowledge and power to become the helpless infant Jesus, to learn and grow in wisdom and strength as all men do. Phillipians 2:5-8 "Have this attitude in yourselves which was also in Christ Jesus, who, although He existed in the form of God, did not regard equality with God a thing to be grasped, but emptied Himself, taking the form of a bond-servant, and being made in the likeness of men. And being found in appearance as a man, He humbled Himself by becoming obedient to the point of death, even death on a cross," Luke 2:52 "And Jesus increased in wisdom and stature, and in favor with God and men." But if God bound himself to the limitations of a human being during His time on earth, then there was nothing that Jesus did that we also could not do. This idea would cause some consternation among Christians who like to point to the miracles that Jesus did and say that no human being could do such things. Well they would be right that only God could do such things. But it also clear that Jesus sent out His disciples to do everything that He himself had done, and they could do it because God would answer their prayers. Jesus said in Matt 17:20 that if they had but the faith the size of a mustard seed, they could command a mountain to move. The point is that power of God is available to all human beings for the asking, so Jesus did not in fact do anything that human beings could not do with a little faith. Thus Jesus was fully man. But without infinite power and knowledge in His own person, how was it that Jesus was God? Well God is not just a human definition of power and knowledge, but a real person. That helpless infant was still the person who created the heavens and the earth. We could say that just because God decided not to use His infinite power and knowledge, why would this mean that He was not God? Ok yes God decided before hand that He would not and this decision is the same as a law of nature, so even though we can say that He merely did not use His power, we can also say that laid it aside and subjected Himself to this limitation. But now this sounds a great deal like the heresy listed above as Kenosis. This was declared a heresy because it was thought that if Jesus was not fully divine, then His atoning work would not be sufficient to atone for the sins of the world. They were aware that, declaring that Jesus retained all the infinite power and knowledge of God, was in clear contradiction of scripture (for example Mark 13:32, "But of that day or hour no one knows, not even the angels in heaven, nor the Son, but the Father alone.") But, I deny that the infinite power and knowledge of God is necessary to His divinity. God is not our human definition of omniscience and omnipotence. Our definitions do not bind Him, such that He cannot do anything which seems to contradict them. God is just as capable of risk, self limitation and sacrifice as any of us. It is not this power and knowlege which makes God what He is, no more than it defines who we are. If we were to lose power or knowledge in any form or by whatever means, it does not change who we are! Nor does it change who God is because God is also a person not just some theological definition. If God is defined by anything it is goodness and love. This is not a human definition, for goodness and love is not defined by men but by God. All understanding of goodness and love by human beings are a shadow and distortion of what is truly good and loving. Pure goodness and love is found only in God. I think that there are some things that are worth any sacrifice and which justify defying even a god of knowledge and power. I think that such a circumstances would "strip God of His divinity" (so to speak) more surely than any lack of power and knowledge. Therefore it seems to me that God cannot be opposed to any cause that is truly founded in compassion and justice. Any opposition to God must ultimately derive from some fault of our own that calls some selfish conceit of ours, love or justice merely for own convenience and self-justification. So I believe that I uphold "hypostatic union" (fully God and fully man) when I say that "in becoming a human being inside of time and space God shed all of his infinite power and knowledge (humbled himself) to become an innocent and helpless infant". For I say nevertheless, this infant remained fully God and fully man because being helpless does not preclude divinity, no more than losing an arm or a leg deprives a man of his humanity. Not only does this make the idea of Jesus being fully man make a lot more sense but it is much more fully compatable with scripures such as Luke 2:52 and Mark 13:32. Even though I deny that infinite power and knowledge is necessary to God's divinity, I do think that our finitude is very much a definitive part of the circumstance of being human. For God to take the form of human being without sharing in our finitude, would be nothing more than play acting. Thus I believe that I can say that this is not the heresy of Kenosis, for I do not claim that in becoming a man, God emptied himself of His divinity, but according to scripture (Colossians 1:19-20) reconcilled in Himself all things of heaven and earth to become fully God and fully man. However, I will say that this interpretation explained above is only my opinion and my interpretation, and I would not dream of saying that anyone must agee with me. I take no authority upon myself in regards to the truth or in regards to the interpretation of scripture. The Bible is the word of God and in my view it is the only authoritative statement of truth for everyone to understand as best they can. This could all be made up and no one will be able to prove it apart from the real god or until like the future if they have super technology. -Lewis
  11. I wouldn't really know what you should buy but i find mac's good and you can play world of warcraft on them I don't play world of warcraft though You can always download photoshop, macromedia flash, fireworks, dreamweaver, director and sound booth to keep you entertained and make some money designing websites I really should start creating my own websites and selling them lol Ill take my own advice and start now -Lewis P.S thanks for the inspiration.
  12. quote:When dealing with viruses, i would certainly recommend norton internet security 2007, because not only does it protect you from the latest viruses, but it also protects you from phishing sites, hackers, worms, and more. I have tried many other anti-virus softwares, and found norton better because with ones such as NOD32, AdAware or SpyBot, they found my computer clean of viruses. When i scanned my system with noron, six security risks and a deadly virus were found and instantly removed. Norton, without a doubt, is the best computer security program in every way. I would not advise Norton Internet Security, any product made by norton is due to be rubbish lolJokes, i havn't tried it, ill download it tomorrow (or today since it's past 12 am) and try it for you.I find Spybot search and destroy still the best or i choose nothing (on my mac )Just get a mac people-Lewis
  13. Normally with rar files that people give out including passwords would tell you the password to get in the file.I don't think their is a way to break through the password protection because people would know by now if their is.I know whats it's like, someone tells you the wrong password and it annoys me so much.Best of luck!-Lewis
  14. quote: Ok, i made this short tutorial on how to start a dedicated server in counter-strike. Hope everyone finds it useful. Required software: Steam Counter-Strike 1.6 / Condition Zero Dedicated Server (Found in Steam > Tools) First, you haave to make sure ur router is configured with all hlds ports forwarded to your ip address. To access your router, you type the default gateway address (E.g. 192.168.1.1) in internet explorer and enter your details when prompted. Then navigate your way till you find a section called 'port range forwarding', usually found in 'applications and gaming'. Once there, add an entry 'hlds'. In the port range, from start to end, put 27015 (assuming thats the port ur using), in protocol, select 'Both', in IP address, put ur ip , and tick 'Enable' *NOTE* Only do this step if you are experiencing problems with server detection. Next, you have to install the latest version of AMX Mod X, found in http://www.amxmodx.org/. You can access your server mods in C:\Program Files\Valve\Steam\SteamApps\*YourAccountName*\dedicated server\cstrike\addons (It should be there if AMXX was installed correctly). Ok, from there its up to you which mods you install on ur server. If you want deathmatch, for example, click the plugins link on the AMX mod X website, navigate your way to the mod, and follow its installation instructions. A typical mod installation would involve excracting the plugin file, compiling it, then adding a line in the plugins.ini file, found in the configs folder. If you need further information or are experiencing problems, feel free to PM me. Kl, i will try this even though i don't have counter strike, my cousin plays it, he is like rank 30 lol anywayz, ill set it up except my port forwarding with my router and ISP isn't so simple Oh well, it's worth a try -Lewis
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.