php-windows Digest 14 Aug 2001 16:53:48 -0000 Issue 702 Topics (messages 8828 through 8850): Re: How do you step through a database? 8828 by: Jason Gan SQL script file 8829 by: legal.HEROCYCLES.COM Module not loaded 8830 by: serg.vladimir.cbr.ru problem linking module 8831 by: Bruno Haller 8834 by: Bruno Haller 8836 by: Svensson, B.A.T. Re: CGI error reported 8832 by: Phil Driscoll Re: PWS Registry question 8833 by: Phil Driscoll expiring pages 8835 by: sur-php Problem with loading module for Oracle 8837 by: serg.vladimir.cbr.ru 8841 by: Erik H. Mathy NT, Apache & PHP 8838 by: Leon 8840 by: Phil Driscoll Re: MSSQL Functions 8839 by: Frank M. Kromann IIS, sybase-ct 8842 by: Carlo Borreo API for bulk inserts... 8843 by: Svensson, B.A.T. ignore 8844 by: PhilipOlson Re: Recognizing the php.ini on Win2k 8845 by: Andrew Stopford Re: installation on windows 8846 by: Andrew Stopford session ID in URL 8847 by: Angie Tollerson Re: where can i get Flash support for PHP-Win? 8848 by: Andrew Stopford Re: Activedirectory and ldap 8849 by: Andrew Stopford Re: download prompt 8850 by: Andrew Stopford 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] ----------------------------------------------------------------------
If you're using PHPLIB, then using database abstraction the code would look like: while ($db->next_record()) { print $db->f("title"); } -----Original Message----- From: CJD [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 August 2001 7:56 AM To: [EMAIL PROTECTED] Subject: Re: How do you step through a database? while ($item=mysql_fetch_array($result)) { print $item[title]; } The loop will continue until the result reaches the end then stops. Also works for $result with no results in it (skips the loop) and you can use mysql_data_seek($result,0); to reset the counter to the top ready for the next loop "Jeff Howard" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've used Visual Basic for years and have never had a problem with this > issue. I can use the following code to do this: > > do until (rs.eof) > .. > rs.movenext > loop > > Does anybody know how to step through a database in PHP? > > > >
In MS-SQL server, table data is transferred/uploaded on webserver by using the Enterprise Manager. A table alongwith data can be transferred on Webserver by using the export option. I am looking for such option in Mysql. I am using Mysql on windows. But, in Mysql there is no such option to transfer table data on webserver. I understand that in Mysql, it can be done with running SQL script file. Am I right? Or there is also some another option for this? Pl. also let me know : 1. How Sql script file is created, its format and with what extension name it is saved? 2. How that script file is called/executed in php? Coding for that? Can any one send to me sample script file. Thanks in advance. Ajay K. Ratra Ludhiana (INDIA) [EMAIL PROTECTED] www.LudhianaInfoline.com
I have trouble!!!!!!!! PHP Warning: Unable to load dynamic library 'c:\php\extensions\php_oci8.dll' - This module not found. in Unknown on line 0. --- part of php.ini file --------- ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" Windows: "\path1;\path2" include_path = c:\php\pear\ ; The root of the PHP pages, used only if nonempty. doc_root = ; The directory under which PHP opens the script using /~usernamem used only ; if nonempty. user_dir = ; Directory in which the loadable extensions (modules) reside. extension_dir = c:\php\extensions\ extension=php_oci8.dll ----- end of part ----------------- File php_oci8.dll is exist in folowing path c:\php\extensions Other modules loaded succesfule!!!!!! What did me?
Hello, I am writing a PHP module like I already told in my last question. I am using VC++ 6 on Win2000. I finally managed to compile a module with the simple example from zend.com/apidoc But when i want to load the .dll with dl() PHP says it is not a PHP library I guess thats because it doesnt export any functions... I tried to replace ZEND_FUNCTION(first_module) with __declspec(dllexport) ZEND_FUNCTION(first_module) but when i do this i get a linker error (it is a german VC++6, i will try my best to translate the error message ;): error C2375: 'zend_if_first_module' : redefinition; different link see declaration of 'zend_if_first_module' when i use __declspec(dllexport) void __cdecl firstmodule(INTERNAL_FUNCTION_PARAMETERS) it says: error LNK2001: unresolve external symbol _zend_if_first_module What am I doing wrong? I am linking php4ts.lib How do i write the function correct? I browsed the example workspaces for the modules from the PHP source but somehow I didnt find out how it works... (thats where I did copy the __declspec(dllexport) stuff from at all) Can someone help me? Regards Bruno
Sorry, my mistake.. didnt use the __decl stuff in the prototype. Bye Bruno > -----Ursprüngliche Nachricht----- > Von: Bruno Haller [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 14. August 2001 10:44 > An: [EMAIL PROTECTED] > Betreff: [PHP-WIN] problem linking module > > Hello, > > I am writing a PHP module like I already told in my last question. > I am using VC++ 6 on Win2000. > > I finally managed to compile a module with the simple example from > zend.com/apidoc > But when i want to load the .dll with dl() PHP says it is not a PHP > library > > I guess thats because it doesnt export any functions... > > I tried to replace > ZEND_FUNCTION(first_module) > with > __declspec(dllexport) ZEND_FUNCTION(first_module) > but when i do this i get a linker error (it is a german VC++6, i will > try my best to translate the error message ;): > > error C2375: 'zend_if_first_module' : redefinition; different link > see declaration of 'zend_if_first_module' > > when i use > __declspec(dllexport) void __cdecl > firstmodule(INTERNAL_FUNCTION_PARAMETERS) > it says: > error LNK2001: unresolve external symbol _zend_if_first_module > > What am I doing wrong? I am linking php4ts.lib > How do i write the function correct? I browsed the example workspaces > for the modules from the PHP source but somehow I didnt find out how it > works... (thats where I did copy the __declspec(dllexport) stuff from at > all) > > Can someone help me? > > Regards > Bruno > > > -- > 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]
>Hello, > >I am writing a PHP module like I already told in my last question. >I am using VC++ 6 on Win2000. > >I finally managed to compile a module with the simple example fromzend.com/apidoc >But when i want to load the .dll with dl() PHP says it is not a PHPlibrary > >I guess thats because it doesnt export any functions... > >I tried to replace >ZEND_FUNCTION(first_module) >with >__declspec(dllexport) ZEND_FUNCTION(first_module) >but when i do this i get a linker error (it is a german VC++6, i will >try my best to translate the error message ;): > >error C2375: 'zend_if_first_module' : redefinition; different link >see declaration of 'zend_if_first_module' > >when i use >__declspec(dllexport) void __cdecl >firstmodule(INTERNAL_FUNCTION_PARAMETERS) it says: >error LNK2001: unresolve external symbol _zend_if_first_module Seam like you tries to declare two functions with the very same name. Have you by some reason included the same file twice? But it might be another problem to. Sometimes you have declared everything properly, but still gets an error from the linker. This is because some files might not be "touched" and the compiler wont recompile them. To solve this situation, clean your project with "Build->Clean", and then rebuild everything with "Build->Rebuild All". >What am I doing wrong? I have no idea... I am just making guesses. >I am linking php4ts.lib >How do i write the function correct? I browsed the example workspaces >for the modules from the PHP source but somehow I didnt find out how it >works... (thats where I did copy the __declspec(dllexport) >stuff from at all) Have you read the documentation about DLL's? It could be found in the MSDN Library for Visual Studio. Search for DLL in the index, and you will probably find everything you need to know there. You can start it with 'Help->Index" in devstudio.
On Tuesday 14 August 2001 04:15, Usher wrote: > I just installed the windows edition of php 4.06 which uses the > installation program on NT4 Sp6 workstation then rebooted. I have IIS > installed and the personal web manager. I created the simple "hello world" > test page in html and it came up fine. When modified to include the line > <?php print ("hello, world\n"); ?> in the body it reports this error > The specified CGI application misbehaved by not returning a complete > set of HTTP headers. The headers it did return are: > > Nothing after the word are: is returned. > Any idea what I hve done wrong. Failed to read install.txt -- Phil Driscoll
PWS on win 9x is essentially IIS3 with some functionality missing. It does say in the docs that the ISAPI module is not supported on IIS3. Whether this means it won't work, I don't know, but that may be the problem. > My assumption is that I just need to edit the registry entry and change it > from \path\to\php.exe to \path\to\sapi\php4isapi.dll. Not only did this > not work, but it "seemed" that I could change the entry to anything, and > PWS would continue to run the CGI version of PHP. (I did completely reboot > the system after each change) That seems odd - if you were editing the correct bit of the registry, I would have at least expected it to break. Cheers -- Phil Driscoll
Hello , does anyone know how can do this ? The page should not saved in browsers cache.... i mean... browser will try to retrieve evertime fresh data i tried to do this in every pages..... but it didn't helped me ---------------------------- <head> <!-- <META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> --> </head> ------------------------------ can anybody suggest.... -- Best regards, sur-php mailto:[EMAIL PROTECTED]
Hi! Help! PHP Warning: Unable to load dynamic library 'c:\php\extensions\php_oci8.dll' - This module not found. in Unknown on line 0. --- part of php.ini file --------- ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" Windows: "\path1;\path2" include_path = c:\php\pear\ ; The root of the PHP pages, used only if nonempty. doc_root = ; The directory under which PHP opens the script using /~usernamem used only ; if nonempty. user_dir = ; Directory in which the loadable extensions (modules) reside. extension_dir = c:\php\extensions\ extension=php_oci8.dll ----- end of part ----------------- File php_oci8.dll is exist in folowing path c:\php\extensions Other modules loaded succesfule!!!!!! What did me?
Do you have the Oracle libraries installed? All the module really does is act as an intermediary for PHP and the native Oracle client libraries. - Erik > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 14, 2001 6:42 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Problem with loading module for Oracle > Importance: High > > > Hi! > > Help! > > PHP Warning: Unable to load dynamic library > 'c:\php\extensions\php_oci8.dll' - This module not found. > in Unknown on line 0. > > --- part of php.ini file --------- > ;;;;;;;;;;;;;;;;;;;;;;;;; > ; Paths and Directories ; > ;;;;;;;;;;;;;;;;;;;;;;;;; > > ; UNIX: "/path1:/path2" Windows: "\path1;\path2" > include_path = c:\php\pear\ > > ; The root of the PHP pages, used only if nonempty. > doc_root = > > > ; The directory under which PHP opens the script using /~usernamem used > only > ; if nonempty. > user_dir = > > ; Directory in which the loadable extensions (modules) reside. > extension_dir = c:\php\extensions\ > > > > extension=php_oci8.dll > > ----- end of part ----------------- > > File php_oci8.dll is exist in folowing path c:\php\extensions > > Other modules loaded succesfule!!!!!! > > What did me? > > > > >
Hi there I know the ISAPI module of PHP is much more efficient with resources than the CGI module. My question... Where do I get a ISAPI module for Apache of PHP that WORKS? Cheers
On Tuesday 14 August 2001 11:18, Leon wrote: > My question... Where do I get a ISAPI module for Apache of PHP that WORKS? You don't - ISAPI is microsofts proprietary interface to IIS. However there is an equivalent interface for Apache, and the module to do it is shipped with the full windows binary distribution zip on the www.php.net downloads page. Cheers -- Phil Driscoll
Hi All, The MSSQL Extension is build on Microsofts DB-Library. This library was developed for MS SQL Server 4.x/6.0 and has not been updated since. The Library can still be used with version 6.5, 7.0 and 2000, but is limited to the datatypes known in 6.0 and 6.5. Char and Varchar has a max length of 255 bytes, and there is no direct support for nchar, nvarchar and ntext etc. these types must be casted to another type using CAST(col1, varchar(200)). I have a dialog with a developer at Microsoft trying to get an updated version of DB-Library. If you are developing for Windows only you can use COM and ADODB. This gives you full access to all (most) database features. - Frank > Phill, > > As far as I know, the version shipping with 4.0.6 and much earlier, as early > as 4.0.2 (I think), are built for SQL 7.0. Frank, is that true? You can > check CVS for the latest extensions. > > -Flint > > -----Original Message----- > From: Phillip Bow [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 12:11 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: MSSQL Functions > > > Nope they are running on my system as we speak. I would be interested to > know if there are any plans to update them though. Last I heard they were > still optimized for SQL 6.5. > -- > phill > > "John Meyer" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Just a quick question on the MSSQL functions: are they unsupported in the > > CGI version of PHP? > > > > > > -- > 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] > > >
I have PHP 4.0.6 running with IIS and Windows 2000. But, I can't install sybase-ct extension. This is what I did: 1) In file php.ini, uncommented the line that reads "extension=php_sybase_ct.dll" 2) Copied the file php_sybase_ct.dll into c:\winnt\system32 3) Reboot Now php is working, but I get an error when trying to connect: Fatal error: Call to undefined function: sybase_connect() in inc/initdb.inc.php on line 5 I know that in the past there was a problem with php_sybase_ct crashing under IIS, but this was solved with PHP 4.0.6, and it was a different symptom. I guess it is something wrong I am doing, but what? Thanks in advance Amedeo
Sorry for disturbing the mailing list with this very off topic question his, but I need to know: Does any one know which API bcp.exe, for MS SQL Server, uses when it performs bulk inserts to the DBMS?
test, php.test is "down" (or something) so i'm testing here, sorry :) philip
Hi Richard, Make sure that your browser has not cached your test file. Thanks Andrew Stopford "Richard Hensley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > I've installed php on a win2k/iis5 machine using the isapi filter. I'm > having a problem with it recognizing my settings in the php.ini file. I've > placed the file in c:\winnt, but when I run a simple .php file that contains > a phpinfo() function call, the parameters shown do not contain the values I > put into the php.ini. > > Does anybody know how to get php to recognize my php.ini? > > Thanks, > > Richard Hensley > > > >
Hi, Just to add to Arjen and Phils advice you need to the following. From your C:\PHP directory you need to copy the files from the dlls directory to the C:\windows\system directory . Also from your C:\PHP directory you will need to copy the php4ts.dll to your C:\windows\system directory I hope that helps Andrew Stopford <[EMAIL PROTECTED]> wrote in message news:OF5D6BE043.08223383-ON65256AA2.003974DD@domain... > Dear Friends, > > I am new to PHP (but familiar with ASP,JSP) and would like to have some > guidance notes from you. > I am using windows 98 OS on my PC with PWS installed on it. > I want to install PHP that runs on windows using PWS. > For this I have done the following: > 1. Downloaded php for windows from www.php.net , its is of about 738 > bytes. > 2. I extracted the same in c:\php folder. > 3. shifted the php.ini in c:\windows folder. > > My queries are: > 1. In which folder I have to place my php files? whether in c: > \inetpub\wwwroot folder where other asp files I put. > Because, when I put test.php file in c:\inetpub\wwwroot folder and > called by using http://localhost/test.php , It showed a blank white > sheet that is without interpreting php. > 2. Whether I have omitted any step for installation? > > Pl. clarify. > > > Ajay K. Ratra > Ludhiana (INDIA) > [EMAIL PROTECTED] > >
Hi there, I'm running 4.0.5 in w2k, all of the sudden, for no reason I can tell, my php session ID's are showing up in the URL i.e. categories.php?PHPSESSID=cbd65fce282445e704707ebf2a6a85b3 I have never accessed this variable in my scripts, it is being done completely by php somehow. Do you know why this is happening and how I can get rid of it?
Hi, MING (the SWF PHP extension) is precompiled in the php4win distro http://www.php4win.de I hope that helps Andrew Stopford "Elias" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello. > > Where can i get the PHP/SWF (Shockwave Flash Files) extension? > > >
Hi, Take a look at the LDAP function referance in the online PHP manual on http://www.php.net and the comments provided under it. I hope that helps Andrew Stopford "Mikael Hultgren" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Has anyone managed to get ldap in php to talk to an Active directory for > authentication of user logins. > Right now i'm drawing a blank, so if anyone has an example on how they > did it, please show it, i would be very grateful. > > > micke <[EMAIL PROTECTED]> > -- > "Love is a snowmobile racing across the tundra. Suddenly it flips > over, pinning you underneath. At night, the ice weasels come." > -- Matt Groening >
Hi Robert, It sounds like apache is not passing php files to the PHP engine. Make sure that all of teh following lines have been added to your httpd.conf file. ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php .phtml Action application/x-httpd-php "/php/php.exe" I hope that helps Andrew Stopford "Robert Razniewski" <[EMAIL PROTECTED]> wrote in message 028201c123ff$85d13ec0$7a00000a@RobertRazniewski">news:028201c123ff$85d13ec0$7a00000a@RobertRazniewski... Hi all. I have found a similar thread in the list archive, but can't find the solution. Im using Apache + PHP4 + Windows98. I have configured both Apache and PHP as described in manuals. After startig 127.0.0.1/scripts/myfirstphp.php in my browser I get the download prompt from Windows instead of php-results. What should I do? Regards rr