php-windows Digest 19 Feb 2002 22:34:33 -0000 Issue 1008
Topics (messages 12143 through 12152):
why i can't load the gettext extension?
12143 by: GB
PHP y sql server 2k???
12144 by: Eduardo Cancino
12145 by: Svensson, B.A.T. (HKG)
12146 by: Hunter, Ray
Re: ISAPI and Includes
12147 by: Nicole Amashta
Re: calling PHP code on a different website
12148 by: Ridai Govinda Pombo
Dynamic file creation in Win NT4.
12149 by: Sridhar Moparthy
Re: [PHP] Dynamic file creation in Win NT4.
12150 by: Hunter, Ray
12151 by: Piotr Pluciennik
Re: htaccess password encryption
12152 by: Rubén Gutiérrez
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 ---
Hi,
i'm trying to load the gettext extension for the IMP/HORDE webmail
project.
i've installed all in a single machine with Win2k pro-iis5 and php
like exe (not dll).
i've trie to uncomment the line corrispondent line in the php.ini file
(extension=php_gettext.dll) but when i launch a default php page on
IE,
i receive the error "Unable to load dynamic library
'e:\Inetpub\php-4\extensions\php_gettext.dll'"
'i've controlled: the extension exist in the specified folder, the
gnu_gettext.dll library exist in the "dlls" folder of php instal
folder.
so i don't know why the gettex extension not load.
someone can help me?
thank's in advance
Giorgio
--- End Message ---
--- Begin Message ---
New to list...
Hi, how to start php & sql server!??
thanks!
--
Eduardo Cancino
[EMAIL PROTECTED]
---------------------------
Coordinador de Desarrollo Web
CENTRO DE INFORMACION Y COMUNICACION AMBIENTAL DE NORTEAMERICA A.C.
---------------------------
www.ciceana.org.mx
---------------------------
56 59 05 09
Av. Progreso #3, Col. del Carmen, Viveros de Coyoacan, 04010, Mexico D.F.
--- End Message ---
--- Begin Message ---
From: Eduardo Cancino
>Hi, how to start php & sql server!??
Wich RDBMS do you use?
--- End Message ---
--- Begin Message ---
Check the manual here:
http://www.php.net/manual/en/ref.odbc.php
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-----Original Message-----
From: Eduardo Cancino [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 8:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP y sql server 2k???
New to list...
Hi, how to start php & sql server!??
thanks!
--
Eduardo Cancino
[EMAIL PROTECTED]
---------------------------
Coordinador de Desarrollo Web
CENTRO DE INFORMACION Y COMUNICACION AMBIENTAL DE NORTEAMERICA A.C.
---------------------------
www.ciceana.org.mx
---------------------------
56 59 05 09
Av. Progreso #3, Col. del Carmen, Viveros de Coyoacan, 04010, Mexico D.F.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Comment out your include path in your php.ini unless you really want to
globally include paths ....
;include_path='c:\php\includes\'
Just don't use the include_path if you don't really need to.
Or, make sure the "CURRENT" path "." is in the include like so:
include_path='.\;c:\php\includes\'
And, if you have a main.php page which includes other files, be sure those
other files don't include the same files, or there will be a conflict.
example
class Entity is in file: Entity.inc
class User extends Entity is in class User.inc and requires that class
Entity be visible to class User in order to extend the Entity class.
class Company extends Entity is in class Company.inc and requires the Entity
class be visible in order to extend it.
If you have the main page that needs to use the User class and the Company
class, then you should do this:
<?
#file: main.php
include("Entity.inc");
include("Company.inc");
include("User.inc");
## do code here
?>
If you do this, no conflict will happen, but if you tried to include Entity
in BOTH of the subclasses files, you would encounter an error saying that
the Entity class already exists.
Now, this may not have been your original question, but just in case, I
think this is somewhat related anyway.
Nicole Amashta
www.aeontrek.com
================
"Chris Ogles" <[EMAIL PROTECTED]> wrote in message
000001c1b8d6$4325fe00$[EMAIL PROTECTED]">news:000001c1b8d6$4325fe00$[EMAIL PROTECTED]...
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have a an IIS 5.0 runing the ISAPI and have a problem getting my
> includes to work. The situation is the main php page includes page d
> and e. Pages d and e both have other includes in them. When i go
> to the pages now i get an include error like the following:
>
> Warning: Failed opening 'phpbb/includes/constants.php' for inclusion
> (include_path='c:\php\includes\') in
> E:\InetPub\wwwroot\phpbb\common.php on line 113
>
> My php.ini file is pointing to only one directory for includes which
> is the "c:\php\includes". I have trided to put in the other pathes
> to each of the includes that the other file need, but still get the
> exact same error. Does anyone have any ideas??
>
> Drop me a line at [EMAIL PROTECTED]
>
> Thanks
> Chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 7.0
>
> iQA/AwUBPHGR9KNIaumjVcTHEQIcTgCg0TnGt5mbMZfCPwVERgrlmAPav48AoOp8
> EQGLfaWs86YD7VSr8kjTNQRC
> =W09Y
> -----END PGP SIGNATURE-----
>
--- End Message ---
--- Begin Message ---
The most simple way is by QueryString :-)
Ridai
Steen Rabol wrote:
> Hi
>
> Plot: how can I share data/info from a PHP based site on a ASP based site ?
>
> Site A, running PHP
> Site B , running ASP
>
> Now on site B I would like to publish some information from site A's
> database, is that possible ?
>
> Thanks i advance
>
> Steen
>
>
>
--- End Message ---
--- Begin Message ---
Hi All,
Could you please help me on how to create a file dynamically on the server
in PHP.
I wanted to open a new file for each day to save all the errors generated by
different web pages on that day.
I am using PHP 4.1.6 on, Win NT4 and IIS .
Thank you in advance!
Sridhar Moparthy
--- End Message ---
--- Begin Message ---
You need to make sure that php has the correct permissions to access the
directory and write the file that you want it to write too...
Check out the manual for this...
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-----Original Message-----
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 10:44 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Dynamic file creation in Win NT4.
Hi All,
Could you please help me on how to create a file dynamically on the server
in PHP. I wanted to open a new file for each day to save all the errors
generated by different web pages on that day.
I am using PHP 4.1.6 on, Win NT4 and IIS .
Thank you in advance!
Sridhar Moparthy
--- End Message ---
--- Begin Message ---
It's as easy as... :-)
$day = getdate(time());
$f_name = create table name on time basis;
$fd = fopen($f_name, "a"); // open file
fwrite($fd, "string you want tu put (add) into
file"); // write to file all your data
fclose($fd); // close the file
This will create your file and then append all your
info. See the manual for above functions.
That's all folks :-)
HTH
Piotr
--- "Hunter, Ray" <[EMAIL PROTECTED]> wrote: >
You need to make sure that php has the correct
> permissions to access the
> directory and write the file that you want it to
> write too...
>
> Check out the manual for this...
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -----Original Message-----
> From: Sridhar Moparthy
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 10:44 AM
> To: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: [PHP] Dynamic file creation in Win NT4.
>
>
> Hi All,
>
> Could you please help me on how to create a file
> dynamically on the server
> in PHP. I wanted to open a new file for each day to
> save all the errors
> generated by different web pages on that day.
>
> I am using PHP 4.1.6 on, Win NT4 and IIS .
>
> Thank you in advance!
> Sridhar Moparthy
>
>
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
On Mon, 11 Feb 2002 14:06:27 +0100
"Martin.Andrew" <[EMAIL PROTECTED]> wrote:
> Does anyone know how to encrypt a password for use in htaccess?
>
> I creating a secure environment using PHP, I create the directory structure
> and htaccess files dynamically based on php forms / sessions but I'm having
> problems encrypting the password for the htpasswd file for apache.
>
> I have see many examples but most seem to be perl scripts which I don't want
> to use!
> Can it be done with PHP?
Maybe you can use the "exec" function to execute the htpasswd.exe
utility that comes with Apache for Windows.
$path_to_htpwd = "\"C:\\Program Files\\Apache Group\\Apache\\Bin\\htpasswd.exe\"";
exec(getenv("COMSPEC")." /c $path_to_htpwd -c -b $filename $username $password");
Note that the "-c" flag will create a new file or overwrite an existing one. If you
want
to append new usernames and passwords to an already existing file, remove the "-c"
flag.
I tested it on my machine and it worked.
Cheers,
Rubén Gutiérrez
--- End Message ---