Jump to content

njdubois

Members
  • Posts

    200
  • Joined

  • Last visited

Everything posted by njdubois

  1. htmlentities looks to be what I was searching for, thanks! As far as security characters, I meant characters that are special to mysql. For example single and double quotes. Which if I don't manage right, could lead to sql attacks. Thanks again for the help ladies and gents! Nick
  2. You have seen what I am talking about, they are all over the web. This text box I'm typing in now is a fine example! I need a textbox that, well, I need a text input method that strips all the important/security related characters from a string while retaining CRLF's and text formatting. To be saved to a mysql database. But when I am pulling that data to be displayed somewhere, I want to place said characters back into the string. What direction should I look to find a solution? Thanks Nick
  3. Thank you so much for the informative reply! I'm hoping with time that I will get better at estimating the amount of time a project will take! Thanks again, Nick
  4. I've developed a whole membership system, login, new user sign up, list search users and edit details pages, the whole works. Also found some nice chunks of code to get the distance between 2 zip codes plugged in and plot them on a Google map. Now I'm breaking down a screen shot of a web template and building a functional website with the membership PHP built in all tied to a custom MySQL database. I'm sure he will want me to do basic webmaster stuff its finished. I have a hard time charging for something I enjoy doing and am only charging around $200.00. Is that fair? I have no idea how much to charge?? Also, a problem I'm facing is deadlines. When will a project be done. A developer is really a more complicated novel writter. And in most cases, you pay for the book, not for the writter to write. I could say the project will be done in 2 days, but then an error comes up and I spend to much time fixing it, a week later the project is done. That's an extream example but its the small things that will add up and I don't know how to account for those! Thanks for any free given wisdom on this subject, and as always thanks for reading my post! Nick
  5. It has something to do with the table re-sizing after the map is rendered. [sOLVED] changed $map_insert_html='<div id="map_canvas" style="width:10%; height:10%"></div>'; to $map_insert_html='<div id="map_canvas" style="width:100px; height:100px"></div>';
  6. Thanks for the fast reply! I have already went over $detail_form_html a few times. I will do so again. If I reverse the lines echo $map_insert_html; echo '<br />'; echo $detail_form_html; It still doesn't work. If there was still a problem with $detail_form_html, wouldn't the map show? Again, thanks for the prompt reply. You make a good point and I will search over the code again! Nick
  7. Ok, I have a really basic php page set up to provide members of a profile system edit their details. I'm trying to emplement a google map to show the zip code but if I put the div in the place I want it, it doesn't show. First some code: $map_insert_html='<div id="map_canvas" style="width:10%; height:10%"></div>'; This works : <table width="100%" border="1"> <tr> <td width="10%" valign="top"> <?php switch($member_status) { case 'main_admin': include("main_menu.php"); break; } ?> </td> <td valign="top"> <?php if ($output_str!='') { echo $output_str .'<br />'; } echo $detail_form_html; ?> </td> <td> </td> </tr> </table> <?php echo $map_insert_html; ?> And this doesn't : <table width="100%" border="1"> <tr> <td width="10%" valign="top"> <?php switch($member_status) { case 'main_admin': include("main_menu.php"); break; } ?> </td> <td valign="top"> <?php if ($output_str!='') { echo $output_str .'<br />'; } echo $detail_form_html.$map_insert_html; ?> </td> <td> </td> </tr> </table> Maybe the table covers it up? I'm not sure what to look for, I don't know what the problem is! Any help on this is very appreciated! Thanks Nick
  8. I posted the question on the JS Chart forum first. Used the code tags and all, and it turned anything that could be into an emotiocon. Didn't seem like I was going to get the kind of help I needed. But like an idiot, I cut and pasted the forum post. The end brackets are their. <script type="text/javascript"> var myData = new Array(<?php echo $graph_str; ?>); var myChart = new JSChart('chart_container', 'line'); myChart.setDataArray(myData); myChart.colorize(['#1A90A9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9']); myChart.setIntervalY(0, <?php echo $high_call+1; ?>); myChart.setAxisValuesNumberY(<?php echo $high_call+2; ?>); myChart.setAxisValuesDecimals(0) myChart.setSize(616, 321); myChart.setAxisNameColorX('#FFFFFF'); myChart.setAxisNameColorY('#FFFFFF'); myChart.setGridColor('#000000'); myChart.setBackgroundImage('chart_bg.jpg'); myChart.setLineWidth(5); myChart.draw(); </script> Thanksd for the reply! Nick
  9. I have 2 charts on my website. Both using the example stuff JSCharts provides on its website. One graph works in IE9, the other completely freezes IE9. I can also surf their example graphs, and build my own using IE9 no problem, so it leads me to believe its something with that one graphs code thats causeing the problem! <head> <title>Report</title> <script type="text/javascript" src="/sources/jscharts.js"></script> </head> <div id="chart_container">Loading chart...</div> <script type="text/javascript"> var myData = new Array(<?php echo $graph_str; ?>; var myChart = new JSChart('chart_container', 'line'); myChart.setDataArray(myData); myChart.colorize(['#1A90A9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9']); myChart.setIntervalY(0, <?php echo $high_call+1; ?>; myChart.setAxisValuesNumberY(<?php echo $high_call+2; ?>; myChart.setAxisValuesDecimals(0) myChart.setSize(616, 321); myChart.setAxisNameColor'#FFFFFF'); myChart.setAxisNameColorY('#FFFFFF'); myChart.setGridColor('#000000'); myChart.setBackgroundImage('chart_bg.jpg'); myChart.setLineWidth(5); myChart.draw(); </script> $graph_str="['Wednesday', 6], ['Thursday', 0], ['Friday', 5], ['Saturday', 6], ['Sunday', 0], ['Monday', 2], ['Tuesday', 6]" $high_call=6 if I remove myChart.draw(); the site loads, no graph, but the site loads and all the numbers are pulled no problem. Putting it back in and the site locks down. Again, the other graphs work fine, its just something in that chunk of code?!?! Any suggestions would be met with extreme appreciation...so, just a warning! Thanks Nick
  10. I understand why the input tag has limitations for security reasons, because there is a lot of different technologies out there I feel that asking the community is the way to go. I have read up, and there are many different methods to do what I want to do. Being that there are steps I have no control over as the developer, the starting source of the audio file, and the format it is in being the major ones. I don't know what to do? AJAX? Java Applets? There are so many steps to the process that I want to pick the brains of the community and see what you would do? So here is whats going on: You know when you call a service and they say this call may be monitored for quality..blah blah blah? Well, I work for a client who listens to those calls for a few customers, grades them and sends the results back to the customer. Currently, he uses a provider that records the calls and allows him to download the audio file. This is where is gets odd because of the 3 providers he uses, one insists on providing .AU files instead of .mp3 files. And it isn't every time. The end of the process has the customer being able to login to a webpage and hear the call...but the stupid flash plug in can't read AU files, but more on that part later. Before the webpage had anything to do with it, I had developed a vb.net 08 windows app that linked to his godaddy hosted mysql database. And because it was all windows based, when the time came to start building a profiles system and provide the calls for customers, I could convert and upload the audio file using my current skill set no problem. Well, now we are moving to as much web based applications as possible. So I have the equivalent of the windows app done up in PHP and HTML running in a web browser control on a vb.net windows app so that I can handle the audio conversions. This is where it gets tricky. Right now, the user has to click the convert audio button that runs another application I developed that uses a open sourced command line audio converter to check all files in the audio folder from the dropbox client and if a file needs to be converted it does so automatically. The user then has to upload the audio file to the ftp server. Either from within the php script, or from the windows app. The windows app knows nothing about whats going on in the php script and php has no idea about the vb app or any of the folders the files are in. When uploading the call, i need to make a record in an sql database linking that file to the call grade record's ID. So, here is what I have. dropbox client on my clients computer. This way I can update developed software and get it to him with ease. He runs everything from inside the folder dropbox creates. In dropbox there is a folder "audio" inside that folder more folders "Client A" "Client B" and so on, inside those, a folder for each month and inside that month is the audio files for that call. \dropbox\audio\client a\march\filename.mp3 My client downloads the audio files from the provider and puts the in the correct folders. Inside the app, I know I am on client A, and working on a call that happened in march. So, when my client clicks the upload button, I want it to default to that folder, thus minimizing the amount of clicks to get to anything, which is important to me. I can't do any kind of auto upload because I need to know an ID number at some point and vb.net doesn't know the ID number, php doesn't know the path, I need to do a conversion some times, and I have zero control over what the file is named other than trusting the client to name it in some pre determined format properly CLIENT-NAME-DATE-SCORE.au or CLIENT-NAME-DATE-SCORE.mp3 but this isn't going to happen..... If I could use ASP.net and my much more expanded knowledge of visual basic (than php) I could probably achieve what I am aiming for with minimal learning time. But the entire application is already done in php. Also means my client would need a hosting upgrade. So ASP.net is out of the question. So there is my problem. Whats the best way to handle this, doing as much of the work with code without user input. I would like it to be 3 clicks, click upload audio, select the file, click ok. The program would then test to see if the file needs to be converted, upload it, save the record to the correct table linking the audio file with the call grade record. Done. Any suggestions? Thanks, really, thanks for reading all of this. I hope it makes some sense! Nick I don't know if that is even possible!
  11. First, what I have. Some of the HTML is on the spot so it may not be 100% correct. A variable to hold html for a select tag : $option_choice is an array filled with strings that were a field in a database record, then formatted. $select_html='<select id="options" onchange="this.form.submit()">'; foreach($option_choice as $value) { if ($value==$cur_sel_option) { $select_html.='<option selected>'.$value.'</option>'; } else { $select_html.='<option>'.$value.'</option>'; } } $select_html.='</select>'; Another example of an attempt I made : $select_html='<select id="options" onchange="this.form.submit(goToRow2())">'; foreach($option_choice as $value) { if ($value==$cur_sel_option) { $select_html.='<option selected>'.$value.'</option>'; } else { $select_html.='<option>'.$value.'</option>'; } } $select_html.='</select>'; I have four of these variables. One for Year, Make, Model and Trim of automobiles each being filled from a mysql database. Of course each chunk of code is changed for each field, but for my question I'm simplifying things. Each SELECT tag is filled with data depending on what is in the SELECT before it. IE, Make gets filled with 2010 cars if 2010 is selected in the year SELECT tag. All of the code to create the select tags is in the beginning of the code, at the bottom I create my page. <head> <script type='text/javascript'> function goToAnchor() { window.location.hash='<?php echo $anchor_name; ?>'; } function goToRow2() { window.location.hash='row2'; } </script> </head> <body onload='goToAnchor();'> <form action="thispage.php"> <table> <tr> <td><a name="row1">option 1</a></td> <td>:</td> <td><?php echo $select1_html; ?></td> </tr> <tr> <td><a name="row2">option 2</a></td> <td>:</td> <td><?php echo $select2_html; ?></td> </tr> <tr> <td><a name="row3">option 3</a></td> <td>:</td> <td><?php echo $select3_html; ?></td> </tr> </table> <input type="submit" value="click here to save" /> </form> </body> The user selects a year, then the other SELECT tags need to be re-populated so I need to do a post. The page needs to scroll back down to where the user was before so he can easily select the next field. when using function goToRow2 and onchange="this.form.submit(goToRow2())" and take the onload code out of the BODY tag, browse to the page and change the selected option in a SELECT tag. The page scrolls to the right point, and then does a post back and refreshes to the top of the screen. I understand why this is happening, the javascript is client side and php is server side. So I want to send the Anchor name back to PHP when onchange="this.form.submit()" using javascript? Or maybe I have to use cookies? Read something about that and this is starting to get rather complex for a simple scroll after post? There simply has to be an easier way to do this? Any suggestions, information, links to a how to I missed, or critiques are welcome! This is a huge part of what makes a website flow right and it has to be done. Thank you so much for reading all of this, I hope I provided enough information! Please ask if you need more. Nick
  12. I had the opportunity to talk to a fellow programmer that was a bit more experienced than me. He was able to log in and test it himself and did not have a problem. He had the bright idea to check my clients IE security settings and/or maybe some other privacy software that might be running. So I have a meeting arranged and fingers crossed this solves the issue!
  13. holy wow! Thanks so much!!!! I wish I had more time to really look at it, saddly the day job is calling...ugh. But I can tell just but glancing over it there is a lot I didn't know. '=== ' '!==' ?!?! And then the spacing $blah = '1'; $someother = '2'; Great, will study and learn a lot from that post! Thanks so much. Nick
  14. Great! I will complete all my<? tags changing them to <?php Also will add exits after headers. the depreciated function bothers me. I wish google would know better than to show results 10 years old. Either way I can look into fixing that on my own. Thanks for the heads up! As for the error. All it says is "there was a timeout error please try again." That may not be exact because I cannot reproduce the problem, though I have seen it. I had to call my client to double check and he confirmed what the error reads. "There was a timeout error, please try again." No error codes or anything that would point to a specific area that could be causing the problem. Black text, in the upper right. Hope this gives you an idea? Again, thanks for the replies. Nick
  15. Thank you for the fast replies! Code Part One: <? // My last ditch effort was to try them all. ini_set('session.gc_maxlifetime',60*60); ini_set('session.gc_probability',1); ini_set('session.gc_divisor',1); ini_set("session.use_cookies", 1); ini_set("session.cookie_lifetime", 0); session_set_cookie_params(3600); set_time_limit(0); session_start(); if(!session_is_registered(myusername)){ $_SESSION['redirect_url']=$_SERVER['REQUEST_URI']; header("location:club_p4.html"); } // ***************************************************** THE BASICS START *** $member_id=$_SESSION['userid']; $member_Name=$_SESSION['WholeName']; $member_username=$_SESSION['myusername']; $member_status=$_SESSION['status']; $member_date=$_SESSION['date']; $member_dealership=$_SESSION['dealership']; $ok=1; switch($member_status) { case 'main_admin': $ok=0; } if($ok==1) { header("location:clubp4.php"); } // ***************************************************** THE BASICS END *** // ***************************************************** PAGE VARIABLES START *** $view_actual_name = $_POST['contact']; if ($view_actual_name=='') { $view_actual_name = $_GET['contact']; } $email_to=$_GET['em']; $submit_date=$_GET['sd']; $replace_img=$_GET['n']; $profile_id=$_GET['PI']; $contact_id=$_GET['CI']; $id=$_GET['file']; $critique_s=$_GET['s']; $view = $_GET['view']; if ($view=='') { $view='month'; } $view_dealership = $_SESSION['current_view_dealer']; if ($_POST['dealership']!='') { if ($view_dealership!=$_POST['dealership']) { $view_dealership=$_POST['dealership']; $_SESSION['current_view_dealer']=$_POST['dealership']; } } if ($view_dealership=='') { $view_dealership = $member_dealership; $_SESSION['current_view_dealer']=$view_dealership; } $chk_count=$_GET['cnt']; // ***************************************************** PAGE VARIABLES END *** // ***************************************************** DATE STUFF START *** list($curMonth, $curDay, $curYear) = explode("/", $member_date); $first_day_of_month_var=getdate(mktime(0,0,0,$curMonth,1,$curYear)); $first_day_name = $first_day_of_month_var[weekday]; $month_name=$first_day_of_month_var[month]; $month_day_count = cal_days_in_month(CAL_GREGORIAN, $curMonth, $curYear); $current_week_num=0; $end_week_day=''; $d=1; while ($week_found!='1') { $current_day_of_month_var=getdate(mktime(0,0,0,$curMonth,$d,$curYear)); $current_day_name = $current_day_of_month_var[weekday]; if ($current_day_name==$first_day_name) { $current_week_num++; if ($curDay <= $d+6) { $week_start_day = $d; $end_week_day = $d+6; if ($end_week_day>$month_day_count) {$end_week_day = $month_day_count; } $week_found='1'; } } $d++; } list($ThiscurMonth, $ThiscurDay, $ThiscurYear) = explode("/", $member_date); $Thisfirst_day_of_month_var=getdate(mktime(0,0,0,$ThiscurMonth,1,$ThiscurYear)); $Thisfirst_day_name = $Thisfirst_day_of_month_var[weekday]; $Thismonth_day_count = cal_days_in_month(CAL_GREGORIAN, $ThiscurMonth, $ThiscurYear); $Thiscurrent_week_num=0; $Thisend_week_day=''; $Thisd=1; while ($Thisweek_found!='1') { $Thiscurrent_day_of_month_var=getdate(mktime(0,0,0,$ThiscurMonth,$Thisd,$ThiscurYear)); $Thiscurrent_day_name = $Thiscurrent_day_of_month_var[weekday]; if ($Thiscurrent_day_name==$Thisfirst_day_name) { $Thiscurrent_week_num++; if ($ThiscurDay <= $Thisd+6) { $Thisweek_start_day = $Thisd; $Thisend_week_day = $Thisd+6; if ($Thisend_week_day>$Thismonth_day_count) {$Thisend_week_day = $Thismonth_day_count; } $Thisweek_found='1'; } } $Thisd++; } // ***************************************************** DATE STUFF END *** if(isset($_POST['SaveChanges'])) { $error_message = ''; if (strlen($error_message) > 0) { } else { $where_str = ""; $Profiles_Con = mysql_connect("marcomprofiles.db.6872771.hostedresource.com","***","***"); if (!$Profiles_Con) {die('Could not connect: ' . mysql_error());} mysql_select_db("marcomprofiles", $Profiles_Con); $Profiles_All_SQL="SELECT * FROM profiles" . $where_str; $Profiles_All_results=mysql_query($Profiles_All_SQL); $mng_str = ''; $sal_str = ''; $add_str = ''; $cur_name_cnt=0; $cur_name='chk_'.$cur_name_cnt; while ($row = mysql_fetch_array($Profiles_All_results)) { if ($row['Status']=='main_admin') { $add_str.='<input type="checkbox" name="'.$cur_name.'" value="'.$row[0].'" />' . $row['ActualName'] . ' - ' . $row['email'] . '<br />'; $cur_name_cnt=$cur_name_cnt+1; $cur_name='chk_'.$cur_name_cnt; } if ($row['Dealership']==$view_dealership) { if($row['id']==$profile_id) { if($row['email']!='unknown' ) { $sal_str.='<input type="checkbox" name="'.$cur_name.'" value="'.$row[0].'" checked />' . $row['ActualName'] . ' - ' . $email_to . '<br />'; $cur_name_cnt=$cur_name_cnt+1; $cur_name='chk_'.$cur_name_cnt; } } if($row['Status']=='manager') { $mng_str.= '<input type="checkbox" name="'.$cur_name.'" value="'.$row[0].'" checked />'.$row['ActualName'] . ' - ' . $row['email'] . '<br />'; $cur_name_cnt=$cur_name_cnt+1; $cur_name='chk_'.$cur_name_cnt; } } } $tmp_str .= '<form name="select_email" method="post" action="clubp4_admin_viewcall.php?file='.$id.'&cnt=' . $cur_name_cnt . '">'; $tmp_str .= '<p>sales person<br />'.$sal_str.'<br/>Managment<br/>'.$mng_str.'<br/>Admins<br/>'.$add_str.'</p>'; $tmp_str .= '<table width="100%"><tr><td align="right"><input type="submit" value="Send Email" name="Submit_email" id="Submit_email"></td></tr></table></form>'; $critique_con = mysql_connect("marcomprofiles.db.6872771.hostedresource.com","***","***"); if (!$critique_con) { $output_str .= 'Could not connect: ' . mysql_error() . '<br />'; } mysql_select_db("marcomprofiles", $critique_con); $critique_SET_str=''; if ($critique_s=='y') { $critique_SET_str .= " SET message='" . $_POST['critique'] ."'"; $where_str = " WHERE call_id=" . $id . ""; $critique_All_SQL="UPDATE critique" . $critique_SET_str . $where_str; //echo $critique_All_SQL; if (!mysql_query($critique_All_SQL,$critique_con)) { $output_str = 'Critique Error : ' . mysql_error() . '<br />'; } } else { //$critique_SET_str .= ' SET message=' . $_POST['critique']; $where_str = " VALUES('" . $id . "', '" . $_POST['critique'] . "')"; $critique_All_SQL="INSERT INTO critique (call_id, message)" . $where_str; //echo $critique_All_SQL; if (!mysql_query($critique_All_SQL,$critique_con)) { $output_str = 'Critique Error : ' . mysql_error() . '<br />'; } } mysql_close($critique_con); if ($output_str=='') { $output_str = 'Message Saved!<br />' . $tmp_str; } } } There is a lot more code between that last function and the form code below. Access database, pull record, display... The timeout has to be happening before the critique gets saved to the database because it doesn't get saved. The Submit Form. echo '<form method="post" enctype="multipart/form-data" action="clubp4_admin_viewcall.php?file='. $id.'&s=' .$s . '&em=' . $salesperson_email .'&PI=' . $tmp_profile_id . '&CI=' . $tmp_contact_id . '">'; echo '<span style="font-size:medium;">Please enter final Critique :</span><br /><textarea id="critique" name="critique" rows="5" cols="30">'.$critique_Message.'</textarea><br />'; echo '<input type="submit" value="Save Changes" name="SaveChanges" id="SaveChanges"></form>'; As to the when and what. All I can say is that when you click the submit button, a white screen and black text comes back saying the page as timed out. And its instant, click...page times out. No numbers, or error codes. Another note, I can get the page to timeout during times of heavier internet traffic rarely, but now at 12:30 am it will not happen. So I can't cut and paste the text itself. My client gets it almost every time, any time. I understand that php is ran on the server. That the browser should not matter. Still, I cannot get a timeout error in any browser but IE. I apologize if I come across as amateur, I have only been working with php for a month or 2 and its been learn as I go. Thanks for the help! Nick
  16. I have a site up where my client can enter some text in a box, and save it to a database. But the page keeps timing out. I can't get it to happen in Firefox or Chrome so it leads me to believe that its a setting in IE? This is what I have tried: set_time_limit(0) which i understand sets the time limit for the script to unlimitted. ini_set("session.use_cookies", 1); ini_set("session.cookie_lifetime", 0); Turns cookies on, and makes them last forever. session_set_cookie_params(3600); Makes a cookies last for an hour. I have tried all of these, and I have tried them in pieces. [EDIT] I do places all before session_start I have read that some of this can go into the php.ini file, but I cannot figure out exactly what I am supposed to add? Our current php.ini is the default: * CODE ******************************************************************************* register_globals = off allow_url_fopen = off expose_php = Off max_input_time = 60 variables_order = "EGPCS" extension_dir = ./ upload_tmp_dir = /tmp precision = 12 SMTP = relay-hosting.secureserver.net url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" ; Only uncomment zend optimizer lines if your application requires Zend Optimizer support ;[Zend] ;zend_optimizer.optimization_level=15 ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3 ;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so ;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so ; -- Be very careful to not to disable a function which might be needed! ; -- Uncomment the following lines to increase the security of your PHP site. ;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru, ; phpinfo, exec, system, dl, fsockopen, set_time_limit, ; popen, proc_open, proc_nice,shell_exec,show_source,symlink" * CODE ******************************************************************************* Where do I go from here? What is my next step? Thanks for taking the time to read my post, and thanks for the help! Nick
  17. awesome! I knew there had to be something built in. Many thanks! Nick
  18. Please keep in mind that I started using php months ago. I can make it do what I want it to do and have managed to set up a full fledged membership system linked to other sql data sources for a client. But for the sake of the problem I will simplify my question, cause even I don't know what I am asking. I have a membership site, users can login and what not.... I want to email this user a url to a part of the page when an admin wants to alert the user of something. "www.mysite.com/member_home.php?pet=dog&size=lrg&age=old" please keep in mind this is a dummy down version. The problem is, if this user isn't currently logged in member_home will redir them to the login page. The login page redir the browser to the login checking script, which then needs to redir the user to the original url. How do I pass this url from the original email link, through the whole process? If i'm correct : "/member_login.php?redir=member_home.php?pet=dog&size=lrg&age=old" wont work. redir=member_home.php?pet=dog then it will see size and age as other variables. What do I need to learn to achieve what I am aiming for? Thanks in advance! Nick
  19. That did it! [EDIT] Adding "\n" did it! Many many many thanks! Nick
  20. Maybe this will help. These are the URL's for the image tag in the HTML email. The original URL when I first noticed the problem. http://ncaappraisals.com/!+appraisals/nicks/uploaded_files/1322405845-hypo_layout_1.jpg Notice the '!+' ? When I removed the whole line of code that generated that img tag, it just moved to the next one. and I get: http://ncaappraisals.com/a!+ppraisals/nicks/uploaded_files/1322405531-hypo_layout_2.jpg Why did it move up one? Its not replacing a character, its just...there... This is just a random attempt I tried. The actual URL is bad and I know this, I just wanted to see if it moved. http://nicks/uploaded_files/132!+2405545-hypo_layout_1.jpg If I removed X amount of lines of HTML from the string before or after, the character would still appear roughly the same distance in, only it would be as mentioned above when it appeared in something not a URL. It also would repeat if the string was long enough. Again, always the same distance. Again, thanks for reading all this craziness. I really hope I'm getting my problem across clear enough! Nick
  21. and thus you see my problem! There is no reason why the code above is ending up with that extra character in it. I originally discovered it when an image didn't show up. Took me a while to figure out why. I noticed the url had an unexplained character in it and if I removed the charactrer and pasted the url in a browser problem everything worked great. If I removed that line the character would show up on the next line. it seemed that no matter what I did, the character still appeared about the same distance into the string. I have 3 ideas that could be causing this. A. Somewhere from when I send $email_message to the mail function to when it actually gets emailed its adding the character. I asked my client if any of his old developers might still have access and in an act of vindictive behavior added something to what ever on the server sends emails so that after x characters insert this character. But he was very sure that there was only him and I with access. This leads into B. B. Somewhere in the settings for the server and sending emails there is an error. Do I have to call godaddy? C. Because there is no way to define a variable, somewhere the server is thinking its no longer a normal string, and because of this gives an error when the string reaches a certain length. Does no one have a clue? Not a hint or idea? Something?? Please!! Nick
  22. sorry, this is kinda annoying to look at but its the best way to show my problem... this : $headers = "From: $email_from\r\n"; $headers .= "Content-type: text/html\r\n"; $email_message ='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' .'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' .'xxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Do you see the '! ' ?? why why why why why why?!?!?! I'm going freaking crazy trying to figure this out!!!! Thanks a billion in advanced! Nick
×
×
  • 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.