Jump to content

Search the Community

Showing results for tags 'godaddy'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 4 results

  1. i have created a mail sending code to send mail with attachments, it works perfectly in my server , but didn't work on godaddy server. the error which is returning is :Multiple or malformed newlines found in additional_header hereby am including the code kindly make a suggesion <?php //Template Name: Page app handle ?> <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> <script> $(window).load(function () { // Page is fully loaded .. time to fade out your div with a timer .. $('#overlay img').fadeOut(5000); }); </script> <?php if(!isset($_POST['fname'])) { echo "<script>window.location.href = '". get_site_url()."/index.php/application/</script>"; } $ar_modltype = $_POST['model_type']; $cntmodel = count($ar_modltype); if($cntmodel>0) { for($j=0;$j<$cntmodel;$j++) { $modltype = $modltype.", ".$ar_modltype[$j]; } } $fname = $_POST['fname']; $lname = $_POST['lname']; $gender = $_POST['gender']; $dob = $_POST['dob']; $nationality = $_POST['nationality']; $mobile = $_POST['mobile']; $email = $_POST['email']; $location = $_POST['location']; $selvissa = $_POST['selvissa']; $ethnicity = $_POST['ethnicity']; $height = $_POST['height']; $hips = $_POST['hips']; $hair_color1 = $_POST['hair_color']; if($hair_color1=="Other") { $hair_color=$_POST['s_hair_color']; } else { $hair_color=$hair_color1; } $chest = $_POST['chest']; $shoe = $_POST['shoe']; $eye_color = $_POST['eye_color']; $waist = $_POST['waist']; $hair = $_POST['hair']; /*if (isset($_POST['health_card'])) { $healthcard="Yes"; } else { $healthcard="No"; }*/ if (isset($_POST['driving_license'])) { $driving_license="Yes"; } else { $driving_license="No"; } if (isset($_POST['portfolio'])) { $portfolio="Yes"; } else { $portfolio="No"; } /*if (isset($_POST['duty_free'])) { $duty_free="Yes"; } else { $duty_free="No"; }*/ $ar_availability = $_POST['availability']; $cntavail = count($ar_availability); if($cntavail>0) { for($i=0;$i<$cntavail;$i++) { $availability = $availability.", ".$ar_availability[$i]; } } $langhid = $_POST['langhid']; $experience = $_POST['experience']; //$prvs_events = $_POST['prvs_events']; $avg_pay = $_POST['avg_pay']; $remarks = $_POST['remarks']; $modltype1 = str_replace(',', '/', $modltype); //mailing $loop = new WP_Query(array('post_type'=>'mainpoint_news','orderby'=>'id','order'=>'asc','posts_per_page' => 1)); if ($loop->have_posts()){ $x=1; while($loop->have_posts()){ $loop->the_post(); $meta= get_post_custom(get_the_ID()); $strTo= esc_attr($meta['mainpoint_newsarea'][0]); // $to="abu"; //echo $to; //exit(); }} $strSubject = substr($modltype1,1).":".$fname; //$strMessage = $msg; //*** Uniqid Session ***// $strSid = md5(uniqid(time())); $strHeader = ""; $strHeader .= "From:".trim($fname)."<".$email.">\nReply-To:".$email.""; $strHeader .= "MIME-Version: 1.0\n"; $strHeader .= "Content-Type: multipart/mixed; boundary=\"".$strSid."\"\n\n"; $strHeader .= "This is a multi-part message in MIME format.\n"; $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-type: text/html; charset=iso-8859-1\n"; $strHeader .= "Content-Transfer-Encoding: 7bit\n\n"; $strHeader .= "<h1>Contact Details</h1>\n"; $strHeader .= "<label style='font-size:17px'><b>Categories : </b></label><label style='font-size:16px'><b>".substr($modltype,1)."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>First Name : </b></label><label style='font-size:16px'><b>".$fname ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Last Name : </b></label><label style='font-size:16px'><b>".$lname ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Gender : </b></label><label style='font-size:16px'><b>".$gender."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Date of Birth : </b></label><label style='font-size:16px'><b>".$dob ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Nationality : </b></label><label style='font-size:16px'><b>".$nationality ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Mobile : </b></label><label style='font-size:16px'><b>".$mobile ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Email : </b></label><label style='font-size:16px'><b>".$email ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Location : </b></label><label style='font-size:16px'><b>".$location ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Visa Type : </b></label><label style='font-size:16px'><b>".$selvissa ."</b></label><br>"; $strHeader .= "<h1>Personal Details</h1>"; $strHeader .= "<label style='font-size:17px'><b>Ethnicity : </b></label><label style='font-size:16px'><b>".$ethnicity ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Height : </b></label><label style='font-size:16px'><b>".$height ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Hips : </b></label><label style='font-size:16px'><b>".$hips ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Hair Color : </b></label><label style='font-size:16px'><b>".$hair_color ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Bust/Chest(Inches) : </b></label><label style='font-size:16px'><b>".$chest."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Shoe Size(cm) : </b></label><label style='font-size:16px'><b>".$shoe ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Eye Color : </b></label><label style='font-size:16px'><b>".$eye_color ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Waist(Inches) : </b></label><label style='font-size:16px'><b>".$waist ."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Hair Type : </b></label><label style='font-size:16px'><b>".$hair ."</b></label><br>"; $strHeader .= "<h1>Additional Information </h1>"; //$strHeader .= "<label style='font-size:17px'><b>Occupational Health Card : </b></label><label style='font-size:16px'><b>".$healthcard."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Driving License : </b></label><label style='font-size:16px'><b>".$driving_license."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Portfolio : </b></label><label style='font-size:16px'><b>".$portfolio."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Availability : </b></label><label style='font-size:16px'><b>".substr($availability,1)."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Languages : </b></label><label style='font-size:16px'><b>".substr($langhid, 1)."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Years of Experience : </b></label><label style='font-size:16px'><b>".$experience."</b></label><br>"; //$strHeader .= "<label style='font-size:17px'><b>Previous events : </b></label><label style='font-size:16px'><b>".$prvs_events."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Avg Hourly/Daily Rate(In AED) : </b></label><label style='font-size:16px'><b>".$avg_pay."</b></label><br>"; // $strHeader .= "<label style='font-size:17px'><b>Dubai Duty Free License : </b></label><label style='font-size:16px'><b>".$duty_free."</b></label><br>"; $strHeader .= "<label style='font-size:17px'><b>Remarks : </b></label><label style='font-size:16px'><b>".$remarks."</b></label>\n\n"; //*** Attachment ***// for($i=0;$i<count($_FILES["model_photos"]["name"]);$i++) { if($_FILES["model_photos"]["name"][$i] != "") { $strFilesName = $_FILES["model_photos"]["name"][$i]; $strContent = chunk_split(base64_encode(file_get_contents($_FILES["model_photos"]["tmp_name"][$i]))); $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName."\"\n"; $strHeader .= "Content-Transfer-Encoding: base64\n"; $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName."\"\n\n"; $strHeader .= $strContent."\n\n"; } } for($i=0;$i<count($_FILES["passport"]["name"]);$i++) { if($_FILES["passport"]["name"][$i] != "") { $strFilesName = $_FILES["passport"]["name"][$i]; $strContent = chunk_split(base64_encode(file_get_contents($_FILES["passport"]["tmp_name"][$i]))); $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName."\"\n"; $strHeader .= "Content-Transfer-Encoding: base64\n"; $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName."\"\n\n"; $strHeader .= $strContent."\n\n"; } } if($portfolio=="Yes") { if($_FILES["portfolio_already"]["name"] != "") { $strFilesName = $_FILES["portfolio_already"]["name"]; $strContent = chunk_split(base64_encode(file_get_contents($_FILES["portfolio_already"]["tmp_name"]))); $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName."\"\n"; $strHeader .= "Content-Transfer-Encoding: base64\n"; $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName."\"\n\n"; $strHeader .= $strContent."\n\n"; } } for($i=0;$i<count($_FILES["resume"]["name"]);$i++) { if($_FILES["resume"]["name"][$i] != "") { $strFilesName = $_FILES["resume"]["name"][$i]; $strContent = chunk_split(base64_encode(file_get_contents($_FILES["resume"]["tmp_name"][$i]))); $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName."\"\n"; $strHeader .= "Content-Transfer-Encoding: base64\n"; $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName."\"\n\n"; $strHeader .= $strContent."\n\n"; } } echo $strHeader ; if(trim($fname)!='' && trim($gender)!='') { if(@mail($strTo,$strSubject,"null",$strHeader)) { echo "<script>window.location.href = '". get_site_url()."/index.php/application/?suc=1'</script>"; } else { echo "<script>window.location.href = '". get_site_url()."/index.php/application/?suc=0'</script>"; } } else { echo "<script>window.location.href = '". get_site_url()."/index.php/application/?suc=0'</script>"; } ?>
  2. Hi there. I love your forum and have been really into php lately, so I thought I would get involved. I do have a question though. I have been using Filezilla as my ftp and it has been working greatly with the following info: User: code2288 Password: mypass (Obviously different) Host: 184.168.25.1 I get his error when I try it in my php code: Here is my code if anyone can help me <html> <head> </head> <body> <?php // variables $ftp_server = "184.168.25.1"; //$ftp_server = "www.code-crash.com"; $ftp_user_name = "code2288"; $ftp_user_pass = "Texascrash3!"; $destination_file = "images/catalogue/".$_FILES['image']['name']; $sourcefile = $_FILES['image']['name']; // set up basic connection $conn_id = ftp_connect($ftp_server); // login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // check connection if ((!$conn_id) || (!$login_result)) { echo "FTP connection has failed!"; echo "Attempted to connect to $ftp_server for user $ftp_user_name"; exit; } else { echo "Connected to $ftp_server, for user $ftp_user_name"; } // upload the file $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); // line 30 // check upload status if (!$upload) { echo "FTP upload has failed!"; } else { echo "Uploaded $source_file to $ftp_server as $destination_file"; } // close the FTP stream ftp_close($conn_id); ?> </body> </html>
  3. Yeah, godaddy skewed me. I got upgraded from php 4 to 5 and the external include will no longer work. Well I tried/put the include file into the root folder and still nothing. The errors are at thefastesthorse.com I don't know much about php coding, and just trying to get this back up and running *********************** Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/content/88/10840488/html/thefastesthorse/index.php on line 96 Warning: include(http://www.thefastesthorse.com/syndication/folder1/top1.html) [function.include]: failed to open stream: no suitable wrapper could be found in/home/content/88/10840488/html/thefastesthorse/index.php on line 96 Warning: include() [function.include]: Failed opening 'http://www.thefastesthorse.com/syndication/folder1/top1.html' for inclusion (include_path='.:/usr/local/php5/lib/php') in/home/content/88/10840488/html/thefastesthorse/index.php on line 96 ***************************** Any help will be greatly appreciated. Thanks, Dave
  4. Hi We've been battling this site for weeks, and finally ended up just iframing the old php stuff into Joomla and making it look better. It worked in a subfolder. Then we moved it up and BLAM. We have 2 problems: 1, one of the order online accessories pages just stopped working. It's giving us a header error message. "Cannot modify header information, headers already sent" when added to the cart. (The product is added to the cart though." 2. We can no longer access the cart admin, perhaps because it shares the root with Joomla and joomla isn't looking 'outside' of itself. None of us are professional coders here, and the site is already live. Can anyone give any advice please?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.