Jump to content

Mudsaf

Members
  • Posts

    462
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Mudsaf

  1. 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

  2. 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.

  3. 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 = (???)

  4. 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

  5. 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 ^^

  6. 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;}}

  7. 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.

  8. 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.

  9. 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 Ä & Ö.

  10. 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">

  11. 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?

  12. 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 Ä = Ä

  13. 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.

  14. Well actually i wanted to edit iframe size that was htmlspecialchars coded at middle of textarea. I guess its not possible to edit it if its middle of the textarea.

×
×
  • Create New...