Jump to content

westman

Members
  • Posts

    600
  • Joined

  • Last visited

Everything posted by westman

  1. i did not get any info from that.my menu will load up but only show for 2sec then leave how do i get it to stay?
  2. Dreamweaver created code for me that is not working to good, i can not see my flash menu in IE here is my code... <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="700" height="250" id="FlashID" title="menu2"> <param name="movie" value="../flash/menu2.swf" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="6.0.65.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> <param name="expressinstall" value="../Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="../flash/menu2.swf" width="700" height="250"> <!--<![endif]--> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="6.0.65.0" /> <param name="expressinstall" value="../Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object> any help?
  3. westman

    url

    i found my .htaccess file and read a lot about it i now have my 404 error page modefiyd and am super happy about that but i still can not remove the .php from the url, i tryed... RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . / but it did not work, is there any more code needed in .htaccess?
  4. westman

    url

    i dont understand where to place the code, i cant find .htaccess file on my cPanel root files
  5. westman

    url

    how do i stop showing .php in my url on my site?
  6. westman

    backup your DB

    yes the file is attached to the email but the file is not the samehow do i change my code (options) so the email attachment is the same as EXPORT-ing my DB?
  7. westman

    backup your DB

    ok i tested it and it seemed to work but way does the file that gets sent to my email look difrent than if i was to EXPORT my DB? when i export my DB i can see a lot of " -----------------" in the codeand this is not in the email, way?
  8. westman

    backup your DB

    i found a new script thanks to google .... <?php// Create the mysql backup file// edit this section$dbhost = "yourhost"; // usually localhost$dbuser = "yourusername";$dbpass = "yourpassword";$dbname = "yourdb";$sendto = "Webmaster <webmaster@yourdomain.com>";$sendfrom = "Automated Backup <backup@yourdomain.com>";$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'); include('Mail/mime.php');$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);?> will this work to send the DB in an email?not tested by me yet it dose not look like php5 but i could be wrong
  9. westman

    backup your DB

    my LV of understanding is slim and i did not understand how to mack the .zip from my DBcould you please give a code example thank you in advans.
  10. westman

    backup your DB

    this is my full code how do i get the zip?
  11. westman

    backup your DB

    i have tested the script and the email was sent afther i added $headers = "From: $from\r\n";$headers .= "Content-type: text/html\r\n";mail($to, $subject, $message, $headers); but how do i get the zip in the email?+ the zip did not save on my server
  12. westman

    backup your DB

    i have a script to be ran by a cron job to backup a db weekly here is the script.... // configure your database variables below:$dbhost = 'localhost'; // Server address of your MySQL Server$dbuser = 'yourcpanelname_dbuser'; // Username to access MySQL database$dbpass = 'dbuserpassword'; // Password to access MySQL database$dbname = 'yourcpanelname_dbname'; // Database Name// Optional Options You May Optionally Configure$use_gzip = "yes"; // Set to No if you don't want the files sent in .gz format$remove_sql_file = "yes"; // Set this to yes if you want to remove the .sql file after gzipping. Yes is recommended.$remove_gzip_file = "yes"; // Set this to yes if you want to delete the gzip file also. I recommend leaving it to "no"// Configure the path that this script resides on your server.$savepath = "/home/yourcpanelname/dbsender"; // Full path to this directory. Do not use trailing slash!$send_email = "yes"; // Do you want this database backup sent to your email? Fill out the next 2 lines$to = "you@a-valid-domain.com"; // Who to send the emails to - you can also use a GMail address$from = "you@a-valid-domain.com"; // Who should the emails be sent from?$senddate = date("j F Y");$subject = "MySQL Database Backup - $senddate"; // Subject in the email to be sent. - you can change this$message = "Your MySQL database has been backed up and is attached to this email"; // Brief Message. - you can change this my question is...how do i get this to just send the DB backup to my email and not save it on the server?
×
×
  • Create New...