php-windows Digest 12 Sep 2003 18:17:05 -0000 Issue 1908
Topics (messages 21368 through 21380):
Problems with mssql_connect
21368 by: Nicola Romita
21369 by: Darvin Andrioli
21370 by: Nicola Romita
21371 by: Nicola Romita
Debug Build
21372 by: Vladimir Hum
Re: PHP -> ODBC -> Remote Access
21373 by: hubo
Date question?
21374 by: Disko_kex
21375 by: Erwin Kerk
21376 by: Svensson, B.A.T. (HKG)
21377 by: Svensson, B.A.T. (HKG)
21378 by: George Pitcher
21379 by: Svensson, B.A.T. (HKG)
21380 by: malte
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 guys...I'm almost an absolute beginner with PHP...and
I have problems to connect with an MS SQL SERVER 2000 instance
i get this message..and I'm sure my code is clean...(just from a book)
Fatal error: Call to undefined function: mssql_connect() in
D:\webster\php\mssql.php on line 10
Now I know i'm not the first to have this problem...I've searched through
the web for a solution but all my attempts following tips have failed....
Is thera any kind..fantastic person :) that can help me??
Best Regards
Nicola
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Nicola Romita [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 12:58 PM
> i get this message..and I'm sure my code is clean...(just from a book)
>
> Fatal error: Call to undefined function: mssql_connect() in
> D:\webster\php\mssql.php on line 10
Do you have comment out the line 'extension=php_mssql.dll' in your php.ini?
For more detial how to configure PHP and MS Sql, see
http://www.php.net/manual/en/ref.mssql.php ( or
http://www.php.net/manual/it/ref.mssql.php the italian version ).
Ciao
Darvin
--- End Message ---
--- Begin Message ---
When I coomment out the extension in php.ini...and try to reload
i get this message
Fatal error: Call to undefined function: mssql_connect() in
D:\webster\php\mssql.php on line 10
PHP Warning: Unknown(): Unable to load dynamic library './php_mssql.dll' -
Impossibile trovare il modulo specificato. in Unknown on line 0
these are the info on my installation of php (from installer for Win)
PHP Version 4.3.3
System Windows NT SELFPACEDCPU 5.0 build 2195
Build Date Aug 24 2003 22:01:16
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINNT\php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety enabled
Registered PHP Streams php, http, ftp, compress.zlib
"Darvin Andrioli" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> > -----Original Message-----
> > From: Nicola Romita [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 12, 2003 12:58 PM
>
>
> > i get this message..and I'm sure my code is clean...(just from a book)
> >
> > Fatal error: Call to undefined function: mssql_connect() in
> > D:\webster\php\mssql.php on line 10
>
> Do you have comment out the line 'extension=php_mssql.dll' in your
php.ini?
>
> For more detial how to configure PHP and MS Sql, see
> http://www.php.net/manual/en/ref.mssql.php ( or
> http://www.php.net/manual/it/ref.mssql.php the italian version ).
>
> Ciao
>
> Darvin
--- End Message ---
--- Begin Message ---
THX TO ALL GUYS...I DID IT....
I have downloaded the archive from the site...
and copied only the mssql dll in c:\WINNT
now it works it out fine....
;)
Best Regards
Nicola
"Nicola Romita" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Hi guys...I'm almost an absolute beginner with PHP...and
> I have problems to connect with an MS SQL SERVER 2000 instance
>
>
> i get this message..and I'm sure my code is clean...(just from a book)
>
> Fatal error: Call to undefined function: mssql_connect() in
> D:\webster\php\mssql.php on line 10
>
>
>
> Now I know i'm not the first to have this problem...I've searched through
> the web for a solution but all my attempts following tips have failed....
>
> Is thera any kind..fantastic person :) that can help me??
>
> Best Regards
>
> Nicola
--- End Message ---
--- Begin Message ---
Hi,
I'm searching for a Debug Build of php for windows.
Do I really have to compile it myself or can I get a
precompiled package somewere?
Regards
Vladimir
------------------------------------------
Vladimir Hum
Leiter Technik
MainSurf GmbH
Birkenwaldstr. 38
63179 Obertshausen
Tel. 06104 9855 - 237
Fax. 06104 9855 - 36
E-Mail: [EMAIL PROTECTED]
Webadresse: www.mainsurf.de
------------------------------------------
--- End Message ---
--- Begin Message ---
There is no way to access a remote MS-Access Database over the internet. Try
to switch to mysql or any other database system which is *not* designed for
desktop access only.
"Aidal" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi everyone.
>
> I'm trying to figure out how to make my PHP connect to a remote Access
> database.
>
> So far the idea I have is to somhow share out a DSN for the Access
database,
> and then make PHP odbc_connect to it somhow over the Internet. How to do
> this however, I'm not sure about.
>
> If anyone has tried to do somthing similar, knows it's not possible, knows
> how to do it or whatever - it would be greatly appreciated!
>
> NOTE: I have full control over the Access database and the server running
> it - It's my PHP which is remote to my location.
>
> Thanks for your time...
> /Aidal
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi
If I have a date (2003-04-02) and want to select 9 months later, how to
do?
Thanks.
--- End Message ---
--- Begin Message ---
If I have a date (2003-04-02) and want to select 9 months later, how to
do?
Try this:
echo date("Y-m-d",strtotime("2003-04-02 +9 month"));
Erwin Kerk
WebDeveloper
--- End Message ---
--- Begin Message ---
Well you open up yuor agenda and turn the apropriate
pages backwards, or did you intend a certain system?
-----Original Message-----
From: Disko_kex
To: [EMAIL PROTECTED]
Sent: 9/12/03 3:50 PM
Subject: [PHP-WIN] Date question?
Hi
If I have a date (2003-04-02) and want to select 9 months later, how to
do?
Thanks.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
>> If I have a date (2003-04-02) and want to select 9 months later,
>> how to do?
>>
>
>Try this:
>
>echo date("Y-m-d",strtotime("2003-04-02 +9 month"));
[EMAIL PROTECTED] bats]$ echo date("Y-m-d",strtotime("2003-04-02 +9 month"));
bash: syntax error near unexpected token `('
[EMAIL PROTECTED] bats]$
--- End Message ---
--- Begin Message ---
> >> If I have a date (2003-04-02) and want to select 9 months later,
> >> how to do?
> >>
> >
> >Try this:
> >
> >echo date("Y-m-d",strtotime("2003-04-02 +9 month"));
>
> [EMAIL PROTECTED] bats]$ echo date("Y-m-d",strtotime("2003-04-02 +9
> month"));
> bash: syntax error near unexpected token `('
> [EMAIL PROTECTED] bats]$
Please tell: how do you get this stuff on Windows?
George
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
>> [EMAIL PROTECTED] bats]$ echo date("Y-m-d",strtotime("2003-04-02 +9
>> month"));
>> bash: syntax error near unexpected token `('
>> [EMAIL PROTECTED] bats]$
>
>Please tell: how do you get this stuff on Windows?
CygWIN
--- End Message ---
--- Begin Message ---
you also can do
<?
$date_as_string = "2003-04-02";
$temp = explode("-", $date_as_string); // Cuts your String at '-' and stores
it in the $temp - Array
$date_as_timestamp = mktime(1,0,0,$temp[1], ($temp[2]+9), $temp[0]); //
contains the timestamp to the date 9 Months ahead
echo date("Y-j-n", $date_as_timestamp); // puts out the date in this form:
Year-Days-Month
?>
check out date() and mktime() in the php manual... oh yeah and i supposed
2003-04-02 to mean February 4th 2003 if i'm wrong you have to change the
mktime line..
----- Original Message -----
From: "Disko_kex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 3:50 PM
Subject: [PHP-WIN] Date question?
> Hi
>
> If I have a date (2003-04-02) and want to select 9 months later, how to
> do?
>
> Thanks.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---