php-windows Digest 26 Sep 2001 07:58:33 -0000 Issue 774

Topics (messages 9523 through 9540):

Re: How to use REST FTP command
        9523 by: Tomas Vasek

php4 and interbase
        9524 by: Sebastián
        9531 by: Chen Wei, Lian

Re: IIS Installation]
        9525 by: Jason Bourne
        9527 by: Mark
        9535 by: Jason Bourne
        9537 by: Pitcher, George
        9539 by: Jason Bourne

Problems setting up a DSN
        9526 by: Daniel Parsons
        9530 by: Chen Wei, Lian
        9536 by: Jason Bourne

PHP & Win 2k Server
        9528 by: Sean Duke
        9529 by: Chen Wei, Lian
        9532 by: Sean Duke
        9533 by: Chen Wei, Lian

dbase and PHP
        9534 by: darius.burlega.electrolux.lt
        9538 by: Jason Bourne

Image upload on IIS
        9540 by: Josh Seward

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]


----------------------------------------------------------------------


> We are using the built-in ftp functions on W2K with PHP 4.0.6. Works fine.
> Is that what you require?

These ftp functions work OK (ftp_put = STOR, ftp_get = RETR), but I need
REST.

It is good for resume, but I need it to index mp3 files on ftp server.
If the mp3 file has 4128B, I know that last 128B is TAG (ID3v1). So I
send a REST command (REST 4000) and I get last 128B of the file - Title,
Artist, Album... I dont need download gigabytes of data but I only need
a few bytes...

I can use sockets, but ftp uses 2 connections - for commands and for
data and it's a little complicated...

Tomas Vasek




When I edit php.ini file and try to use the Interbase extension, everytime I
try to open a php on my Browser it display the following warning

"Unable to load dynamic library 'c:\php\extensions/php_interbase.dll' - in
Unknown on line 0"


Help me please !!!!






Hi Sebastián,

Do you have the Interbase drivers installed in the computer? I had that
problem before because I don't have the database drivers installed so the
DLL can't be loaded.


