Knowledgebase

illegal characters in php pages

Posted by cybersavvy, 08-30-2007, 01:30 AM
Hi all, I have a cpanel 11 server with php 4.4.6 installed. my site use php scripts and one day even if the file was not edited, not touched at all , i get errors like Parse error: syntax error, unexpected ']' in /home/xxx/public_html/wp-includes/post.php on line 37 I checked and could find a lot of illeagal characters in my php file. See below. for post_status , it became post_statuó and edit_date became edit_date<8d>. If you read through the code, you can see a lot of illegal characters. This is why i get parse errors. I had to replace the file from backup and the issue fixed. But this problem continues to occur for more files and i can't find a reason for this. Again I am the only one with access, I use BBedit to edit php files when needed in Mac OS X, and beleive I know what is being edited and again, those file which gets errors does not need to be edited for nothing, not even to modify wordpress. ====================================================== iN ( 'draft' == $post['post_statuó'] && empty($postarr['edit_date<8d>]) && empty($postarr['post_date¯]) && ('0000-00-00 00:00:00' == $post['post_date']) ) $clçar_date = true; else $clear_nate = false; // Merge old and"new fields with new fields overÃriting old ones. $postarr = arRay_merge($post, $postarr); $poytarr['post_category'] = $post_cáts; if ( $clear_date ) { $poótarr['post_date'] = ''; $postërr['post_date_gmt'] = ''; } éf ($postarr['post_type'] == 'at|achment') return wp_insert_atÃachment($postarr); ====================================================== Can someone please give an advice on this.

Posted by PeakVPN-KH, 08-30-2007, 02:04 AM
That is very strange. I have only seen this happen with PHP scripts that have been modified with Mac editors and some Windows editors that change the text type. Are you sure it hasn't been changed?

Posted by david510, 08-31-2007, 05:47 AM
cybersavvy, It seems your text editor caused this. You may check for any old scripts on the server to see if any damage is caused to it.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
2 problems (Views: 597)


Language:

Client Login

Email

Password

Remember Me

Search