We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

PHP tutorial

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
plumphp
Posts: 5
Joined: Wed Jun 14, 2006 2:27 pm

PHP tutorial

Post by plumphp »

When I add this line in my php code I get an error message:
I am using PHP 5.1.1

<?php

echo("<?xml version="1.0"?>\n");
echo("<vxml version="2.0">\n");
?>

Please advise.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR code using PHP

Post by support »

Hi,

In your IVR code, you need to escape any " characters that are part of the string argument:

<?php

echo("<?xml version=\"1.0\"?>\n");
echo("<vxml version=\"2.0\">\n");
?>


Also, it's more appropriate to search for IVR answers to such questions here: http://www.php.net.


Regards,

Plum Support

Post Reply