Jump to content

ala888

Members
  • Posts

    100
  • Joined

  • Last visited

Posts posted by ala888

  1. I mean the whole

    onclick(pause/play)

    is already built into mozilla web browser, while it isnt on something else like chrome.

    when you click the video on chrome, nothing happens without this script. but if you do on mozilla, it will still play without script.So when the same script runs on mozilla, its essentially running 2x - resulting in the video NOT playing.

  2. Is it possible to open up a php file in a sub directory of root without specifically setting it as a destination; but rather, only referencing the folder it is in ? Similar to how, index.html, opens automatically when viewers visit the home page - despite it never being explicitly called.

  3. Basically, if I code something like

    onclick="functionx()"

    function x()

    {if(video.paused){

    video.play();

    }else

    {video.pause();

    }

    }

     

    works fine in chrome. Problem is, in mozilla firefox, this function is already built into the browser - so when the user clicks

    the video to play it, it starts and stops almost immediately. How do I work around this? Browser detection is out the door due to reliability issues.

  4. Then how come, say for a linking tag for a css stylesheet, it is acceptable to state "/TEST.CSS" - and it would successfully connect with the .css document in the web server root. Rather than connecting to the file system root?

     

    or is it simply a difference in the interpretation between the languages of HTML vs PHP?

    like html "/" is web document, while php "/" is filesystem

  5. Could you clear this up more please?Im having some trouble understanding.In javascript, if functions are just glorified object prototypes, then why is it not mandatory to declare all new functions as we do new objects?

     

    var x = new function();

    and not

    function x ();

  6. The function glob() used for searching items/directories

    does not recognize the root reference "/" for some reason.When I code something like

    print_r(glob("/*.jpg"));

    It returns all .jpgs in my C: directory(Im practicing with a desktop) rather than the specified root directory on the XXAMP

     

    How do I correct this?Also is there a page anywhere that guides you on how to path with code?Like what all the "/" and stuff means, and their subsequent references to directories? I've been searching everywhere, but I dont even know what its called!

     

    thanks

  7. let me rephrase myself, as I realized how ridiculously ambiguous I sound.

    <script>

    $herpderpsomejquerymethods //SELF INVOKES, LORDY LORDY, PRAISE JESUS

    </script>

     

    $herpderdperderp.herdeprerp($someotherstuff); // NO SELF INVOKING. OH NOES

    $herpderdperderp.herdeprerp(FUNCTION(){$someotherstuff}); // ya need to add this redundant thing, but y?

  8. Hi guys, giant scrub here.

     

    $('selector').('somemethod')();

    is the general syntax of jquery

     

    but, why do I see this:

     

    $('p').click(function(){ ................... });

    as opposed to

    $('p').click( ................... );

    -----------------------------------------------------------------------------------------------

    I can do this:

    function x() {

    if(something) { $().(); }

    }

    calling jquery directly!

     

    so why not this?

     

    $('p').click($().(););

  9. K I understand now. But I have a question to why ['php_self'] grabs its value from the client-side sent request instead of directly from the webserver directory. Seems a bitter counter-intuitive to me; unless of course, there is some inherent benefit to the procedure - please enlighten me.Also, is there another superglobal that does grab its value directly from the web server directory, as an enhanced replacement for ['php_self']

  10. no specifically, I mean how the value of a couple drop into complete void, IDK what their value is, even if I use "else", like if it aint x==2, it does not work !

    So like, at what level of "undefined" does the ????? come in. Sorry, I have no idea how to phrase this without being super obscure

     

    document.forms.random == undefined

    document.random == undefined

    document.forms.random.qwe == ????

    documents.random.qwe == ????

  11. Can someone explain this phenomena to me? or atleast tell me what its called?Also, where can I get a comprehensive list of these object things in Js?Im stumbling across stuff like ".name" on accident, but no idea where the "official" properties and objects come from

     

     

    document.forms.random == undefined

    document.random == undefined

    document.forms.random.qwe == ????

    documents.random.qwe == ????

  12. Hello!I don't exactly understand how the vulnerability of injection for the $_SERVER['PHP_SELF'] works.

    I've looked at multiple other threads; but what I don't understand is, since the php file is running server side,

    how is it even physically possible for the client to alter the value of "$_SERVER['PHP_SELF']" by changing the url in his browser? The command essentially pulls up a list of files from server root and scans through their names. It doesn't check client side url address box! Therefore, anything the user types shouldn't effect the website itself, since the form "$_SERVER['PHP_SELF']" part is deriving its value way back from the server itself.

     

     

    thanks for the help!

×
×
  • Create New...