php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6682 remote require is not perfect
Submitted: 2000-09-12 11:15 UTC Modified: 2000-09-12 13:39 UTC
From: tmnja at yahoo dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.1pl2 OS: Linux RedHat 6.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tmnja at yahoo dot com
New email:
PHP Version: OS:

 

 [2000-09-12 11:15 UTC] tmnja at yahoo dot com
1st file in my working machine is 
--------------------------------- 
<? 
require ("http://targetDomain/test_remote.php"); 
testPr(); 
?> 

2nd file on targetDomain(other machine) is 
------------------------------------------ 
<? 
echo("this is test_remote.php"); 
function testPr() { 
echo("remote : testPr()"); 
} 
?> 

When I execute 1st file, it prints out : 
---------------------------------------- 
this is test_remote.php 
Fatal error: Call to undefined function: testpr() 
in 1st file on line 3 


I know that the 1st file required the 2nd file successfully because it printed out the echo statement of 2nd file. 
However I cannot understand why it cannot use the function of the remote file. 

OS : ReaHat 6.0 
PHP : 4.0 
apache : 1.3 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-12 13:39 UTC] stas@php.net
Yes, this is how it works. Please read the manual about it.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 13:00:01 2026 UTC