Jump to content

phrozenflame

Members
  • Posts

    106
  • Joined

  • Last visited

    Never

Everything posted by phrozenflame

  1. [quote author=thorpe link=topic=120351.msg493497#msg493497 date=1167448936] Help doing what? And please, whats with all the short questions? Help with the above questions Thrope
  2. Well im new to arrays I need help
  3. I need to figure out the best way to master doing arrays, should I get use to the first way or the second way <?php $myarray = array("west", "david", "mike", "jim", "bob", "dave", "walton", "korn", "siesmic"); ?> or the longer way with writing out each one below it. Which way is better while I am learning
  4. I know everything in web design has a place. there is one language I was wondering about. xhtml is to create the page.  Css is to style the page.  Javascript is to add some special functions, and unique actions, php is to dramatize, and make the page dynamic, sql(variations) are to database a website when needed.  and add database.  IN the general scope of things what would xml be used for.  What purposes does it serve, I know at w3 it states it works with the other langues, so I can use Xhtml, css, Php, Sql, javascript, and still have a fundamental purpose for xml to work with all of those, so what would that purpose be and what would be the reason for xml
  5. Oh right I see its more clear now thanks
  6. How can I create a function within a function. For instance I want to set my own user function, but I had a program within that, and I used like 6 preset functions, and wanted it all to run together when I call my user function, how do I do that, I searched around and found out about user functions, but not functions of functions or functions inside of user functions
  7. ok what do I need to do to get something out of time and date functions.  I know the purposes in javascript, I just need to understand, I have been using the manaul and www.hubzilla.com and multiples googles, but I still need to pull together, how can I effective utilize time stamp, date stampt, time and date functions for various purposes, other than throwing down a date for someone to see the current time and date.
  8. <?php     print time();     $foo = time();     print $foo; ?> umm why did this give me 11454150731145415073 that updates every time I hit refresh, is there a better way to do this, htis may be the time, but I don't understand this language of time, I am use to 10:30, 12:20 or so so, military time, gmt +- theories, What is this number here for that autoupdated everytime I hit the refresh button
  9. Hey I'm looking at getting a PHP book off Amazon and was wondering what comes reccomended. I know basic PHP and stuff but want to brush up and make things more permanent in my head. So, what book from amazon would you guys reccomend to buy
  10. How do I create a simple to advanced search function. like a major website, how do they set up a search for a forum, or for a website or something of that nature.  What do I need to do, would it require a database, or wuold I try to store the whole website information into various variables, and pass it to one big function, with a form text area, and get it to search through all the variables. Or do I pick specific keywords, like what I think they would want to search for, and pass each to a variable in there location, and then create a function for a form text area, to where if they type in one of the words it somehow draws the page with that variable up There has to be some ways,  Main thing is does it involve a database if not then how would I go about doing this
  11. I know in xhtml I stay away from deprecated tags, I was just checking to make sure I should do the same with php
  12. is it good to use deprecated tags, and functions in php, or should I always try to use the newest version of those deprecated, and if I find myself using deprecated tags at one point or another are they considered bad programming practice or against some specific standards
  13. Oh so then shall I just replace the old deprecated tags for the newer versions
  14. this first Name Functionality $GLOBALS Contains all global variables in your script, including other superglobals. This is not generally recommended for use, unless you are, for some reason, not sure where a variable will be stored. $GLOBALS has been available since PHP 3, and its operation has not changed. $_GET Contains all variables sent via a HTTP GET request. That is, sent by way of the URL. Users of older PHP versions will recognise this as being the same as $HTTP_GET_VARS array, which, although deprecated, is still available for use. $_POST Contains all variables sent via a HTTP POST request. This is similar to the old $HTTP_POST_VARS array, which, although deprecated, is still available for use. $_FILES Contains all variables sent via a HTTP POST file upload. This is similar to the old $HTTP_POST_FILES array, which, although deprecated, is still available for use. $_COOKIE Contains all variables sent via HTTP cookies. This is similar to the old $HTTP_COOKIE_VARS array, which, although deprecated, is still available for use. $_REQUEST Contains all variables sent via HTTP GET, HTTP POST, and HTTP cookies. This is basically the equivalent of combining $_GET, $_POST, and $_COOKIE, and is less dangerous than using $GLOBALS. However, as it does contain all variables from untrusted sources (that is, your visitors), you should still try to steer clear unless you have very good reason to use it. There's no equivalent to $_REQUEST in versions of PHP before v4.1. $_SESSION Contains all variables stored in a user's session. This is similar to the old $HTTP_SESSION_VARS array, which, although deprecated, is still available for use. $_SERVER Contains all variables set by the web server you are using, or other sources that directly relate to the execution of your script. This is similar to the old $HTTP_SERVER_VARS array, which, although deprecated, is still available for use. $_ENV Contains all environment variables set by your system or shell for the script. This is similar to the old $HTTP_ENV_VARS array, which, although deprecated, is still available for use. BACK TO ME-Some of these are deprecated so I don't care about those, but with these specifically, does this mean that every variable under those sections are all stored in that information
  15. How do I fully understand the concept of "function prototypes" I have learnt all the basics and I am starting learning to use functions, but before I get too far, I want a thourough understanding of the concept of "Function Prototypes" I appreciate the help, thanks. less-important question. With me being strictly an obsessed web developer that cares about nothing but everything web design and wants to learn all languages, that benefit the world of web design, how can C+, C++, and C# benefit me directly and indirectly relating to web design, coding, programming, promotion adn hosting.  Or are these for other purposes.
  16. After I dig deeper into php I am learning sql, and it's variations including mysql, but I was also told by numerous people, including people on this board, that you shoudl validate forms with javascript, and process them with php, if this is true then I would have no need for the isset() function in the forms right
  17. Yes it will only work when its correct and that seems correct
  18. What is the purpose and reasoning behind the isset() function.  If you set a variable to something you should already know 100% that it is already set, why would you need isset() to tell you what you already know, what are the purposes and reasons behind this, I already read over www.php.net manuals a few times, under that section, but I still don't grasp this concept, I know unset() takes a variable off I guess you use that when you have a variable, and want to cut that variable off so you can use the same variable name later in the script, but isset() makes absolutely nosense to me, I know for debugging you could check your variables to make sure they are set, but I thought if you set them they were set, no if's ands or buts, the more help I get on this the better, and thank you in advance.
×
×
  • Create New...

Important Information

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.