www.webdeveloper.com

Search:

Type: Posts; User: kbduvall

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,086

    It can be used for about anything really... not...

    It can be used for about anything really... not just web pages. From the manual:

    So you could use it to make a PHP based telnet client, proxy server, or really about anything else you want. That's...
  2. Replies
    6
    Views
    1,086

    cURL is pretty diverse. It can be used for just...

    cURL is pretty diverse. It can be used for just about anything. That diversity makes it hard to recommend one good tutorial because it really depends on what you want to use it for.

    I would first...
  3. Replies
    6
    Views
    1,086

    The first thing that jumps out at me is:...

    The first thing that jumps out at me is: curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    You may want to change $ch to $crl
  4. Thread: mkdir command

    by kbduvall
    Replies
    2
    Views
    724

    The @ symbol prevents PHP from displaying errors...

    The @ symbol prevents PHP from displaying errors associated with that expression. In my opinion, it's the lazy way of making a directory without checking first if it already exists and if you have...
  5. Replies
    7
    Views
    1,003

    There's always cookies, but that's not a good way...

    There's always cookies, but that's not a good way to pass info dynamically. Cookies are more for persistent data.
  6. Replies
    3
    Views
    695

    You also don't need to quote numbers if the data...

    You also don't need to quote numbers if the data type for the field is set correctly.
  7. Thread: Contact form

    by kbduvall
    Replies
    8
    Views
    1,701

    No problem.

    No problem.
  8. Thread: Contact form

    by kbduvall
    Replies
    8
    Views
    1,701

    $subject = $_POST['radiobuttonfield'];

    $subject = $_POST['radiobuttonfield'];
  9. Replies
    24
    Views
    2,068

    Sessions work equally as well on one page. It...

    Sessions work equally as well on one page. It doesn't have to be multiple pages at all.
  10. Replies
    24
    Views
    2,068

    If all you're trying to do is prevent another add...

    If all you're trying to do is prevent another add if the user presses the refresh button, then you don't really need to add anything to the form. You can do it all with the session.

    On line one:
    ...
  11. Replies
    3
    Views
    450

    I'm also a fan of blocks.

    I'm also a fan of blocks.


    <?php

    if ($ampm == 0 && $hr == 12) {
    $hr = 0;
    } else if ($ampm == 1 && $hr < 12) {
    $hr = $hr + 12;
    }
  12. Replies
    5
    Views
    599

    Yeah, I wouldn't suggest using sessions to build...

    Yeah, I wouldn't suggest using sessions to build the menu ... just to "expand" the active menu section. I assume you use some JS to expand the sub-sections (IE: Music) when a user clicks on that...
  13. Thread: Contact form

    by kbduvall
    Replies
    8
    Views
    1,701

    Try this, replacing the value of $to with your...

    Try this, replacing the value of $to with your actual email address:


    <?php

    $subject ="Contact Form";

    $info="Test Info Value";

    $mail_from="nobody@nowhere.com";
  14. Replies
    2
    Views
    791

    Using die() will halt the execution of the...

    Using die() will halt the execution of the script. Nothing beyond that will be processed. Instead of using die() you could just store the error in a variable and echo it in your error box or where...
  15. Replies
    24
    Views
    2,068

    At quick glance it looks like all your code to...

    At quick glance it looks like all your code to write to the file comes after you read the file. If you write the information submitted from the form BEFORE you read the file and count the lines, you...
  16. It would also help if you told us the line number...

    It would also help if you told us the line number that the error is returning.
  17. Replies
    5
    Views
    599

    Yeah, I'd go with the session option.

    Yeah, I'd go with the session option.


    <?php
    session_start();
    $_SESSION['cur_nav_section'] = 'Music';
    ?>


    Then use that variable to open your nav menu to the correct section on page load.
  18. Replies
    2
    Views
    895

    Yeah, I don't mind helping either, but I usually...

    Yeah, I don't mind helping either, but I usually charge to do freelance work.
  19. Replies
    7
    Views
    754

    Where are you connecting to the database? Does...

    Where are you connecting to the database? Does your function have access to the resource variable?
  20. Replies
    4
    Views
    1,470

    I try to use built in functions for validation...

    I try to use built in functions for validation where I can. PHP has decent email validation with filter_var


    $is_valid = filter_var($email, FILTER_VALIDATE_EMAIL);
  21. Thread: Contact form

    by kbduvall
    Replies
    8
    Views
    1,701

    "It's not working" is pretty vague. Are you...

    "It's not working" is pretty vague. Are you getting any errors? Is the page echoing "ERROR"? Does everything "seem" to work, only you never receive the email? What do you get if you put var_dump($to,...
  22. Replies
    7
    Views
    675

    No problem. I try to help when/where I can. I'm...

    No problem. I try to help when/where I can. I'm just sorry I didn't have a better solution to offer. I've never been a huge fan of theming apps. In my opinion it can be a pain in the backside. But...
  23. Replies
    7
    Views
    675

    I think the closest you're going to get to...

    I think the closest you're going to get to something like that would be to use a provided API from one of the carts that allows you to do your own stuff from any page. Prestashop offers a decent API...
  24. You can always print the variables, then use a...

    You can always print the variables, then use a scanner. Fax is pretty reliable too ;)
  25. Your only real "limit" on how big your database...

    Your only real "limit" on how big your database can be is the hard drive on your server.

    Unless you have more than a "gazillion" friends, I doubt you have to worry about drive space. Like NoDog...
Results 1 to 25 of 42
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles