
Archive Tutorials
Discussion Home
Login / Register
Board List
PHP programming
General
Links
How to save gas 25% or more
Marshall Reddick
Network
Marketing Forums
Income Tax Help
Lose 10 Pounds in 3 Weeks
PHP Forum Script
Online Contest

Learn PHP in 47 hours!
|
|
|
 |
|
|
|
using php for calling up pages from different server
by tentacle on Mon 05/08/2006 10:14 PM |
Hi, my name is mato and I am quite fresh to php. here's my first question: I've builed a page on server 1 which has this simple include code <?php include('http://www.server2.com/page_on_other_server.php'); ?> . as you can see, the page on server 1 has an included page which resides on a different server (server 2). Would this cause any problems? I tested it and it works but there's always a but ;)... do you have any experience with this or do you know if it really works? thanks, mato
|
|
[Reply]
[Back to Top]
|
it should work
by uclaboyz on Tue 05/09/2006 12:37 PM |
Hi Mato, I have done this and it has worked for me. What are you trying to accomplish with this, though? Just keep in mind that when you include from server 1, a php file from server 2, that php file is executed on server 2. Steven
|
|
[Reply]
[Back to Top]
|
it works
by tentacle on Thu 05/11/2006 04:34 PM |
because certain information can only be on server 2 and I don't have access to that server (podcasting team takes care of that) that's why i built a site like this so that i can change the content from server 1 around the podcasting content that they're putting on. But the guy who runs the podcasting thingy said that it's a bad idea that it would really slow down the process and there's some security issues (dont know exactly what) so i said ok i'll leave it.
|
|
[Reply]
[Back to Top]
|
I wonder
by uclaboyz on Thu 05/11/2006 05:51 PM |
I wonder what security issues they are referring to, because if you can include their php file, so can anybody. Can you just use <iframe> tag to include the podcast file?
|
|
[Reply]
[Back to Top]
|
exactly
by tentacle on Thu 05/11/2006 06:32 PM |
I could use iframes as well yeah... I was wondering what the security issue would be as well but the guy was so pissed off that i even came up with this idea and wasn't having any of it. and he's supposed to be very good or something. anyways, iframes yes, i'll ask him if he's up for doing that but it's a bit on thin ice. ;)
|
|
[Reply]
[Back to Top]
|
|
|
|
|
|