Recent content by Question Everything!

  1. Q

    PHP: !isset($var) or $var == null, Which is best?

    function ($var) { if (!isset($var)) { $var = 'one'; } //OR if ($var == null) { $var = 'one'; } } Which way is best? Or some other way?
  2. Q

    AJAX: How can i get the sha1 of a string using AJAX and PHP?

    Please i need this asap is there a way to do it with out forms?
  3. Q

    AJAX request help please?

    Using AJAX without forms how do i send a string to a PHP page and get the sha1 hash of this string??? Please Help
  4. Q

    AJAX Help Please, code not working?

    Why wont this code work? If code doesn't display correctly see: http://beta.site.global-warming/ajaxtest/example.txt //FILE ONE: fileX.php <? function dualHash($string, $salt) { sha1($string); } if (isset($_GET['dualHash'])) { echo dualHash($_GET['dualHash'], $_GET['salt']); } ?> //FILE...
  5. Q

    PHP and JavaScript help required?

    I have two functions. One is PHP and the other is JavaScript. They both should generate the same string if the input is the same. E.g. input = "qwerty123" output would = "7.1674618149499E+85" input = "qwerty123" output would = "7.1674618149499E+85" input = "asdfg321" output would =...
  6. Q

    AJAX Help Please, code not working?

    Why wont this code work? If code doesn't display correctly see: http://beta.site.global-warming/ajaxtest/example.txt //FILE ONE: fileX.php <? function dualHash($string, $salt) { sha1($string); } if (isset($_GET['dualHash'])) { echo dualHash($_GET['dualHash'], $_GET['salt']); } ?> //FILE...
  7. Q

    AJAX request help please?

    Using AJAX without forms how do i send a string to a PHP page and get the sha1 hash of this string??? Please Help
  8. Q

    PHP: Image Resize Function?

    How can i shrink an image before it is stored if the size is over 64x64? Understand?
  9. Q

    AJAX: How can i get the sha1 of a string using AJAX and PHP?

    Please i need this asap is there a way to do it with out forms?
  10. Q

    PHP instant messenger?

    What is the best PHP with MySQL based Instant Messenger?
  11. Q

    PHP: $_POST/GET help please?

    How can i access the $_GET variables like $_GET[2]? Example: url: site.com/home.php?varone=valone&vartwo=valtwo echo $_GET[0]; // echos valone echo $_GET[1]; // echos valtwo Note: I cant do i like $_GET['varone'] cause its for a universal function. Also i want to do the same thing with $_POST
  12. Q

    FancyBox: How do i display a image?

    How do i call the image using javascript (FancyBox) $("a.lightbox_single").fancybox(); <a class="lightbox_single" href="4_b.jpg" title="title #1"><img src="4_s.jpg"/></a> like you click on a link and the href is javascript: showImage(); etc
  13. Q

    PHP: Can you include a file locally into a function?

    You include a file (in it has a variable X) in a function and X can only be accessed form within the function not outside. Is it possible? How?
  14. Q

    PHP - Can you HELP please?

    You have two files, X and Y. How do i get the GET variable that was set when i included the file in Y? X) class name { function first() { return $_GET['name']; } } Y) include('X.php?name=Scott'); echo $name->first();
  15. Q

    PHP: My code doesn't work?

    Is there a mac (or windows) program that will check my php files and tell me whats wrong? How else can i fix it? Is there any free person who can check the code and not use it for themself?
Back
Top