You are here: Re: Including a .php file from another server? « PHP Programming Language « IT news, forums, messages
Re: Including a .php file from another server?

Posted by Jerry Stuckle on 09/25/05 06:14

hntgzr wrote:
> I am trying to include a function in a .php file on a different server from
> the main .php files.
>
> I am using:
>
> include_path=http://www.anotherserver.com/foldername;
> include(http://www.anotherserver.com/foldername/phpfiletocall.inc);
>
> The .inc file is php formatted. Variables are passed to it (not via GET or
> POST though) and returned using return(variablenames, etc);
>
> But for some reason it doesn't appear to work properly.
>
> Am I correct in using the .inc extension?
> Are the commands above correctly written?
>
> Basically I am trying to use the fsockopen function in a .php file on
> another server where I know it works and return the results to a server
> where the fsockopen command doesn't work.
>
> Any help or guidance would be greatly appreciated.
> TIA
> h
>
>

When you access your php file this way, it has already been parsed by
the web server. It's just like accessing it from your browser.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация