Jump to content

iswariak

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by iswariak

  1. Hi, I want to read unicode files and do some manipulation. How to do that? sample unicode file: *t*Name(s) Kandapurāṇa by Kacciyappa-civa-cariyasvami. *t*Location*t* “Near Mēlpāṭi which is 12 km. north of Thiruvallam in Guḍiyāttam Then read this file, replace*t* by <h1>tag and write the content in another file. Please tell me how to read and write unicode files in php? Thanks, Iswaria
  2. Hi all, I want to plot the latitude and longitude on a India map. Can anyone tell me the conversion procedure how to convert the lat/long to screen coordinates. I have gone through the article how to plot the coordinates for the world map: http://www.web-max.ca/PHP/article_1.php How to customize this function? Thanks in advance. Iswaria
  3. Hi all, I am generating a xml file from php. I am getting "XML Parsing Error: XML or text declaration not at start of entity" this error. When I view the source there is a space before the xml header. See the first line of below code. There is no space Code for the function: ---------------- function writesvgheader() { $line = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"; print trim($line); print "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">"; print "<svg xmlns=\"http://www.w3.org/2000/svg\" xml:space=\"preserve\" width=\"240mm\" height=\"180mm\" shape-rendering=\"geometricPrecision\" text-rendering=\"geometricPrecision\" image-rendering=\"optimizeQuality\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" "; print " viewBox=\"0 0 240 180\" "; print " xmlns:xlink=\"http://www.w3.org/1999/xlink\">"; } -------------------- Even I have used the trim function. Any guesses? Thanks Iswaria
×
×
  • 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.