Jump to content

divinequran

Members
  • Posts

    71
  • Joined

  • Last visited

Everything posted by divinequran

  1. Thanks for reply, Yes they are tamil characters, The characters are encoded and the value is posted. The DB was not constructed earlier to accept it as itself of the characters. The browser itself decodes the value. html_entity_decode(); dosent work. Any other workaround to achieve this with generally available functions.
  2. Hello, I want to write some unicode "இயற்கை" values into a file in its real format like "இயற" Actually the browser prints the charactes in correct format, but I want it to be same in view source or browser source(இயற) but now the he browser displays it as (இயற்கை) $text = "இயற்கை"; $rest = utf8_decode($text); echo "$rest"; How to achieve this? Decode
  3. Dears, Consider I have a folder called docs mysite.com/docs/ I want to redirect some of the request to mysite.com/docs/word/index.php ==> here word folder doesnot exist(which is $1) mysite.com/docs/ppt/index.php ==> here ppt folder doesnot exist(which is $1) RewriteRule ^(.*)/index.php$ /docs/$1/all-ind.php?=$1 How this can be achieved? Please help..
  4. I am getting below error. Caught exception on timezone []: DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone ()
  5. Hello, The below code works on my home machine.. but not on my Linux machine, I am unable to figure out the problem, please help require_once("dbconnection.php"); function coun_list() { $rs=mysql_query("select name from timezones") or die(mysql_error()); while($row=mysql_fetch_row($rs)) { $tzone=$row[0]; if($tzone=='Asia/Calcutta') $tzone='Asia/Kolkata'; try { $tz = new DateTimeZone("$tzone"); $lt=$tz->getLocation(); $lat=$lt['latitude']; $lon=$lt['longitude']; echo "$tzone"; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } } } coun_list(); I get the below error on my Linux machine, Caught exception: DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone () Please help me to figure out the issue..
  6. I have a big student database, it has only one table. I want to select 10 student each department on a single mysql query. +---------------------------------------------------------+----------------------+ | student | Dept | +---------------------------------------------------------+----------------------+ | gooch | physics | | aaaaa | mathss | | dvssdg | maths | | sfgsfg | chemistry | | gcbcvb | chemistry | | dgsgsfg | arch | I have a big list like this.. I have to select ten student from each department. how shall I achieve it? Also I want to select student in random each time.
  7. Hi, I am curious to know about the problem, have you found what the issue is?
  8. Hi, I want know what are all the tables and fields in the table get effected by adding a post in wordpress. How can I post the content from my old DB to wordpress?
  9. Hi, you can try whether you can use geoip locator to find the cities by passing the IP address. A work around might kelp you, for this you have to have a huge database of all cities and do as much as number of combinations to find the cities.
  10. Hi, Can you post the url. Test your website with some php test code as below or try to send mail by executing the script which has only mail function in it <?php echo "I welcome you to nationalcongress.in"; ?>
  11. Hi, If you try it without htaccess redirection how does the page reflects on the screen? Does it displays as text or web page? Have you tried to redirect the index.html to some other test page's instead of /cgi-bin/gifasm.exe
  12. Try using ul instead of ol. I too had this problem earlier. when I used ol, finally I removed all the list to fix the issue.
  13. If your are beginner then you can simply use tables for better view.
  14. Yes I tried, but I cant get a plain tutorial to setup exim.
  15. Hi, How do I place image instead of submit button.
  16. Hi, What is the difference between rsync and scp?
  17. So, he can use rsync. Am I right?
  18. divinequran

    exim server

    Hi, How to set new exim mail server? Does exim use sendmail or I can stop sendmail?
  19. I think he is using laptop and it is not much easier to remove his harddisk from laptop? It there is any way to do wireless data transfer? and install the linux from windows without rebooting the system?
  20. Using GUI or xwindow system for a server is not a good Idea. Sine you are not familiar with command prompt it will be better to use ubuntu.
  21. Hi, How do i checkin by using browser, without using using ssh and How do I configure it chechin using browser?
  22. divinequran

    Find thread

    Hi, How do I find the thread of a process? IS there is any way to find it?
  23. Hi, I want all the pages from w3calculator.com/info/....(*) have to be redirected to the sub domain http://info.w3calculator.com I have tried with the following redirection code it doesnot work. please help.. RewriteCond %{HTTP_HOST} ^w3calculator.com/info/[a-z]$ RewriteRule ^w3calculator.com/info/[a-z]$ http://info.w3calculator.com/ [R] RewriteCond %{HTTP_HOST} ^w3calculator.com/info/(.*)$ RewriteRule ^w3calculator.com/info/(.*)$ http://info.w3calculator.com/ [R]
  24. Hi, now i want to redirect w3caluulator/info to http://info.w3calculator.com/ This one make me .. RewriteCond %{REQUEST_URI} \/$ RewriteRule ^$ /free-code/index.php [R] I know this one creates problem. Any way to change this? and i want it to redirect to http://info.w3calculator.com It was working fine in my previous hosting. These is some thing with apacha.
  25. check the path from of the file you given. AuthUserFile /mysite/osc_users I think the problem is with the file path and permission.
×
×
  • 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.