[PHP] socket function

2001-08-22 Thread Boris

Does socket() function works on windows or not?

Thanks
Boris




-- 
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]




[PHP] HTTP authentication

2001-08-31 Thread Boris

Is there a way to force re-authentication without closing and re-opening the
browser.

Thanks
Boris



-- 
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]




[PHP] HELP ! Sybase SQL Anywhere 5.5 and Linux

2001-09-05 Thread Boris

We have Sybase SQL Anywhere 5.5 database and one working PHP application on  WINNT and 
IIS.
We experienced IIS as one not very friendly web server what need to much management 
all the time, so we decide to move PHP application on Linux with Apche. 
My only problem is that I can not find any suitable Sybase SQL Anywhere 5.5 ODBC 
driver (or something else) for Linux
because there is no Sybase SQL Anywhere 5.5 for Linux.

Question:
Is it possible to have Sybase SQL Anywhere 5.5 database server on windows nt and 
client on Linux and how?
 






[PHP] HELP!!!

2001-09-10 Thread Boris

I installed Red Hat 7 as server and get Apache and Php installed with that.
I have connect from my new Linux box (with dbisqlc) to ASA 7 database what
is on one Windows server and thats works fine.
My Apache also works fine with Php only problem is when I try to use
odbc_connect() or some other odbc funkctions I get "Fatal error: Call to
undefined function: odbc_connect() in ...".
I think my php is not compiled with odbc and I don't no how to do that.
Please help!

Best regards
Boris





-- 
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]




[PHP] Re: [PHP-WIN] Unable to upload.. :(

2002-11-24 Thread Boris Kolev
This is a forwarded message
From: Boris Kolev <[EMAIL PROTECTED]>
To: toby z <[EMAIL PROTECTED]>
Date: Sunday, November 24, 2002, 2:02:09 PM
Subject: [PHP-WIN] Unable to upload.. :(

===8<==Original message text===
Hello toby,

Sunday, November 24, 2002, 1:04:25 PM, you wrote:

tz> Hi all
tz> I am trying to upload a file. It works fine on my local Apache, but
tz> gives me "Permission denied to create file" error on my online host..
tz> Any clue???

tz> $file = $_FILES['userfile']['tmp_name'];
tz> if (is_uploaded_file($file)) 
tz>print_r("Copying ".$file);
tz>  if (copy($file, "./files/". $_FILES['userfile']['name'])) 
tz>   echo("Success");

tz>  else
tz>   echo("Failure");


tz> __
tz> Do You Yahoo!?
tz> Everything you'll ever need on one web page
tz> from News and Sport to Email and Music Charts
tz> http://uk.my.yahoo.com

Hi
because online apache use user to create files in folder but your
administrator must give rights(access) to tish user in this folder to
create files :))

-- 
Best regards,
 Borismailto:[EMAIL PROTECTED]


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




[PHP] My first XML!

2002-11-26 Thread Boris Kolev
Hello php-general,

  Hi.
  I want to know how i can export tree structure from Mysql table to
  XML
  mysql table structure is:
  ID - Group Unique Id
  P_ID - Parent Id
  Name - Name of group

  I want to make XML whit tree structure. Can some body help me!
  

-- 
Best regards,
 Boris  mailto:[EMAIL PROTECTED]


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




[PHP] Session

2002-12-12 Thread Boris Kolev
Hello php-general,

  Can i have the same var in 2 diferent session? (f.e. CONTER, WEB
  CHAT etc.)
 Best regards,
 Boris  mailto:[EMAIL PROTECTED]


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




Re: [PHP] Re: Session

2002-12-12 Thread Boris Kolev
Hello matty,

Thursday, December 12, 2002, 2:43:44 PM, you wrote:

mr> what do you mean  - same 2 vars ?

mr> if you mean 2 session vars, than they will be availble on every web page
mr> which uses session calls.

mr> else, let me know what do you mean exactly.

mr> "Boris Kolev" <[EMAIL PROTECTED]> wrote in message
mr> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hello php-general,
>>
>>   Can i have the same var in 2 diferent session? (f.e. CONTER, WEB
>>   CHAT etc.)
>>  Best regards,
>>  Boris  mailto:[EMAIL PROTECTED]
>>




No i meen one var in two diferent session! (For example: Counter of
all user available in this moment on the site or all users nicks)

-- 
Best regards,
 Borismailto:[EMAIL PROTECTED]


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




[PHP] XSLT Transformation

2002-12-28 Thread Boris Kolev
Hello php-general,

  I have a problem with XSLT Transformation. I have in one page HTML
  that is in my php page and one $result - where i transform one XSLT
  file. When php show HTML - no problems but when i print $result
  after HTML iyt can be read. In XSLT and XML i use UTF-8 ecnoding
  after transformation i tray to use utf8_decode and encode functions
  but all in $result can be read!
  Please Help me !

  Best regards,
  Boris  mailto:[EMAIL PROTECTED]


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




[PHP] $PHP_SELF

2003-10-20 Thread Boris Sagadin

I'm having problems with $PHP_SELF variable. Mostly it works, other
times (about 10% of tries) it's just empty. Is this a known issue with Apache
2? If I use $_SERVER['PHP_SELF'], it always works fine, but still I'd
like to know if this is a common bug or there's something wrong with
my configuration.

I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec, register_globals is on

Thanks,
Boris

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



[PHP] Re: $PHP_SELF

2003-10-20 Thread Boris Sagadin

Curt,

Monday, October 20, 2003, 4:36:33 PM, you wrote:

> I believe the issue is where exactly is $PHP_SELF being used.
> $PHP_SELF isn't available inside a function, without global'ing
> it but $_SESSION is available all the time.

Yes, but the problem in my case is that it works most of, but not all
the time, so it can't be a coding problem in the script, as script never
changes.

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



Re: [PHP] Macromedia and Allaire (cold fusion) have agreed to merge.

2001-01-16 Thread Boris Kozovich

Now with CodeCharge & PHP there is no more need for PHP + UltraDev ;)


- Original Message - 
From: lou <[EMAIL PROTECTED]>
To: PHP-General <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 3:52 PM
Subject: [PHP] Macromedia and Allaire (cold fusion) have agreed to merge.


> http://www.macromedia.com/special/allaire/
> 
> So much for php in ultradev ;)
> 
> 
> --
> 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]
> 
> 

-- 
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]




[PHP] Re: WWW-Authenticate problem in Apache

2002-04-02 Thread Boris Klotz

You should only send the HTTP Authentication Header, if the user isn't
already authenticated.
Try something like this:



Bob

"Dssopt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi everybody,
>
> I try to install Apache 3.1.2 + PHP-4.1.2 on RedHat 7.2.
>
> All seems to be fine but when I write a PHP to test the authenticate.
>  header("WWW-Authenticate: Basic realm=\"My Realm\"");
> ?>
> Whatever I input to the login box, the failed, retry message comes out and
> it becomes a dead loop - login - retry - login ..
>
> Can anyone help me ??
>
> Ken
>
>



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




[PHP] php and cgi

2002-04-02 Thread Boris Wong

hi,

i was wondering if anyone knows how i can execute a cgi script
(with -rwxrwxrwx mode) written in perl from within php?

i tried



but the content of the cgi file is displayed instead of executing it.



didn't help as well.

i also tried calling the url where this cgi is located (which is in the same
file structure my php is located), like this:

http://www.myurl.org/mycgi.cgi');
?>

but the browse keeps on loading and nothing shows up.

thanks in advance.

/bw


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




RE: [PHP] php and cgi

2002-04-03 Thread Boris Wong

thanks all for the response. i tried various methods but still have no luck.

using virtual:

   

i got the following warning:

Warning: Unable to include 'myscript.cgi' - request execution failed in
/[dir-path]/index.php on line 71

any more clues?

thanks!

/bw

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:46 PM
To: Boris Wong
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] php and cgi


On Tue, 2 Apr 2002, Boris Wong wrote:

> i was wondering if anyone knows how i can execute a cgi script
> (with -rwxrwxrwx mode) written in perl from within php?
>
> i tried
>
>  include ('mycgi.cgi');
> ?>

This worked for me:



ALthough I did use absolute paths in the cgi script.

Regards,


Terry.

[EMAIL PROTECTED]


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




[PHP] configure problem?

2002-04-04 Thread Boris Wong

hi,

got a question on the usage of include:

when i do something like this:

http://www.myurl.com'); ?>

where my php file is located under the same directory structure of
www.my.url.com, the browse seems keep on loading until it returns a blank
page. does this mean that php can't include any file located in the same
directory structure of itself? or is it more like a configuration problem?

here's my configure command from phpinfo(), if this helps:

'./configure' '--prefix=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4.0.5'
'--with-apache=/workplace/dpd/btp/apache_1.3.20' '--enable-bcmath'
'--with-config-file-path=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4.0.5
/lib' '--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-safe-mode' '--enable-magic-quotes' '--enable-trans-sid'
'--enable-wddx' '--enable-ftp' '--with-ldap'

thank you!


/bw


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




RE: [PHP] configuration problem?

2002-04-04 Thread Boris Wong

btw, the reason i want to use include() is that i have a cgi script under
the same directory structure but i don't want to use exec() since this
command can't execute the cgi well enough (for one thing, the cgi script
doesn't work well when i include "use warnings;" or create an object)

and including the cgi script won't execute it so this won't work.

i'm thinking of including the cgi script via http like:

include ('http://www.myurl.com/hello.cgi')

but the browser keeps on loading the page and returns a blank page
eventually.

contrastly, including a cgi script from other domains works just fine.

/bw

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] configure problem?


hi,

got a question on the usage of include:

when i do something like this:

http://www.myurl.com'); ?>

where my php file is located under the same directory structure of
www.my.url.com, the browse seems keep on loading until it returns a blank
page. does this mean that php can't include any file located in the same
directory structure of itself? or is it more like a configuration problem?

here's my configure command from phpinfo(), if this helps:

'./configure' '--prefix=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4.0.5'
'--with-apache=/workplace/dpd/btp/apache_1.3.20' '--enable-bcmath'
'--with-config-file-path=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4.0.5
/lib' '--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-safe-mode' '--enable-magic-quotes' '--enable-trans-sid'
'--enable-wddx' '--enable-ftp' '--with-ldap'

thank you!


/bw


--
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] configure problem?

2002-04-04 Thread Boris Wong

sorry, my bad. i meant the two urls are the same. they're intranet pages so
giving out real data won't be useful.

>Um, does the page at http://www.myurl.com/ by any chance execute that
>include statement? Because then you have an infinite recursion.

that's not likely the case.

i also noticed that the 'Virtual Directory Support' is disabled. thought
this could be the root of the problem?

/bw

-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:10 AM
To: Boris Wong
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] configure problem?


On Thu, 4 Apr 2002, Boris Wong wrote:
> got a question on the usage of include:
>
> when i do something like this:
>
> http://www.myurl.com'); ?>
>
> where my php file is located under the same directory structure of
> www.my.url.com, the browse seems keep on loading until it returns a blank
> page. does this mean that php can't include any file located in the same
> directory structure of itself? or is it more like a configuration problem?

Um, does the page at http://www.myurl.com/ by any chance execute that
include statement? Because then you have an infinite recursion.

I of course can't really figure out what you're talking about because you
have made up domains like www.myurl.com and www.my.url.com and I don't
know whether they're different because you weren't paying attention or
because you meant them to be different. Use real data.

miguel


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




RE: [PHP] configuration problem?

2002-04-04 Thread Boris Wong

thanks for the response.

i have no problem executing a simple perl script using passthru() or
system(), but looks like i can't use a package in that perl script.

for example, i have a perl script like this:

#!/usr/bin/perl
use strict;
use lib qw(/dept/tools/lib);
#use myPackage;
print "hello world\n";



