kusal
Members-
Posts
36 -
Joined
-
Last visited
Never
Everything posted by kusal
-
its alright its just a trail account to test out the api. I left it so someone can run the code and help me
-
I'm trying to access the agemni.com webservice using php which has been a very hard since it is wrriten in .net <?php $client = new SoapClient("http://agemni.com/AgemniWebservices/service1.asmx?WSDL", array('trace' => 1)); $options->strUsername = "karth"; $options->strPassword = "7pk6Xc8o"; $options->strCompanyName = "webloon"; $options->objecttype = 2; $options->keys = array("fname", "lname", "phone", "zip", "area id", "lead id", "contactdate"); $options->values = array("John", "Doe", "859-333-3333", "40332", "12345", "28222", "4/10/2010"); $validate = $client->ValidateEntity($options); echo '<pre>'; echo var_dump($validate); echo '</pre>'; echo '<br><br>'; echo htmlspecialchars($client->__getLastRequest()); ?> I was able to connect using the credentials but I get a error, Conversion from type 'XmlNode()' to type 'String' is not valid. This is the relevant part from the getType method. [3]=> string(18) "string statusCodes" [4]=> string(154) "struct ValidateEntity { string strUsername; string strPassword; string strCompanyName; int objecttype; ArrayOfAnyType keys; ArrayOfAnyType values; }" [5]=> string(43) "struct ArrayOfAnyType { anyType anyType; } Anyone knows how to pass ArrayOfAnyType using php? Thank you.
-
I don't know why, but it caused by a nested table, when I remove the form with the nested table it was all good again
-
Thanks, What ever causing it only happens to this page.
-
session_start(); $date = date("i:s"); echo $_SESSION['test12'] = $_SESSION['test12'].', '.$date; I did test for this page and found out that page is actually loading two time 15:21, 15:22 | 15:25, 15:26 | 15:31, 15:32 anyone know a reason for this
-
I tried it, query has 2 also. I'm sure that the query is not running two times. This worked fine until today. if I give a direct value it takes it correctly like this $views = 8;
-
$views++; echo $views; //2 mysql_query("update vehicles set hits = '$views' where id = '$id' limit 1"); echo $views; //2 According to above code hits should update with 2 but it's actually update with 3, why mysql add extra 1
-
can scandir or using fopen go through a remote website public folder?
-
I like to know how this site work http://www.xml-sitemaps.com/ it will go through my site and make a xml of all files in the site. do they go through my links or is there a way to scan public remote folders using php?
-
Thanks for the help, I found a solution
-
Hello I have a category select menu, what I want is to when user select a category I have to repopulate the sub category select menu with items can I do this with out AJAX, it does not matter if there is a another request can I use a onchange to call another php function?
-
Anyone please help with the right single quote
-
No no, not single quote. I'm talking about right single quote $text = utf8_encode("’");
-
I have a problem again Image does not show correct charater for ’ - right single qoute
-
Thank you tippy_102, it works. but my problem is a bug in PHP I guess
-
Please someone can help me
-
Hi, This is a really strange problem <?php // Set the content-type header("Content-type: image/png"); // Create the image $im = imagecreatetruecolor(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); // The text to draw É´ $text = 'É´'; // Replace path by your own font path $font = 'arial.ttf'; // Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ?> When "É´" these two are together, server could not recognized it, so it displays a BOX character in the image. Can anyone help me. Thank you
-
Thank you it works
-
<?php // Set the content-type header("Content-type: image/png"); // Create the image $im = imagecreatetruecolor(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); // The text to draw $text = 'Testing...'; // Replace path by your own font path $font = 'arial.ttf'; // Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ?> how can I embed this png file into a html file or PHP file?
-
Hi I want to convert a string that is retrieved from a mysql database to a image that contain the text. can I do this in PHP Thank you
-
Warning: preg_match_all() [function.preg-match-all]: Compilation failed: lookbehind assertion is not fixed length at offset 29 '/(?<=Phone: \s? \<\/span\> \s*) [( \d].* \b/'; How can I over come this???
-
This is not PHP related pls help you have these relations Product([u]model[/u], Maker, type) pc([u]model[/u], speed, price) laptop([u]model[/u], price) pc-model and laptop-model is refering product-model 1. how do i write a code to print model number and price for all PC's and Laptop's made by IBM? 2.Print the Maker who has the most number of products? thanks kusal
-
so what about these things like ODBC myODBC JDBC??? what are these??? why don't we use them ???
-
what is the driver used in "mysql_connect" function when connecting to the MySql database ???
-
print attribute names one by one