Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > PHP Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-12-2006, 06:06 PM   #1 (permalink)
Leslie
Junior Member
 
Join Date: Aug 2006
Posts: 2
Default remote includes

I hva successfully used includes for php scripts on my website, but can't get them to work for a script located on another website. Both sites run php 4. I want website A to include .php scipts from website B and then use the variables generated from website B's script on website A. What's the secret here? I'd greatly appreciate any help anyone can provide. Thanks.
Leslie is offline   Reply With Quote
Sponsored Links
Old 08-12-2006, 07:34 PM   #2 (permalink)
ahk2chan
Junior Member
 
ahk2chan's Avatar
 
Join Date: Aug 2006
Location: Canada
Posts: 19
Default Re: remote includes

Hm... what specifically has failed? you may want to post some code... i was reading the php include document and it mentioned that it is do-able. try: php.net/include/ and see if it helps.
__________________
My Blog - ahk2chan blog - my random thoughts.
ahk2chan is offline   Reply With Quote
Old 08-12-2006, 08:14 PM   #3 (permalink)
Leslie
Junior Member
 
Join Date: Aug 2006
Posts: 2
Default Re: remote includes

I have been to "php.net/include/" and a host of other places which do all say it can be done (and warn of serious security problems in doing so) but I don't seem to understand how to write the path to get there.
Leslie is offline   Reply With Quote
Old 08-13-2006, 04:26 AM   #4 (permalink)
saidev
Junior Member
 
Join Date: Aug 2006
Posts: 28
Default Re: remote includes

I've tried this before but with no success, after I mention to the senior developer when I first started 6 years ago about doing that...this is what I he told me, what do I want to do that?
1. Include of remote php file is interpreted by the remote server, therefore, you are not actually getting the code and compile on the server you are on.
2. If you are want to include a file remotely, than you are sending your source via a connection(hopefully ssl) but in the case of non-secured line, people can just grab your source by listening to the wire.

Can you just copy the file to the other site?
If the php file is on the same server, can you just put that php file before the document root and make that readable by other web applications?
saidev is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 09:00 AM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums