Jump to content

amy

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by amy

  1. Hi,

    I'm new to web development. I learned HTML (simple language) and I am working on CSS. Some say that CSS won't take more than a week to learn. What I found is that CSS has a lot of topics (text styling, margins, padding, borders, image styling, positioning, layout,...etc) so the question is "Is it necessary to be good at CSS as a developer or I just need to know the basics and then go to Javascript and PHP?"

     

    One of the best things you can do to improve your knowledge is use the 'firebug' add-on for the Firefox browser. Using firebug allows you to hover over any element, on any web page, make "psuedo-changes" and actually see how the page would be affected in real time.

     

    IE and Chrome also both have a firebug addon, but Firefox does it far better than the other browsers.

     

    I would strongly recommend firebug to anyone starting out with css.

     

    Good luck!

  2. Shouldn't you enclose your mail function within an if statement if you want to test if it was accepted to be sent and echo out something whether true or false?

     

    e.g.

    $subject = "testing mail";

    $message = "Here is a test mail message";

    $to = "me@gmail.com";

    $from = "me@gmail.com";

    $header = "From: ".$from;

     

    if(mail($to, $subject, $message, $header))

    echo "Oh ya!<br>";

    else

    echo "well crap!<br>";

     

    Hi markvs,

    It's much easier to just use the single line.. and check your email for success. :)

  3. Can anyone explain me how to send an e-mail from a web, with php?

     

    In Misc > functions: part2 Stefan Explains a bit the mail function. I try and it doesn't work for me. I get Email sent: 1, but I don't receive the email

     

    - I attached the file: mail1.php:

    $did_send = mail('info@mig-marketing.com','Subject','body of the message');

    echo "Email sent: " . $did_send;

     

    - I tried something more complex. But I don't receive the email either. mail2.php:

    $to = "info@mig-marketing.com";

    $subject = "Test mail";

    $message = "Hello! This is a simple email message.";

    $from = "narcis@mig-marketing.com";

    $headers = "From:" . $from;

    mail($to,$subject,$message,$headers);

    echo "Mail Sent.";

     

    narcis,

    try simplifying the process a bit by using this code all by itself in a php page:

    mail('youremail@gmail.com', 'This is My subject', 'This is the message', null,'-finfo@yourdomain.info');

     

    I've always been able to use that on HostGator and most sites without a problem. I do have one host that disables the php mail function though, so it doesn't work with them.

  4. Hi guys, i use WordPress to all of my sites because its very powerful for search engine, i think every one use wordpress know that.

     

    now i have a custom php website, very simple code consist of one page index but here is my questions,

    is it good to integrate WP blog to the site as a secondary and link the blog folder ?

    or to have my main domain as WordPress blog and add my script on secondary folder.?

    my site are consisting of one page , [Link Deleted]

    any examples or ideas you guys have or suggestion.

     

    I've got my site setup as 2 sections.. wordpress and a lot of standalone php/html in another section. The search engines don't seem to favor either one so there's nothing wrong with integrating the two for sure. Good luck!

×
×
  • Create New...