Jump to content


Photo

Receiving Live data feeds


  • Please log in to reply
8 replies to this topic

#1 Briant142

Briant142
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 19 July 2006 - 10:39 PM

I need to setup a php page that will accept data feed from a vendor.  The data is names and addresses and emails sent on a live feed as the customer signs up at my vendors sight.  My vendor has it set up to push out this data to me.  How do I design a page to accept the data as they are pushing it to me?  I have php and mysql running on my webserver and all I need to do now is enter the parameters to accept the data as it is sent and put it into a database. 

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 19 July 2006 - 10:45 PM

What do you meen by them pushing the data to you? Most feeds are xml, and very easy to impliment in php 5, but have nothing to do with pushing.

#3 Briant142

Briant142
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 19 July 2006 - 10:55 PM

Not sure pushing is correct term.  They just said that I had to setup a page to receive the parameters. 

#4 Briant142

Briant142
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 19 July 2006 - 11:02 PM

What questions should I ask my vendor to know what I need to do?

#5 Briant142

Briant142
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 19 July 2006 - 11:15 PM

Just got off the phone and they said that they use .net.  All I had to do was give them the directory that the php site was located and they could start posting there.  I also have the parameters.  Im assuming that these are the names of the fields to asccept - IE:

– fname = first name of the user associated with the email.
– lname = source_url, the opt in site, example: www.mysite.com.
– addr1 = address.
– addr2 = unit, Suite or apartment number.
– city = city.
– state = 2 character (US and CA only)
– gender = 1 character, m=male, f=female.
– phone = (mask 999-999-9999)
– country = 3 character ISO compliant code. (mask XXX)
– dob = date of birth (mask MM/DD/YYYY)


#6 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 19 July 2006 - 11:34 PM

Ah, so when they say they are posting it then it probably means they will send the data via POST, which can be accessed in $_POST
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

#7 Briant142

Briant142
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 19 July 2006 - 11:46 PM

Ok so I need to use the $_POST.  I do not know where to start.  What do I need to do.  Thank you in advance for the help - I am in way over my head here.  I have PHP and mysql and apache installed so I think I am ready to begin with developing the page and linking it to a database right?

#8 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 19 July 2006 - 11:53 PM

Well, first you'd take in each variable YOU need, and make them usable, for instance:
$input = array();
$input['fname'] = $_POST['fname'];
$input['lname'] = $_POST['lname'];
//And so on

You will need to create a database and table, if you have PHPMyAdmin or can install it then that would be the easiest way.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

#9 Briant142

Briant142
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 21 July 2006 - 02:59 AM

ok - I have the code in place and I have installed phpmyadmin - I have created the database and the table.  where do I reference the database name in the code of the site. and how do I test it?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users