Toggle navigation
TechnoWikis.com
Email or Username
Password
Remember
Login
Register
|
I forgot my password
All Activity
Questions
Hot!
Pending
Ask a Question
Privacy Policy
Contact
Read XML from PHP - Utility in SEO and to share content
Home
Tutorials
Digital Marketing
SEO
Read XML from PHP - Utility in SEO and to share...
(adsbygoogle = window.adsbygoogle || []).push({});
+4
votes
222
views
Read XML from PHP - Utility in SEO and to share content
asked
Jun 24, 2019
in
SEO
by
backtothefuture
(
552k
points)
reopened
Jun 24, 2019
|
222
views
answer
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Add answer
Cancel
1
Answer
+5
votes
Best answer
The advantage of distributing content in XML is that other websites or systems can communicate and download or request information without having to access our database.
We can also use it for Seo allowing other websites to publish information on our website.
Example linking an XML of Sports
We will take a feed from a newspaper that makes available a sports xml
http: //www.diariosur...ds/deportes.xml
The xml file has a structure that we can see if we copy your url in a browser and then we will see the source code or downloading and viewing it in some software that supports xml here use Netbeans to order it.
Then I will use a php function called
simple_load_xml ()
to read the file externally, that is, from the journal server.
It is important to note here that the other server must allow me to read remotely and I must have the function activated in my apache but it will not work.
We create a script that will read and process the XML file.
As a result of the process and listed in html we obtain
Then we can add css and design that we want, or save this information.
Also in the same way we can offer content via generating an XML as an RSS channel for other websites.
The interesting thing is that every time we update our xml it will automatically be updated in all the websites where it is shared, it can also be used for business applications where it is necessary to receive and generate distributed information that is easily updated, regardless of the system that performs the query, granting it a lot of flexibility to the user.
Using XML for Business
XML structures can also be used for commercial transactions such as Paypal, Sermepa, La Caixa and many others, such as the one used by BBVA for its payment gateway.
Once the payment gateway is processed, an identification number of the trade is generated and from this we can connect with the POS (
terminal point of sale
), so that the users can make payments and we can receive data about the specific operations.
Here we create a PHP script with the xml that we generate to send to the POS from a web form with an order made by a user.
When we send the XML the POS processes it and responds with an xml, but via url so we must read the xml from a request parameter that the POS sends.
After reading the xml, very similar to how we did it at the beginning, we will determine the
status
of the payment, we will obtain status 2 if the payment was made, but we will obtain an error code and what is the cause to inform the client.
There are other utilities such as offering our customers a catalog of products that update prices or stock automatically from any device or platform, information available for different areas of a company, but distributing the information in XML without giving them access to the database.
answered
Jun 24, 2019
by
stackoverflow
(
3.5m
points)
edited
Jun 24, 2019
ask related question
comment
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Add comment
Cancel
Related questions
+3
votes
1
answer
Seo positioning from PHP and Apache
asked
Jun 24, 2019
in
SEO
by
backtothefuture
(
552k
points)
|
366
views
+3
votes
1
answer
SEO tools to protect our content and web design
asked
Jun 24, 2019
in
SEO
by
backtothefuture
(
552k
points)
|
215
views
+5
votes
1
answer
How to create a Sitemap xml file
asked
Jun 23, 2019
in
SEO
by
backtothefuture
(
552k
points)
|
284
views
+4
votes
1
answer
The content and importance of keywords and SEO
asked
Apr 17, 2023
in
SEO
by
backtothefuture
(
552k
points)
|
72
views
+5
votes
1
answer
Seo and Web Usability - The User's Vision
asked
Jun 24, 2019
in
SEO
by
backtothefuture
(
552k
points)
|
198
views
Sponsored articles cost $40 per post. You can contact us via
Feedback
All categories
Tutorials
7.5k
Microsoft
1.9k
Android
1.4k
Security
120
Linux / Unix
543
Internet
757
Virtualization
104
Apple
611
Networks
64
Other Devices
321
Other Applications
184
Hardware
19
Development
53
Digital Marketing
47
SEM
20
SEO
25
Social Media
2
Databases
14
Graphic Design
30
Guides
794
GraphicDesign
54
Networking
4
PlayStation
186
Gaming
55
Linux/Unix
85
Manzana
33
Otherdevices
38
Otherapps
49
Digitalmarketing
39
Safety
1
Developing
2
Help
685
Social Networks
34
Android Tutorial
549
iPhone Tutorial
267
News
17
Social
6
Phone
11
Telephone
9
Applications
167
Smartphones
3
Cell Phones
11
Applications
25
Travels
6
Photo
21
Education
18
Games
25
Internet
14
Music
8
Technique
10
Video
6
Windows
5
Apple
2
Cell Phones
3
TikTok
216
Trips
2
House
1
Operating System
5
Tips & Tricks
892
Solutions
6
Tutorials
3
FAQ
1
Applications
5
Cell Phones
2
Tutorials
4
Computers
6
Tutoriales
2
8
Technology
2
In Computers
1
In Applications
2
Tutorials Tutorials
9
Applications Applications
25
Aplicaciones Applications
4
Devices Devices
5
Tutoriales Tutorials
1
Tutorials u00a0 Tutorials
2
Applications u00a0 Applications
2
Devices u00a0 Devices
1
OS OS
1
Etc Etc
2
Most popular questions within the last 30 days
Please leave a comment about whether the solution works or not (with device model)
[X]Close
10,659
questions
10,791
answers
510
comments
3
users