Search:

Type: Posts; User: marain; Keyword(s):

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Thread: Explode Problem

    by marain
    Replies
    2
    Views
    327

    Resolved James, Your explanation comports completely...

    James,

    Your explanation comports completely with my understanding. The final set, however, seemed to have been acting as if there were an additional separator. I developed a workaround to that,...
  2. Replies
    23
    Views
    4,936

    That's a good one, but it does not make the cut...

    That's a good one, but it does not make the cut for me.
  3. Thread: Explode Problem

    by marain
    Replies
    2
    Views
    327

    Resolved Explode Problem

    $bigData: 210210083045*68.197.65.57*10*2****210210083303*107.77.225.115*9*1****

    The code:
    $lineItem = explode ("*", $bigData); // create array
    foreach ($lineItem as $item) {
    echo...
  4. Replies
    1
    Views
    303

    Resolved Resolution was to eliminate the line breaks...

    Resolution was to eliminate the line breaks inserted in the script that created the file. I have no opinion as to whether the line breaks "should" have caused what I discerned originally to be a...
  5. Replies
    1
    Views
    303

    Resolved str_replace puzzle #2

    <?php
    $lastUpdate = date( 'j F Y', filemtime( 'pageContent/reviewActivity.txt' ) );

    $months = array (
    "January",
    "February",
    "March",
    "April",
    "May",
    "June",
  6. Replies
    2
    Views
    355

    Resolved James, You hit the nail on its proverbial...

    James,

    You hit the nail on its proverbial head. Thank you!

    Given your observation, I can now fix it easily. [URL]https://www.marainlaw.com/page.php?here=reviewActivity] shows the contents of...
  7. Replies
    2
    Views
    355

    Resolved str_replace puzzle

    <?php
    $lastUpdate = date( 'j F Y', filemtime( 'pageContent/reviewActivity.txt' ) );
    $bigCount = 0;
    echo "<br /><br />";

    $bigData = file_get_contents ("bigCollection");
    echo $bigData;
    echo...
  8. Thread: Rounding

    by marain
    Replies
    4
    Views
    386

    Resolved James, You have shown me the error of my ways....

    James,

    You have shown me the error of my ways. Thank you!

    The code is used for messages to visitors to my "poker" page who are asking for more poker "hands" than their limit. It is a...
  9. Thread: Rounding

    by marain
    Replies
    4
    Views
    386

    Resolved James, First of all, thank you! I'll be...

    James,

    First of all, thank you!

    I'll be happy to try it, unfortunately, it may be a few days before I am able to find the time to do so.

    In comparing your statement against mine, the only...
  10. Thread: Rounding

    by marain
    Replies
    4
    Views
    386

    Resolved Rounding

    Folks,

    When $_SESSION['sessionCounter'] is 9 and $_SESSION['limit'] is 8, I think that the PHP_ROUND_HALF_EVEN in


    $percentage = (round(((($_SESSION['sessionCounter'] / $_SESSION['limit'])...
  11. Replies
    23
    Views
    4,936

    Duplicate post? I don't see the original: ...

    Duplicate post? I don't see the original:

    Coothead,

    I appear to have violated a rule. I forgot. Thank you for the alert.

    Can you delete it? Am I able to delete it myself?

    A.
  12. Replies
    1
    Views
    367

    Sort Programs Under Windows 10

    Folks,

    I'm wondering where there exist software that can sort records in a file. It would run under Windows 10. And if there were some way I could upload it to a server and make it run there,...
  13. Replies
    23
    Views
    4,936

    [Response deleted by marain]

    [Response deleted by marain]
  14. Replies
    1
    Views
    235

    Resolved Problem solved: Found solution at...

    Problem solved: Found solution at https://www.wikihow.com/Insert-Symbols-in-Emails .
  15. Replies
    1
    Views
    235

    Resolved Mailing Special Characters

    Folks,

    Can someone please indicate how I can mail special characters that appear for the recipient as special characters? For example, &pi; appears as the pi character in html. Great. But when...
  16. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Trust me: That will not happen very often ;-)

    Trust me: That will not happen very often ;-)
  17. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Solved! Here is the winning code: echo "

    Solved! Here is the winning code:


    echo "<br /><br />Your final quota of hands for this session was {$numbers[$_SESSION['limit']]}. This would have been hand number...
  18. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved OK. Thanks for your patience. A.

    OK. Thanks for your patience.

    A.
  19. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Are you sure? What about [CODE]const AGE =...

    Are you sure? What about

    [CODE]const AGE = 25;
    console.log(`I'm ${AGE} years old!`);[\CODE] ?

    See https://www.w3docs.com/snippets/javascript/how-to-do-string-interpolation-in-javascript.html...
  20. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Coothead, I'll try the resource you suggested....

    Coothead,

    I'll try the resource you suggested.

    A.
  21. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Modified the statement. Still it fails the...

    Modified the statement. Still it fails the syntax check, but I believe I'm making progress.

    The modification was to put the interpolated variables into braces ( { and } ). The statement now...
  22. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Many thanks, Coothead. I'll linger here for a...

    Many thanks, Coothead.

    I'll linger here for a while..we've given it now well less than half a day!
  23. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Coothead, You get an "A" for effort! ...

    Coothead,

    You get an "A" for effort!

    Perhaps someone here who is an expert can educate both of us ;-)

    A.
  24. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Coothead, It is indeed easier to read, and I...

    Coothead,

    It is indeed easier to read, and I thank you--I'm not one to look a gift horse in the mouth ;-) . My quest, however, is for interpolation that I believe will enable elimination of all...
  25. Thread: Parse Error

    by marain
    Replies
    18
    Views
    1,581

    Resolved Coothead, My initial inquiry was somewhat...

    Coothead,

    My initial inquiry was somewhat misleading. The page presently runs, using the original ineligant code. I'm just trying to use interpolation to make the code easier to read.
Results 1 to 25 of 311
Page 1 of 13 1 2 3 4