Jump to content

kam_uoc

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    Colombo

Contact Methods

  • Yahoo
    kam_uoc

kam_uoc's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks man. Its works perfectly. thanks again.
  2. Hi all, I want to know how to work with web services in php. I just want to convert currencies to USD to Rupee. I have found a web site which offers conversion as web service. http://www.webservicex.net/CurrencyConvertor.asmx?op=ConversionRate I have no clue how to connect this to my site. I haven't any knowledge on web services and php. Any tutorial??? Thanks in advance.
  3. ???pls send me a link to download php_pdf.so for PHP Version 5.2.4. thanks.
  4. is it possible to pass some data to php? my situation is simply follows. let's say there are two files, main.php and child.php. code for main.php <?php if (isset($_POST['str'])){ $text=$_POST['str']; print "Text submited by child is:".$text; } else{ $text=""; ?> <HTML> <HEAD> <TITLE>Main Document</TITLE> <SCRIPT type='text/JavaScript'> function newWindow() { window.open('child.php','sub','HEIGHT=200,WIDTH=200') } </SCRIPT> </HEAD> <BODY> <FORM> <INPUT TYPE='button' VALUE='New Window' onClick='newWindow()'> </FORM> </BODY> </HTML> -------------------------------- code for child.php <HTML> <HEAD> <TITLE>A ChildDocument</TITLE> </HEAD> <BODY> <FORM method='POST' action='main.php'> Enter text to be copied to the main window: <INPUT TYPE='text' name='str'> <INPUT TYPE='submit' name='ok' value='Ok'> </FORM> </BODY> </HTML> -------------------------------- its obvious that it str passes to the main page. but the problem is it doesn't display b'cos no refresh happen. how can i refresh the main page when i click the ok button in the child page. or any other ways to achive this. remember i need the function newWindow() must be happen. hope the ploblem is clear. please help. thanks.
  5. i want to save a graph (which is genarated using jpgraph class) as a pdf file. Is it possible. please help. ??? thanks!!
  6. your *.php files doent apply the css. is it your problem.
  7. this may be help you. this create a combo. apply your option an send it to database as text. <form name="form1" method="post" action="">   <select name="select">     <option>abc</option>     <option>xyz</option>   </select> </form>
  8. what is the procedure to define foreign key in mysql. i tried it phpmyadmin(mysql 5) came with wamp. is it need special configaration. please help. ???
  9. if you use html form components(input types) you can send it to database.
  10. check the 13th line of your code. if closure didnt closed. close it and try.
  11. [color=purple][font=Verdana]PDF generation using PHP[/font][/color] i tried to generate pdf report using PHP end up with an error saying Fatal error: Uncaught exception 'PDFlibException' with message 'Metrics data for font 'Arial' not found' in C:\wamp\www\pdftest\pdf.php:8 Stack trace: #0 C:\wamp\www\pdftest\pdf.php(8): pdf_findfont(Resource id #2, 'Arial', 'host', 1) #1 {main} thrown in C:\wamp\www\pdftest\pdf.php on line 8 here is my simple way of code. please help. [code]<?php $pdf = pdf_new(); // open a file pdf_open_file($pdf, "philosophy.pdf"); // start a new page (A4) pdf_begin_page($pdf, 595, 842); // get and use a font object $arial = pdf_findfont($pdf, "Arial", "host", 1); pdf_setfont($pdf, $arial, 10); // print text pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,",50, 750); pdf_show_xy($pdf, "than are dreamt of in your philosophy", 50,730); // end page pdf_end_page($pdf); // close and save file pdf_close($pdf); ?>[/code] Whats wrong here. Is it a configaration problem? Thank You
  12. if the problem is to create .htaccess file you can try this way. let's say your working place is c:\abc, first create an text file and save it in any name, say a.txt; then go to command prompt and rename it ren a.txt .htaccess then open the .htacess file and write your code. try
  13. thanks. but i'm want to do it without using any bundle.
  14. How to configure the HTTPD.conf file to access site from LAN. Is it need big cordings. Where do i refer.
×
×
  • 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.