[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-31-2006, 11:15 AM   · #1
ridesign1
NamePros Regular
 
ridesign1's Avatar
 
Trader Rating: (16)
Join Date: Mar 2005
Posts: 821
NP$: 1108.00 (Donate)
ridesign1 has a spectacular aura aboutridesign1 has a spectacular aura about
Question PHP include problem 50NP$ to solve

Hi,
I am using the code:
in a file called: test.php

EDIT: SOLVED

there is no other code in the page other the one above, but if i put the url into the browser it works fine, what am I doing wrong.

If someone can help me get this working i will pay 50NP$

Thanks


Please register or log-in into NamePros to hide ads

Last edited by ridesign1 : 05-31-2006 at 05:12 PM.
ridesign1 is offline   Reply With Quote
Old 05-31-2006, 11:30 AM   · #2
iNod
Eating Pie
 
iNod's Avatar
 
Name: Steve
Location: Canada
Trader Rating: (66)
Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 (Donate)
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Hello,

First include can only include internal files (files on YOUR server). So that will not work. Now what are you trying to do?

- Steve
__________________
RegisterDub.com - 200th Customer Milestone
ZuneParts.net - International Zune Parts and Accessories
FeaturedFont.com - One Top Free Font a Day!
iNod is offline   Reply With Quote
Old 05-31-2006, 11:40 AM   · #3
PoorDoggie
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Name: Tom
Location: UK
Trader Rating: (36)
Join Date: Jan 2005
Posts: 2,390
NP$: 300.50 (Donate)
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
oh I see - you can't do that.

you will need to use frames. It seems as if there is something that won't parse in that external file.

You should never include external files anyway, even though it is trade doubler. Someone could easilly hack your server if you include a malicious file of theirs.
PoorDoggie is offline   Reply With Quote
Old 05-31-2006, 11:44 AM   · #4
iNod
Eating Pie
 
iNod's Avatar
 
Name: Steve
Location: Canada
Trader Rating: (66)
Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 (Donate)
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Try to refrain from the frames. All they do is cause alot of problems.

- Steve
__________________
RegisterDub.com - 200th Customer Milestone
ZuneParts.net - International Zune Parts and Accessories
FeaturedFont.com - One Top Free Font a Day!
iNod is offline   Reply With Quote
Old 05-31-2006, 11:51 AM   · #5
ridesign1
NamePros Regular
 
ridesign1's Avatar
 
Trader Rating: (16)
Join Date: Mar 2005
Posts: 821
NP$: 1108.00 (Donate)
ridesign1 has a spectacular aura aboutridesign1 has a spectacular aura about
hi, thanks for your reply.
trade doubler allow users to use their file, (According to their manual) but i can't get it to work, also no one in trade doubler has any idea about it.
you can include external files can't you? i can do yahoo.

If you paste the url into your browser, you should see a product i am trying to get that html by using the include function.

can you suggest any other way of doing this?

Last edited by ridesign1 : 05-31-2006 at 11:55 AM.
ridesign1 is offline   Reply With Quote
Old 05-31-2006, 11:55 AM   · #6
iNod
Eating Pie
 
iNod's Avatar
 
Name: Steve
Location: Canada
Trader Rating: (66)
Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 (Donate)
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Include Cannot include external files UNLESS your hosting company has it turned on in PHP.INI in which case you should get a knew one. This is a HUGE secruity issue. As poordoggie said. People can include files which can cause serious dmg to your account and website.

Now with that over. What do you mean by using their files? I believe what you are trying to do is include a js file on anothers site on your site?

Like a banner exchange site or something?

Could you explain some mroe please?

- Steve

Try this

Code:
<script src="http://pf.tradedoubler.com/pf/pf?a=1027441&description=(new)&xslUrl=http://img.tradedoubler.com/images/xsl/xsl12.xsl&maxResults=1&firstResult=0&oe="></script>


If that doesn't work you may want to try
Code:
<iframe src="http://pf.tradedoubler.com/pf/pf?a=1027441&description=(new)&xslUrl=http://img.tradedoubler.com/images/xsl/xsl12.xsl&maxResults=1&firstResult=0&oe="></iframe>



Let me know if those work for you.

- Steve
__________________
RegisterDub.com - 200th Customer Milestone
ZuneParts.net - International Zune Parts and Accessories
FeaturedFont.com - One Top Free Font a Day!
iNod is offline   Reply With Quote
Old 05-31-2006, 12:03 PM   · #7
ridesign1
NamePros Regular
 
ridesign1's Avatar
 
Trader Rating: (16)
Join Date: Mar 2005
Posts: 821
NP$: 1108.00 (Donate)
ridesign1 has a spectacular aura aboutridesign1 has a spectacular aura about
I am trying to use a data feed they provide me of the product and display it on my site.
But i don't want to use the iframe, as it is not spiderable as part of my site.

I think it is a xml file, which gets formatted
http://pf.tradedoubler.com/pf/pf?a=1027441&description=(new)&maxResults=1&firstResult=0&oe=

hope that makes sense
let me know what you can suggest.
----
if i do include("http://yahoo.com");
it displays on my site, does this mean my host has enabled it in php.ini
i thought hostingzoom was a big reliable company- am i incorrect?
ridesign1 is offline   Reply With Quote
Old 05-31-2006, 12:10 PM   · #8
Noobie
DNOA Member
 
Noobie's Avatar
 
Name: Shoei
Location: Montreal, Quebec, Canada
Trader Rating: (0)
Join Date: Feb 2006
Posts: 324
NP$: 65.00 (Donate)
Noobie is on a distinguished road
I suggest reading up a little on Parsing XML files.
http://www.devpapers.com/article/61
__________________
Goldkey.com is a scam
What's your BMI? | Timestamp Generator
Noobie is offline   Reply With Quote
Old 05-31-2006, 12:12 PM   · #9
ridesign1
NamePros Regular
 
ridesign1's Avatar
 
Trader Rating: (16)
Join Date: Mar 2005
Posts: 821
NP$: 1108.00 (Donate)
ridesign1 has a spectacular aura aboutridesign1 has a spectacular aura about
the 2nd one works which is what they provide:

trade doubler put in thier manual:
If your site is running on PHP you can use the PHP function ‘include’ with the same URL that is generated for iframe src in show code. This will only work if your web host allows include of external http resources.
ridesign1 is offline   Reply With Quote
Old 05-31-2006, 04:28 PM   · #10
PoorDoggie
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Name: Tom
Location: UK
Trader Rating: (36)
Join Date: Jan 2005
Posts: 2,390
NP$: 300.50 (Donate)
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
if it is XML you can parse it as such, but if you run it in a browser it seems to be formatted, and therefore dosen't seem to be XML (I haven't looked at the source though). I think that your server cannot use external includes.

