Jump to content

dizyn

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.dizyn.com

Profile Information

  • Gender
    Not Telling

dizyn's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi got "wvHtml", it converts an MS word file to .html, I want to use it without installing on server, I don't know how to use it without installing on server but i am sure its possible. url: http://wvware.sourceforge.net/ thank you
  2. I am trying this code to edit word file, it works fine if the both strings are same lenght but not if both are of different length. any help <?PHP $tmp= file_get_contents("work.doc"); $tmp = str_replace ("sys" , "asd",$tmp); $tmp= file_put_contents("work2.doc" , $tmp); ?>
  3. Problem with EventInventory web services has been resolved Event Inventory webservices are working fine for me now.
  4. my session is working fine with http, i am able to save data in session var and get it with http, but i want to access these session variables with https as, when i try to do i not able access them with https, please help me in this issue, thanks in advance.
  5. above issue has been solved Well I have xml in a variable and now i need to parse it. xml is something like this: [CODE]<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetVenueListResponse xmlns="http://www.eventinventory.com/webservices/"> <GetVenueListResult> <ROOT xmlns=""> <METHODINFO> <channelName>Basic View</channelName> <methodName>GetVenueList</methodName> <parameters>APPCLIENT_ID=2220&amp;EVENT_ID=6&amp;STARTDATE=&amp;INCDAYS=</parameters> <processTime type="milliseconds">4.2844</processTime> </METHODINFO> <DATA xmlns:sql="urn:schemas-microsoft-com:xml-sql"> <row THISID="945" THISNAME="Lowell Memorial Auditorium" ST="MA" /> <row THISID="1598" THISNAME="Stage Theatre" ST="CO" /> <row THISID="2963" THISNAME="Walnut Street Theatre" ST="PA" /> </DATA> </ROOT> </GetVenueListResult> </GetVenueListResponse> </soap:Body> </soap:Envelope>[/CODE] I need to parse info in data element mainly, please help me so that i can parse it
  6. well i been able to reduce that extra info now, now have exact xml in a variable using php 4.x.x i need parse it, can anyone help me out? thanks 
  7. Please see this code, I am using for web service client and been able to get correct results. Now i have problem in parsing it, I have methods available for this either get data form array which in user debug or i can parse the xml. When i put the who xml in file and try to parse it it works file, but when i try to parse it directly you can see some extra information which creates problem, please check this issue and help me out. Thanks You can see output at: http://208.109.22.111/ticketchest/nutest.php [code] <?PHP require_once('nusoap.php'); // define parameter array $param = array( 'APPCLIENT_ID' => '2220','EVENT_ID' => '6','STARTDATE' => '','INCDAYS' => ''); // define path to server application $serverpath ='http://services.Preview.EventInventory.com/webservices/TicketSearch.asmx'; //define method namespace $namespace="http://www.eventinventory.com/webservices/"; // create client object $soapclient = new soapclient($serverpath); //set soap Action $soapAction='http://www.eventinventory.com/webservices/GetVenueList'; //to see debug messages //$soapclient -> debug_flag = 1; // make the call $result = $soapclient->call('GetVenueList',$param,$namespace,$soapAction); // if a fault occurred, output error info if (isset($fault)) { print "Error: ". $fault; } else if ($result) { // Display the response messages echo '<h2>Response</h2>'; echo '' . htmlspecialchars($soapclient->response, ENT_QUOTES) . ''; // Display the debug messages echo '<h2>Debug</h2>'; echo '<pre>' . htmlspecialchars($soapclient->debug_str, ENT_QUOTES) . '</pre>'; } else { print "No result"; } // kill object unset($soapclient); ?> [/code]
  8. I am working with "EVENTINVENTORY WEB SERVICES" I am using php 5.1.1 where is SOAP is enabled and PHP 4.3 where SOAP is not enabled and I am using my own SOAP. Here is my PHP coad on PHP 5.1.1 and as a result i see following output. Please help me i am stuck with this problem. Warning: SoapClient::__construct() [function.--construct]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 86 Warning: SoapClient::__construct(http://webservices.eventinventory.com/TicketSearch/) [function.--construct]: failed to open stream: Connection refused in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 86 Warning: SoapClient::__construct() [function.--construct]: I/O warning : failed to load external entity "http://webservices.eventinventory.com/TicketSearch/" in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 86 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://webservices.eventinventory.com/TicketSearch/' in /opt/lampp/htdocs/projects/Mannan/nutest.php:86 Stack trace: #0 /opt/lampp/htdocs/projects/Mannan/nutest.php(86): SoapClient->__construct('http://webservi...') #1 {main} thrown in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 86 [code] // define parameter array $param = array( 'APPCLIENT_ID' => '2220','EVENT_ID' => '','STARTDATE' => '','INCDAYS' => ''); // define path to server application // Do not hard code the URL here. Get it from a central place like // configuration file. The below URL is hard coded just for example // purpose. $serverpath ='http://services.Preview.EventInventory.com/webservices/TicketSearch.asmx'; //define method namespace $namespace="http://www.eventinventory.com/webservices/"; // create client object $soapclient = new soapclient($serverpath); //set soap Action $soapAction='http://www.eventinventory.com/webservices/GetVenueList'; //to see debug messages //$soapclient -> debug_flag = 1; // make the call $result = $soapclient->call('GetVenueList',$param,$namespace,$soapAction); // if a fault occurred, output error info if (isset($fault)) {         print "Error: ". $fault; } else if ($result) {         if ($result[faultstring])         {         print"<h2>Error:</h2>         $result[faultstring]";         }         else  //show results         {   $root=$result[ROOT];               $data = $root[DATA];   $row = $data[row];            for($i=0;$i<count($row);$i++)             {                 $venueId = $row[$i]['!VID'];                 $venueName = $row[$i]['!Name'];                 $city = $row[$i]['!City'];                 $state = $row[$i]['!State'];                 $zip = $row[$i]['!ZipCode'];                 print"$venueId : $venueName : $city : state :$zip<br>";             }         } } else {         print "No result";         } // kill object unset($soapclient); [/code]
  9. Please see this code and help me how $this->sql = $q; $this->log(); $r = mysql_query($q); if (!($r)) { $this->error_log(); } $num=mysql_num_rows($r); $i=1; while ($row=mysql_fetch_object($r)) { $cont[$i] = $row; $i++; } will work. I am new to OOP it would be good if someone explain this bunch of code to me. thanks much. [code] <?php class Dbase { function Dbase(){ include ("connection.php"); $this->dbLink=$dbLink; } function select($retField, $table, $where="", $groupby="", $orderby="", $limit="") { $fields = implode(",", $retField); if ($where!="") { $q = "select $fields from $table WHERE $where"; } else { $q = "select $fields from $table"; } if ($groupby!="") { $q .= " GROUP BY $groupby"; } if ($orderby!="") { $q .= " ORDER BY $orderby"; } if ($limit!="") { $q .= " LIMIT $limit"; } //return $q; //if($orderby == 'ts_datAdded DESC'){ // echo $q."<br><br>";exit;} $this->sql = $q; $this->log(); $r = mysql_query($q); if (!($r)) { $this->error_log(); } $num=mysql_num_rows($r); $i=1; while ($row=mysql_fetch_object($r)) { $cont[$i] = $row; $i++; } if (mysql_num_rows($r)>0) { // echo print_r($cont); // exit; return $cont; } } } ?> [/code] mod edit : Please use code tags
  10. I want to play music via music player and don't want allow users to download it. I have see on few sites that you can play some video or music but you can't download it, you can play it form site in a web page but can't download it. i wana try this thing, can anyone help in it. best regards.
×
×
  • 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.