All execution stops at
$client=new nusoap_client("http://www.
tried putting it in an exception/catch block but nothing appears.
quote is set as well as the value of the symbol.
any ideas?
Main Topics
Browse All TopicsThe below web service request works fine if it is at the top of its own php file, but when I try to conditionally access it i.e.
if (isset($_GET['quote']))
{
:: code here;;
}
then it doesn't seem to work. Does anyone know an explanation for this behavior and how do go about remedying it?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
All execution stops at
$client=new nusoap_client("http://www.
tried putting it in an exception/catch block but nothing appears.
quote is set as well as the value of the symbol.
any ideas?
When you add your conditional statement, are you putting the require_once in the conditional or leaving it at the beginning of the code?
It sounds like the possible problem is some of the code is needed to be run before headers are sent and in the conditional they are running after or if the require_once file is being called inside of the conditional, it's adding functions that should not be wrapped in the conditional.
If that's the case - keep your require_once line at the beginning, and place the rest in the conditional statement.
I do it on the first line before I put any HTML etc like:
<?php require_once('nusoap.php')
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtm
<html>
<head>
the nusoap code goes later after the form is submitted. (to itself, which I thought might also be a problem?) so the page is default.php, and the form points to default.php.
Any other thoughts?
Business Accounts
Answer for Membership
by: DzynitPosted on 2009-11-02 at 10:13:26ID: 25721908
When you say it's not working, do you mean it's not executing or it's causing an error?
Also, have you tested echoing the $_GET['quote'] to be sure that it is actually set so that the if statement is running?