I must be blind...or not searching for the right thing. I have a php script that will allow me to show auction items from ebay in php pages. It is not specifically for Drupal.
I would think that I could put it in a node, set the filter to include php code, put the 2 dependent php files in my ./files directory and everything would work fine. Of course, I am wrong about this. I can get it to work beautifully outside of Drupal, but as soon as I put it in a node, I get a whole bunch of errors.
This is how it works: I'm putting about 7 lines of php code in the node body (between the <? php ?>) tags. In these 7 lines I put in info about what auctions I want to pull. It then uses 2 other php files, and a .html file to pull together the rest of the link to bring down the information from eBay's api and drop it into my page.
Here's what I'm wondering:
1. Is it possible to have a php script like this running in a node when it doesn't pull any info from my database?
1.a - if so, where should the other .php files and .html files that it calls go (I thought /files would be the best place)
2. If it's not possible, do I need to build some sort of custom mod to incorporate this feature into my website?
If anyone feels like helping, but would like to see some code that i'm using before commenting, please respond and I'll post it if necessary.
Thanks...I'm still learning Drupal and don't really know any php yet. I'm trying to figure stuff out as I get to it, and I'd really appreciate a little direction here. I know I can get this script to work in other CMS systems, but I really like Drupal and would like to find a solution.
Comments
=-=
files wouldn't be the best place.
create a folder called ebay put your php files in there. insure that the code you are pasting to the node, refer to the correct directory. without seeing the code you are adding to the node and the errors it's a bit difficult to diagnose.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Ok, so I put all of the
....
Revising my response...
so I put the php files in a /ebay folder. Still had a problem. Turns out there was an error check in the php file I was calling for that drupal didn't agree with. Once I removed it, everything works great!
Thanks for your help! I do really appreciate you taking the time to stear me in the right direction!