options:
1. Ask your host to turn that feature on, don't think they will though, especially if it is a shared server
2. Use frames - they don't cause that many problems, and if you use <noframe> tags you can easilly substitute it for something for older browsers (an image maybe)
3. If it is XML you can easilly find an XML parser online somewhere and "rebuild" it into your website somewhere

good luck

Just thought - you could do something like this:

PHP Code:
$handle = fopen("http://pf.tradedoubler.com/pf/pf?a=1027441&description=(new)&xslUrl=http://img.tradedoubler.com/images/xsl/xsl12.xsl&maxResults=1&firstResult=0&oe=","rb");
$content = "";
while (!
feof($handle)) {
  
$content .= fread($handle, 8192);
}
fclose($handle);
echo
$content;


That should work. That will open the URL for the feed and then take the code from it and just echo it onto your site. Put that code where you want the feed to display and it should show up.

Tom
PoorDoggie is offline   Reply With Quote
Old 05-31-2006, 05:05 PM   · #11
nasaboy007
NamePros Regular
 
Location: mysitememberships.com
Trader Rating: (32)
Join Date: Jul 2005
Posts: 925
NP$: 4800.90 (Donate)
nasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to beholdnasaboy007 is a splendid one to behold
question:

if u get a server with external include activated, and u put in to include a .php file (with extensive scripting), wud u get the php code or a server parsed version? since when u include it puts the source rather than execute the code.

if so, wudnt this be a big security risk for ppl with private scripts running?or even ppl who have database connection info in their scripts...
__________________
nasaboy007 is offline   Reply With Quote
Old 05-31-2006, 05:10 PM   · #12
ridesign1
NamePros Regular
 
ridesign1's Avatar
 
Trader Rating: (16)
Join Date: Mar 2005
Posts: 821
NP$: 1108.00 (Donate)
ridesign1 has a spectacular aura aboutridesign1 has a spectacular aura about
thanks that works,
I spent a whole day and still couldn't do it

thanks alot
NP$ sent
ridesign1 is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
RealTechNetwork EscrowDNS Hunting Moon
Advertise your business at NamePros
All times are GMT -7. The time now is 10:31 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0