Search results

  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?
  16. Q

    What's a strong Javascript encryptor with PHP decryption?

    Where can i find a strong javascript encryptor with PHP decryption
  17. Q

    PHP: Help with global variable?

    How do i declare the variable array set in the notify function to global so that the while loop can echo it? ------------------------------------------------ function notify($code, $type, $reason, $solution) { $i = count($notify['type']); $notify['code'][$i] = $code; $notify['type'][$i] = $type...
  18. Q

    PHP: Should I use 'elseif' or 'else if' (with or without space?)?

    I know they do they same thing but what is correct, with or without space?
  19. Q

    PHP: Can arrays be passed to a function (see below)?

    I dont know how to ask this so i try showing it. Something like this: funX("one","two","three","four"); function funX($theArray) { $theArray = array($theArray); echo $theArray[3]; } SEE HERE: addall(1,2,4,7,3,7,8,4,2,3,5,8,8,4,3,2,5,9,9,8,666,54); addall(6,8,4,3,7,9,43); function addall() {...
  20. Q

    PHP: What's the purpose of a class?

    Why should i use a class? Also can you tell me about class variables?
Back
Top