Jump to content

Zoranos

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Zoranos's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i solved this, downloaded again same files for libraryes and now working fine... i dont know why old files used xampp paths...
  2. Use $_SERVER['DOCUMENT_ROOT'] as the base of your includes. Because server can be configured to serve from different locations on the filesystem. but i didnt use anywhere path... only that library open font file, and cant open becasue its thry to reach old path from my computer... i dont know how to solve this...
  3. Hi, i have problem with libraries, with fpdf and PHPEcel, problem is same... Can't open file C:\xampp\htdocs\skripta\.... - this is path to php script on my computer everything work ok on localhost when i test, but when i upload to web server, pdf script try to create file with old windows path: Can't open file C:\xampp\htdocs\skripta\, and not with linux path... does anyone have solution, and why is that?
  4. yes i know that, but i want to have same problem on xampp but there you can use mysql_real_escape_string without connection... i want to know does enyone have solution for xampp...
  5. Hi, i had today problem with my script. Everything worked well on my localhost(xampp server) and when i uploaded on dedi machine functions with MySQL database stoped working. Problem was with mysql_real_escape_string and i forgot that i must first open connection and then mysql_real_escape_string... But strange thing is that on xampp server i dont need to open connection for mysql_real_escape_string, and everything worked well... is there any solutio to php scripts on xampp worke same as php script on linux apache server?
  6. yes, i forund problem, htmlentities with utf8 was problem, i only switched to htmlspecialchars with utf8 and solved...stupid utf8 signs... problem solved...
  7. Hi, i dont know what to do, everything is ok in php, but when i query some values that have utf8 sign mysql server store this sings strange... query('UPDATE clanstvo SET name='Špica' WHERE id=1'); // its ok in mysql when debug and echo this query: UPDATE clanstvo SET name='Špica' WHERE id=1 but when i look in phpmyadmin i see that has stored like: Špica when i query back this value and echo in php its Špica again :S but problem is that i use this database to connect web cms with game server(few) and that is problem... i only want that is stored like Špica in mysql... after mysql_connect i have tryied mysql_set_charset('utf8'); and mysql_query('SET NAMES utf8'); and didnt helped... does anyone have solution?
  8. thank you so much!!! i didnt remember that... and now i have lost few hours trying to solve this! thanks again!
  9. you didnt read my post... i have try this, no help... but i have debuged and found problem, its not problem in calling session in another file, but with saving utf in session: i use this on user login to store name: <?php $userarray = mysql_fetch_array($result);//$result if from mysql_query $_SESSION['name'] = $userarray['name'];// lest say that name is Duško ?> and when i print that later in html (echo $_SESSION['name'] it will print Du?ko then i tested to store directly string: <?php $_SESSION['name'] = "Duško";// lest say that name is Duško ?> And that will print later if i use this in html Duško... That is weird, its wrong storing name in arraym, or somehow encode that... any solution, suggest?
  10. Hi, i dont know if anyone have this problem: When i store some value in session and echo that inside <html> tags it wont show utf-8 signs, example: <?php $_SESSION['name'] = "Duško"; ?> <?php echo $_SESSION['name']; ?>//outside of html tag it will print Duško <html> <?php echo $_SESSION['name']; ?>//inside of html it will print: Du?ko <html> I have tried: -with utf8_encode(before storing in session) and later utf8_decode() - doesnt help -i have defined support for utf8 in html(<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />) and defined with header() in php - doesnt help -i have saved with utf8 DOM, without DOM - not working PHP version: 5.3.8 i dont have any solution for that, outside html everything is ok, but inside html tags utf-8 support doesnt work.. does anyone have solution for this? Thanks
×
×
  • 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.