php-windows Digest 18 Nov 2001 21:41:50 -0000 Issue 861

Topics (messages 10471 through 10478):

Re: extensions and ini.Help.
        10471 by: Gu Weidong-a1923c

flash variables
        10472 by: sundeep

Re: Use sockets under windows
        10473 by: Delbono Nicola

fopen ; fstat PHP ver.4.0.6
        10474 by: Mister16

.PSD File Info?
        10475 by: Josh Seward

Secure Web Application
        10476 by: Troy Moreland

Back button using sessions
        10477 by: Troy Moreland

Database Login
        10478 by: Todd Williamsen

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Copy gds32.dll to "winnt\system32" and try again.

-----Original Message-----
From: Jovanovic [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 18, 2001 7:47 AM
To: php-windows-mailingList
Subject: [PHP-WIN] extensions and ini.Help.


Hi...
Anyone got a clue for this piece of "bad luck"?
I'm on win2k pro + IIS5 +php4.0.6 cgi installation. It works fine
untill I try to load php_interbase.dll extension and this is how it goes:
"Unable to load dynamic library '...' - The specified procedure
could not be found". Three points stand for:
    ./ (this one is by default),
    d:\php,
    d:\php\extensions,
    d:\winnt and
    d:\winnt\system32,
wherever I choose to put the dll. Those folders where declared in
the above fashion and with/without quotes, with slash/backslash.
( other *.ini-s, for example, to assign folders don't use quotes and
use \ instead of /) - ( Of course I had Interbase server running all the
time.),
and I wasn't lazy to reboot the system every time...
Now count the combinations...
Tiresome...
Does anybody know how to solve this?

Zoran

ps.
I tried to use my database, and one example mdb, with php through ODBC -
that was a laugh:
'Database name could not be found' for odbc_connect(dns,user,pswd)...
(c/c++ is maybe harder to learn, but I have never had this much fuss with
it.)
ODBC support is supposed to be built in, or is it?

-- 
PHP Windows 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]
--- End Message ---
--- Begin Message ---
hi list
 i have made a crossword in flash where a user will fill some alphabats. these 
alphabats r then to send in an email.
how can i make php to read my flash variables and then send them to an email address.
any readymade solutions or some links
regards
sundeep
--- End Message ---
--- Begin Message ---
Hello.
I thought Sockets Under win didn't work..

maybe you can try with this other script:
http://marc.theaimsgroup.com/?l=php-general&m=98225134721753&w=2



----- Original Message ----- 
From: "Walter Gyr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 18, 2001 8:59 AM
Subject: [PHP-WIN] Use sockets under windows 


> Hi
> 
> I'm looking for a sample about sockets for windows NT.
> I want test the sample from manual bad doesnt work with Windows.
> I know that the window version has diffrent function names.
> 
> ?php
> error_reporting (E_ALL);
> set_time_limit (0);
> $address = '192.168.1.2';
> $port = 4711;
> if (($sock = socket_create (AF_INET, SOCK_STREAM, 0)) < 0) {
>     echo "socket() failed: reason: " . strerror ($sock) . "\n";
> }
> if (($ret = socket_bind ($sock, $address, $port)) < 0) {
>     echo "bind() failed: reason: " . strerror ($ret) . "\n";
> }
> if (($ret = socket_listen ($sock, 5)) < 0) {
>     echo "listen() failed: reason: " . strerror ($ret) . "\n";
> }
> do {
>     if (($msgsock = socket_accept($sock)) < 0) {
>         echo "accept_connect() failed: reason: " . strerror ($msgsock) .
> "\n";
>         break;
>     }
>     do {
>         $buf = '';
>         $ret = socket_read ($msgsock, $buf, 2048);
>         if ($ret < 0) {
>             echo "read() failed: reason: " . strerror ($ret) . "\n";
>             break 2;
>         }
>         if ($ret == 0) {
>             break 2;
>         }
>         $buf = trim ($buf);
>         if ($buf == 'quit') {
>             close ($msgsock);
>             break 2;
>         }
>         $talkback = "PHP: You said '$buf'.\n";
>         socket_write ($msgsock, $talkback, strlen ($talkback));
>         echo "$buf\n";
>     } while (true);
>     socket_close ($msgsock);
> } while (true);
> socket_close ($sock);
> ?>
> 
> The error message is always "Cannot bind the address" ??
> 
> Thanks very much
> 
> Walter
> 
> -- 
> PHP Windows 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]
> 
> 

--- End Message ---
--- Begin Message ---
Hi everybody!!
Does anybody know how to use fopen and fstat!
I used it on local files and refered files on the own server, but it doesn't
show (e.g. the filesize) of my server with the downloadfiles, which is not
the same server the php files are on!

I've also added the source code, so please help me if you can!!

Thanx!!

Mister16

<?php
$file = fopen ("http://www.ganymede.spaceports.com/~mister16/2inseln.exe";,
"r"); echo "Datei geladen!!<br>";
$t=fstat($file); echo "Array über Funktion zugewiesen<br>";
print $t["size"]; echo "Info ausgegeben!<br>";
fclose ($file); echo "Datei geschlossen!<br>";
/*if ($t >= 1000000) {
$t = $t / 1000000;
$t = round($t,3);
echo "$t MB";
}
elseif ($t >= 1000) {
$t = $t / 1000;
$t = round($t,3);
echo "$t KB";
}
else {
$t = round($t,3);
echo "$t Byte(s)";
};*/
?>


--- End Message ---
--- Begin Message ---
I have discovered the function IPTCPARSE and how it is used to extract file header 
info. 
I need this to extract Adobe Photoshop images info. This works for jpg images fine, 
but when the same script is applied to .psd images it fails to report the info. 

#1 Why is this?
#2 Can I do anything to make it work?


Thanks for any help!

Josh Seward
[EMAIL PROTECTED] 
--- End Message ---
--- Begin Message ---
Can anyone give me details on how to make my PHP-LDAP application secure?  I
have two unsecure issues:

1)  I can't figure out how to get SSL to work.

2)  I'm using sessions to store ID and password but the passwords are in
clear text on the server.  I'm running PHP on the W2K platform and no one
has been able to help me with encrypting on this platform.

Thanks,
Troy Moreland


--- End Message ---
--- Begin Message ---
Can someone tell me how to get around the following problem:

I am using sessions to store a person's ID and password that they
authenticate with at the start page.  The entire web site is secured this
way.  The problem is that hitting the back key often gives the "This page
has expired, hit Refresh to Reload" kind of message.  How can this be
avoided?  I've written the same application without sessions (unsecure
obviously) and I don't get asked for refreshes at all.

Thanks,
Troy Moreland


--- End Message ---
--- Begin Message ---
I am looking to do a login page where they would log into the database, but
not show the database information... Its a mySQL database

i.e.

login page with usernam and password then it would bring them into a html
page with a menu of items.  I want the database to control the passwords. I
have been scratching my head about this for a while


--- End Message ---

Reply via email to