-- 
regards,
chen wei (http://www.cw213.net)
===================================
Solutions Developer of Earth9.com
===================================


Wednesday, September 26, 2001, 5:02:56 AM, you wrote:

S> When I edit php.ini file and try to use the Interbase extension, everytime I
S> try to open a php on my Browser it display the following warning

S> "Unable to load dynamic library 'c:\php\extensions/php_interbase.dll' - in
S> Unknown on line 0"


S> Help me please !!!!





mark,

If people like you don't question the decisions other people in there choice
of platforms, but instead just help to make solutions like php more portable
(by making it work on questionable platforms) in future company's will
choose for better platform because there applications become indipendent of
a platform they are using!!!!

regards,

Jason
"Mark" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
? you posted an IIS question to a php list and now you're complaining
about not getting a useful response?

On Tue, 25 Sep 2001 08:15:16 -0500, Craig Morrison wrote:
>
>It's answers like this that persuade people to find another solution
>(read--product) to their problems.

um, that was the whole idea of my post.

>If you don't have anything useful to say, please keep your mouth
>shut.

let's keep this civil, craig.

>Corporations and businesses make decisions that admins can not over-
>ride. This is a case where IIS is being thrust upon us.

maybe you could have mentioned that in the first place. I would hope
that in light of code red and nimda your company would want to
reconsider.

>Now does anyone have anything useful to add to the discussion?
>
>Mark wrote:
>>
>> >Suggestions?
>>
>> I suggest you use Apache. how many worms later will it be before
>>you
>> make the switch?
>


--
Mark, [EMAIL PROTECTED] on 09/25/2001








On Tue, 25 Sep 2001 23:33:52 +0200, Didier Geheniau wrote:
>mark,
>
>If people like you don't question the decisions other people in
there
>choice of platforms, but instead just help to make solutions like
php
>more portable (by making it work on questionable platforms) in
future
>company's will choose for better platform because there applications
>become indipendent of a platform they are using!!!!

I hear you, but at the same time I think it's important to point out
the problems with setting up a product with known unpatched security
holes, especially to an unexperienced admin. If someone has a box
that's been running IIS for a while I would keep quiet but here's
somebody who is trying to set up IIS for the first time which is 
irresponsible from my point of view since I'm the one who'll suffer.
shall I forward this guy the onslaught of codered/nimda traffic I've
been receiving lately from other people's compromized IIS
installations to convince him?

>regards,
>
>Jason






Mark,

I understand your problem, i have the same problems. Customers of mine
demand running their apps on ms and iis, we have no choice. 70% till 90% of
their apps are running only on ms and they want 1 standard. So a decision to
choose another platform then ms is most of the time strategically and not
functional. It's not the inexperienced person who decided which platform to
use but the management of the company. It's up to use as consultants and
developers to help those managments to choose for a more secure and stable
platform.

Regards,

Jason


"Mark" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tue, 25 Sep 2001 23:33:52 +0200, Didier Geheniau wrote:
>mark,
>
>If people like you don't question the decisions other people in
there
>choice of platforms, but instead just help to make solutions like
php
>more portable (by making it work on questionable platforms) in
future
>company's will choose for better platform because there applications
>become indipendent of a platform they are using!!!!

I hear you, but at the same time I think it's important to point out
the problems with setting up a product with known unpatched security
holes, especially to an unexperienced admin. If someone has a box
that's been running IIS for a while I would keep quiet but here's
somebody who is trying to set up IIS for the first time which is
irresponsible from my point of view since I'm the one who'll suffer.
shall I forward this guy the onslaught of codered/nimda traffic I've
been receiving lately from other people's compromized IIS
installations to convince him?

>regards,
>
>Jason








Alternately, it would be useful for those who have no choice but to work on
MS OS machines, to be helped in overcoming their problems.

In one sense, making PHP cross-platform takes away one of the motives to
change to Linux/Unix/Mac.

Speaking as one who has NT boxes with IIS and Apache as well as Mac/WebStar
and LinuxPPC/Apache.

George P

"Jason Bourne" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Mark,
> 
> I understand your problem, i have the same problems. Customers of mine
> demand running their apps on ms and iis, we have no choice. 70% till 90%
of
> their apps are running only on ms and they want 1 standard. So a decision
to
> choose another platform then ms is most of the time strategically and not
> functional. It's not the inexperienced person who decided which platform
to
> use but the management of the company. It's up to use as consultants and
> developers to help those managments to choose for a more secure and stable
> platform.
> 
> Regards,
> 
> Jason
> 
> 
> "Mark" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tue, 25 Sep 2001 23:33:52 +0200, Didier Geheniau wrote:
> >mark,
> >
> >If people like you don't question the decisions other people in
> there
> >choice of platforms, but instead just help to make solutions like
> php
> >more portable (by making it work on questionable platforms) in
> future
> >company's will choose for better platform because there applications
> >become indipendent of a platform they are using!!!!
> 
> I hear you, but at the same time I think it's important to point out
> the problems with setting up a product with known unpatched security
> holes, especially to an unexperienced admin. If someone has a box
> that's been running IIS for a while I would keep quiet but here's
> somebody who is trying to set up IIS for the first time which is
> irresponsible from my point of view since I'm the one who'll suffer.
> shall I forward this guy the onslaught of codered/nimda traffic I've
> been receiving lately from other people's compromized IIS
> installations to convince him?
> 
> >regards,
> >
> >Jason
> 
> 
> 
> 
> 
> -- 
> 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]




George,

I do not think so, as application become platform indipendant there is no
need to keep it running on ms. Then you can choose for an cheaper stable
platform.

Regards,

Jason


"George Pitcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Alternately, it would be useful for those who have no choice but to work
on
> MS OS machines, to be helped in overcoming their problems.
>
> In one sense, making PHP cross-platform takes away one of the motives to
> change to Linux/Unix/Mac.
>
> Speaking as one who has NT boxes with IIS and Apache as well as
Mac/WebStar
> and LinuxPPC/Apache.
>
> George P
>
> "Jason Bourne" <[EMAIL PROTECTED]> wrote in message
> news:<[EMAIL PROTECTED]>...
> > Mark,
> >
> > I understand your problem, i have the same problems. Customers of mine
> > demand running their apps on ms and iis, we have no choice. 70% till 90%
> of
> > their apps are running only on ms and they want 1 standard. So a
decision
> to
> > choose another platform then ms is most of the time strategically and
not
> > functional. It's not the inexperienced person who decided which platform
> to
> > use but the management of the company. It's up to use as consultants and
> > developers to help those managments to choose for a more secure and
stable
> > platform.
> >
> > Regards,
> >
> > Jason
> >
> >
> > "Mark" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > On Tue, 25 Sep 2001 23:33:52 +0200, Didier Geheniau wrote:
> > >mark,
> > >
> > >If people like you don't question the decisions other people in
> > there
> > >choice of platforms, but instead just help to make solutions like
> > php
> > >more portable (by making it work on questionable platforms) in
> > future
> > >company's will choose for better platform because there applications
> > >become indipendent of a platform they are using!!!!
> >
> > I hear you, but at the same time I think it's important to point out
> > the problems with setting up a product with known unpatched security
> > holes, especially to an unexperienced admin. If someone has a box
> > that's been running IIS for a while I would keep quiet but here's
> > somebody who is trying to set up IIS for the first time which is
> > irresponsible from my point of view since I'm the one who'll suffer.
> > shall I forward this guy the onslaught of codered/nimda traffic I've
> > been receiving lately from other people's compromized IIS
> > installations to convince him?
> >
> > >regards,
> > >
> > >Jason
> >
> >
> >
> >
> >
> > --
> > 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]






