www.webdeveloper.com

Search:

Type: Posts; User: NightShift58

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    8
    Views
    1,268

    You can use cURL to send GET variables or, if...

    You can use cURL to send GET variables or, if your server/host allows it, you can send them using file_get_contents() and adding all your gets to the URL being queried.
  2. Replies
    21
    Views
    4,547

    The answer to your original question is here: ...

    The answer to your original question is here:

    http://www.php.net/manual/en/language.variables.variable.php
  3. Replies
    11
    Views
    1,864

    The code below is a two-part sequence, closely...

    The code below is a two-part sequence, closely related but independent in a way. It is only of any use to you within the Wordpress framework.

    In the Wordpress core files, a number of so-called...
  4. Your menu consists of so-called Wordpress pages....

    Your menu consists of so-called Wordpress pages.

    You can go to Page->Edit in the admin panel. You can then edit each page individually or choose the Quick Edit option.

    Whichever method you...
  5. Replies
    5
    Views
    1,111

    NogDog's solution is better. Your problem was...

    NogDog's solution is better.

    Your problem was this:


    $data = explode("\n", $line);


    By not using the FILE_IGNORE_NEW_LINES flag in your file() call, you were including the "\n" that comes...
  6. Replies
    5
    Views
    848

    I would be hesitant to change such settings...

    I would be hesitant to change such settings because any tech-savvy employee could copy them and use them from home.

    The admin-keeps-logging-in solution isn't very sexy.

    Your initial assumption...
  7. Replies
    6
    Views
    1,141

    I am quite confident that, in the end, it may...

    I am quite confident that, in the end, it may well be a time-out issue. This may be on your server or on the remote servers that you are calling or the methods that your are using to call the remote...
  8. Replies
    13
    Views
    1,685

    View Post

    <?php

    $my_pseudo_integer = "1234";

    IF (intval($my_pseudo_integer) == $my_pseudo_integer) :
    $same_same = TRUE;
    ENDIF;

    ?>
  9. Replies
    6
    Views
    1,141

    Use set_time_limit(int $seconds). Here an...

    Use set_time_limit(int $seconds).

    Here an excerpt from the PHP manual:

    Seconds: The maximum execution time, in seconds. If set to zero, no time limit is imposed.
  10. Forget the theory... Just try it. You'll see...

    Forget the theory... Just try it.

    You'll see how much faster it is. Above all, it is less error-prone than all this casting and juggling the date.

    And, as far as I know, internally, MySQL date...
  11. Yes, you could be correct. The main point I...

    Yes, you could be correct.

    The main point I was trying to make, however, was that using date() to extract a date part from two literals which consisted of only date parts was useless.

    In "real...
  12. $sql = "update `table` set `status` = '0' where...

    $sql = "update `table` set `status` = '0' where status <> '0' AND `expdate` < NOW()";
  13. $tte = mysql_query("SELECT COUNT(*) FROM...

    $tte = mysql_query("SELECT COUNT(*) FROM `_cpof_fallen_officers` WHERE date(`date`) between '2008-01-01' and '2008-12-31' ", $dbconn);
    $tte_count = mysql_result($tte, 0);


    The DATE() function is...
  14. This bit od code is probably the cause of your...

    This bit od code is probably the cause of your problems.



    if ($b == 'Used2' and array_key_exists('CompleteOn2',$checkArr)){
    $v = " Used = '1' ";
    }else{
    $v = " Used...
  15. View Post

    <?php
    session_start();
    if (!isset($_SESSION['email'])) {
    mysql_connect("localhost" , "*****", "******") or die('Database is not responding.');
    mysql_select_db("crescen9_Bandusers") or...
  16. Replies
    9
    Views
    1,554

    Secure and cookies are antonyms, in my book. ...

    Secure and cookies are antonyms, in my book.

    Saludos de Barajas...
  17. Replies
    9
    Views
    993

    It would basically be the same - except that you...

    It would basically be the same - except that you would use the attribute "checked" instead of "selected".
  18. Replies
    9
    Views
    993

    My bad. Twice. $moptions = array();...

    My bad. Twice.


    $moptions = array();
    $moptions[] = "1";
    $moptions[] = "2";
    $moptions[] = "3";
    $moptions[] = "4";
    $moptions[] = "5";
    $moptions[] = "6";
  19. Replies
    9
    Views
    993

    $options = array(); $options[] = "a";...

    $options = array();
    $options[] = "a";
    $options[] = "b";
    $options[] = "c";
    $options[] = "d";
    echo '<select name="d_birth_day" id="d_birth_day" class="dob">';
    foreach ($options as $key => $val) {...
  20. Replies
    4
    Views
    861

    $i++; if (($i % 3) === 0) { echo ''; }

    $i++;
    if (($i % 3) === 0) {
    echo '<br>';
    }
  21. Replies
    9
    Views
    1,554

    A simple way to do it would be to store your...

    A simple way to do it would be to store your variables to an array. This array can be stored to a cookie by using the serialize() function.

    When reading the cookie/array back into your...
  22. Replies
    8
    Views
    1,131

    View Post

    <?php
    $path = "./1234";
    $files = glob("$path/*");
    sort($files);
    foreach($files as $file)
    {
    echo "<a href='$path/" . basename($file) . "'>" . basename($file) . "</a><br...
  23. Replies
    7
    Views
    4,823

    This would be a major disaster if it were true. ...

    This would be a major disaster if it were true.

    Something else has to be the problem. Can you post the entire script? Or at least the form?
  24. Replies
    8
    Views
    1,131

    The easiest way I can think of is to use glob()...

    The easiest way I can think of is to use glob() instead of opendir().

    Once you have the directory into the array returned by glob(), use asort() to sort it.
  25. Replies
    4
    Views
    861

    View Post

    <?php
    $i = 1;
    $lps = mysql_query("select * from member") or die(mysql_error());

    while ($lpr = mysql_fetch_array($lps)) {
    echo '<div class="random"><div id="hovered">';
    if...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles