php-windows Digest 21 May 2001 19:18:23 -0000 Issue 610 Topics (messages 7774 through 7788): Re: Cannot "view source" via IE browser 7774 by: M Armsby INSERT INTO TABLE 7775 by: Anthony Darby 7780 by: Johannes Janson 7782 by: Asendorf, John DNS/WEB SERVER WITH APACHE/PHP/WIN98 7776 by: Calvin Chang 7777 by: Johan Lundqvist Re: Exchange 7778 by: JayAchTee Re: Slow download bitrate **** SOLUTION FOUND ******* 7779 by: Eric L.. Edberg Re: php4 and iis5 7781 by: JayAchTee Re: Sockets problems in php 7783 by: Che Gonzalez Re: I need help!!! 7784 by: Michel Laine 7786 by: Mike Flynn Print out a paper? 7785 by: Johan Lundqvist LDAP and M$ Exchange 5.5 7787 by: Dickerson, Monty LDAP and M$ Exchange 5.5 :: It's Not Happening. 7788 by: Dickerson, Monty 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] ----------------------------------------------------------------------
http://support.microsoft.com/support/kb/articles/q179/8/29.asp btw, though it states IE 4, 4.01 for WinNT4, the person who I got this link off was experiencing the probs using IE 5.5 SP1 on Win2k. ----- Original Message ----- From: "John M" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 21, 2001 3:10 PM Subject: [PHP-WIN] Cannot "view source" via IE browser Hello. I am having a problem when trying to "view source" via my IE browser. When I try I get the following error: "Cannot open the php_submit.php C:\WINDOWS\Temporary Internet Files\Content.IE5\8DMZ02HJ\www.yahoo(1) file. Make sure a disk is in the drive you specified." ** Above I just tried viewing source on Yahoo's home page as an example. Now, interestingly, the "php_submit.php" file was one of the first PHP files I created when I first started playing around with PHP on my PC. For every time I try to "view source", this file is mentioned as above. The second file (ie. 'www.yahoo(1)' ) is different for every page I try to view source on. I have checked with Microsoft's technet and found no help and tried all that was suggested. I am now thinking that maybe my PHP installation may have caused this. I do not recall this error happening JUST AFTER I installed. I think I could for awhile and then all of a sudden I could not. I am posting this question in a few other PHP newsgroups as I am unsure where this would fall under: php.dev php.doc php.general php.windows Thanks to anyone who can assist. John M. -- 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 have a select box which grabs table names as in the first snippit of code. I then have an INSERT statement which loads a text file I specifiy in a text field into the selected table . This executes on PHP_SELF submit. If I replace '$t' with INTO TABLE MY_TABLE_HERE, I get an insert and the table is populated as required without a hitch. Replace MY_TABLE_HERE with INTO TABLE '$t' and I get nothing. Any suggestions on this one? Thanks in advance, Tony --------- snip ----------------------- <select name="table"> <? $result = mysql_list_tables ($DB); $i = 0; while ($i < mysql_num_rows ($result)) { $tb_names[$i] = mysql_tablename($result, $i); echo "<option value=" . strtoupper($tb_names[$i]) . ">" . strtoupper($tb_names[$i]) . "</option>"; $i++; } ?> </select> ----snippit 2 ------------------------ $p=trim(addslashes($path)); $t=trim($table); if(!($result=mysql_db_query($DB, "LOAD DATA INFILE '$p' INTO TABLE '$t' FIELDS TERMINATED BY '|' LINES TERMINATED BY ';'")))
Hi, > if(!($result=mysql_db_query($DB, "LOAD DATA INFILE '$p' INTO TABLE '$t' > FIELDS TERMINATED BY '|' LINES TERMINATED BY ';'"))) you don't need the single quotes around the table. LOAD DATA INFILE 'fliename' INTO TABLE tablename ..... hope it helps Johannes
[> Replace MY_TABLE_HERE with INTO TABLE '$t' and I get nothing.] Try -> MY_TABLE_HERE with INTO TABLE $t ^^^ (Gid rid of single quotes....) John --------------------- 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: Anthony Darby [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 21, 2001 4:10 AM > To: PHP Win > Subject: [PHP-WIN] INSERT INTO TABLE > > > Hello, > > I have a select box which grabs table names as in the first snippit of > code. > I then have an INSERT statement which loads a text file I > specifiy in a > text field into the selected table . > This executes on PHP_SELF submit. > > If I replace '$t' with INTO TABLE MY_TABLE_HERE, I get an > insert and the > table is populated as required without a hitch. > Replace MY_TABLE_HERE with INTO TABLE '$t' and I get nothing. > > Any suggestions on this one? > > Thanks in advance, > > Tony > > --------- snip ----------------------- > > <select name="table"> > <? > $result = mysql_list_tables ($DB); > $i = 0; > while ($i < mysql_num_rows ($result)) { > $tb_names[$i] = mysql_tablename($result, $i); > echo "<option value=" . strtoupper($tb_names[$i]) . ">" . > strtoupper($tb_names[$i]) . "</option>"; > $i++; > } > ?> > </select> > > ----snippit 2 ------------------------ > > $p=trim(addslashes($path)); > $t=trim($table); > if(!($result=mysql_db_query($DB, "LOAD DATA INFILE '$p' INTO > TABLE '$t' > FIELDS TERMINATED BY '|' LINES TERMINATED BY ';'"))) > > > > > > -- > 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] >
Is it possible to set up a DNS server in a web server ? For your information, I intend also to develope in Apache/PHP/win98 environment. Thanks.
Well, that depends on what you wanna do? > > Is it possible to set up a DNS server in a web server ? A server acting as web server can also host a DNS server. It's just 2 different services/deamons running on different IP ports (http/web commonly uses port 80 and DNS querys uses port 53). If you want the Apache web server service to act as a DNS server, it's not possible as far as I know. > For your information, I intend also to develope in Apache/PHP/win98 environment. I don't know of any DNS server software for W98. Since DNS is quite a important service I wouldn't recoment running it on Win9X platform. In tesing/development environments you could replace DNS functionallity with the hosts-file. /Johan
If you are running Exchange Server 5.5 SP 3+, then you can use LDAP to manage recipients on the Exchange server. The Microsoft knowledge base has several examples of how to use LDAP with Exchange. Regards. ""oifik"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I would like to know if with php we can manage exchange server (create > account...) by using the imap librairies and if yes > how we can doing it ? > I can connect to my server (pop or imap), i can check mail but it's all. > Tahnks and sor for my english. > > > -- > 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 all, After 2-3 months of digging I solved my problem through deduction. Turns out this issue is a MS NT issue, possibly SP6 related. Given: ----------------- slow bursty IIS download, ok at times, extremely slow at other times typically when multiple processes (PHP, ASP, or others are executing) A system with multiple disks & multiple pagefile.sys swap partitions Our NT configuration consisted of 2 SCSI controllers with 2+ disks. Drive C had a small (just big enough for memory) pagefile.sys of 400 MB Drive D had a large pagefile.sys 1000 MB Drive C was primary swap, with D secondary. Problem Deduction: --------------------------- When a NT box performs it's startup sequence a list of processes are executed. Each process initializes it's variables requiring SWAP & MEMORY, and some are put to sleep until they are needed. The INETINFO (IIS) process is one of these. It is initialized very early in this process and appears to bind/use the pagefile.sys defined on drive C:. So, everything still cool..... The "GOTCHA" is that inetinfo appears to not be able to use other swap/partition areas on any drive other than C: No matter how large or amount of free swap space is left. In our case, we watched as the swap space was eaten up to about 35% (as it turned out this is the percentage space defined on drive C) and then the problem would result. Seeing lots-o-swap available caused us to look at other reasons for the bursty behavior. During the way-before-problem time there were articles in NT rags recommending different ways to pre-define large contiguous SWAP areas to avoid fragmentation, and to put a "realy-big" one on another SCSI controller & drive (other than C's) to speed performance. This is the way we have existed for many years. Appears to NOT be good advice for our situation. This is a more global in scope that just our configuration. During our trouble period it became so slow that I rebuilt a NT Server from scratch, ported the code, and had the same problem in the same % memory utilization as the other system. This is a MS issue. My problem was that the PHP CGI installer came out right around the same time SP6a came out. Don't know if this swap/pagefile issue is related to SP6, SP6a, but we did not have the problem back in the SP3-5 days..... Eric L. Edberg Lucent Technologies Network Engineering Manager [EMAIL PROTECTED] "Eric L.. Edberg" wrote: > Hello all, > > I use NT IIS with SP6a to access an MS Access db using ODBC with > ASP based scripts primarily, and have been writing new PHP4 where appropriate > for the past year. > > I am using PHP404pl1 CGI installer and have experienced a troublesome > performance issues after executing PHP scripts (randomly it seems) > > The problem goes like this: > > * ASP scripts execute ok for long periods of time > > * A PHP script (which are seldom executed) appears to execute ok > > * ASP scripts are then executed, but the download bitrate slows to a crawl, > sometime down to the 500b/s rate. The scripts sometimes don't complete due > to timeout issues. > > * After approximately 5 minutes, all ASP scripts start working within expected and >normal > rates (50kb/s) > > There appears to be a contention or resource issue between ASP and PHP4. The problem > was not noticed when I was using PHP3. > > Our developers have monitored NT's memory, CPU, Pagefile utilization which are all >clean. > We have looked at MS' IIS site for tuning hints and updated some parameters. > > Has anyone else experienced performance issues with IIS that affects the download >performance > of html back to the desktop? > > Any IIS/Access experts willing to comment? > > Any know PHP4 bugs? > > Eric Edberg > Network Engineering Manager > Lucent Technologies > 630-713-5231 > [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]
Is should be "php4isapi.dll". Finger check? Make sure that x:\PHP is in the server PATH environment variable. I could not get PHP to run the ISAPI filter until this was set. Regards ""Grady Morgan"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to run php4 on my windows 2000 iis server. I can load php files > withe the cgi version (php.exe), but when I try to use hp4isapi.dll i get > the error "The specified module could not be found." How do I get this thing > to work? > > Grady Morgan > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > -- > 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'm trying to get fsockopen to work. Somehow, I believe it is something that I am missing because I can make an http-get work with fsockopen. It could be that I have to initialize the socket in perl differently. STDIN / STDOUT works on unix, but opening processes does not work on windows. PHP 4.06 is supposed to have fixed this problem. Thanks for your reply. -----Original Message----- From: Michael Rudel [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 9:41 AM To: 'Che Gonzalez'; 'php-windows' Subject: RE: [PHP-WIN] Sockets problems in php Hola Che, Have you tried "fsockopen" ?? (opens a socket connection). Or if you could make your pearl-"demons" communicate with stdin/stdout you could manage your things with unix-shell commands. Perhaps this helps. Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:[EMAIL PROTECTED] internet: http://www.suchtreffer.de _______________________________________________________________ > -----Original Message----- > From: Che Gonzalez [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 18, 2001 3:21 PM > To: php-windows > Subject: FW: [PHP-WIN] Sockets problems in php > > > Has anybody linked perl socket servers to php scripts > and made it work? > > -----Original Message----- > From: Che Gonzalez [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 16, 2001 11:55 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Sockets problems in php > > > I created several rpc tcp servers in perl. The pearl > clients work fine, and sending a message to the server in php > works. The problem happens after the perl server replies ( I > have seen the actual reply through monitoring the server ). > The php script hangs on freads and fgets. I turned off > blocking and looped several times while throwing in a sleep > interval in between , but this was still to no avail. Any > ideas out there, or has anyone found this to be a bug? I > might try this on Linux tomorrow to eliminate any other > possibilities, but any ideas to save me some time would > greatly be appreciated. > Also, I tried a simple socket-http get on a web page > and it worked ( Also works with host header sites, which > fopen doesn't seem to work with). > > Buenos Noches zzZ! > > > ****************************************** > * Che Gonzalez [mailto:[EMAIL PROTECTED]] * > * Atlantic.net * > * Manager of Web Development/ * > * Network Administrator * > * MCSE+I / CCNA / SCO ACE * > ****************************************** > > > -- > 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] >
Alain Menard wrote: > I clicked on the send button to fast... > > The part that i'm having problem with is the second part. Especially the one > about the first string becomming a link to the corresponding URL. > > ""Alain Menard"" <[EMAIL PROTECTED]> wrote in message > 9dv3k5$873$[EMAIL PROTECTED]">news:9dv3k5$873$[EMAIL PROTECTED]... > > Hi!! > > > > I'm presently working on my personal web site and i would like to use PHP > to > > do the following : > > > > 1- Read a string in the following format from a text file : > > string;url;integer;string > > string;url;integer;string > > string;url;integer;string > > ... > > string;url;integer;string > > > > > > 2- Generate a page containing the resulting list in the following format : > > > > string integer string > > string integer string > > string integer string > > ... > > string integer string > > > > where the first string is a link to the corresponding url. > > > > Any help would be welcome at this point. > > Thank you in advance... > > > > Alain Menard As i am a newbie myself - i cannot sypply you with the complete code example. I suggest that you look at some example code on how to parse a textfile. You get your STRING linked you use it in a html HREF tag as follows: <? $url="http://www.altavista.com"; $msg="Altavista search"; ?> <a href="<? echo $url; ?>"> <? echo $msg; ?> </a> The example above may not be the best solution, but i have tried it on my installation and it works. -- Michel Laine CAUTION! In order to eliminate spam i have included 'NOSPAM' in my return address. To relpy directly to me please remove the NOSPAM in order for the reply to propagate correctly.
Read one line from the text file at a time. Then use explode to separate it by semicolons. Haven't ever done it from a text file myself, but something SIMILAR to this should work: <table border="1" cellpadding="3" cellspacing="0"> <?php $source_file = file('\\path\\to\\file\\filename.dat'); foreach($source_file as $current_line) { list($str1, $url1, $int1, $str2) = explode(';', $current_line); print " <tr>\n"; print " <td><a href="$url1">$str1</a></td>\n"; print " <td>$int1</td>\n"; print " <td>$str2</td>\n"; print " </tr>\n"; } ?> </table> At 03:45 PM 5/21/01 +0200, you wrote: >Alain Menard wrote: > > > I clicked on the send button to fast... > > > > The part that i'm having problem with is the second part. Especially > the one > > about the first string becomming a link to the corresponding URL. > > > > ""Alain Menard"" <[EMAIL PROTECTED]> wrote in message > > 9dv3k5$873$[EMAIL PROTECTED]">news:9dv3k5$873$[EMAIL PROTECTED]... > > > Hi!! > > > > > > I'm presently working on my personal web site and i would like to use PHP > > to > > > do the following : > > > > > > 1- Read a string in the following format from a text file : > > > string;url;integer;string > > > string;url;integer;string > > > string;url;integer;string > > > ... > > > string;url;integer;string > > > > > > > > > 2- Generate a page containing the resulting list in the following > format : > > > > > > string integer string > > > string integer string > > > string integer string > > > ... > > > string integer string > > > > > > where the first string is a link to the corresponding url. > > > > > > Any help would be welcome at this point. > > > Thank you in advance... > > > > > > Alain Menard > >As i am a newbie myself - i cannot sypply you with the complete code example. >I suggest that you look at some example code on how to parse a textfile. > >You get your STRING linked you use it in a html HREF tag as follows: > ><? >$url="http://www.altavista.com"; >$msg="Altavista search"; >?> ><a href="<? echo $url; ?>"> <? echo $msg; ?> </a> > > >The example above may not be the best solution, but i have tried it on my >installation and it works. > >-- > >Michel Laine > >CAUTION! In order to eliminate spam i have included 'NOSPAM' in my return >address. >To relpy directly to me please remove the NOSPAM in order for the reply to >propagate correctly. > > >-- >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] -=- Mike Flynn - Burlington, VT -=- [EMAIL PROTECTED] http://www.mikeflynn.net/ * Give blood * Wouldn't the free market, in its true form, be anarchy?
Hi there, I need to find a way of getting out a report on paper from the web server (php,apache and WinNT/W2000). The app I'm developing will run on several servers, so it has to be simple and standard. What's the easiest way to do this? Do a copy of a file to LPT1:? When will php_priner.dll come out of beta stage? I got this to work well on Linux, but can't get it to work my way in Windoze... Thanx /Johan
Thanks for this tip! I ran some queries on the Microsoft Support Knowledge Base for Exchange 5.5, but found NO information or examples of how to use LDAP with Exchange to do what you say. Would you point me to a URL, or what keywords to search on, or towards some resources which provide more information - regarding this? i.e. how to use LDAP to manage recipients on the Exchange server.. sinc, md > -----Original Message----- > From: JayAchTee [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 21, 2001 7:01 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Exchange > > > If you are running Exchange Server 5.5 SP 3+, then you can use LDAP to > manage recipients on the Exchange server. The Microsoft > knowledge base has > several examples of how to use LDAP with Exchange. > > Regards. > > ""oifik"" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I would like to know if with php we can manage exchange > server (create > > account...) by using the imap librairies and if yes > > how we can doing it ? > > I can connect to my server (pop or imap), i can check mail > but it's all. > > Tahnks and sor for my english.
John, et.al., It appears that to do management of recipients on Exchange Server will require using Microsoft COM and Microsoft ADSI; not just LDAP. Micro$oft embraced and extended LDAP, so that LDAP is a 2nd class protocol that can't do everything. You have to do things the M$ way on M$ products using M$ protocols. Freedom to "innovate." :( That's real interoperable, eh! -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/- FROM: http://msdn.microsoft.com/library/psdk/adsi/ds2exchgd_9h84.htm Creating a Custom Recipient Dim strDisplayname As String Dim strAlias As String Dim strTelephone As String Dim objCont As IADsContainer Dim objNewCR As IADs strDisplayname = "James Smith" strAlias = "jsmith" strTelephone = "867-5309" Set objCont = GetObject("LDAP://Server/cn=Recipients,ou=Site,o=Org") Set objNewCR = objCont.Create("Remote-Address", CStr("cn=" & stralias)) objNewCR.Put "cn", CStr(strdisplayname) objNewCR.Put "uid", CStr(stralias) objNewCR.Put "telephoneNumber", CStr(strtelephone) objNewCR.Put "Target-Address", "SMTP:[EMAIL PROTECTED]" objNewCR.SetInfo Note: This example is specific to Exchange Server version 5.5 and earlier, and is not upwardly compatible with Exchange 6.0. Management and access of Exchange 6.0 Servers should be made through the CDOEXM interfaces instead. -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/- -----Original Message----- Sent: Monday, May 21, 2001 12:26 PM To: [EMAIL PROTECTED] Cc: 'JayAchTee'; '[EMAIL PROTECTED]' Subject: LDAP and M$ Exchange 5.5 Thanks for this tip! I ran some queries on the Microsoft Support Knowledge Base for Exchange 5.5, but found NO information or examples of how to use LDAP with Exchange to do what you say. Would you point me to a URL, or what keywords to search on, or towards some resources which provide more information - regarding this? i.e. how to use LDAP to manage recipients on the Exchange server.. sinc, md > -----Original Message----- > From: JayAchTee [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 21, 2001 7:01 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Exchange > > > If you are running Exchange Server 5.5 SP 3+, then you can use LDAP to > manage recipients on the Exchange server. The Microsoft > knowledge base has > several examples of how to use LDAP with Exchange. > > Regards. > > ""oifik"" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I would like to know if with php we can manage exchange > server (create > > account...) by using the imap librairies and if yes > > how we can doing it ? > > I can connect to my server (pop or imap), i can check mail > but it's all. > > Tahnks and sor for my english.