[PHP-DB] PHP Session End.

2002-06-03 Thread Hayan Al Mamoun

Dear ALL,

I'm programming a web site that has a small shopping cart to sell virtual
information, I must allocate the information I'm selling (Phone Card PIN
Codes) and block it from others, once a user adds it to his cart, and on the
other hand, I must set it free (DeAllocate it) when the user leaves the site
without checking out. I'm using session to figure out the users, but I donno
how to sense when the user has left the site, and his session is closed
(automatically).

Any Body Can Help??
Thanx in Advanced
bst rgds
Hayan


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




[PHP-DB] Client IP

2002-05-12 Thread Hayan AL Mamoun

Dear all,
I'm using the $REMOTE_ADD variable to get the visitor IP address, but when a
visitor access my website throught a proxy server I get always the same ip
of that proxy server.
Is there a way to get the unique IP of each users???

bst rgds
Hayan


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




[PHP-DB] Session Problem, Please Help.....

2002-05-02 Thread Hayan AL Mamoun

Dear all, I have a strange problem:
I'm using IIS / WINNT4, PHP4
Please check these two files:
--
logon.phtml:
?
session_start();
session_register(CLIENTID);
$CLIENTID=SOMEVALUE;
header(Location: clients/editclient.phtml);
?
--
clients/editclient.phtml:
?
session_start();
echo CLient ID VALUE IS : $CLIENTID;
?

When I run logon.phtml, it must create a session variable called CLIENTID
and then move to the second page, which displays this variable.
Each time I test this code I start a new instant of the IE and request
logon.phtml (in order to create a new session), but it never works from the
first time, while if I tested it a second time from the same instance of IE
it works???!
Please could anyone help, why it dosn't work from the first time?

thnkx
Hayan


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




[PHP-DB] Advice for dataupload

2002-04-07 Thread Hayan Al Mamoun

Dear all,
I have two design-identical database, one on my intranet, the other on the
internet, is there any procedure that Synchronizes the content of two
databases?
I'm using PHP applications and MySQL Database, WindowsNT4 IIS

Please advice

Best Regards
Hayan


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




[PHP-DB] Problem with file() function

2002-02-19 Thread Hayan Al Mamoun

Dear sirs, Please help with the follows:
When I'm trying to execute this code:

$fcontents = file ('http://localhost/');
while (list ($line_num, $line) = each ($fcontents)) {
echo bLine $line_num:/b;  . htmlspecialchars ($line) . br\n;
}

it runs perfectly, but when I try to change to:

$fcontents = file ('http://www.php.net/');
while (list ($line_num, $line) = each ($fcontents)) {
echo bLine $line_num:/b;  . htmlspecialchars ($line) . br\n;
}

it dosn't work, Can you tell why please...

Best Regards
Hayan


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




[PHP-DB] Session End

2002-02-17 Thread Hayan Al Mamoun

Hi,
I want to know if there is a way in PHP to sence that the visitor left the
site, I think the answer is in PHP-Sessions, but I don't know how, Any help
please??

Best Regards
Hayan


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




[PHP-DB] Maintain MySQL Transactions

2002-02-08 Thread Hayan Al Mamoun

Hi, How can I maintain MySQL transactions with PHP

Best Regards
Hayan


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




[PHP-DB] Session End

2002-02-08 Thread Hayan Al Mamoun

Hi, How can I realize that one session in PHP has been ended, I mean I want
a trigger that the visitor of my website, has left ;)
Thanks

Best Regards
Hayan


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




[PHP-DB] Cannot include file

2002-02-03 Thread Hayan Al Mamoun

Hi sirs, I'm trying to run include() function to include a page from a
different website, but it fails :
include(http://remote/dawn-travel/lists/somelongnumber.xml;);
remote is windows NT4 IIS
I got the following error,
Warning: Failed opening
'http://remote/dawn-travel/lists/34f3542a4c90f2e183891192c8225e37.xml' for
inclusion (include_path='') in D:\New
Folder\wwwroot\w.dawncreative.com\progs\hotelrates\list.phtml on line 6

What's wrong please




Best Regards
Hayan



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




[PHP-DB] Cannot Include File..

2002-02-03 Thread Hayan Al Mamoun

Hi sirs, I'm trying to run include() function to include a page from a
different website, but it fails :
include(http://remote/dawn-travel/lists/somelongnumber.xml;);
remote is windows NT4 IIS
I got the following error,
Warning: Failed opening
'http://remote/dawn-travel/lists/34f3542a4c90f2e183891192c8225e37.xml' for
inclusion (include_path='') in D:\New
Folder\wwwroot\w.dawncreative.com\progs\hotelrates\list.phtml on line 6

What's wrong please




Best Regards
Hayan



Best Regards
Hayan


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




[PHP-DB] Session across Multiple Hosts

2002-01-29 Thread Hayan Al Mamoun

Dear all, I was wondering, can session variables be transfered across
multiple hosts, i.e. if I send a request from http://host1/page1.phtml, to
http://host2/page1.phtml where I started the session by SessionRegister() or
some other way and I gave the variable VAR1 some value, then I went back
with header(Location: http://host1/page2.phtml;), does the VAR1 still hold
the value? if not, please advice with the way I can do this (transfere
database results from one host to another without remote access).

Best Regards
Hayan


-- 
PHP Database 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-DB] Connecting to Microsoft Mail

2001-12-04 Thread Hayan Al Mamoun

Dear ALL, I want to know if there's a way to have the mail sent 
by PHP mail() function captured by microsoft outlook. 
I'm using PWS / windows98 / PHP4
Thanks



Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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