User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,489 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,705 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 969 | Replies: 2
Reply
Join Date: Aug 2007
Posts: 5
Reputation: marcuskona is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
marcuskona marcuskona is offline Offline
Newbie Poster

Parse error: parse error, unexpected '{' in /homepages/10/issue.php line 5

  #1  
Sep 22nd, 2007
Hi everyone im getting this error when i try to execut the code via a browser, its a SOAP call to a footprints webservices server written in php, well it only shows me this error. I pasted the entire code below minus my username and password

  1. <h2>Web Service Test - create new issue</h2>
  2.  
  3. <?php
  4.  
  5. try [b]{[/b]
  6.  
  7. $client = new SoapClient(NULL,
  8.  
  9. array(
  10.  
  11. "location"=>"http://www.mywebsite.com/MRcgi/MRWebServices.pl",
  12.  
  13. "uri"=>"MRWebServices",
  14.  
  15. "style"=>SOAP_RPC,
  16.  
  17. "use" => SOAP_ENCODED
  18.  
  19. )
  20.  
  21. );
  22.  
  23. $issue_number = $client->MRWebServices__createIssue("username",'password','',
  24.  
  25. array(projectID =>1,
  26.  
  27. title=>"Test Issue creation.",
  28.  
  29. status=>"Open" ,
  30.  
  31. priorityNumber => 3,
  32.  
  33. description => "This is a test"
  34.  
  35. )
  36.  
  37. );
  38.  
  39. print "<BR><b> Issue created; Issue number = $issue_number</b><br><hr>\n";
  40.  
  41.  
  42.  
  43. } catch (SoapFault $exception) {
  44.  
  45. print "ERROR! - Got a SOAP exception:<br>";
  46.  
  47. echo $exception;
  48.  
  49. }
  50.  
  51. ?>
Last edited by stymiee : Sep 23rd, 2007 at 1:00 am. Reason: added code tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2007
Posts: 6
Reputation: amoun is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
amoun amoun is offline Offline
Newbie Poster

Re: Parse error: parse error, unexpected '{' in /homepages/10/issue.php line 5

  #2  
Sep 23rd, 2007
try to remove and in the fifth row
Reply With Quote  
Join Date: Aug 2007
Posts: 5
Reputation: marcuskona is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
marcuskona marcuskona is offline Offline
Newbie Poster

Re: Parse error: parse error, unexpected '{' in /homepages/10/issue.php line 5

  #3  
Sep 23rd, 2007
Originally Posted by amoun View Post
try to remove and in the fifth row


i did remove the { and it just through me another error

Parse error: parse error, unexpected T_VARIABLE in /homepages/10/d159684860/htdocs/joomla/issue.php on line 7
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:16 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC