Jump to content

westman

Members
  • Posts

    600
  • Joined

  • Last visited

Posts posted by westman

  1. example 2

        <p>    <a href="http://validator.w3.org/check?uri=referer"><img	  src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>  </p>

    how do they do it?

  2. how do i catch a URL link? for example i click a link in this forum to go to my site, how can i catch it in php, witch site a user came to visit me from?

  3. errors were fond on the 2 includes linesWarning: include(Mail/mime.php) [function.include]: failed to open stream: No such file or directory in ../../..Warning: include() [function.include]: Failed opening 'Mail/mime.php' for inclusion ../../../..Fatal error: Class 'Mail_mime' not found in /../../..

    • Like 1
  4. the 2 includes were on my old server and did not have the file but the script worked. i do not have any errors to show. i now it does not work coz i have no email please tell me more about system() can it be replace with anything?

  5. i have made a cron job with godaddy and it works fine plue i can conecte to my DB fine i have put a whole site up with godaddy gust fine, so no problem with conectivate. just a prob with this script any help?

  6. back agian am lost i had script working and then i changed my host provider to godaddy and can not get it working here is what i have...

     <?php// Create the mysql backup file// edit this section$dbhost = "my host info"; // usually localhost$dbuser = "my user name";$dbpass = "my password";$dbname = "my DB name";$sendto = "my email";$sendfrom = "email from";$sendsubject = "Daily Mysql Backup";$bodyofemail = "Here is the daily backup.";// don't need to edit below this section$backupfile = $dbname . date("Y-m-d") . '.sql';system("mysqldump -h $dbhost -u $dbuser -p$dbpass $dbname > $backupfile");// Mail the file    include('Mail.php');	          ////// not shore what this is for    include('Mail/mime.php');     ////// not shore what this is for    $message = new Mail_mime();    $text = "$bodyofemail";    $message->setTXTBody($text);    $message->AddAttachment($backupfile);        $body = $message->get();	    $extraheaders = array("From"=>"$sendfrom", "Subject"=>"$sendsubject");	    $headers = $message->headers($extraheaders);    $mail = Mail::factory("mail");    $mail->send("$sendto", $headers, $body);// Delete the file from your serverunlink($backupfile);?>

    can any 1 see in my code any problems?

  7. thanksi got it how do i use these? Meta Tag <meta property="og:title" content="Open Graph protocol" /> Meta Tag <meta property="og:type" content="website" /> Meta Tag <meta property="og:url" content="http://ogp.me/" /> Meta Tag <meta property="og:image" content="http://ogp.me/logo.png" /> Meta Tag <meta property="og:image:type" content="image/png" /> Meta Tag <meta property="og:image:width" content="300" /> Meta Tag <meta property="og:image:height" content="300" /> Meta Tag <meta property="og:description" content="The Open Graph protocol enables any web page to become a rich object in a social graph." /> Meta Tag <meta property="fb:app_id" content="115190258555800" /> and how do they work?

  8. i have looked athttp://tr.php.net/manual/en/function.session-register.phpand still no help am just working on thesession_register('username');for php 5.3/5.4

  9. am loking for php 5 for.... $password = ereg_replace("[^A-Za-z0-9]", "", $_POST['password']);andsession_register('username');

  10. how do i link a 3rd file in this way? for ex.index.php

    $message = file_get_contents('mail.php');

    mail.php

    $message = file_get_contents('core_mail.html');

    how would i code mail.php to include core_mail.html to show on index.php?

  11. hi all, i need to include a php file that has only text in it into a $. i have this so fear...

    $email_message = '<html><body bgcolor="#FFFFFF">' . $name_of_the_sender . ' invites you to join them on the site.<br /><br />Thank you.include "../email.php"</body></html>'; 

    my include "../email.php" is not working how do i get it working in this way?

×
×
  • Create New...