View Full Version : Apache server trying to integrate XML?
10-11-2002, 08:27 PM
I just started a strategic relation with Ah-Ha and I do not know anything about xml if someone could help me out that would be awsome.
10-12-2002, 02:05 AM
If you mean serving XML by mime-types, you can ask them to include statements like the following:
AddType application/xml .xml
AddType application/xhtml+xml .xhtml
etc. etc. Or, if they allow .htaccess files, you can put them in yourself.
If you mean PHP, I strongly recommend you turn *off* php short open tags, as any sort of processing instruction will otherwise go through PHP -- with unpredictable results.
10-12-2002, 05:56 PM
Sorry, I should have been more detailed. What I am trying to do is integrate Ah-Ha's search results with mine. I have no clue on how to use XML and if I want this to look professional this is the only alternative. I have an apache server and from what I am gathering I need to use PHP to enable XML...
If someone helps me with this that would be great. You scratch my back I'll scratch yours.
10-12-2002, 08:49 PM
No, you don't need PHP to enable XML. But if you run PHP and XML on the same server, you might have issues. That's what my reply meant.
PHP has some XML parser functions, and so does Perl, I believe -- but PHP relies on expat (a C-based XML parser), and maybe Perl does too.
Can you show us some source code of what you have and what you want?
10-12-2002, 08:59 PM
Here is the example source code.
Partner Integration (http://www.ah-ha.com/partners/partners_xmlv4_integration.asp)
CID is: 53409
They don't really set-up anything for you they just give you examples and your partner code.
10-12-2002, 11:35 PM
Okay, it's a straight-forward, well-formed XML document. Good.
What do you want to do with the data it contains? :) What are the end-goals you're trying to attain?
10-13-2002, 02:16 AM
Well, I am running a PHP directory and if at all it is possible I would like to integrate their results kind of like msn, and yahoo does. When you submit a search at yahoo you will see sponsored listings at the top and bottom of the results defined by keywords.
To be specific my search directory community is geared towards payment processing companies (ex: merchant account, check processing, atm processing, pos, payment gateways). I would like the XML to only bring up payment processing providers or related results (business, financial, ecommerce, webmaster). The guy at Ah-Ha said that I can do all of this with the XML code. He also said that someone with experience in XML should be able to do it in minutes, I have know idea if that was glorified or not.
Am I making this sound more difficult then it should be? :)
10-15-2002, 03:10 AM
Ooh. I am afraid I have to step off of this one. I've signed a contract to do work for someone who may be a competitor to you. I don't want to get in trouble for violating my contract.
10-18-2002, 06:48 PM
I've done a bit of PHP-XML, and it certainly sounds like this would be a good option for you - you can use the XML parser to turn the xml document into an array, which you can sort, search through etc.. and finally output as html.
Have a look at http://www.php.net/manual/en/ref.xml.php which will give you the parsing functions, and discusses their uses.
10-19-2002, 07:38 PM
Thanks, for the advice. I just don't have any clue what so ever about programming. If someone could help me out, like I said you scratch my back i'll scratch yours.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.