RE: [PHP] Include Problem

2008-06-24 Thread Jay Blanchard
[snip]
foreach ($lines2 as $line_num = $line2) {

echo pLine #b{$line_num}/b :  . htmlspecialchars($line2) .
/p;

}

include ('http://www.mysite.com/calculate.php');



My problem is that when I use a blank file that only has



?php  include 'http://www.mysite.com/calculate.php'; ?



The code works and displays what is meant to display. However, when I
copy this snippet into the code even outside the foreach loop, it does
not even read, or give me an error. Is there something I should not be
doing here?
[/snip]

If you get no error the file is being included properly. What is the
goal here? Is it to have calculate.php perform actions on the returned
data from lung.txt?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.

From: Jay Blanchard [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 1:10 PM
To: Wei, Alice J.; php-general@lists.php.net
Subject: RE: [PHP] Include Problem

[snip]
foreach ($lines2 as $line_num = $line2) {

echo pLine #b{$line_num}/b :  . htmlspecialchars($line2) .
/p;

}

include ('http://www.mysite.com/calculate.php');



My problem is that when I use a blank file that only has



?php  include 'http://www.mysite.com/calculate.php'; ?



The code works and displays what is meant to display. However, when I
copy this snippet into the code even outside the foreach loop, it does
not even read, or give me an error. Is there something I should not be
doing here?
[/snip]

If you get no error the file is being included properly. What is the
goal here? Is it to have calculate.php perform actions on the returned
data from lung.txt?

The goal is to do a word  count of what was in lung.txt, since I don't want the 
users to interact directly with this file. However, this is not showing up at 
all. Any ideas?

Thanks in advance.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include Problem

2008-06-24 Thread Jim Lucas

Wei, Alice J. wrote:


From: Jay Blanchard [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 1:10 PM
To: Wei, Alice J.; php-general@lists.php.net
Subject: RE: [PHP] Include Problem

[snip]
foreach ($lines2 as $line_num = $line2) {

echo pLine #b{$line_num}/b :  . htmlspecialchars($line2) .
/p;

}

include ('http://www.mysite.com/calculate.php');



My problem is that when I use a blank file that only has



?php  include 'http://www.mysite.com/calculate.php'; ?



The code works and displays what is meant to display. However, when I
copy this snippet into the code even outside the foreach loop, it does
not even read, or give me an error. Is there something I should not be
doing here?
[/snip]

If you get no error the file is being included properly. What is the
goal here? Is it to have calculate.php perform actions on the returned
data from lung.txt?

The goal is to do a word  count of what was in lung.txt, since I don't want the 
users to interact directly with this file. However, this is not showing up at 
all. Any ideas?

Thanks in advance.



Make sure you have these enabled

allow_url_fopen = On
allow_url_include = On

This might be your problem.  They limit things so remote files cannot be access 
via fopen/include/etc...


--
Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
by William Shakespeare


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.

From: Jim Lucas [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 1:32 PM
To: Wei, Alice J.
Cc: Jay Blanchard; php-general@lists.php.net
Subject: Re: [PHP] Include Problem

Wei, Alice J. wrote:
 
 From: Jay Blanchard [EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 1:10 PM
 To: Wei, Alice J.; php-general@lists.php.net
 Subject: RE: [PHP] Include Problem

 [snip]
 foreach ($lines2 as $line_num = $line2) {

 echo pLine #b{$line_num}/b :  . htmlspecialchars($line2) .
 /p;

 }

 include ('http://www.mysite.com/calculate.php');



 My problem is that when I use a blank file that only has



 ?php  include 'http://www.mysite.com/calculate.php'; ?



 The code works and displays what is meant to display. However, when I
 copy this snippet into the code even outside the foreach loop, it does
 not even read, or give me an error. Is there something I should not be
 doing here?
 [/snip]

 If you get no error the file is being included properly. What is the
 goal here? Is it to have calculate.php perform actions on the returned
 data from lung.txt?

 The goal is to do a word  count of what was in lung.txt, since I don't want 
 the users to interact directly with this file. However, this is not showing 
 up at all. Any ideas?

 Thanks in advance.


Make sure you have these enabled

allow_url_fopen = On
allow_url_include = On

This might be your problem.  They limit things so remote files cannot be access
via fopen/include/etc...

One of them was off when I checked, but it appears that the output does not 
change when I have the foreach and the include in the file. This is not in a 
function or a subroutine, so this should not have a global problem, I think. 
Could there be other things I missed?

Alice

--
Jim Lucas

Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
 by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include Problem

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 1:32 PM, Jim Lucas [EMAIL PROTECTED] wrote:

 Make sure you have these enabled

 allow_url_fopen = On
 allow_url_include = On

In addition to what Jay and Jim already correctly suggested, you
may also want to try this at the top of your files to see if there are
any errors or hints at all:

?php
ini_set('display_errors','On');
error_reporting(E_ALL);
//  continue with your code here.
?

Further, you can echo out the response code from include, like so:

?php
echo include('http://www.mysite.com/calculate.php');
?

 or, with short_open_tags = On:

?=include('http://www.mysite.com/calculate.php');?

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Hi,

  This is the error I got:

Warning: include() [function.include]: URL file-access is disabled in the 
server configuration in C:\Inetpub\wwwroot\read.php on line 29
Warning: include(http://www.mysite.com/calculate.php) [function.include]: 
failed to open stream: no suitable wrapper could be found in 
C:\Inetpub\wwwroot\read.php on line 29
Warning: include() [function.include]: Failed opening 
'http://www.mysite.com/calculate.php' for inclusion 
(include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\read.php on line 29

When I installed the PHP with Apache, I selected the Unix binary, but the 
message above implies that it somehow does not know what file to look for, 
right?

Is there somehow I can solve this? My calculate.php is stored on a Linux, while 
my read.php is on a Windows.
Thanks in advance.

Alice
==
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]

From: Daniel Brown [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 1:51 PM
To: Jim Lucas
Cc: Wei, Alice J.; Jay Blanchard; php-general@lists.php.net
Subject: Re: [PHP] Include Problem

On Tue, Jun 24, 2008 at 1:32 PM, Jim Lucas [EMAIL PROTECTED] wrote:

 Make sure you have these enabled

 allow_url_fopen = On
 allow_url_include = On

In addition to what Jay and Jim already correctly suggested, you
may also want to try this at the top of your files to see if there are
any errors or hints at all:

?php
ini_set('display_errors','On');
error_reporting(E_ALL);
//  continue with your code here.
?

Further, you can echo out the response code from include, like so:

?php
echo include('http://www.mysite.com/calculate.php');
?

 or, with short_open_tags = On:

?=include('http://www.mysite.com/calculate.php');?

--
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include Problem

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. [EMAIL PROTECTED] wrote:
 Hi,

  This is the error I got:

 Warning: include() [function.include]: URL file-access is disabled in the 
 server configuration in C:\Inetpub\wwwroot\read.php on line 29
 Warning: include(http://www.mysite.com/calculate.php) [function.include]: 
 failed to open stream: no suitable wrapper could be found in 
 C:\Inetpub\wwwroot\read.php on line 29
 Warning: include() [function.include]: Failed opening 
 'http://www.mysite.com/calculate.php' for inclusion 
 (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\read.php on line 29

Did you remember to restart your web server after making the
changes that Jim mentioned?

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.

From: Daniel Brown [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 1:59 PM
To: Wei, Alice J.
Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net
Subject: Re: [PHP] Include Problem

On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. [EMAIL PROTECTED] wrote:
 Hi,

  This is the error I got:

 Warning: include() [function.include]: URL file-access is disabled in the 
 server configuration in C:\Inetpub\wwwroot\read.php on line 29
 Warning: include(http://www.mysite.com/calculate.php) [function.include]: 
 failed to open stream: no suitable wrapper could be found in 
 C:\Inetpub\wwwroot\read.php on line 29
 Warning: include() [function.include]: Failed opening 
 'http://www.mysite.com/calculate.php' for inclusion 
 (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\read.php on line 29

Did you remember to restart your web server after making the
changes that Jim mentioned?

Yes, I restarted my Apache twice after each of the changes I made. As I 
mentioned before, the error I get from calculate.php is located on the Linux 
server. Does this have to do anything with the compilation because it is trying 
to find a Windows directory?

Alice
--
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 1:04 PM
 To: Daniel Brown
 Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net
 Subject: RE: [PHP] Include Problem
 
 
 From: Daniel Brown [EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 1:59 PM
 To: Wei, Alice J.
 Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net
 Subject: Re: [PHP] Include Problem
 
 On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. [EMAIL PROTECTED]
 wrote:
  Hi,
 
   This is the error I got:
 
  Warning: include() [function.include]: URL file-access is disabled
in
 the server configuration in C:\Inetpub\wwwroot\read.php on line 29
  Warning: include(http://www.mysite.com/calculate.php)
 [function.include]: failed to open stream: no suitable wrapper could
be
 found in C:\Inetpub\wwwroot\read.php on line 29
  Warning: include() [function.include]: Failed opening
 'http://www.mysite.com/calculate.php' for inclusion
 (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\read.php on line
 29
 
 Did you remember to restart your web server after making the
 changes that Jim mentioned?
 
 Yes, I restarted my Apache twice after each of the changes I made.
 As I mentioned before, the error I get from calculate.php is located
on
 the Linux server. Does this have to do anything with the compilation
 because it is trying to find a Windows directory?
 
 Alice

If you are trying to include() a remote file via HTTP, the remote server
will (most likely) translate the PHP code into the output that it would
produce if you were to visit the script with a web browser. It appears
you are trying to grab a PHP file from a remote server and execute it as
code, which won't work--at least not under normal circumstances.

HTH,


Todd Boyd
Web Programmer




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Hi,

  Thanks for the clarifcations.
  I have two more questions regarding this issue:

   1. If I try to do this from Windows platform to another Window platform work?
2. With this type of scenario, if I cannot use include, what type of 
options may I have?

Anything is appreciated.

Alice
==
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]

From: Boyd, Todd M. [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 2:37 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: RE: [PHP] Include Problem

 -Original Message-
 From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 1:04 PM
 To: Daniel Brown
 Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net
 Subject: RE: [PHP] Include Problem

 
 From: Daniel Brown [EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 1:59 PM
 To: Wei, Alice J.
 Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net
 Subject: Re: [PHP] Include Problem

 On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. [EMAIL PROTECTED]
 wrote:
  Hi,
 
   This is the error I got:
 
  Warning: include() [function.include]: URL file-access is disabled
in
 the server configuration in C:\Inetpub\wwwroot\read.php on line 29
  Warning: include(http://www.mysite.com/calculate.php)
 [function.include]: failed to open stream: no suitable wrapper could
be
 found in C:\Inetpub\wwwroot\read.php on line 29
  Warning: include() [function.include]: Failed opening
 'http://www.mysite.com/calculate.php' for inclusion
 (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\read.php on line
 29

 Did you remember to restart your web server after making the
 changes that Jim mentioned?

 Yes, I restarted my Apache twice after each of the changes I made.
 As I mentioned before, the error I get from calculate.php is located
on
 the Linux server. Does this have to do anything with the compilation
 because it is trying to find a Windows directory?

 Alice

If you are trying to include() a remote file via HTTP, the remote server
will (most likely) translate the PHP code into the output that it would
produce if you were to visit the script with a web browser. It appears
you are trying to grab a PHP file from a remote server and execute it as
code, which won't work--at least not under normal circumstances.

HTH,


Todd Boyd
Web Programmer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 1:39 PM
 To: Boyd, Todd M.
 Cc: php-general@lists.php.net
 Subject: RE: [PHP] Include Problem
 
 Hi,
 
   Thanks for the clarifcations.
   I have two more questions regarding this issue:
 
1. If I try to do this from Windows platform to another Window
 platform work?
 2. With this type of scenario, if I cannot use include, what type
 of options may I have?
 
 Anything is appreciated.

---8--- snip

This is the error I got:
  
   Warning: include() [function.include]: URL file-access is disabled
 in
  the server configuration in C:\Inetpub\wwwroot\read.php on line 29
   Warning: include(http://www.mysite.com/calculate.php)
  [function.include]: failed to open stream: no suitable wrapper could
 be
  found in C:\Inetpub\wwwroot\read.php on line 29
   Warning: include() [function.include]: Failed opening
  'http://www.mysite.com/calculate.php' for inclusion
  (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\read.php on
 line
  29

---8--- snip

 If you are trying to include() a remote file via HTTP, the remote
 server
 will (most likely) translate the PHP code into the output that it
would
 produce if you were to visit the script with a web browser. It appears
 you are trying to grab a PHP file from a remote server and execute it
 as
 code, which won't work--at least not under normal circumstances.

Alice,

If the two Windows machines are on the same network, you can try to use
Windows' file sharing to do the job for you. For instance,

include('\\servername\dirname\filename.php');

Using HTTP from Windows to Windows would yield the same results as using
HTTP from Linux to Windows. You could host the files on a server that
does not parse PHP, and so they would be transmitted as plain text...
but then you get into issues of disclosing their contents to parties you
would rather leave in the dark (read: hackers).

You might consider using FTP, SCP, or another behind-the-scenes file
transfer agent to accomplish what it is you're trying to do. I believe
PHP already has several functions for use with FTP.

Good luck,


Todd Boyd
Web Programmer




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Boyd, Todd M. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 1:48 PM
 To: Wei, Alice J.
 Cc: php-general@lists.php.net
 Subject: RE: [PHP] Include Problem
 
  -Original Message-
  From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 24, 2008 1:39 PM
  To: Boyd, Todd M.
  Cc: php-general@lists.php.net
  Subject: RE: [PHP] Include Problem
 
  Hi,
 
Thanks for the clarifcations.
I have two more questions regarding this issue:
 
 1. If I try to do this from Windows platform to another Window
  platform work?
  2. With this type of scenario, if I cannot use include, what
type
  of options may I have?
 
  Anything is appreciated.
 
 ---8--- snip
 
 This is the error I got:
   
Warning: include() [function.include]: URL file-access is
 disabled
  in
   the server configuration in C:\Inetpub\wwwroot\read.php on line 29
Warning: include(http://www.mysite.com/calculate.php)
   [function.include]: failed to open stream: no suitable wrapper
 could
  be
   found in C:\Inetpub\wwwroot\read.php on line 29
Warning: include() [function.include]: Failed opening
   'http://www.mysite.com/calculate.php' for inclusion
   (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\read.php on
  line
   29
 
 ---8--- snip
 
  If you are trying to include() a remote file via HTTP, the remote
  server
  will (most likely) translate the PHP code into the output that it
 would
  produce if you were to visit the script with a web browser. It
 appears
  you are trying to grab a PHP file from a remote server and execute
it
  as
  code, which won't work--at least not under normal circumstances.
 
 Alice,
 
 If the two Windows machines are on the same network, you can try to
use
 Windows' file sharing to do the job for you. For instance,
 
 include('\\servername\dirname\filename.php');

*cough* ... I meant to double up on those backslashes. I'm not sure if
PHP supports forward-slash file/dir specifications in Windows, but to
double them all up would look like this:

Include(servername\\dirname\\filename.php);
 
 Using HTTP from Windows to Windows would yield the same results as
 using
 HTTP from Linux to Windows. You could host the files on a server that
 does not parse PHP, and so they would be transmitted as plain text...
 but then you get into issues of disclosing their contents to parties
 you
 would rather leave in the dark (read: hackers).
 
 You might consider using FTP, SCP, or another behind-the-scenes file
 transfer agent to accomplish what it is you're trying to do. I believe
 PHP already has several functions for use with FTP.


Todd Boyd
Web Programmer




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.

From: Boyd, Todd M. [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 2:53 PM
To: php-general@lists.php.net; Wei, Alice J.
Subject: RE: [PHP] Include Problem


  If you are trying to include() a remote file via HTTP, the remote
  server
  will (most likely) translate the PHP code into the output that it
 would
  produce if you were to visit the script with a web browser. It
 appears
  you are trying to grab a PHP file from a remote server and execute
it
  as
  code, which won't work--at least not under normal circumstances.

 Alice,

 If the two Windows machines are on the same network, you can try to
use
 Windows' file sharing to do the job for you. For instance,

 include('\\servername\dirname\filename.php');

*cough* ... I meant to double up on those backslashes. I'm not sure if
PHP supports forward-slash file/dir specifications in Windows, but to
double them all up would look like this:

Include(servername\\dirname\\filename.php);

 Using HTTP from Windows to Windows would yield the same results as
 using
 HTTP from Linux to Windows. You could host the files on a server that
 does not parse PHP, and so they would be transmitted as plain text...
 but then you get into issues of disclosing their contents to parties
 you
 would rather leave in the dark (read: hackers).

 You might consider using FTP, SCP, or another behind-the-scenes file
 transfer agent to accomplish what it is you're trying to do. I believe
 PHP already has several functions for use with FTP.

Sorry, I don't think I am intending on passing any file to whatever server.

All I need to do is to have my script be able to execute another program that 
can allow my  PHP script to pass the variables, so this may be using anything 
from PHP, Perl to C. I have seen in the PHP manual that there is this command 
called exec().

Is it possible that I could use something like exec($someurl) to execute the 
script? I tried doing this in PHP, but it tells me this:

arning: exec() [function.exec]: Unable to fork 
[http://www.mysite.com/calculate.php] in C:\Inetpub\wwwroot\read.php on line 31

Is there some way I can fix this error somehow? Or, is this not possible either?

Thanks for your help

Alice


Todd Boyd
Web Programmer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 3:11 PM
 To: Boyd, Todd M.; php-general@lists.php.net
 Subject: RE: [PHP] Include Problem
 
 
 From: Boyd, Todd M. [EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 2:53 PM
 To: php-general@lists.php.net; Wei, Alice J.
 Subject: RE: [PHP] Include Problem
 
 
   If you are trying to include() a remote file via HTTP, the remote
   server
   will (most likely) translate the PHP code into the output that it
  would
   produce if you were to visit the script with a web browser. It
  appears
   you are trying to grab a PHP file from a remote server and execute
 it
   as
   code, which won't work--at least not under normal circumstances.
 
  Alice,
 
  If the two Windows machines are on the same network, you can try to
 use
  Windows' file sharing to do the job for you. For instance,
 
  include('\\servername\dirname\filename.php');
 
 *cough* ... I meant to double up on those backslashes. I'm not sure if
 PHP supports forward-slash file/dir specifications in Windows, but to
 double them all up would look like this:
 
 Include(servername\\dirname\\filename.php);
 
  Using HTTP from Windows to Windows would yield the same results as
  using
  HTTP from Linux to Windows. You could host the files on a server
that
  does not parse PHP, and so they would be transmitted as plain
text...
  but then you get into issues of disclosing their contents to parties
  you
  would rather leave in the dark (read: hackers).
 
  You might consider using FTP, SCP, or another behind-the-scenes file
  transfer agent to accomplish what it is you're trying to do. I
 believe
  PHP already has several functions for use with FTP.
 
 Sorry, I don't think I am intending on passing any file to whatever
 server.
 
 All I need to do is to have my script be able to execute another
 program that can allow my  PHP script to pass the variables, so this
 may be using anything from PHP, Perl to C. I have seen in the PHP
 manual that there is this command called exec().
 
 Is it possible that I could use something like exec($someurl) to
 execute the script? I tried doing this in PHP, but it tells me this:
 
 arning: exec() [function.exec]: Unable to fork
 [http://www.mysite.com/calculate.php] in C:\Inetpub\wwwroot\read.php
on
 line 31
 
 Is there some way I can fix this error somehow? Or, is this not
 possible either?

Alice,

If you simply need to execute a remote PHP script and pass variables,
you could do it behind-the-scenes with cURL or AJAX, and pass the
variables in the url (i.e.,
http://www.mysite.com/script.php?param=value). cURL is capable of
retrieving the page (read: the results of the executed script), which
can then be parsed by your local script.

I actually did something like this where I scraped the World of Warcraft
Armory (ok, groan. No, seriously, let it out). I grabbed their XML
pages, parsed the info, and then pushed this info to a script on a
remote site of mine. I had to do this because the remote site I was
working with did not have cURL installed (nor could I install it myself
due to access restrictions). The remote script would return OK or
FAIL, and my script would expect one of these values and react
accordingly.

Is this a little bit more on target? I can supply you with source code
if you would like.

You could also use AJAX to populate an IFRAME with the results of a
remote PHP script, and then parse those values using a hidden form
submission, perhaps. Just some ideas.

HTH,


Todd Boyd
Web Programmer




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Alice,

If you simply need to execute a remote PHP script and pass variables,
you could do it behind-the-scenes with cURL or AJAX, and pass the
variables in the url (i.e.,
http://www.mysite.com/script.php?param=value). cURL is capable of
retrieving the page (read: the results of the executed script), which
can then be parsed by your local script.

I actually did something like this where I scraped the World of Warcraft
Armory (ok, groan. No, seriously, let it out). I grabbed their XML
pages, parsed the info, and then pushed this info to a script on a
remote site of mine. I had to do this because the remote site I was
working with did not have cURL installed (nor could I install it myself
due to access restrictions). The remote script would return OK or
FAIL, and my script would expect one of these values and react
accordingly.

Is this a little bit more on target? I can supply you with source code
if you would like.

You could also use AJAX to populate an IFRAME with the results of a
remote PHP script, and then parse those values using a hidden form
submission, perhaps. Just some ideas.

 I think that the variables passed to will be used by that code to do 
perform some operations on another remote machine, (according to what I got 
from my client, he calls this behind the scenes to avoid users screw up the 
front end, and he is thinking of using C,  Perl or Python), which is why I am 
hoping that I can produce one single script, and have it execute some script 
without the user pushing any button. I don't think I plan on scraping 
websites. However, if you are suggesting that it is easier to do in Ajax to do 
what I am intending to do here, I would love to check it out and forget about 
PHP (hopefully not).

   Most of the documentation I have been seeing on exec() seems to be 
executing UNIX commands at http://us2.php.net/manual/en/function.exec.php. One 
main issue, which I am not sure if it is entirely relevant, is that I am using 
PHP on Windows with my current script, (the one to execute things from), while 
the script that would be executed is located on a Linux machine. Would this be 
an issue when I am doing this with what I am trying to do here?

 Thanks in advance.

Alice

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 3:51 PM
 To: Boyd, Todd M.; php-general@lists.php.net
 Subject: RE: [PHP] Include Problem
 
 Alice,
 
 If you simply need to execute a remote PHP script and pass variables,
 you could do it behind-the-scenes with cURL or AJAX, and pass the
 variables in the url (i.e.,
 http://www.mysite.com/script.php?param=value). cURL is capable of
 retrieving the page (read: the results of the executed script), which
 can then be parsed by your local script.
 
 I actually did something like this where I scraped the World of
 Warcraft
 Armory (ok, groan. No, seriously, let it out). I grabbed their XML
 pages, parsed the info, and then pushed this info to a script on a
 remote site of mine. I had to do this because the remote site I was
 working with did not have cURL installed (nor could I install it
myself
 due to access restrictions). The remote script would return OK or
 FAIL, and my script would expect one of these values and react
 accordingly.
 
 Is this a little bit more on target? I can supply you with source code
 if you would like.
 
 You could also use AJAX to populate an IFRAME with the results of a
 remote PHP script, and then parse those values using a hidden form
 submission, perhaps. Just some ideas.

 ---
 
  I think that the variables passed to will be used by that code to
 do perform some operations on another remote machine, (according to
 what I got from my client, he calls this behind the scenes to avoid
 users screw up the front end, and he is thinking of using C,  Perl or
 Python), which is why I am hoping that I can produce one single
script,
 and have it execute some script without the user pushing any button. I
 don't think I plan on scraping websites. However, if you are
 suggesting that it is easier to do in Ajax to do what I am intending
to
 do here, I would love to check it out and forget about PHP (hopefully
 not).
 
Most of the documentation I have been seeing on exec() seems to
 be executing UNIX commands at
 http://us2.php.net/manual/en/function.exec.php. One main issue, which
I
 am not sure if it is entirely relevant, is that I am using PHP on
 Windows with my current script, (the one to execute things from),
while
 the script that would be executed is located on a Linux machine. Would
 this be an issue when I am doing this with what I am trying to do
here?

Alice,

exec() will execute Windows commands, as well. However, I'm not sure I
understand the reason for separating your script into two files--the
remote and the local scripts.

I will assume you are gathering data in your script (local), shipping
this off to a script on the client's machine (remote), and passing a
program (C/Python/Whatever) values you gathered using your script
(local).

Under this assumption, I would gather the data via
form/extraction/upload/whatever, and use cURL (a PHP library) to visit
the remote script, passing values either via GET or POST. The remote
script would then parse these values and send them to the appropriate
exec() command.

Am I off base?


Todd Boyd
Web Programmer




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.

==
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]

From: Boyd, Todd M. [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 4:55 PM
To: Wei, Alice J.; php-general@lists.php.net
Subject: RE: [PHP] Include Problem

 -Original Message-
 From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 3:51 PM
 To: Boyd, Todd M.; php-general@lists.php.net
 Subject: RE: [PHP] Include Problem

 Alice,

 If you simply need to execute a remote PHP script and pass variables,
 you could do it behind-the-scenes with cURL or AJAX, and pass the
 variables in the url (i.e.,
 http://www.mysite.com/script.php?param=value). cURL is capable of
 retrieving the page (read: the results of the executed script), which
 can then be parsed by your local script.

 I actually did something like this where I scraped the World of
 Warcraft
 Armory (ok, groan. No, seriously, let it out). I grabbed their XML
 pages, parsed the info, and then pushed this info to a script on a
 remote site of mine. I had to do this because the remote site I was
 working with did not have cURL installed (nor could I install it
myself
 due to access restrictions). The remote script would return OK or
 FAIL, and my script would expect one of these values and react
 accordingly.

 Is this a little bit more on target? I can supply you with source code
 if you would like.

 You could also use AJAX to populate an IFRAME with the results of a
 remote PHP script, and then parse those values using a hidden form
 submission, perhaps. Just some ideas.

 ---

  I think that the variables passed to will be used by that code to
 do perform some operations on another remote machine, (according to
 what I got from my client, he calls this behind the scenes to avoid
 users screw up the front end, and he is thinking of using C,  Perl or
 Python), which is why I am hoping that I can produce one single
script,
 and have it execute some script without the user pushing any button. I
 don't think I plan on scraping websites. However, if you are
 suggesting that it is easier to do in Ajax to do what I am intending
to
 do here, I would love to check it out and forget about PHP (hopefully
 not).

Most of the documentation I have been seeing on exec() seems to
 be executing UNIX commands at
 http://us2.php.net/manual/en/function.exec.php. One main issue, which
I
 am not sure if it is entirely relevant, is that I am using PHP on
 Windows with my current script, (the one to execute things from),
while
 the script that would be executed is located on a Linux machine. Would
 this be an issue when I am doing this with what I am trying to do
here?

Alice,

exec() will execute Windows commands, as well. However, I'm not sure I
understand the reason for separating your script into two files--the
remote and the local scripts.

   To answer your question, I am separating these because the script that will 
be placed on the remoate server is filled with dense calculation operations, 
and putting these on the same server as the one I am writing and running from 
the local machine would possibly take up too much resources of the local 
server, and thus this only interacts with the local server I am working with 
and not with the client machine.

I will assume you are gathering data in your script (local), shipping
this off to a script on the client's machine (remote), and passing a
program (C/Python/Whatever) values you gathered using your script
(local).

 That would be correect, although I am not passing this to a client as I 
mentioned previously, and therefore everything would be ideally executed 
directly without any person to invoke the script.

Under this assumption, I would gather the data via
form/extraction/upload/whatever, and use cURL (a PHP library) to visit
the remote script, passing values either via GET or POST. The remote
script would then parse these values and send them to the appropriate
exec() command.

   That sounds like something I have to do, but the question is, if I don't 
have anyone pushing any button to invoke the script, how would it execute 
without using GET or POST before it uses exec()?

Hope this makes a little more sense now.

Alice

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 4:07 PM
 To: Boyd, Todd M.; php-general@lists.php.net
 Subject: RE: [PHP] Include Problem

---8--- snip

   I think that the variables passed to will be used by that code
 to
  do perform some operations on another remote machine, (according to
  what I got from my client, he calls this behind the scenes to avoid
  users screw up the front end, and he is thinking of using C,  Perl
or
  Python), which is why I am hoping that I can produce one single
 script,
  and have it execute some script without the user pushing any button.
 I
  don't think I plan on scraping websites. However, if you are
  suggesting that it is easier to do in Ajax to do what I am intending
 to
  do here, I would love to check it out and forget about PHP
(hopefully
  not).
 
 Most of the documentation I have been seeing on exec() seems
 to
  be executing UNIX commands at
  http://us2.php.net/manual/en/function.exec.php. One main issue,
which
 I
  am not sure if it is entirely relevant, is that I am using PHP on
  Windows with my current script, (the one to execute things from),
 while
  the script that would be executed is located on a Linux machine.
 Would
  this be an issue when I am doing this with what I am trying to do
 here?
 
 Alice,
 
 exec() will execute Windows commands, as well. However, I'm not sure I
 understand the reason for separating your script into two files--the
 remote and the local scripts.
 
To answer your question, I am separating these because the script
 that will be placed on the remoate server is filled with dense
 calculation operations, and putting these on the same server as the
one
 I am writing and running from the local machine would possibly take up
 too much resources of the local server, and thus this only interacts
 with the local server I am working with and not with the client
 machine.
 
 I will assume you are gathering data in your script (local), shipping
 this off to a script on the client's machine (remote), and passing a
 program (C/Python/Whatever) values you gathered using your script
 (local).

 ---

  That would be correect, although I am not passing this to a
client
 as I mentioned previously, and therefore everything would be ideally
 executed directly without any person to invoke the script.
 
 Under this assumption, I would gather the data via
 form/extraction/upload/whatever, and use cURL (a PHP library) to
 visit
 the remote script, passing values either via GET or POST. The remote
 script would then parse these values and send them to the appropriate
 exec() command.
 
That sounds like something I have to do, but the question is,
if
 I don't have anyone pushing any button to invoke the script, how would
 it execute without using GET or POST before it uses exec()?
 
 Hope this makes a little more sense now.

Alice,

I'm not sure I follow you. Are you speaking of the local script or the
remote script as far as automation? The local script is executed when a
user requests it. The remote script will be executed when your local
script uses cURL to visit it. No users pressing buttons involved to my
knowledge.

Unless... is it a form? I'm a bit lost now. I'm not Midwestern tourist
in Malaysia lost, but I'm definitely a bit confused.


Todd Boyd
Web Programmer




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include problem

2006-12-09 Thread Richard Lynch
There is also a set_include_path function, I do believe.

On Wed, December 6, 2006 4:26 am, Ashley Hales wrote:
 I am trying to use includes on a free php server but I cannot set the
 includes_path myself.  Consequently when I try to include common
 elements or
 library files I run into trouble as I am unable to store or gain
 acesss to a
 central includes folder for the entire of my website to access.  Is
 there
 any way around this?

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include problem

2006-12-06 Thread Dave Goodchild

Use ini_set or an .htaccess file - try the first, and if that doesn't work
use an .htaccess file if you have them enabled in the server (and it's
Apache of course!).

On 12/6/06, Ashley Hales [EMAIL PROTECTED] wrote:


I am trying to use includes on a free php server but I cannot set the
includes_path myself.  Consequently when I try to include common elements
or
library files I run into trouble as I am unable to store or gain acesss to
a
central includes folder for the entire of my website to access.  Is there
any way around this?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
http://www.web-buddha.co.uk


Re: [PHP] include problem

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 1:46 pm, Jef Sullivan wrote:
 I have set a variable and building a string that will be used later in
 my php file.

 The string is a table. Within this table I want to call another php
 file
 using include for a

 pulldown menu. The problem is the included file is not showing its
 information. Snippets

 are provided below...

 Suggestions?

#1. Use View Source in your browser to see what you REALLY have as
HTML.

#2. Put something stupidly simple at the beginning and end of the
include files that are giving you trouble.

#3. Review your ?php echo include_path();? and check for duplicate
filenames in other directories...  Maybe you ain't including the file
you THINK you are including. :-^ [Been there.]

#4. Comment out all the code that isn't relevant to the problem -- Few
readers of this list will wade through it in any detail anyway.

#5. Add var_dump($payment_type_rs); var_dump($payment_type); the line
after each of those variables first appears in your code.  The most
LIKELY explanation is that your get_payment_types() function is
returning an array or an empty result set or whatever. [Can't tell as
that's the one bit of source not provided.]

#6.
If you are not using set_error_handler, then you need to, or you need
to add a LOT of error-checking code.
Even if $payment_type_rs is a valid MySQL result, you CANNOT guarantee
that your database server won't go down before / while you are trying
to call mysql_fetch_assoc() and that function COULD error out.
It's your job to prepare for that possibility in some fashion.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Include Problem

2006-04-15 Thread Chrome
Try 

include($_SERVER['DOCUMENT_ROOT'] . /cms/templates/footer.php);

maybe?

Dan
 
---
http://chrome.me.uk
 

-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2006 20:05
To: php-general@lists.php.net
Subject: [PHP] Include Problem

Hi,

I am having problems with an include statement, i am using the following
statement in an effort to include a footer file on my page:

include(/cms/templates/footer.php);

However I get the following error:

Warning: main(/cms/templates/footer.php): failed to open stream: No such
file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line
38

Warning: main(/cms/templates/footer.php): failed to open stream: No such
file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line
38

Warning: main(): Failed opening '/cms/templates/footer.php' for inclusion
(include_path='.:/lib/php') in
/home/m/y/mysite/public_html/cms/news/index.php on line 38

The file is definitely there, the script just doesn't seem to be picking it
up, has anyone else had this problem?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ NOD32 1.1490 (20060415) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include Problem

2006-04-15 Thread Mark Charette

Shaun wrote:

Warning: main(/cms/templates/footer.php): failed to open stream: No such
file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line
38
  
Most assuredly the file isn't there (do you have the include path set?) 
or the permissions are not sufficient to open the file.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include Problem

2006-04-15 Thread Shaun

Mark Charette [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Shaun wrote:
 Warning: main(/cms/templates/footer.php): failed to open stream: No such
 file or directory in /home/m/y/mysite/public_html/cms/news/index.php on 
 line
 38

 Most assuredly the file isn't there (do you have the include path set?) or 
 the permissions are not sufficient to open the file.

include_path = .:/lib/php 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include Problem

2006-04-15 Thread Shaun
$_SERVER['DOCUMENT_ROOT'] = /home

this isnt the correct path for the file!

Chrome [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Try

 include($_SERVER['DOCUMENT_ROOT'] . /cms/templates/footer.php);

 maybe?

 Dan

 ---
 http://chrome.me.uk


 -Original Message-
 From: Shaun [mailto:[EMAIL PROTECTED]
 Sent: 15 April 2006 20:05
 To: php-general@lists.php.net
 Subject: [PHP] Include Problem

 Hi,

 I am having problems with an include statement, i am using the following
 statement in an effort to include a footer file on my page:

 include(/cms/templates/footer.php);

 However I get the following error:

 Warning: main(/cms/templates/footer.php): failed to open stream: No such
 file or directory in /home/m/y/mysite/public_html/cms/news/index.php on 
 line
 38

 Warning: main(/cms/templates/footer.php): failed to open stream: No such
 file or directory in /home/m/y/mysite/public_html/cms/news/index.php on 
 line
 38

 Warning: main(): Failed opening '/cms/templates/footer.php' for inclusion
 (include_path='.:/lib/php') in
 /home/m/y/mysite/public_html/cms/news/index.php on line 38

 The file is definitely there, the script just doesn't seem to be picking 
 it
 up, has anyone else had this problem?

 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 __ NOD32 1.1490 (20060415) Information __

 This message was checked by NOD32 antivirus system.
 http://www.eset.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Include Problem

2006-04-15 Thread tedd

At 8:03 PM +0100 4/15/06, Shaun wrote:

Hi,

I am having problems with an include statement, i am using the following
statement in an effort to include a footer file on my page:

include(/cms/templates/footer.php);

However I get the following error:

Warning: main(/cms/templates/footer.php): failed to open stream: No such
file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line
38

Warning: main(/cms/templates/footer.php): failed to open stream: No such
file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line
38

Warning: main(): Failed opening '/cms/templates/footer.php' for inclusion
(include_path='.:/lib/php') in
/home/m/y/mysite/public_html/cms/news/index.php on line 38

The file is definitely there, the script just doesn't seem to be picking it
up, has anyone else had this problem?


With your code, I get the exact same error -- however, I don't have 
the file nor the correct path.


So, I think you need to check the path. Try putting the following 
code in your footer.php and running it directly:


print_r($_SERVER['SCRIPT_FILENAME']);

That will tell you where the script is located.

My guess is that you have a path error somewhere.

hth's

tedd
--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] include() problem

2006-01-09 Thread David Grant
Nuno,

Have you considered $_SERVER['DOCUMENT_ROOT']?

David

Nuno Trancoso wrote:
 This may sound dumb, but i have been up all night going through
 php/apache docs, and still have not found an answer..
 
 Throughout a site i need to include files that are scattered in subdirs,
 sometimes up in the dir tree, sometimes down. Bad design i know but i
 have to live w/ it...
 
 Problem is in the way Apache/PHP see stuff. If i include /somefile.htm
 in html, it means somefile.htm wich is at site root dir. In PHP it looks
 like it means somefile.htm at SERVER root dir.
 
 I can use getcwd() and go around truncating/adding to the string until i
 get a path to use with set_include_path() to add the site root dir to
 the include path, but it just seems wrong to waste cycles doing it...
 
 So, question is, is there a more direct/elegant way to add the site root
 (or any other dir for that matter) to the include path?
 
 TIA
 Nuno Trancoso
 


-- 
David Grant
http://www.grant.org.uk/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] include() problem

2006-01-09 Thread Dan Parry
Check this out

http://uk2.php.net/reserved.variables

DOCUMENT_ROOT will give you the root of your site

-Original Message-
From: Nuno Trancoso [mailto:[EMAIL PROTECTED] 
Sent: 09 January 2006 14:56
To: php-general@lists.php.net
Subject: [PHP] include() problem

This may sound dumb, but i have been up all night going through 
php/apache docs, and still have not found an answer..

Throughout a site i need to include files that are scattered in subdirs, 
sometimes up in the dir tree, sometimes down. Bad design i know but i 
have to live w/ it...

Problem is in the way Apache/PHP see stuff. If i include /somefile.htm 
in html, it means somefile.htm wich is at site root dir. In PHP it looks 
like it means somefile.htm at SERVER root dir.

I can use getcwd() and go around truncating/adding to the string until i 
get a path to use with set_include_path() to add the site root dir to 
the include path, but it just seems wrong to waste cycles doing it...

So, question is, is there a more direct/elegant way to add the site root 
(or any other dir for that matter) to the include path?

TIA
Nuno Trancoso

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

__ NOD32 1.1356 (20060108) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] include() problem

2006-01-09 Thread Gerry Danen
Here's a snippet of what's at the start of most of my php files:

$pagetitle  = Lily Articles;
$pagefname   = __FILE__; // for later logging
$pagedocroot = $_SERVER['DOCUMENT_ROOT'];
require_once ($pagedocroot/include_db/db_connect.php);
require_once ($pagedocroot/include/funcs.php);

Hope that helps.

Gerry


On 1/9/06, Nuno Trancoso [EMAIL PROTECTED] wrote:

 This may sound dumb, but i have been up all night going through
 php/apache docs, and still have not found an answer..

 Throughout a site i need to include files that are scattered in subdirs,
 sometimes up in the dir tree, sometimes down. Bad design i know but i
 have to live w/ it...

 Problem is in the way Apache/PHP see stuff. If i include /somefile.htm
 in html, it means somefile.htm wich is at site root dir. In PHP it looks
 like it means somefile.htm at SERVER root dir.



RE: [PHP] include-problem

2003-12-02 Thread Wouter van Vliet
On maandag 1 december 2003 15:23 Rasmus Lerdorf told the butterflies:
 On Mon, 1 Dec 2003, Wouter van Vliet wrote:
  ?php
  print !!!;
  ob_start();
  include 'http://server.com/test/echo.php';
  $XML = ob_get_clean(); // or use ob_get_contents(); and
  ob_end_clean() for PHP  4.3 print ???; 
  
  print '[Between this you'll get your XYZ]'; print $XML; print
  '[Between this you'll get your XYZ]'; ?
 
 Or just use file_get_contents() which would be more efficient
 than using output buffering for this.
 
 -Rasmus

yes, probably. But isn't file_get_contents(); only implemented from php4.3
.. might wanna try 

join('', file());

or

$fd = fopen($FileName, 'r');
fread($fd, filesize($fd));

if you're running an older version.

-me.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] include-problem

2003-12-01 Thread Sophie Mattoug
Victor Spng Arthursson wrote:

Hi!

I'm having a problem with including files. What I want to achieve is 
to execute a PHP-script on another server, and then to include the 
result (which will be XML-output) in another PHP-script (currently on 
my local computer).

On the server I have the file http://server.com/test/echo.php with the 
content

---
?php
echo 'xyz';
?
---
Locally I've a file with the following content:

---
?php
echo !!!;
include (http://server.com/test/echo.php;);
echo ???;
?
---
I was expecting the output from my locally testfile to be something like:

---
!!!???
---
but rather it is

---
!!!xyz???
---
I've also tried with a $fp = readfile(http) with the same result, 
which is output of the echo-statement in the remote file which I am 
expecting to be evaluated remotely.

How can I do to include the PHP-script and have it to be ran before it 
is included?

Sincerely

Victor


This is a perfectly normal behaviour ! See www.php.net/include to 
understand what this function does. (comparing to www.php.net/require)

Hope this helps,

--
Cordialement,
---
Sophie Mattoug
Dveloppement web dynamique
[EMAIL PROTECTED]
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Sophie Mattoug wrote:
 Victor Spng Arthursson wrote:
 
  Hi!
 
  I'm having a problem with including files. What I want to achieve is 
  to execute a PHP-script on another server, and then to include the 
  result (which will be XML-output) in another PHP-script (currently on 
  my local computer).
 
  On the server I have the file http://server.com/test/echo.php with the 
  content
 
  ---
  ?php
  echo 'xyz';
  ?
  ---
 
  Locally I've a file with the following content:
 
  ---
  ?php
  echo !!!;
  include (http://server.com/test/echo.php;);
  echo ???;
  ?
  ---
 
  I was expecting the output from my locally testfile to be something like:
 
  ---
  !!!???
  ---
 
  but rather it is
 
  ---
  !!!xyz???
  ---
 
  I've also tried with a $fp = readfile(http) with the same result, 
  which is output of the echo-statement in the remote file which I am 
  expecting to be evaluated remotely.
 
  How can I do to include the PHP-script and have it to be ran before it 
  is included?
 
  Sincerely
 
  Victor
 
 
 This is a perfectly normal behaviour ! See www.php.net/include to 
 understand what this function does. (comparing to www.php.net/require)

It's perfectly normal, yes, but it has nothing to do with include vs. 
require.  

I guess I don't really understand the question.  I assume you realize that 
an include 'http://server.com/file.php' is going to send an HTTP request 
to server.com asking for file.php and if server.com is configured to 
execute php for file.php then what will come back across the wire is the 
result of php running the script in file.php.  As such, when you do:

 echo '!!!';
 include 'http://server.com/file.php';
 echo '???';

you will of course see: !!!xyz??? because that is exactly what you have 
asked it to do.  Print !!!, then send an HTTP request to server.com and 
include the output of that script right here, and finally print out ???. 
So I don't understand why this output is surprising you and I don't 
understand your question about expecting it to be evaluated remotely.  
file.php was of course evaluated remotely on server.com.  If file.php had 
written something to the filesysts, for example, then that something would 
be on server.com not on your server.

-Rasmus

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] include-problem

2003-12-01 Thread Wouter van Vliet
Rasmus Lerdorf wrote:
 On Mon, 1 Dec 2003, Sophie Mattoug wrote:
 Victor Spång Arthursson wrote:
 
 Hi!
 
 I'm having a problem with including files. What I want to achieve is
 to execute a PHP-script on another server, and then to include the
 result (which will be XML-output) in another PHP-script (currently
 on my local computer). 
 
 On the server I have the file
 http://server.com/test/echo.php with
 the content
 
 ---
 ?php
 echo 'xyz';
 
 ---
 
 Locally I've a file with the following content:
 
 ---
 ?php
 echo !!!;
 include (http://server.com/test/echo.php;);
 echo ???;
 
 ---
 
 I was expecting the output from my locally testfile to be something
 like: 
 
 ---
 !!!???
 ---
 
 but rather it is
 
 ---
 !!!xyz???
 ---
 
 I've also tried with a $fp = readfile(http…) with the same result,
 which is output of the echo-statement in the remote file which I am
 expecting to be evaluated remotely.
 
 How can I do to include the PHP-script and have it to be ran before
 it is included? 
 
 Sincerely
 
 Victor
 
 
 This is a perfectly normal behaviour ! See www.php.net/include to
 understand what this function does. (comparing to
 www.php.net/require) 
 
 It's perfectly normal, yes, but it has nothing to do with include vs.
 require. 
 
 I guess I don't really understand the question.  I assume you
 realize that an include 'http://server.com/file.php' is going
 to send an HTTP request to server.com asking for file.php and
 if server.com is configured to execute php for file.php then
 what will come back across the wire is the result of php
 running the script in file.php.  As such, when you do:
 
  echo '!!!';
  include 'http://server.com/file.php';
  echo '???';
 
 you will of course see: !!!xyz??? because that is exactly
 what you have asked it to do.  Print !!!, then send an HTTP
 request to server.com and include the output of that script
 right here, and finally print out ???.
 So I don't understand why this output is surprising you and I
 don't understand your question about expecting it to be
 evaluated remotely.
 file.php was of course evaluated remotely on server.com.  If
 file.php had written something to the filesysts, for example,
 then that something would be on server.com not on your server.
 
 -Rasmus

You can use the output buffer functions to catch the xyz into a var:

?php
print !!!;
ob_start();
include 'http://server.com/test/echo.php';
$XML = ob_get_clean(); // or use ob_get_contents(); and ob_end_clean() for
PHP  4.3
print ???;

print '[Between this you'll get your XYZ]';
print $XML;
print '[Between this you'll get your XYZ]';
?

Hope it helps ya,
Wouter

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Wouter van Vliet wrote:
 ?php
 print !!!;
 ob_start();
 include 'http://server.com/test/echo.php';
 $XML = ob_get_clean(); // or use ob_get_contents(); and ob_end_clean() for
 PHP  4.3
 print ???;
 
 print '[Between this you'll get your XYZ]';
 print $XML;
 print '[Between this you'll get your XYZ]';
 ?

Or just use file_get_contents() which would be more efficient than using 
output buffering for this.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] include problem

2003-10-29 Thread Allex
Few days ago I asked the same question and got several excellent answers 
that helped me to solve the same problem - check the mailing list for 
'including files from different sub directories' on 24-10-2003.

Nevertheless all those suggestions helped me to solve the problem from a 
normal browser point of view, I still have some troubles with avoiding 
the same error messages while editing my php staff, that means the 
development environment which I use (Eclipse + some plugins) can't 
handle the include/require directives correctly.

Perhaps you may face the same issue .. ??

Allex

Pablo S. Torralba wrote:
Hi,

I have a weird problem which must be stupid for sure. I'm trying to do
an include in my code run as a cgi. The include works fine in the
form:
include (directory/file);

even it works as:

include (directory/../directory/file);

but it doesn't work as:

include (./directory/file);

nor

include (../current/directory/file).

Of course, the obvious thinking is I have a perms problem but they are
the same for '.' and for 'directory' so it makes no sense for me (755
if you wonder).
If I execute the script it works without problem but it doesn't upon
web request reporting:
Warning: main(./db/db.tables.php) [function.main]: failed to create stream: No 
such file or directory in /home/psanchez/tests/hola.php on line 8

Warning: main() [function.main]: Failed opening './db/db.tables.php' for 
inclusion (include_path='.') in /home/psanchez/tests/hola.php on line 8

I need to know what the problem is because I have a software that
should work but it doesn't.
Any ideas?

Thanks

Pablo S. Torralba

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] include problem -- how to use an external 'template' file and still use PHP variables?

2002-12-30 Thread Daevid Vincent
I have a similar question/problem. However, I want to use an external
email template as it were, so that the sales guys can edit it as they
like and simply shuffle the three variables around that they need
$username, $password, $code  (either with or without the ?php ? tags).

I don't want them mucking around in my code and potentially screwing it
up. Not to mention having a huge 'email' text in between those
HTMLMESSAGE markers is ugly as hell and ends up making the color-coding
in HomeSite all kinds of whack at the end of it.

I tried to use:

$message = HTMLMESSAGE
  include(/pathto/customer_email.php);
HTMLMESSAGE;

But $message has the literal string instead of including the file. Grr..
(wouldn't it make sence that an include() should be parsed FIRST with
the contents put in place basically? This seems like a 'bug' not a
feature.

I also tried:

$filename = /pathto/customer_email.php;
$fd = fopen ($filename, r);
$message = fread ($fd, filesize ($filename));
fclose ($fd);

But all the $username, etc. are treated as literals and if I use
?=$username? in the customer_email.php the field is blank (like it's
being parsed but doesn't have a value for it or something), instead of
being converted to their actual PHP values. I also tried to put the
global keyword in the customer_email.php file at the top.

Is there no way to accomplish this?

 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
 
 
 Use a here-doc:
 
 echo EOB
 br[$data] br $titulo br($user)br $intro br $texto
 brbr (comentarios=$contador)brbrhr size=1 width=90%br
 EOB;


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include problem

2002-12-26 Thread Rasmus Lerdorf
Use a here-doc:

echo EOB
br[$data] br $titulo br($user)br $intro br $texto
brbr (comentarios=$contador)brbrhr size=1 width=90%br
EOB;

-Rasmus

On Fri, 27 Dec 2002, Pag wrote:


   Hi,

   i am trying to make my work a little easier when editing the appearance of
 a news site i am building. As it is, everytime i want to change the looks
 of how each news appears, i have to edit inside the print('  '); which is
 annoying, because of the backslash with  problem thing(when i need to have
 a  inside a print, i need to put a \, you know), for example:

   i have:

   print(br[$data] br $titulo br($user)br $intro br $texto
 brbr (comentarios=$contador)brbrhr size=1 width=90%br);

   Cant i do something like having the code inside the print on an external
 file? so when i want to change something, i only edit that file, instead of
 dealing with the print itself, like this:

   [some command(s) that put the content of the external file looks.inc in
 variable $a]
   print ($a);

   I dont even know what to look for in the net. This problem is so i, later
 on, can code some sort of backend in the ways of greymatter, that people
 can change the looks of the news entries by themselves.

   Thanks.

   Pag



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include() problem.

2001-10-23 Thread David Robley

On Wed, 24 Oct 2001 08:03, brendan wrote:
 Hi,
   I have an issue with including a file accross my web server from a
 separate site on that server served on another port.

 - explanation

 my php website runs off IIS port :80 (unfortunately IIS is employers
 decision not mine )
 - I have a web spider running off port :
 both which operate independent of eachother and serve content
 separately ..

 I am within a secure firewall (a university)

 the network administration is understandably cautious about microsoft
 security and has now blocked all ports but :80 on IIS machines ...

 - outcome

 i cannot serve web content from port :
 however the spider cannot run simultaneously to IIS on the same port..

 - proposed solution ..

 to use
 include(http://localhost:/spider/index.html?query=ihateIIS;)

 outcome - blank screen, headache from staring at screen too long ..

 HELP!!!

I guess first question is - does View Source show you anything?

Isn't it wonderful how unis, of all places, insist on running stuff like 
IIS? 

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Smile... people will wonder what you've been up to.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] include() problem.

2001-10-23 Thread brendan

Uni runs solaris/unix
faculty runs iis
world of political pain and anguish..

view source brings up a blank screen ..
ta
brendan

David Robley wrote:

 On Wed, 24 Oct 2001 08:03, brendan wrote:
 
Hi,
  I have an issue with including a file accross my web server from a
separate site on that server served on another port.

- explanation

my php website runs off IIS port :80 (unfortunately IIS is employers
decision not mine )
- I have a web spider running off port :
both which operate independent of eachother and serve content
separately ..

I am within a secure firewall (a university)

the network administration is understandably cautious about microsoft
security and has now blocked all ports but :80 on IIS machines ...

- outcome

i cannot serve web content from port :
however the spider cannot run simultaneously to IIS on the same port..

- proposed solution ..

to use
include(http://localhost:/spider/index.html?query=ihateIIS;)

outcome - blank screen, headache from staring at screen too long ..

HELP!!!

 
 I guess first question is - does View Source show you anything?
 
 Isn't it wonderful how unis, of all places, insist on running stuff like 
 IIS? 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] include() problem.

2001-10-23 Thread David Robley

On Wed, 24 Oct 2001 10:02, brendan wrote:
 Uni runs solaris/unix
 faculty runs iis
 world of political pain and anguish..

 view source brings up a blank screen ..
 ta
 brendan


OK - bit of straw grasping; you do have URL-fopen-wrappers enabled; try 
assigning the result of the include to a variable and examine the 
variable; try including just the base file without parameters; are the 
logs on the target system showing naything as a result of your connect?

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   The first step to making a dream come true is to wake up

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] include() problem...

2001-09-20 Thread Jeb Anderson Scarbrough

If you put the file into the include directory specified in the php.ini 
(.:/usr/lib/php) then I believe you should do:

include(mysql.php);

NOT

include(DB/mysql.php);

Someone please correct me if I'm wrong.




I've got a very odd problem. I'm trying to include 'DB/mysql.php', from
the /usr/lib/php directory, and it's not working. My include_path is set
properly (.:/usr/lib/php) and when I do
'print_r(ini_get(include_path));' it prints it properly. But when I
try and do an include, I get the following error.

Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='')
in /usr/local/httpd/htdocs/test.php on line 2

Help? Please? I'm at a loss as to how to fix this, and I kind of need
to.

--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker

I've tried including just a file that was in the /usr/lib/php directory.
No luck. I get exactly the same error (with the correct file name,
obviously). Also, note in the error that include() is seeing
include_path=''. What's up with that?

-Original Message-
From: Jeb Anderson Scarbrough [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 20, 2001 12:04 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] include() problem...

If you put the file into the include directory specified in the php.ini 
(.:/usr/lib/php) then I believe you should do:

include(mysql.php);

NOT

include(DB/mysql.php);

Someone please correct me if I'm wrong.




I've got a very odd problem. I'm trying to include 'DB/mysql.php', from
the /usr/lib/php directory, and it's not working. My include_path is set
properly (.:/usr/lib/php) and when I do
'print_r(ini_get(include_path));' it prints it properly. But when I
try and do an include, I get the following error.

Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='')
in /usr/local/httpd/htdocs/test.php on line 2

Help? Please? I'm at a loss as to how to fix this, and I kind of need
to.

--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

_
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] include() problem...

2001-09-20 Thread Johnson, Kirk

Check the permissions on both the directory and the file, so that they are
accessible to 'nobody' (or whomever PHP is running as). I'm not sure what to
make of the empty include path in the error message.

Kirk


 I've tried including just a file that was in the /usr/lib/php 
 directory.
 No luck. I get exactly the same error (with the correct file name,
 obviously). Also, note in the error that include() is seeing
 include_path=''. What's up with that?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker

Checked that. Plenty of permissions.

Anyone else have any idea?

-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 20, 2001 1:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] include() problem...

Check the permissions on both the directory and the file, so that they
are
accessible to 'nobody' (or whomever PHP is running as). I'm not sure
what to
make of the empty include path in the error message.

Kirk


 I've tried including just a file that was in the /usr/lib/php 
 directory.
 No luck. I get exactly the same error (with the correct file name,
 obviously). Also, note in the error that include() is seeing
 include_path=''. What's up with that?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker

Okay... This is odd. Despite the fact that
'print_r(ini_get(include_path));' returns the right include_path, I
just checked the php.ini file, and lo and behold, there is no include
path set. So... Have I just discovered a bug?

-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 20, 2001 2:52 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] include() problem...

Checked that. Plenty of permissions.

Anyone else have any idea?

-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 20, 2001 1:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] include() problem...

Check the permissions on both the directory and the file, so that they
are
accessible to 'nobody' (or whomever PHP is running as). I'm not sure
what to
make of the empty include path in the error message.

Kirk


 I've tried including just a file that was in the /usr/lib/php 
 directory.
 No luck. I get exactly the same error (with the correct file name,
 obviously). Also, note in the error that include() is seeing
 include_path=''. What's up with that?


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]