php-windows Digest 23 Mar 2001 10:28:02 -0000 Issue 506 Topics (messages 6234 through 6244): Re:Apache/PHP on Win 2000 6234 by: speedoflight.runbox.com 6235 by: Ignatius Teo 6236 by: speedoflight.runbox.com PHP's doc_root 6237 by: Rayon Pinnock 6238 by: Ignatius Teo 6241 by: Rayon Pinnock 6244 by: Tom Mathews Re: BEST Network Marketer Leads 6239 by: Nold, Mark Re: Apache/PHP on Win 2000 6240 by: Nold, Mark FATAL: emalloc(): Unable to allocate 2147483599 bytes 6242 by: Denis Eltsov 6243 by: Fernando Madruga 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] ----------------------------------------------------------------------
I added that line in, didn't make any difference. The browser is still asking me if I want to download my php file. Just to reiterate. My Win 2000 box is not on a network and I am using http://127.0.0.1 to serve the file back to me. Apache seems to serve regular html file fine. I'm trying to configure it such that the entire htdocs directory can contain php files. In my sample test, I used http:/127.0.0.1/index.php > You need to add an Action to you httpd.conf file. Insert the following > into the 'Action' area: > > Action application/x-httpd-php "/php/php.exe" > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: March 22, 2001 1:27 PM > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Subject: [PHP-WIN] Re:[PHP-WIN] Apache/PHP on Win 2000 > > > > > > Hello: > > Thanks for your reply. Pls tell me where I have gone wrong for > > the PHP server is still not parsing the file, basically the > > browser is still asking if I want to download the php file. I've > > included my httpd.conf file as an attachment. > > > > I'm not all that well-versed on Apache. So pls bear with me. > > > > This is what I have: > > > > <Directory "D:/Apache/htdocs"> > > AllowOverride None > > Options Indexes Multiviews > > Order allow,deny > > Allow from all > > </Directory> > > > > > > > > AddType application/x-httpd-php .php4 > > AddType application/x-httpd-php .php > > ScriptAlias /php/ "D:/php/" > > > > > > Thanks!! > > > > > > > Defining two different types (your lines 2 and 5) for the same > extension > > > does not help... > > > Try removing the last line. Also, you'll have to enable script > > parsing for > > > the directories involved: check your apache docs for <directory> and > > > 'options'. > > > > > > HTH, > > > Madruga > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > Sent: quinta-feira, 22 de Margo de 2001 3:50 > > > To: [EMAIL PROTECTED] > > > Subject: [PHP-WIN] Apache/PHP on Win 2000 > > > > > > > > > I am running Apache on Win 2000 and am trying to install PHP on it. > I've > > > used the PHP installer and have configured my httpd.conf file > > to recognize > > > the php mime type. > > > > > > I am using localhost or 127.0.0.1 to do this since I don't have > > a box that > > > is online. I've never tried the localhost route before but > > Apache seems to > > > serve regular HTML files up fine. > > > > > > But, when I load a PHP file on this machine, i.e. > http://127.0.0.1/test.php, > > the PHP server doesn't seem to parse the file. It asks me if I want to > > download the file or open it. I don't want either. I'm not sure what I > > should do. Any help would be greatly appreciated. > > > > Below is what I've dumped in my httpd.conf file. Let me know if it's > right > > or wrong. > > > > Please help!! Thanks much! > > > > > > AddType application/x-httpd-php .php4 > > AddType application/x-httpd-php .php > > ScriptAlias /php/ "D:/php/" > > Action application/x-httpd-php "D:\php\php.exe" > > AddType application/x-httpd-php4 .php> > > > > > > ----------------------------------------------- > Runbox Mail Manager - www.runbox.com > Free online email application ----------------------------------------------- Runbox Mail Manager - www.runbox.com Free online email application
This should work if you are running PHP as a CGI, ScriptAlias /php4/ "c:/php4/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php4/php.exe" Did u restart Apache after you made the changes to httpd.conf? Ignatius > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, 23 March 2001 10:25 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [PHP-WIN] Re:Apache/PHP on Win 2000 > > > I added that line in, didn't make any difference. The browser > is still asking me if I want to download my php file. > > Just to reiterate. My Win 2000 box is not on a network and I > am using http://127.0.0.1 to serve the file back to me. > Apache seems to serve regular html file fine. > > I'm trying to configure it such that the entire htdocs > directory can contain php files. In my sample test, I used > http:/127.0.0.1/index.php > > > > > > > You need to add an Action to you httpd.conf file. Insert > the following > > into the 'Action' area: > > > > Action application/x-httpd-php "/php/php.exe" > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > Sent: March 22, 2001 1:27 PM > > > To: [EMAIL PROTECTED] > > > Cc: [EMAIL PROTECTED] > > > Subject: [PHP-WIN] Re:[PHP-WIN] Apache/PHP on Win 2000 > > > > > > > > > Hello: > > > Thanks for your reply. Pls tell me where I have gone wrong for > > > the PHP server is still not parsing the file, basically the > > > browser is still asking if I want to download the php file. I've > > > included my httpd.conf file as an attachment. > > > > > > I'm not all that well-versed on Apache. So pls bear with me. > > > > > > This is what I have: > > > > > > <Directory "D:/Apache/htdocs"> > > > AllowOverride None > > > Options Indexes Multiviews > > > Order allow,deny > > > Allow from all > > > </Directory> > > > > > > > > > > > > AddType application/x-httpd-php .php4 > > > AddType application/x-httpd-php .php > > > ScriptAlias /php/ "D:/php/" > > > > > > > > > Thanks!! > > > > > > > > > > Defining two different types (your lines 2 and 5) for the same > > extension > > > > does not help... > > > > Try removing the last line. Also, you'll have to enable script > > > parsing for > > > > the directories involved: check your apache docs for > <directory> and > > > > 'options'. > > > > > > > > HTH, > > > > Madruga > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > > Sent: quinta-feira, 22 de Margo de 2001 3:50 > > > > To: [EMAIL PROTECTED] > > > > Subject: [PHP-WIN] Apache/PHP on Win 2000 > > > > > > > > > > > > I am running Apache on Win 2000 and am trying to > install PHP on it. > > I've > > > > used the PHP installer and have configured my httpd.conf file > > > to recognize > > > > the php mime type. > > > > > > > > I am using localhost or 127.0.0.1 to do this since I don't have > > > a box that > > > > is online. I've never tried the localhost route before but > > > Apache seems to > > > > serve regular HTML files up fine. > > > > > > > > But, when I load a PHP file on this machine, i.e. > > http://127.0.0.1/test.php, > > > the PHP server doesn't seem to parse the file. It asks me > if I want to > > > download the file or open it. I don't want either. I'm > not sure what I > > > should do. Any help would be greatly appreciated. > > > > > > Below is what I've dumped in my httpd.conf file. Let me > know if it's > > right > > > or wrong. > > > > > > Please help!! Thanks much! > > > > > > > > > AddType application/x-httpd-php .php4 > > > AddType application/x-httpd-php .php > > > ScriptAlias /php/ "D:/php/" > > > Action application/x-httpd-php "D:\php\php.exe" > > > AddType application/x-httpd-php4 .php> > > > > > > > > > > > > ----------------------------------------------- > > Runbox Mail Manager - www.runbox.com > > Free online email application > > > > > > ----------------------------------------------- > Runbox Mail Manager - www.runbox.com > Free online email application > > -- > 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] >
ScriptAlias /php/ "D:/php/" Action application/x-httpd-php "/php/php.exe" AddType application/x-httpd-php .php Ah, I finally did it. The lines above were what I wrote in. I took out all references to "4" since my directory didn't have a "4" in it. Tricky!! I also added php in the mime.types file. I figured, what the heck... application/php php Thanks for all your help!! You've all been great! > This should work if you are running PHP as a CGI, > > ScriptAlias /php4/ "c:/php4/" > AddType application/x-httpd-php .php > Action application/x-httpd-php "/php4/php.exe" > > Did u restart Apache after you made the changes to httpd.conf? > > Ignatius > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Friday, 23 March 2001 10:25 > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Subject: [PHP-WIN] Re:Apache/PHP on Win 2000 > > > > > > I added that line in, didn't make any difference. The browser > > is still asking me if I want to download my php file. > > > > Just to reiterate. My Win 2000 box is not on a network and I > > am using http://127.0.0.1 to serve the file back to me. > > Apache seems to serve regular html file fine. > > > > I'm trying to configure it such that the entire htdocs > > directory can contain php files. In my sample test, I used > > http:/127.0.0.1/index.php > > > > > > > > > > > > > You need to add an Action to you httpd.conf file. Insert > > the following > > > into the 'Action' area: > > > > > > Action application/x-httpd-php "/php/php.exe" > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > > Sent: March 22, 2001 1:27 PM > > > > To: [EMAIL PROTECTED] > > > > Cc: [EMAIL PROTECTED] > > > > Subject: [PHP-WIN] Re:[PHP-WIN] Apache/PHP on Win 2000 > > > > > > > > > > > > Hello: > > > > Thanks for your reply. Pls tell me where I have gone wrong for > > > > the PHP server is still not parsing the file, basically the > > > > browser is still asking if I want to download the php file. I've > > > > included my httpd.conf file as an attachment. > > > > > > > > I'm not all that well-versed on Apache. So pls bear with me. > > > > > > > > This is what I have: > > > > > > > > <Directory "D:/Apache/htdocs"> > > > > AllowOverride None > > > > Options Indexes Multiviews > > > > Order allow,deny > > > > Allow from all > > > > </Directory> > > > > > > > > > > > > > > > > AddType application/x-httpd-php .php4 > > > > AddType application/x-httpd-php .php > > > > ScriptAlias /php/ "D:/php/" > > > > > > > > > > > > Thanks!! > > > > > > > > > > > > > Defining two different types (your lines 2 and 5) for the same > > > extension > > > > > does not help... > > > > > Try removing the last line. Also, you'll have to enable script > > > > parsing for > > > > > the directories involved: check your apache docs for > > <directory> and > > > > > 'options'. > > > > > > > > > > HTH, > > > > > Madruga > > > > > > > > > > -----Original Message----- > > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > > > Sent: quinta-feira, 22 de Margo de 2001 3:50 > > > > > To: [EMAIL PROTECTED] > > > > > Subject: [PHP-WIN] Apache/PHP on Win 2000 > > > > > > > > > > > > > > > I am running Apache on Win 2000 and am trying to > > install PHP on it. > > > I've > > > > > used the PHP installer and have configured my httpd.conf file > > > > to recognize > > > > > the php mime type. > > > > > > > > > > I am using localhost or 127.0.0.1 to do this since I don't have > > > > a box that > > > > > is online. I've never tried the localhost route before but > > > > Apache seems to > > > > > serve regular HTML files up fine. > > > > > > > > > > But, when I load a PHP file on this machine, i.e. > > > http://127.0.0.1/test.php, > > > > the PHP server doesn't seem to parse the file. It asks me > > if I want to > > > > download the file or open it. I don't want either. I'm > > not sure what I > > > > should do. Any help would be greatly appreciated. > > > > > > > > Below is what I've dumped in my httpd.conf file. Let me > > know if it's > > > right > > > > or wrong. > > > > > > > > Please help!! Thanks much! > > > > > > > > > > > > AddType application/x-httpd-php .php4 > > > > AddType application/x-httpd-php .php > > > > ScriptAlias /php/ "D:/php/" > > > > Action application/x-httpd-php "D:\php\php.exe" > > > > AddType application/x-httpd-php4 .php> > > > > > > > > > > > > > > > > > > ----------------------------------------------- > > > Runbox Mail Manager - www.runbox.com > > > Free online email application > > > > > > > > > > > > ----------------------------------------------- > > Runbox Mail Manager - www.runbox.com > > Free online email application > > > > -- > > 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] > > ----------------------------------------------- Runbox Mail Manager - www.runbox.com Free online email application
I am running Apache 1.3.19 web server under Windows 2000 Professional with php4 configured as a module of Apache. Previously php4 was configured was used a cgi interpreter and in the php.ini file I had doc_root = "c:\php\scripts" and in the httpd.conf file I had DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/public" and it worked beautifully. i.e. I could type http://localhost/myscript.php in my browser and the web server would automatically check the directory specified by doc_root for the requested php script and go on from there. However under the current configuration the web server cannot find the scripts and the browser reports the dreaded error: HTTP 404 - File not found. What I did as a workaround was to place the php scripts somewhere under the web server's DocumentRoot and specify the path when making script requests. This works but I want to have my scripts organized like I did before - i.e. in a separate directory tree than that of the web server's root. Please advise. Rayon Pinnock
This is an Apache configuration issue. You can set up multiple IP-based Virtual Hosts with different document roots on a Windoze box. In your C:\WINDOWS\HOSTS file, set up some IP addresses: localhost 127.0.0.1 myserver 127.0.0.2 etc... In your Apache httpd.conf file: <VirtualHost 127.0.0.1> DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/public" ServerName localhost </VirtualHost> <VirtualHost 127.0.0.2> DocumentRoot "c:\php\scripts" ServerName myserver ServerAlias scripts </VirtualHost> For more info, RTFM for Apache. Good luck. Ignatius > -----Original Message----- > From: Rayon Pinnock [mailto:[EMAIL PROTECTED]] > Sent: Friday, 23 March 2001 11:12 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP's doc_root > > > I am running Apache 1.3.19 web server under Windows 2000 Professional > with > php4 configured as a module of Apache. > > Previously php4 was configured was used a cgi interpreter > and in the php.ini file I had > > doc_root = "c:\php\scripts" > > and in the httpd.conf file I had > > DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/public" > > and it worked beautifully. i.e. I could type > http://localhost/myscript.php > in my browser and the web server would automatically check > the directory > > specified by doc_root for the requested php script and go on > from there. > > > However under the current configuration the web server cannot find the > scripts and the browser reports the dreaded error: HTTP 404 - File not > found. > > What I did as a workaround was to place the php scripts > somewhere under > the web server's DocumentRoot and specify the path when making script > requests. This works but I want to have my scripts organized > like I did > > before - i.e. in a separate directory tree than that of the > web server's > > root. Please advise. > > Rayon Pinnock > > > > -- > 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] >
Thanks for the help. I ended up using name-based vhosts instead, but I would not have figured it out without your help. Thanks again. Ignatius Teo wrote: > This is an Apache configuration issue. > > You can set up multiple IP-based Virtual Hosts with different document roots on a >Windoze box. > > In your C:\WINDOWS\HOSTS file, set up some IP addresses: > > localhost 127.0.0.1 > myserver 127.0.0.2 > etc... > > In your Apache httpd.conf file: > > <VirtualHost 127.0.0.1> > DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/public" > ServerName localhost > </VirtualHost> > > <VirtualHost 127.0.0.2> > DocumentRoot "c:\php\scripts" > ServerName myserver > ServerAlias scripts > </VirtualHost> > > For more info, RTFM for Apache. > > Good luck. > > Ignatius > > > -----Original Message----- > > From: Rayon Pinnock [mailto:[EMAIL PROTECTED]] > > Sent: Friday, 23 March 2001 11:12 > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] PHP's doc_root > > > > > > I am running Apache 1.3.19 web server under Windows 2000 Professional > > with > > php4 configured as a module of Apache. > > > > Previously php4 was configured was used a cgi interpreter > > and in the php.ini file I had > > > > doc_root = "c:\php\scripts" > > > > and in the httpd.conf file I had > > > > DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/public" > > > > and it worked beautifully. i.e. I could type > > http://localhost/myscript.php > > in my browser and the web server would automatically check > > the directory > > > > specified by doc_root for the requested php script and go on > > from there. > > > > > > However under the current configuration the web server cannot find the > > scripts and the browser reports the dreaded error: HTTP 404 - File not > > found. > > > > What I did as a workaround was to place the php scripts > > somewhere under > > the web server's DocumentRoot and specify the path when making script > > requests. This works but I want to have my scripts organized > > like I did > > > > before - i.e. in a separate directory tree than that of the > > web server's > > > > root. Please advise. > > > > Rayon Pinnock > > > > > > > > -- > > 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] > >
The other alternative (for those who don't have control of their DNS fro instance so can't set up a pile of virtual hosts) which I often use when I'm developing is just to set up some alias's to the root of the directory tree that you want to use eg http://localhost/bollox/ would take you to c:\bollox\ if you had the following in http.conf: - Alias /bollox/ "C:/bollox/" <Directory "C:/bollox/"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Tom Rayon Pinnock wrote: > I am running Apache 1.3.19 web server under Windows 2000 Professional > with > php4 configured as a module of Apache. > > Previously php4 was configured was used a cgi interpreter > and in the php.ini file I had > > doc_root = "c:\php\scripts" > > and in the httpd.conf file I had > > DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/public" > > and it worked beautifully. i.e. I could type > http://localhost/myscript.php > in my browser and the web server would automatically check the directory > > specified by doc_root for the requested php script and go on from there. > > However under the current configuration the web server cannot find the > scripts and the browser reports the dreaded error: HTTP 404 - File not > found. > > What I did as a workaround was to place the php scripts somewhere under > the web server's DocumentRoot and specify the path when making script > requests. This works but I want to have my scripts organized like I did > > before - i.e. in a separate directory tree than that of the web server's > > root. Please advise. > > Rayon Pinnock > > -- > 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]
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at [EMAIL PROTECTED] and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- I don't know about you guys but i really appreciate Jenni letting us know about this exciting oportunity.... I first thought this was just more spam but because of the grammer, mixed case and spelling mistakes it must be a real person! Now where's my cheque book... mn Mark Nold [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Senior Consultant Change is inevitable, except from vending machines. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: None To: [EMAIL PROTECTED] Subject: Fwd: BEST Network Marketer Leads ATTENTION! I Found this company on the internet. They came very highly recommended by several of my friends and associates. They have the most qualified leads I have ever worked. Forget those generic phone leads... sign up 5 out of 15 or more every time!! They Are having a 33% off sale this week only!! Sale Ends Friday, So I wanted this to get out to anyone who would find this service of use, as I very much did!! Thanks, Jenni Vaughn Oh...by the waY... THERE SITE ADDRESS IS: http://www.geocities.com/leads4you911/ ************************************************************** THIS EMAIL COMPLIES WITH ALL REGULATIONS. TO BE REMOVED SIMPLY EMAIL [EMAIL PROTECTED] FOR IMMEDIATE REMOVAL FROM ANY FUTURE EMAILS FROM OUR COMPANY. **************************************************************
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at [EMAIL PROTECTED] and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- ScriptAlias /php4/ "d:/php/" AddType application/x-httpd-php4 .php4 .php .inc .htm Action application/x-httpd-php4 "/php4/php.exe" You dont need two Addtype lines (i think one overwrites the previous) and you need an action line. mn Mark Nold [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Senior Consultant Change is inevitable, except from vending machines. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 4:27 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re:[PHP-WIN] Apache/PHP on Win 2000 Hello: Thanks for your reply. Pls tell me where I have gone wrong for the PHP server is still not parsing the file, basically the browser is still asking if I want to download the php file. I've included my httpd.conf file as an attachment. I'm not all that well-versed on Apache. So pls bear with me. This is what I have: <Directory "D:/Apache/htdocs"> AllowOverride None Options Indexes Multiviews Order allow,deny Allow from all </Directory> AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php ScriptAlias /php/ "D:/php/" Thanks!! > Defining two different types (your lines 2 and 5) for the same extension > does not help... > Try removing the last line. Also, you'll have to enable script parsing for > the directories involved: check your apache docs for <directory> and > 'options'. > > HTH, > Madruga > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: quinta-feira, 22 de Março de 2001 3:50 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Apache/PHP on Win 2000 > > > I am running Apache on Win 2000 and am trying to install PHP on it. I've > used the PHP installer and have configured my httpd.conf file to recognize > the php mime type. > > I am using localhost or 127.0.0.1 to do this since I don't have a box that > is online. I've never tried the localhost route before but Apache seems to > serve regular HTML files up fine. > > But, when I load a PHP file on this machine, i.e. http://127.0.0.1/test.php, > the PHP server doesn't seem to parse the file. It asks me if I want to > download the file or open it. I don't want either. I'm not sure what I > should do. Any help would be greatly appreciated. > > Below is what I've dumped in my httpd.conf file. Let me know if it's right > or wrong. > > Please help!! Thanks much! > > > AddType application/x-httpd-php .php4 > AddType application/x-httpd-php .php > ScriptAlias /php/ "D:/php/" > Action application/x-httpd-php "D:\php\php.exe" > AddType application/x-httpd-php4 .php> ----------------------------------------------- Runbox Mail Manager - www.runbox.com Free online email application
I use win2000 SP1 - IIS5 - php4 (as CGI) - odbc connection to Access 2000 Everything was fine until I install MS SQL 2000 to the same machine. After this I receive such a message FATAL: emalloc(): Unable to allocate 2147483599 bytes every time I try to execute such a program <? $x=odbc_connect("oh","",""); $r=odbc_exec($x,"select 'a' as a_leter from some_table"); ?> ODBC works fine from any other program. select text_field from some_table all so works fine . Best regards Denis Eltsov P.S. I undestend what select 'a' as a_leter from some_table will return my "a" several times. This is an example of problem. :)
What about 'usefull' queries? Do they fail too? Bye, Madruga -----Original Message----- From: Denis Eltsov [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 23 de Março de 2001 7:47 To: [EMAIL PROTECTED] Subject: [PHP-WIN] FATAL: emalloc(): Unable to allocate 2147483599 bytes I use win2000 SP1 - IIS5 - php4 (as CGI) - odbc connection to Access 2000 Everything was fine until I install MS SQL 2000 to the same machine. After this I receive such a message FATAL: emalloc(): Unable to allocate 2147483599 bytes every time I try to execute such a program <? $x=odbc_connect("oh","",""); $r=odbc_exec($x,"select 'a' as a_leter from some_table"); ?> ODBC works fine from any other program. select text_field from some_table all so works fine . Best regards Denis Eltsov P.S. I undestend what select 'a' as a_leter from some_table will return my "a" several times. This is an example of problem. :) -- 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]