User Profile

Collapse

Profile Sidebar

Collapse
talk2tim
talk2tim
Last Activity: May 27 '15, 02:49 PM
Joined: Feb 10 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • talk2tim
    replied to Bugs with SMTP and PHPMailer
    in PHP
    Thanks Luuk. I upgraded to 5.5 and its giving me this error.

    Fatal error: Class 'Swift_SmtpTran sport' not found in C:\wamp\www\btb _sandbox\sendem ail8.php on line 8

    What do you think is the problem this time around? Thanks Luuk, you have been helpful.
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Bugs with SMTP and PHPMailer
    in PHP
    Thanks Luuk, been quite a while, i have been really busy. I opted against using PHPmailer because i heard that it is always meddled with complications. A friend suggested another third party email system. sendgrid.com . I signed up,looked up the documentation and looked at their integration with Open Source apps(PHP in this case). I worked with this code

    Code:
    require_once("../zoomie_files/includes/sendgrid/smtpapi-php.php");
    ...
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Bugs with SMTP and PHPMailer
    in PHP
    Thanks Luuk. The article you gave me is about just about the PHP mail() function.

    When you talk about log files and 'library which is more than 4 years old', honestly, i dont really understand would be grateful if you explained better. Im a novice.


    I ran this code

    Code:
    <?php 
    
    $inis = Array('SMTP', 'smtp_port', 'sendmail_path');// from not important 
    foreach($inis as $key=>$val){
    ...
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Bugs with SMTP and PHPMailer
    in PHP
    Thanks Luuk. I change the false to true in
    Code:
    $mail->SMTPAuth   = true;
    . It still did the same thing it did when SMTPAuth was false. (loaded for a long time and came up with a blank page).

    What do you think is the problem???
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Bugs with SMTP and PHPMailer
    in PHP
    Thanks Luuk, before i try it out, do you mean that the email and password info i put there were correct?? Thanks.
    See more | Go to post

    Leave a comment:


  • talk2tim
    started a topic Bugs with SMTP and PHPMailer
    in PHP

    Bugs with SMTP and PHPMailer

    Hello Folks. I want to first appreciate for all the help that i have received here. I am pretty new to PHP and im trying to use PHP mailer for my SMYP settings. With the settings below, i tried to send the mail, but after a long time of loading, it just stops with a blank page. I set up and error report, that would let me know whether the message was sent or not, but i got no error message, just blank screen. I think its the STMP settings. Im supposed...
    See more | Go to post
    Last edited by talk2tim; Apr 6 '15, 02:32 PM. Reason: [CODE][/CODE]

  • talk2tim
    replied to Notice: Undefined index Error. Help!!!
    in PHP
    Thanks Dormilich, on Line #8 i kinda prefer the numeric error codes. Thats how they are understandable to me.

    Line #2 is also a good idea.

    Thanks Dormilich, you have really been helpful. :-)
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Notice: Undefined index Error. Help!!!
    in PHP
    Oh. Thanks Dormilich. Sorry for the late reply. I have not been feeling too fine. This upload page was just a test, on how i could handle my uploads. When i was sure i could upload successfully, i wrote 2 public methods SAVE and ATTACH_FILE, that perfectly handles from file upload, to tmp_directory, to permanent directory, considering every exception i could think of. I flexed the muscles of the conditional statements on this one. Here are they....
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to can I save date as array to database in php
    in PHP
    Virenderkanger, can you be more specific with your question? Are you referring to timestamps?? :-)
    See more | Go to post
    Last edited by talk2tim; Mar 9 '15, 05:53 PM. Reason: Wrongly spelt username

    Leave a comment:


  • talk2tim
    replied to Notice: Undefined index Error. Help!!!
    in PHP
    Thanks Dormilich. You have been far too kind. I have cracked it. An elder colleague advised me to run the isset test after the $upload_errors array and not before it. I removed those <pre> tags that i used in inspecting the uploaded files and later decided against running the test on 'file_upload'. Instead i checked whether the $_POST variable was subumitted. Like this

    Code:
    if(isset($_POST['submit']))
            {..my form processing
    ...
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Notice: Undefined index Error. Help!!!
    in PHP
    No. $upload_errors is the array. What should i do to at least define 'file_upload'? Am confused right now
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Notice: Undefined index Error. Help!!!
    in PHP
    OHH! My bad. I think isset && is_array would have been better

    Code:
    <?php
       
    
     $upload_errors = array
            (
                    UPLOAD_ERR_OK           =>  "No Errors.", 
                    UPLOAD_ERR_INI_SIZE     =>  "Larger than upload_max_filesize.", 
                    UPLOAD_ERR_FORM_SIZE    =>  "Larger than form MAX_FILE_SIZE.",
    ...
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Notice: Undefined index Error. Help!!!
    in PHP
    Thanks Dormilich. You have really been helpful. i look at that php.net link that you showed to me and it was really helpful. Im pretty new to php. I spent all night working on this bug, yet no progress. Same error, or some other. Just now, i came up with an idea. If it was about the index 'file_upload' not being set,, or not being an array, why not a simple echo statement. Thus i took the initiative from the php.net site and did something like this...
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Notice: Undefined index Error. Help!!!
    in PHP
    Thanks Dormilich, so how can i solve it???
    See more | Go to post

    Leave a comment:


  • talk2tim
    started a topic Notice: Undefined index Error. Help!!!
    in PHP

    Notice: Undefined index Error. Help!!!

    Hello Folks. Thanks for all the help i have received here. I was trying to write an upload file. It was ok until i began error reporting. First i tried to inspect the file uploaded by asking the print_r to show the associate array of name, type, size, tmp_name and error. It works all right but it gives this error just as i load the page


    Notice: Undefined index: file_upload in C:\wamp\www\btb _sandbox\upload .php on line 27...
    See more | Go to post

  • Nice one. weaknessforcats . You just spoke my mind. Java seems to be more fluid with apps and games. C/C++/C# is also cool with windows related stuff. Turn your hobby, what you enjoy most, to your profession. While you are yet to make up your mind on your language area(which should be based purely on what gives you joy the most), study everyday, follow video tutorials, then try to tweak your assignments and get new functionality. After each assignment,...
    See more | Go to post

    Leave a comment:


  • Lets say the name of your table is "students" and it has a timestamp,
    like this

    Code:
    CREATE TABLE students (
      ts TIMESTAMP,
      description VARCHAR(80));
    Then this will do for date and time
    Code:
    INSERT INTO students VALUES (CURRENT_TIMESTAMP);
    This will do for just time
    Code:
    INSERT INTO students VALUES (CURRENT_TIME);

    or use NOW

    Code:
    INSERT INTO students VALUES
    ...
    See more | Go to post

    Leave a comment:


  • talk2tim
    replied to Bugs with CSS code.
    Hey Folks!!! I have debugged it myself. It was indeed a HTML issue and not CSS. I was separated my header and footer and attached my layout to them so that wherever i include header or footer, the layout comes together with it. Pretty smart ei? Anyways, i was supposed to leave the html code on the header incomplete. i.e stop at main' and not close tags of body, head and html. That was why i ran into that error. I removed them those closing tags and...
    See more | Go to post

    Leave a comment:


  • talk2tim
    started a topic Bugs with CSS code.

    Bugs with CSS code.

    Hello Folks. First, i must admit how helpful you have been since i signed up here. Thank you all.

    Im following a PHP course and this is the code of the stylesheet


    Code:
    /*SITE COLORS :
        #1A446C - Blue grey
        #689DC1 - Light blue
        #D4E6F4 - Very light blue
        #EEE4B9 - Light tan
        #8D0D19 - Burgundy
        
    */
    
    html { height: 100%; width: 100%; }
    ...
    See more | Go to post
No activity results to display
Show More
Working...