Hi,

I'm running PHP 4.0 on WinNT 4 with IIS and attempting to use an Access
2000 database. When I use this is a script:

  $logdb = odbc_connect("uptime", "user", "password");

it gives the following error :

  Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name
  not found and no default driver specified, SQL state IM002 in
  SQLConnect in D:\Inetpub\wwwroot\daniel\showuptime.php on line 20

I have set up a System DSN with the name 'uptime' in the ODBC
connections on the server and just can't figure out why it isn't finding
it. I haven't rebooted the server since adding the DSN but it is running
some other stuff that means rebooting is really a last resort thing.

Can anyone enlighten me to the really small obvious thing that I have
probably overlooked?

Cheers,
Daniel





Hi Daniel,

Did u try to connect the DSN using MS Access? Try some troubleshooting so
that u can find where the error is. If u can't connect to DSN using MS
Access also, there may have some problems in ur database drivers or ODBC
settings.

P/S: You dun have to reboot the computer in order to add a new DSN.


-- 
regards,
chen wei (http://www.cw213.net)
===================================
Solutions Developer of Earth9.com
===================================


Wednesday, September 26, 2001, 5:48:05 AM, you wrote:

DP> Hi,

DP> I'm running PHP 4.0 on WinNT 4 with IIS and attempting to use an Access
DP> 2000 database. When I use this is a script:

DP>   $logdb = odbc_connect("uptime", "user", "password");

DP> it gives the following error :

DP>   Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name
DP>   not found and no default driver specified, SQL state IM002 in
DP>   SQLConnect in D:\Inetpub\wwwroot\daniel\showuptime.php on line 20

DP> I have set up a System DSN with the name 'uptime' in the ODBC
DP> connections on the server and just can't figure out why it isn't finding
DP> it. I haven't rebooted the server since adding the DSN but it is running
DP> some other stuff that means rebooting is really a last resort thing.

DP> Can anyone enlighten me to the really small obvious thing that I have
DP> probably overlooked?

DP> Cheers,
DP> Daniel





Daniel,

Do also check if your odbc driver is compatible with your ms access
version!!
regards,

Jason
"Daniel Parsons" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm running PHP 4.0 on WinNT 4 with IIS and attempting to use an Access
> 2000 database. When I use this is a script:
>
>   $logdb = odbc_connect("uptime", "user", "password");
>
> it gives the following error :
>
>   Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name
>   not found and no default driver specified, SQL state IM002 in
>   SQLConnect in D:\Inetpub\wwwroot\daniel\showuptime.php on line 20
>
> I have set up a System DSN with the name 'uptime' in the ODBC
> connections on the server and just can't figure out why it isn't finding
> it. I haven't rebooted the server since adding the DSN but it is running
> some other stuff that means rebooting is really a last resort thing.
>
> Can anyone enlighten me to the really small obvious thing that I have
> probably overlooked?
>
> Cheers,
> Daniel
>






Hi,

I am an absolute newbie to PHP and I was wondering the beat way to install
PHP on my Win 2k server? Is there any docs on this?

Sean






Hi Sean,

        you can refer to the documentation in php.net:
        http://www.cw213.net/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=4&t=000001


-- 
regards,
chen wei (http://www.cw213.net)
===================================
Solutions Developer of Earth9.com
===================================


Wednesday, September 26, 2001, 7:44:40 AM, you wrote:

SD> Hi,

SD> I am an absolute newbie to PHP and I was wondering the beat way to install
SD> PHP on my Win 2k server? Is there any docs on this?

SD> Sean





Chen,

My IIS server is not on the default port but the port that I nominated like
8000 or something, will I be able to specify this is the setup?

Chen Wei wrote in message <[EMAIL PROTECTED]>...
>Hi Sean,
>
>        you can refer to the documentation in php.net:
>
http://www.cw213.net/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=4&t=000001
>
>
>--
>regards,
>chen wei (http://www.cw213.net)
>===================================
>Solutions Developer of Earth9.com
>===================================
>
>
>Wednesday, September 26, 2001, 7:44:40 AM, you wrote:
>
>SD> Hi,
>
>SD> I am an absolute newbie to PHP and I was wondering the beat way to
install
>SD> PHP on my Win 2k server? Is there any docs on this?
>
>SD> Sean
>






Hi Sean,

It's ok, as long as you configure to parse .php files in the site.

giving an example:
u have extracted all php files downloaded from php.net to C:\php,
and want to install php to run as CGI, just go to Internet Service Manager,
right click the website you want to configure (where the port is configure
to what u want), select properties, go to "Home Directory" tab, click on
the "Configuration" button, click "Add" under "App Mappings" in the pop up
window.
Now, under the pop up window, use "C:\php\php.exe %s %s" in Executable
field, ".php" for Extension, ok for all, that's all.

If u need some screenshots for the process, just tell me.  :)


-- 
regards,
chen wei (http://www.cw213.net)
===================================
Solutions Developer of Earth9.com
===================================


Wednesday, September 26, 2001, 12:00:08 PM, you wrote:

SD> Chen,

SD> My IIS server is not on the default port but the port that I nominated like
SD> 8000 or something, will I be able to specify this is the setup?

SD> Chen Wei wrote in message <[EMAIL PROTECTED]>...
>>Hi Sean,
>>
>>        you can refer to the documentation in php.net:
>>
SD> http://www.cw213.net/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=4&t=000001
>>
>>
>>--
>>regards,
>>chen wei (http://www.cw213.net)
>>===================================
>>Solutions Developer of Earth9.com
>>===================================
>>
>>
>>Wednesday, September 26, 2001, 7:44:40 AM, you wrote:
>>
>>SD> Hi,
>>
>>SD> I am an absolute newbie to PHP and I was wondering the beat way to
SD> install
>>SD> PHP on my Win 2k server? Is there any docs on this?
>>
>>SD> Sean
>>





Hello,
I'm working with dbase files and PHP on Apache (W2K OS), One of the dbase
colums are number's type and 11 simbols width. When I run command
dbase_get_record(gg.dbf,1) and the value is larger than 10 simbols,  I
always got wrong result.

Maybe anybody knows how to fix this problem?

Here is my little php script

<?php
$ff =
    array(
        array("string",  "C",  11   ),
        array("number",  "N",  11,0 ),
        array("number1", "N",  11,0 ),
 );

dbase_create('ff.dbf',$ff);
$k=dbase_open('ff.dbf',2);
dbase_add_record($k,array('452368754789',14578578587,147856));
$vv=dbase_get_record($k,1);
echo $vv[0],"<BR>",$vv[1],"<BR>",$vv[2];
?>
And here answer :

45236875478 - string
2147483647   - number
147856           - number


Thank you in advance.

Darius





Darius,

Looking at the results i think this is the first record you put in your db.
everytime you put an other record in your db you ask for your first record
to display. Tray to get the last record or first empty your table before
running this script.

Regards,

Jason
"Darius Burlega" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> I'm working with dbase files and PHP on Apache (W2K OS), One of the dbase
> colums are number's type and 11 simbols width. When I run command
> dbase_get_record(gg.dbf,1) and the value is larger than 10 simbols,  I
> always got wrong result.
>
> Maybe anybody knows how to fix this problem?
>
> Here is my little php script
>
> <?php
> $ff =
>     array(
>         array("string",  "C",  11   ),
>         array("number",  "N",  11,0 ),
>         array("number1", "N",  11,0 ),
>  );
>
> dbase_create('ff.dbf',$ff);
> $k=dbase_open('ff.dbf',2);
> dbase_add_record($k,array('452368754789',14578578587,147856));
> $vv=dbase_get_record($k,1);
> echo $vv[0],"<BR>",$vv[1],"<BR>",$vv[2];
> ?>
> And here answer :
>
> 45236875478 - string
> 2147483647   - number
> 147856           - number
>
>
> Thank you in advance.
>
> Darius
>






I am getting a promition denied error when trying to uplaod a file. To my 
understanding the image should upload when the submit button in pressed. I have 
nothing in my temp dir? If I upload from a shared folder though I get no errors and 
the copy function returns true even though no files are being transfered???

Can anyone tell me what the cuase of this is. I have no clue why such things would 
happen!

Thanks, 



Reply via email to