Current location: Hot Scripts Forums » Programming Languages » PHP » Help me..in php(Error in xml file)


Help me..in php(Error in xml file)

Reply
  #1 (permalink)  
Old 10-12-10, 06:05 AM
sms4mee sms4mee is offline
Newbie Coder
 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Question Help me..in php(Error in xml file)

Hi, I am using php code but i have get one error in php..

my code
----------------------------------------------------------------------------------------------
<?php
echo " <iframe allowtransparency=\"true\" src =\"http://api.myvaluefirst.com/psms/servlet/psms.Eservice2?data=<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><!DOCTYPE MESSAGE SYSTEM \"http://127.0.0.1/psms/dtd/messagev12.dtd\" ><MESSAGE VER=\"1.2\"><USER USERNAME=\"usernamehere\" PASSWORD=\"passwordhere\"/><SMS UDH=\"0\" CODING=\"1\" TEXT=\"hi\" PROPERTY=\"0\" ID=\"\">
<ADDRESS FROM=\"sms4mee\" TO=\"9767960996\" SEQ=\"1\" TAG=\"\" />
</SMS></MESSAGE>&action=send\"> </iframe>";
?>

-------------------------------------------------

BUT I GOT ONE ERROR

ERROR..=

XML Parsing Error: no element found
Location: http://api.myvaluefirst.com/psms/ser...xml%20version=
Line Number 1, Column 1:

---------------------

so please help me and let me know hot to modify this code.

please , please please help me.......
Reply With Quote
  #2 (permalink)  
Old 10-12-10, 08:00 AM
bizzar528's Avatar
bizzar528 bizzar528 is offline
Community Liaison
 
Join Date: Sep 2004
Location: Pennsylvania, US
Posts: 1,550
Thanks: 2
Thanked 16 Times in 15 Posts
That seems wrong for some reason. You have an iframe which is just a window to another url, with a url pointing to http://api.myvaluefirst.com/psms/servlet/psms.Eservice2, which is ok, but then your trying to pass it a url variable data with xml content. At a minimum, you would need to do an htmlentities() on the data so it can be passed via url.

Though, this isn't really the best method of what you should be doing since your passing username and password values in a url string.

So I have to ask... what are you trying to accomplish? And why are you passing xml data as a url variable to an iframe src???
__________________
Yep, it's a signature...
Reply With Quote
  #3 (permalink)  
Old 10-20-10, 01:51 AM
sms4mee sms4mee is offline
Newbie Coder
 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
thanks

hi...thank you...

i would like to run this xml file for php form action file...then let me know how to use xml file ...

------------------------------------


I am fresher in this field so.....please help me.......

i want to send sms for there....

Thank you,,,

Please reply me....
Reply With Quote
  #4 (permalink)  
Old 10-20-10, 03:13 PM
bizzar528's Avatar
bizzar528 bizzar528 is offline
Community Liaison
 
Join Date: Sep 2004
Location: Pennsylvania, US
Posts: 1,550
Thanks: 2
Thanked 16 Times in 15 Posts
Doesn't the site have any code examples for their api? I would contact them about getting support if you have an account. Normally, you would need to POST the xml data to the php web services, and that's usually done using a web form or some php meant to send data and recieve a response.
__________________
Yep, it's a signature...
Reply With Quote
The Following User Says Thank You to bizzar528 For This Useful Post:
sms4mee (10-21-10)
  #5 (permalink)  
Old 10-21-10, 04:34 AM
sms4mee sms4mee is offline
Newbie Coder
 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Help me

Hello sir,

I would like to send sms on my website..

I want to use API..for this..

Please check this file

http://sms4mee.com/API.zip Download here. (also check in zip file- Description.txt)

i want to send sms with my API.... So please help me....and let me know how to make...

If you have possible then please make form action file (In .php)

send me on EMAIL : dnyanee17mee@gmail.com

Thank you,
Reply With Quote
  #6 (permalink)  
Old 10-21-10, 05:25 AM
sms4mee sms4mee is offline
Newbie Coder
 
Join Date: Oct 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Hello sir,

I would like to send sms on my website..

I want to use API..for this..

Please check this file

http://sms4mee.com/API.zip Download here. (also check in zip file- Description.txt)

i want to send sms with my API.... So please help me....and let me know how to make...

If you have possible then please make form action file (In .php)

send me on EMAIL : dnyanee17mee@gmail.com

Thank you,
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML PHP MYSQL- Writing to a xml file punky79 PHP 8 05-18-09 04:21 AM
Hello all, can you help me? K4ot1K Other Languages 2 01-23-09 05:23 AM
Write in a XML file with php pallabmondal123 PHP 2 04-15-06 05:34 AM
reading a remote xml file into a variable bdee1 PHP 1 12-20-05 12:32 PM
Perl Script to parse 1 xml file into many flsh Perl 0 08-09-04 10:21 AM


All times are GMT -5. The time now is 08:43 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.