php-windows Digest 23 Apr 2001 19:05:52 -0000 Issue 560 Topics (messages 6970 through 6997): Help on IIS4.0 +Oracle 6970 by: Gu Weidong-a1923c 6983 by: Asendorf, John 6984 by: Carlos Correa Goncalves Problems using Sablotron for XSLT transformations. 6971 by: Alessio Bernesco Lāvore Installing GDLib 6972 by: Patrick Dunford 6973 by: Alessio Bernesco Lāvore 6975 by: Patrick Dunford 6976 by: Patrick Dunford 6979 by: Piotr Pluciennik 6982 by: Alessio Bernesco Lāvore Re: include_path value 6974 by: Daniel Beulshausen Interbase again 6977 by: Daniel Sichta apache 404 handler 6978 by: Kelvin Luck 6980 by: Ben Cairns 6981 by: Kelvin Luck Re: Authorization on IIS5 (PHP4; Win2k) 6985 by: Andrian Pervazov 6986 by: Johan Lundqvist find URL in text and make a link 6987 by: afan 6988 by: Ben Cairns Oracle Connection Error 6989 by: Irsan Jie 6990 by: Asendorf, John 6991 by: Svensson, B.A.T. instead of php.ini (per directory values) 6992 by: Dickerson, Monty 6995 by: Daniel Beulshausen HTTP_GET_VARS/HTTP_POST_VARS 6993 by: Bob Sears 6994 by: Rasmus Lerdorf Storing images in Interbase database 6996 by: Alessio Bernesco Lāvore 6997 by: Johannes Janson 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] ----------------------------------------------------------------------
Is it must to have Oracle 8.1.6 client installed with IIS to access Oracle using OCI? I try to connect the database but got " _oci_open_server: ORA-12154: TNS:could not resolve service name" with 8.0.5 client installed. ( I can use the same TNS name to connect the DB in SQL*PLUS) Weidong Regards
I've only had success using the 8.1.6 client. Many of the people I've spoken to have had similar experiences. Many people have said that changing just the client fixed every script... As for IIS, I'm not certain if you're asking about that part... but I'm pretty sure you can use other servers. --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucundum est > -----Original Message----- > From: Gu Weidong-a1923c [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 23, 2001 2:54 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Help on IIS4.0 +Oracle > > > Is it must to have Oracle 8.1.6 client installed with IIS to > access Oracle using OCI? > I try to connect the database but got " _oci_open_server: > ORA-12154: TNS:could not resolve service name" with 8.0.5 > client installed. ( I can use the same TNS name to connect > the DB in SQL*PLUS) > > > Weidong > > Regards > > > -- > 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, Use the OCI functions with the TNS like it is in your tnsnames.ora file (C:\ORAWIN\NETWORK\ADMIN\TNSNAMES.ORA): <?php putenv("ORACLE_SID=databasename"); putenv("ORACLE_HOME=C:\ORAWIN"); $tns = "(DESCRIPTION = (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = oracleserver)(PORT = 1521))) (CONNECT_DATA = (SID = databasename) ) )"; $Conn=OCIPLogon("user","password",$tns) or die("Can not connect to Oracle"); ?> It works with all Oracle versions I´ve tried. Bye Carlos > > -----Original Message----- > > From: Gu Weidong-a1923c [mailto:[EMAIL PROTECTED]] > > Sent: Monday, April 23, 2001 2:54 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] Help on IIS4.0 +Oracle > > > > > > Is it must to have Oracle 8.1.6 client installed with IIS to > > access Oracle using OCI? > > I try to connect the database but got " _oci_open_server: > > ORA-12154: TNS:could not resolve service name" with 8.0.5 > > client installed. ( I can use the same TNS name to connect > > the DB in SQL*PLUS) > > > > > > Weidong > > > > Regards > > > > > > -- > > 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] > > > > -- > 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]
Good morning, Using the Sablotron module i receive a generic error message, has someone do some transformations succesfully? Thanks a lot Ale.
I have a development installation of PHP 4 running on Apache 1.3, Windows 95. For test development I want to install GDLib into PHP so I can use the library image functions. How would I go about doing this? I don't have access to any compilers. -- ======================================================================= Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/ Therefore, my dear brothers, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. -- 1 Corinthians 15:58 http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010422 ======================================================================= Created by Mail2Sig - http://pdunford.godzone.net.nz/
GDLib should be also included in the php 4 distribution, so you already have the compiled dll (look in php\extensions for php_gd.dll) To be able to use gd functions you have to edit php.ini (probably in your \windows directory, or do a find file) and change line: ;extension=php_gd.dll to extension=php_gd.dll so you have enabled gd extension. Then restart your pws, or, at best, do a reboot. Good bye, Alessio. "Patrick Dunford" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a development installation of PHP 4 running on Apache 1.3, Windows > 95. > > For test development I want to install GDLib into PHP so I can use the > library image functions. How would I go about doing this? I don't have > access to any compilers. > > -- > ======================================================================= > Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/ > > Therefore, my dear brothers, stand firm. Let nothing move you. > Always give yourselves fully to the work of the Lord, because you > know that your labor in the Lord is not in vain. > -- 1 Corinthians 15:58 > http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010422 > ======================================================================= > Created by Mail2Sig - http://pdunford.godzone.net.nz/ > > -- > 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] >
On 23 Apr 2001 01:11:05 -0700 AD in php.windows, Alessio Bernesco Lāvore said: >GDLib should be also included in the php 4 distribution, so you already have >the compiled dll (look in php\extensions for php_gd.dll) >To be able to use gd functions you have to edit php.ini (probably in your >\windows directory, or do a find file) >and change line: > >;extension=php_gd.dll > >to > >extension=php_gd.dll > >so you have enabled gd extension. Then restart your pws, or, at best, do a >reboot. It's not pws.
On 23 Apr 2001 01:11:05 -0700 AD in php.windows, Alessio Bernesco Lāvore said: >GDLib should be also included in the php 4 distribution, so you already have >the compiled dll (look in php\extensions for php_gd.dll) >To be able to use gd functions you have to edit php.ini (probably in your >\windows directory, or do a find file) >and change line: > >;extension=php_gd.dll > >to > >extension=php_gd.dll > >so you have enabled gd extension. Then restart your pws, or, at best, do a >reboot. Is Jpeg support included with this version of gd?
Hi, if you've downloaded PHP binaries for Win you should already have GD library in it. You don't need any compiler. The file is is php_gd.dll or php_gd_gif.dll (it depends on version you have) and is located in extensions folder of your php directory. To 'activate' it you should change your php.ini file - in windows extension section uncomment line (remove semicolon) extension=php_gd.dll. Greetings, let me know if it has helped you to solve the problem Piotr --- Patrick Dunford <[EMAIL PROTECTED]> wrote: > I have a development installation of PHP 4 running > on Apache 1.3, Windows > 95. > > For test development I want to install GDLib into > PHP so I can use the > library image functions. How would I go about doing > this? I don't have > access to any compilers. > > -- > ======================================================================= > Patrick Dunford, Christchurch, NZ - > http://pdunford.godzone.net.nz/ > > Therefore, my dear brothers, stand firm. Let > nothing move you. > Always give yourselves fully to the work of the > Lord, because you > know that your labor in the Lord is not in vain. > -- 1 Corinthians 15:58 > http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010422 > ======================================================================= > Created by Mail2Sig - > http://pdunford.godzone.net.nz/ > > -- > 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] > ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Yes, jpeg & png. Ciao, Ale. "Patrick Dunford" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On 23 Apr 2001 01:11:05 -0700 AD in php.windows, Alessio Bernesco Lāvore > said: > > >GDLib should be also included in the php 4 distribution, so you already have > >the compiled dll (look in php\extensions for php_gd.dll) > >To be able to use gd functions you have to edit php.ini (probably in your > >\windows directory, or do a find file) > >and change line: > > > >;extension=php_gd.dll > > > >to > > > >extension=php_gd.dll > > > >so you have enabled gd extension. Then restart your pws, or, at best, do a > >reboot. > > Is Jpeg support included with this version of gd? > > > -- > 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] >
Sunday, April 22, 2001, 11:19:43 PM, you wrote: > Giro, > > I agree with you that setting "ini" values via the Apache httpd.conf is > obscure in the books and the documentation. However, that's what you need > to do, *instead* of setting all of your ini stuff in the C:\windows\php.ini > file; indeeed you do not even need a php.ini file at all! you can also use registry per directory values. see http://lists.netuse.de/list.php3?show_message=22&show_overview=php4win daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
Hi there !! IIS + php 4.0.5 I'm getting error message Warning: Unable to load dynamic library 'c:/script/php405/extensions/php_interbase.dll' - I have IB server on different PC. What I'm doing wrong ? Ing. Daniel Šichta CUSTOM.web s.r.o. Hodžova 13 01001 Žilina, SLOVAKIA ++421 89 564 3474 mobile ++421 905 839 334 www.customweb.sk <http://www.customweb.sk> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ICQ: 84700861 --- Odchádzajúca správa neobsahuje vírusy. Skontrolované antivírusovým systémom AVG (http://www.grisoft.cz). Verzia: 6.0.241 / Vírusová databáza: 117 - dátum vydania: 27. 3. 2001
Hi, I know this is slightly off topic but I thought people using apache on windows might well be able to help me out... I have edited my httpd.conf file so that it now contains the line: ErrorDocument 404 /404handler.php This means that if someone goes to a dummy URL (which doesn't exist) on my site then a php page can redirect them to the relevant place. It works fine on netscape but IE notices that a 404 is being returned and prints out a default 404 page instead of what apache has returned. I can avoid this if I disable "Show friendly HTTP errors" in my "Internet Options" in IE but I can't rely on my users doing this. When you are using IIS and you change the default error page then IE doesn't have this problem. Has anyone come across this before and know a work around? Thanks in advance for any ideas, Kelvin.
There is an option under ADVANCED config section of IE, that says 'Show Friendly Error Messages' you have to disable this. Obviously though, you cannot be sure that other surfers will have done this, so just make sure that the 404handler.php file returns HTML code to the browser that is larger that I think 2.5Kb, this way, IE knows that its a custom error doc, and displays this instead. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
Thanks for the tip - it should be no problem to return 2.5Kb - I probably will be anyway, but to test it I was just returning a small string... Thanks for the help, Kelvin. -----Original Message----- From: Ben Cairns [mailto:[EMAIL PROTECTED]] Sent: 23 April 2001 10:54 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] apache 404 handler There is an option under ADVANCED config section of IE, that says 'Show Friendly Error Messages' you have to disable this. Obviously though, you cannot be sure that other surfers will have done this, so just make sure that the 404handler.php file returns HTML code to the browser that is larger that I think 2.5Kb, this way, IE knows that its a custom error doc, and displays this instead. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
If anonymous access is disabled from IIS, the PHP variables AUTH_PASSWORD and AUTH_USER will give you the username/password of the current user, but I'm not sure how exactly you can check the group membership of a particular user. Andrian Joel Gilbert wrote: > > Hi, > I'm trying to set up user-specific site settings with authentication. I need > to be able to validate accounts to a Win2K Active Directory server, as there > are several hundred accounts active, and they change on a regular basis. I > have the IIS authentication working fine, but I want to be able to have a > way of checking their group membership (in Win2K) so that PHP can determine > whether to display certain pages depending on whether they are members of > administrator, student or teachers groups. I am pretty sure that there is an > IIS interface for ASP (VBScript) to get the username/password variables from > the IIS Authentication, but I don't know how or if it is possible to access > that using PHP's COM support. > > I can do this manually in PHP, but like I said there are too many accounts > to handle this way. I think that I can use cookies to store the user > preferences, but am I right in thinking that if they log on from another > computer their settings won't be loaded? At this point I am considering > handling the initial login information gathering through ASP and then > passing that information to the PHP pages. > > Any and all help on this is much appreciated. > > Joel Gilbert > MCSE
> Hi, > I'm trying to set up user-specific site settings with authentication. I need > to be able to validate accounts to a Win2K Active Directory server, as there > are several hundred accounts active, and they change on a regular basis. I > have the IIS authentication working fine, but I want to be able to have a > way of checking their group membership (in Win2K) so that PHP can determine > whether to display certain pages depending on whether they are members of > administrator, student or teachers groups. You could use LDAP to query the AD for user group membership. When logged in the variables AUTH_PASSWORD and AUTH_USER are set in PHP, use these in LDAP query to find the user. LDAP support is built into MS-AD, but I don't know if it's working. I do the same thing on Novell NDS, and that's working perfect. > I think that I can use cookies to store the user > preferences, but am I right in thinking that if they log on from another > computer their settings won't be loaded? Correct. /Johan
Hi to all, my problem is how to find / recognize in text URL (e.g. http://sprout.net) (address will have always "http://" part) and make a link, instead doing it "by hand"... Thanks for any help afan
$YOUR-STRING= eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])","<a href=\"\\1://\\2\\3\" target=\"_blank\">\\1://\\2\\3</a>", $YOUR-STRING); hth -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
I try to connect to Oracle with PHP and get the error bellow: Warning: _oci_open_server: ORA-12699: Native service internal error in C:\htdocs\ccilinks.com\public_html\index.jies on line 8 Do any body have any idea? Irsan
This error is a SQLNet error which is linked to the operatinig system. Are you able to hit the oracle server from the webserver using SQLPlus? --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucundum est > -----Original Message----- > From: Irsan Jie [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 23, 2001 11:09 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Oracle Connection Error > > > I try to connect to Oracle with PHP and get the error bellow: > > Warning: _oci_open_server: ORA-12699: Native service internal error in > C:\htdocs\ccilinks.com\public_html\index.jies on line 8 > > > Do any body have any idea? > > > Irsan > > > > -- > 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] >
>-----Original Message----- >From: Irsan Jie >Sent: Monday, April 23, 2001 5:09 PM >I try to connect to Oracle with PHP and get the error bellow: > >Warning: _oci_open_server: ORA-12699: Native service internal error in >C:\htdocs\ccilinks.com\public_html\index.jies on line 8 > > >Do any body have any idea? Do you have access to the file referred in the error message?
> you can also use registry per directory values. see > http://lists.netuse.de/list.php3?show_message=22&show_overview=php4win > > daniel beulshausen - [EMAIL PROTECTED] > using php on windows? http://www.php4win.de Hi Daniel: Q. Will this work with IIS 4/5 (and any other HTTP server besides Apache), too? If so, cool! (not that I like IIS, but you know, work requirements) thx! montyd
Monday, April 23, 2001, 5:31:33 PM, you wrote: >> you can also use registry per directory values. see >> http://lists.netuse.de/list.php3?show_message=22&show_overview=php4win >> >> daniel beulshausen - [EMAIL PROTECTED] >> using php on windows? http://www.php4win.de > > Hi Daniel: > > Q. Will this work with IIS 4/5 (and any other HTTP server besides Apache), > too? > If so, cool! (not that I like IIS, but you know, work requirements) it's working with any available sapi (cgi, isapi, apache module, nsapi,...). daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
Could someone please put down the three or four lines of code that will dump all the variables for the above two objects? Thanks, Bob Sears [EMAIL PROTECTED]
> Could someone please put down the three or four lines of code that will > dump all the variables for the above two objects? foreach($HTTP_GET_VARS as $key=>$val) echo "$key = $val<br>\n"; foreach($HTTP_POST_VARS as $key=>$val) echo "$key = $val<br>\n"; -Rasmus
Hi, Anyone know how to do it? I've already done it with MySql, using "load_file" command, now is there something like this with interbase? Thanks a lot, Alessio.
Hi, I don't know how to do it but I rekon you would be more flexlibe if you store the image path in the db. It keeps your DB smaller aswell. just a thought Johannes ""Alessio Bernesco Lāvore"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 9c1noo$1mc$[EMAIL PROTECTED]">news:9c1noo$1mc$[EMAIL PROTECTED]... > Hi, > Anyone know how to do it? > I've already done it with MySql, using "load_file" command, now is there > something like this with interbase? > > Thanks a lot, > > Alessio. > > > > -- > 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] >