but when i uncomment the 'use myPackage' nothing shows up.

please help.

/bw

-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 11:14 AM
To: 'Boris Wong'; [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?


I believe include() will only work if the CGI script is written in PHP.
You should be able to extract the results of a foreign script by running
passthru() or system().

For example if I wanted to print out a listing of all the files in a
directory.



You can use the optional input to pass a CGI script some variables.  I
don't use the command line very often so I don't know the proper system
command to execute a script.  I imagine it's 'run' or 'execute' or
something like that.  But I'm sure it's possible.

http://www.php.net/manual/en/function.system.php

-Kevin

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:58 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?

btw, the reason i want to use include() is that i have a cgi script
under
the same directory structure but i don't want to use exec() since this
command can't execute the cgi well enough (for one thing, the cgi script
doesn't work well when i include "use warnings;" or create an
object)

and including the cgi script won't execute it so this won't work.

i'm thinking of including the cgi script via http like:

include ('http://www.myurl.com/hello.cgi')

but the browser keeps on loading the page and returns a blank page
eventually.

contrastly, including a cgi script from other domains works just fine.

/bw

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] configure problem?


hi,

got a question on the usage of include:

when i do something like this:

http://www.myurl.com'); ?>

where my php file is located under the same directory structure of
www.my.url.com, the browse seems keep on loading until it returns a
blank
page. does this mean that php can't include any file located in the same
directory structure of itself? or is it more like a configuration
problem?

here's my configure command from phpinfo(), if this helps:

'./configure'
'--prefix=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4.0.5'
'--with-apache=/workplace/dpd/btp/apache_1.3.20' '--enable-bcmath'
'--with-config-file-path=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4
.0.5
/lib' '--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-safe-mode' '--enable-magic-quotes' '--enable-trans-sid'
'--enable-wddx' '--enable-ftp' '--with-ldap'

thank you!


/bw


--
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




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




RE: [PHP] configuration problem?

2002-04-04 Thread Boris Wong

thanks. yes, i've tried using virtual but it gives me:

Warning: Unable to include 'items_for_users.cgi' - request execution failed

but the cgi and php are in the same directory.

/bw

