Jump to content

Mudsaf

Members
  • Posts

    462
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mudsaf

  1. I got this textarea it works when i paste chars asdsakopöosatfsjoqtqpw but it gives error on result when there is öäå Error result Incorrect string value: '\xE4as\xF6da...' for column 'Teksti' at row 1
  2. Ill check the MySQL settings after im at work-based learning (Ends tomorrow)
  3. No errors when display_errors = On Really this is bit confusing T_T, bit fixed when ie settings changed still text = messed at textarea. Hmm $text = mb_convert_encoding($row['Teksti'], 'UTF-8', "ISO-8859-1"); result = ä Looks clear in Xampp server but not in PHP T_T
  4. Well the problem isn't at convering since i got 2 servers BOTH has same files >Server 1 = Xampp [Works Like Charm]>Server 2 = PHP Server with MySQL [Problems]
  5. BBKAWKAKRAWR now textarea is good, but the navigation is fked T_T There must be problem in PHP or MySQL server since xampp shows it now correctly, but other server shows it like mess.
  6. Still having some problems when data comes from MySQL database... if i change page coding to UTF-8 from ANSI navigation goes like crazy, but now textarea is going crazy.
  7. Mudsaf

    mail() questions

    So how should i configure this? [mail function]; For Win32 only.; http://php.net/smtpSMTP = localhost (Keep this to localhost or public adress?); http://php.net/smtp-portsmtp_port = 25 (Open port 25 UDP?); For Win32 only.; http://php.net/sendmail-from;sendmail_from = me@example.comsendmail_from = [email="staff@MYSITE.COM"]staff@MYSITE.COM[/email] (Any email for example staff@mywebsite.com or does it have to be some real email adress); For Unix only. You may supply arguments as well (default: "sendmail -t -i").; http://php.net/sendmail-path;sendmail_path = (???)
  8. Mudsaf

    PHP FILES GET LINK

    Thanks, never heard about that before
  9. Mudsaf

    PHP FILES GET LINK

    Hello everybody, im having this problem when i get files from some folder. It gets data from folders correctly, but the link it gives it doesn't work if it has spaces & it should not be <a href='#LINK'></a> Example it goes in href like this (below) http://localhost/Materials/BLABALALB%20BLABLABLABLA%20Business%20plan_17.12.%202010.pdf And to other place whitout href like http://localhost/Materials/BLABALALB BLABLABLABLA Business plan_17.12. 2010.pdf so id like it to go other place whitout href like this http://localhost/Materials/BLABALALB%20BLABLABLABLA%20Business%20plan_17.12.%202010.pdf
  10. Notice: Undefined index: tiedosto in E:\xampp\htdocs\admin\lisaa_tiedosto.php on line 422 Here is part of my form that does php_self <label>Tiedosto: <input type='file' name='tiedosto' id='tiedosto' /> </label> And here is PHP if (isset($_GET['submit'])) {$target_path = $_GET['directory'];$target_path = $target_path . basename( $_FILES['tiedostot']['name']); if(move_uploaded_file($_FILES['tiedostot']['tmp_name'], $target_path)) { echo "File ". basename( $_FILES['tiedostot']['name']). " has been sussefully added to websites.";} else { echo "There was error during upload, please check that filesize is not higer than 8MB.";echo $target_path;}} Tried to edit $_FILES['uploadedfile'] to ['tiedostot'] Oh readed it cannot be used with get method have to change to post ^^
  11. Okay this is part of my file upload script what has been taken from tizag websites. Somehow this is giving me the error and $target_path = ../Materials/ if (isset($_GET['submit'])) {$target_path = $_GET['directory'];$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "File ". basename( $_FILES['uploadedfile']['name']). " has been sussefully added to websites.";} else { echo "There was error during upload, please check that filesize is not higer than 8MB.";echo $target_path;}}
  12. Mudsaf

    mail() questions

    Im wondering how does this mail() function work. I got PHP script likewhile ($row = mysql_fetch_array($result2)) {mail($row['Sahkoposti'], 'New comment on websites', '$text');} 1. $row['Sahkoposti'] = Email2. 'Subject'3. text Im wondering does this email thing require SMTP service or some port open to work correctly.
  13. What is $alpha=""; $beta=""; $gamma=""; $theta=""; used for and you could try if (empty($var)) { echo '$var is either 0, empty, or not set at all';} instead of if isset uou can do this below if you want if (isset($_POST['Submit'])) { } And what is your form action & method.
  14. Somehow HTMLENTITIES fixed it.
  15. Okay its UTF-8 now on php page, MySQL table = utf-8 general ci. Still no difference data taken from database with SELECT + $row['Column'] not decoded.
  16. had htmlspecialchars_decode, but removed and ä turned to ? inside <> with reversed vertically. UTF-8 decode just makes ä to ? Kind a fixed, but would still be good if it would automaticly. Turned coding from browser to ISO from utf-8 and now it says Ä & Ö.
  17. Hello everybody Im wondering how can you make page that displays every .jpg, .gif & .pdf files from directories on website table. Im not sure what coding language i have to use, but i think its mostly html. PHP & javascript code will be accepted too. Found solution after some research: http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/
  18. No effect when changed meta to utf-8. Text isn't htmlspecial coded in database so its like "TÄMÄ" <-- for example whitout quotes.
  19. Yes data is coming at database collation = emptytried collation = utf-8 general ci still no difference. at every page start there is the code below under <head> tag.<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  20. Well actually id like to keep it at iso-8859-1. But the main problem was SERVER 1 (Xampp)Shows them like they should be ä, ö ... etc SERVER 2 (PHP not 100% sure)Shows them like Ä = Ä Both has same files and xampp shows correctly. So should i change settings at PHP.ini or somewhere?
  21. Im wondering why i see at my localhost letters like ä and ö, but when i go to my online page it writes like. Is there some config that should be done in php.ini or what? Any suggestions. Charset: charset=iso-8859-1 Ä = Ä
  22. Mudsaf

    SHOW DATABASES is slow

    This prob pretty much all you can do (In my opinion).http://dev.mysql.com/doc/refman/5.0/en/show-databases.html
  23. Mudsaf

    [PHP Wiki]

    Okay, my problem is that i want text to appear at "table of contents" place on PHPWiki, but the text size should be normal size. At the moment i can only make "Headers 1 & 2" that appears in table of contents spot on "my" websites.
  24. Dreamweaver page is dead x)
  25. You can get easily cool power point slideshow at http://www.slideshare.net/ (Upload and get embed code) if you like.
×
×
  • Create New...