-Original Message-
From: SHEETS,JASON (Non-HP-Boise,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 1:45 PM
To: 'Boris Wong'; [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?


Have you tried using virtual() ?

virtual() is an Apache-specific function which is equivalent to  in mod_include. It performs an Apache sub-request. It is
useful for including CGI scripts or .shtml files, or anything else that you
would parse through Apache. Note that for a CGI script, the script must
generate valid CGI headers.

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 12:53 PM
To: Kevin Stone; [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?


thanks for the response.

i have no problem executing a simple perl script using passthru() or
system(), but looks like i can't use a package in that perl script.

for example, i have a perl script like this:

#!/usr/bin/perl
use strict;
use lib qw(/dept/tools/lib);
#use myPackage;
print "hello world\n";



but when i uncomment the 'use myPackage' nothing shows up.

please help.

/bw

-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 11:14 AM
To: 'Boris Wong'; [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?


I believe include() will only work if the CGI script is written in PHP.
You should be able to extract the results of a foreign script by running
passthru() or system().

For example if I wanted to print out a listing of all the files in a
directory.



You can use the optional input to pass a CGI script some variables.  I
don't use the command line very often so I don't know the proper system
command to execute a script.  I imagine it's 'run' or 'execute' or
something like that.  But I'm sure it's possible.

http://www.php.net/manual/en/function.system.php

-Kevin

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:58 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?

btw, the reason i want to use include() is that i have a cgi script
under
the same directory structure but i don't want to use exec() since this
command can't execute the cgi well enough (for one thing, the cgi script
doesn't work well when i include "use warnings;" or create an
object)

and including the cgi script won't execute it so this won't work.

i'm thinking of including the cgi script via http like:

include ('http://www.myurl.com/hello.cgi')

but the browser keeps on loading the page and returns a blank page
eventually.

contrastly, including a cgi script from other domains works just fine.

/bw

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] configure problem?


hi,

got a question on the usage of include:

when i do something like this:

http://www.myurl.com'); ?>

where my php file is located under the same directory structure of
www.my.url.com, the browse seems keep on loading until it returns a
blank
page. does this mean that php can't include any file located in the same
directory structure of itself? or is it more like a configuration
problem?

here's my configure command from phpinfo(), if this helps:

'./configure'
'--prefix=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4.0.5'
'--with-apache=/workplace/dpd/btp/apache_1.3.20' '--enable-bcmath'
'--with-config-file-path=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4
.0.5
/lib' '--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-safe-mode' '--enable-magic-quotes' '--enable-trans-sid'
'--enable-wddx' '--enable-ftp' '--with-ldap'

thank you!


/bw


--
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




--
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] configuration problem?

2002-04-04 Thread Boris Wong

sorry for the confusing response and yes, the cgi script is written in perl,
and i'm still looking for ways to execute this script from php.

everything works okay until the cgi script uses a package.

hope this helps making my question clearer.

/bw

-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 2:08 PM
To: 'Boris Wong'; [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?


I'm more confused now than ever.  Originally you wanted to execute a
.CGI script (presumably a PERL script) from inside a PHP script.  Now it
looks like you want to do just the opposite.  If that's the case then
you would be better served by posting your question in a PERL email
list.
-Kevin

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 12:53 PM
To: Kevin Stone; [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?

thanks for the response.

i have no problem executing a simple perl script using passthru() or
system(), but looks like i can't use a package in that perl script.

for example, i have a perl script like this:

#!/usr/bin/perl
use strict;
use lib qw(/dept/tools/lib);
#use myPackage;
print "hello world\n";



but when i uncomment the 'use myPackage' nothing shows up.

please help.

/bw

-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 11:14 AM
To: 'Boris Wong'; [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?


I believe include() will only work if the CGI script is written in PHP.
You should be able to extract the results of a foreign script by running
passthru() or system().

For example if I wanted to print out a listing of all the files in a
directory.



You can use the optional input to pass a CGI script some variables.  I
don't use the command line very often so I don't know the proper system
command to execute a script.  I imagine it's 'run' or 'execute' or
something like that.  But I'm sure it's possible.

http://www.php.net/manual/en/function.system.php

-Kevin

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:58 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] configuration problem?

btw, the reason i want to use include() is that i have a cgi script
under
the same directory structure but i don't want to use exec() since this
command can't execute the cgi well enough (for one thing, the cgi script
doesn't work well when i include "use warnings;" or create an
object)

and including the cgi script won't execute it so this won't work.

i'm thinking of including the cgi script via http like:

include ('http://www.myurl.com/hello.cgi')

but the browser keeps on loading the page and returns a blank page
eventually.

contrastly, including a cgi script from other domains works just fine.

/bw

-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] configure problem?


hi,

got a question on the usage of include:

when i do something like this:

http://www.myurl.com'); ?>

where my php file is located under the same directory structure of
www.my.url.com, the browse seems keep on loading until it returns a
blank
page. does this mean that php can't include any file located in the same
directory structure of itself? or is it more like a configuration
problem?

here's my configure command from phpinfo(), if this helps:

'./configure'
'--prefix=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4.0.5'
'--with-apache=/workplace/dpd/btp/apache_1.3.20' '--enable-bcmath'
'--with-config-file-path=/opt/third-party/depot/Linux-2.2c2.1-i686/php-4
.0.5
/lib' '--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-safe-mode' '--enable-magic-quotes' '--enable-trans-sid'
'--enable-wddx' '--enable-ftp' '--with-ldap'

thank you!


/bw


--
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





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




Re: [PHP] How does php server identify that the particular session belongs to particular user

2010-06-11 Thread Boris SABATIER
Hi

A cookie with the session_id are send to the client.

Bo.


2010/6/11 Peter 

> Hi All,
>
> My Question is "How does php server identify that the particular session
> belongs to particular user?"
>
> Please help me out
>
> Regards
> Peter.m
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>