[PHP-WIN] SOCKETS

2002-08-09 Thread M.
How can i use sockets in Windows and IIS?? thank you

[PHP-WIN] MORE ABOUT SOCKETS

2002-08-09 Thread M.
Hi, How can i use socket programming with PHP under Windows platform and IIS server?! Debug Error of PHP compiler --->>> Fatal error: Call to undefined function: socket_create() How can i activate socket programming!!!??? thanks a lot

[PHP-WIN] parallel processing

2002-12-19 Thread M.
Hi all, Can we use parallel processing in PHP?? if can, where can i find info about that? thanks a lot -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] UTF - MIME

2002-12-25 Thread M.
Hi, i want to send a mail with unicode contents, what is the "content-type" and "content-transfer-encoding"?? thank you omid -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] how to do an html include on Windows?

2002-08-28 Thread M. Hockings
Hello, I'm trying to mimic the setup that is out on my webspace locally on my laptop so that I can develop and test without having to publish a test tree to the web space. Part of the code on the web is in PHP. I have written a servlet for Enhydra that allows me to serve my PHP pages just li

[Fwd: Re: [PHP-WIN] generating an automated mail .......]

2002-08-31 Thread M. Hockings
1 Aug 2002 09:41:43 -0400 From: "M. Hockings" <[EMAIL PROTECTED]> To: Aleksandar Skodric <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <02b301c250ed$ade56b40$0100a8c0@chiller> Interesting, This makes me wonder if it is just as easy to send an email cont

[PHP-WIN] Mime Mail with images larger then 3k

2001-05-06 Thread M. Weller
Hello to all, I try to generate greetingcards and sent them as a MIME mail. All works fine if I use Linux. Under windows it works fine as long as the images have less then 3k. But my cards have about 20k and it just doesnt work. Can anybody help?? I never find any information if this is a general

[PHP-WIN] Please Help / mail( ) under windows

2001-05-09 Thread M. Weller
Hello to all, I trie to sent images inside an Email under Windows 2kServer. using the mail() function under php4. It works fine as long as the image is smaller then 3kB. If the image is larger, the script takes ages an then it doesn't execute. Is it possible to solve this problem??? I am on thi

[PHP-WIN] Cannot "View Source" via IE browser

2001-05-15 Thread John M
For every page I try, the above message ONLY CHANGES where the "filename" is specified. The "php_submit.php" always appears. Now I have checked Microsoft's site and cannot find an answer, so I thought I'd try here. I have yet to check ALL of PHP-newsgroups but will. I ap

[PHP-WIN] it's frustrating

2001-05-17 Thread M. Weller
Hello, does anybody know if it is possible to sent mails with Windows2000 including images??? I am trying now since ages. As long as I echo the result of all works fine. - $filename = 'mypicture.jpg'; $myimage = fread($fp = fopen($filename, 'rb'), filesize($filename));

Re: [PHP-WIN] it's frustrating

2001-05-17 Thread M. Weller
", "", $message); --- ""Brian Paulson"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Are you trying to attach it or put the image in the body

[PHP-WIN] still frustrating must be a configuration problem

2001-05-17 Thread M. Weller
Thank you Michael and Brian, I tried your code and the behavior is still the same. It isn't working with images larger then 3kB. No idea what to do. I am using W2k server running IIS 5 and the latest release of php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP-WIN] it's frustrating

2001-05-17 Thread M. Weller
from. "\n"; > if (!empty($this->headers)) > $mime .= $this->headers. "\n"; > > if (!empty($this->body)) > $this->add_attachment($this->body, "", "text/plain"); > $mime .= "MIME-Version: 1.0\n".$this->

[PHP-WIN] doesn't work too

2001-05-17 Thread M. Weller
Thanks Guiseppe, I tried this class before and received this error which I cannot resolve. Warning: Bad Message destination in class.html.mime.mail.inc on line 285 Markus ""Giuseppe D'Ambrosio"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 008301c0deed$9371d460$[EMAIL PROTECTED]">news:008301c

Re: [PHP-WIN] PHP on win2000 : cgi error

2001-05-19 Thread M. Weller
I receive the same message, but only if I try to sent attachments larger then 3kB. This seams to be a bug under w2k. ""Hyoneg Kim"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 9e6mtt$jk1$[EMAIL PROTECTED]">news:9e6mtt$jk1$[EMAIL PROTECTED]... > I have w2000 and installed IIS 5.0 > I installed PHP

[PHP-WIN] Cannot "view source" via IE browser

2001-05-20 Thread John M
call 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

Re: [PHP-WIN] Cannot "view source" via IE browser

2001-05-20 Thread M Armsby
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: <[EMA

[PHP-WIN] problems getting PHP to run again...

2002-12-28 Thread M. Hockings
I just got a new machine at work (hurrah!) and I'm trying to get it running like the old one it is replacing. Both machines are running Win2K. My problem is that PHP does not seem to be working on the new machine. That is, if I try to load a php page via the Apache server on the machine it

[PHP-WIN] SSL win platform

2003-03-08 Thread John M.
Hi, Does SSL or openSSL work on a win2000, apache(1.3.xx or 2.xx - precompiled binary) and php(4.3.x) system? If yes, is there someone who can tell what to do for installing it and make it work? Thank you. John M.

[PHP-WIN] Re: Age from birthdate?

2003-12-11 Thread pete M
have you looked at to_days() and to_years() in the mysql manual Dvdmandt wrote: How would I get the age of someone if I store the birthdate in a date field? I just realized FLOOR((UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(birthdate))/60/60/24/365.25) wont work for persons born before 1970... :p I m

[PHP-WIN] Re: running an exe

2004-11-21 Thread Stanislaus M.
You only had 4 responses of the same thread. Do you have any more? "Amit Arora" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Duncan, > > Jason is right. It is not a good idea to do this. > > However, if you still want to to this, check the exec() function. > htt://www.php.net/ex

[PHP-WIN] Re: Missing MySQL DLLs in Windows PHP 5.0.3 - not in pecl either!

2005-02-21 Thread M. Sokolewicz
well, they should be available via PECL (php_mysql.dll that is), libmysql should be in the download of the main product. As for php_pdo_mysql.dll, you'll need php_pdo.dll running aswell, and then use the PDO functions: http://www.php.net/manual/en/ref.pdo.php Jimbus wrote: The instructions stat

[PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread M. Sokolewicz
Joseph L. Mueller wrote: I am testing some PHP code (example 15.5 from Sams Teach Yourself PHP MySQL, PHP and Apache in 24 Hours). I am running running PHP 5.0.3 and Apache 2.0.43 on my WinXp Home system. My problem is I cannot seem to set a cookie. I tried using "localhost" and "127.0.0.1" for

[PHP-WIN] Re: Not able to add data to a MySQL database

2005-02-25 Thread M. Sokolewicz
You've got errors in your SQL. For once, table-names should not be quoted (with single or double quotes), same goes for column names ('uname' and 'access' in your example). Easiest way to find out without asking is to add a call to mysql_error(), so called "error handling"...! That would've told

[PHP-WIN] Re: how to move files from one place to another ?

2005-02-27 Thread M. Sokolewicz
Vaibhav Sibal wrote: Hello, Can some please guide me as to how should I move files from one directory to another on the server itself using PHP ? I use PHP 5.0.3 and Apache2 and Mysql. Thanks Vaibhav http://www.php.net/copy -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP-WIN] Re: Can't use php-soap in windows enviroment?

2005-03-08 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: First of all, I'd like to thanks everybody in advance. Actually I've got a winlamp distribution of php 5 in a web server. My need is to use the php-soap functions to implement soap webservices (server) but in php-soap specification is shown I need php configured with

[PHP-WIN] Re: XP and PHP

2005-03-10 Thread M. Sokolewicz
and check for register_globals Jim Plush wrote: just try echo 'HEY PHP!'; ?> "Stan Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi New at this game. I loaded php5 on XP with the php installer. I cannot get a varable to parse. Can anyone help. I do believe it is with the

[PHP-WIN] howto do a backtrace on windows?

2005-03-22 Thread M. Sokolewicz
hello, I've compiled PHP (and apache) on windows (using MSVC++.NET), and have been doing so for a while now. Lately I've noticed Apache crashing when I run certain scripts, so I figured I'd best make a backtrace in such cases (since the scripts it crashes on are pretty long and complex, so gett

[PHP-WIN] Re: howto do a backtrace on windows?

2005-03-22 Thread M. Sokolewicz
actually, this isn't related to the php language itself, but more to the code beneath it ;) Since the entire php/apache process segfaults (according to the logs), I can't do a debug_backtrace() from within php :) - tul Jason Barnett wrote: Use cygwin / gcc?!?! :P Is debug_backtrace() unable to

Re: [PHP-WIN] howto do a backtrace on windows?

2005-03-22 Thread M. Sokolewicz
tically. You'd need to compile php in the debug mode in order to get some useful information out of it though. Edin ----- Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 22, 2005 5:17 PM Subject: [PHP-WIN] howto do a backtrace on

Re: [PHP-WIN] Problem with PHP functions under Win2K3

2005-04-07 Thread M. Sokolewicz
Ken wrote: On Apr 7, 2005 12:11 PM, Juhász Zoltán <[EMAIL PROTECTED]> wrote: Hi! I installed PHP 4 on Windows 2003 Enterprise to test it. Some functions cannot work, example $REMOTE_ADDR, $HTTP_ACCEPT_LANGUAGE, etc. All functions get back an error: Notice: Undefined variable: HTTP_ACCEPT_LANGUAGE i

Re: [PHP-WIN] replacing file contents

2005-04-11 Thread M. Sokolewicz
why are you using regexp-functions anyway? there's /absolutely/ no need for them in your case. I can only see disadvantages: 1 - they use more memory than str_replace 2 - they're slower than str_replace 3 - they're more complicated than str_replace Simply use str_replace, and it'll work just fine

[PHP-WIN] Re: Localhost not working with cookies

2005-04-17 Thread M. Sokolewicz
Proudly Pinoy wrote: I've read from php.net/setcookie and codecomments.com that using localhost won't work with cookies and neither are IP addresses. So how do I test cookies on local system? set the hostname to an empty string; and 2, don't CROSS-post. That's a *very* bad habit -- PHP Windows Ma

[PHP-WIN] Re: Jaw Breaker - What's the ansewer?

2005-04-20 Thread M. Sokolewicz
JC Botha wrote: The following is a section of PHP code (see Apache.org and PHP.net). function f($c) { $c++; if ($c % 2) { return f($c); } return $c++; } function g($n) { for ($i=1;$i<10;$i++) { $n = f($n*$i); } return ($n); } print(g($x)); What is

[PHP-WIN] Re: Just a question, answer appreciated

2005-05-08 Thread M. Sokolewicz
S.F. Alim wrote: Hi list, How do you increase to a counter without refreshing the whole page. For example if you check site www.gmail.com under âDon't throw anything away.â heading there is counter which is increasing (could be javascript magic) but other example is www.n

[PHP-WIN] Re: what's wrong with this while loop?

2005-06-06 Thread M. Sokolewicz
the problem with your loop is that after php enters it, it can't get out because there is no break, nor a way to turn the expression to false. Normally, you have a loop which always evaluates to TRUE, and when it doesn't, you want to quit. And even when this is not how you did it, eg with whil

[PHP-WIN] Re: PHP 4.3.2-Win32 - This Program has Performed an Illegal Operation

2005-06-17 Thread M. Sokolewicz
hello, this is not a problem with the script, which I'll try not to criticise here; instead it's a problem with your php installation. Since this is PHP 4.3.2, I would suggest you redownload/reinstall PHP, and preferably do that with the *latest* version. There's a big chance that the bug you

Re: [PHP-WIN] PHP & GD on Windows

2005-06-19 Thread M. Sokolewicz
I've been trying to compile PHP on windows using VC++7, and although it "works" in most cases, and even quite a number of extensions compile (after editing various minor things), it still occasionally suddenly crashes, for apparently no reason at all. I'm quite interested at how it's being bui

[PHP-WIN] Re: HOW TO SEND a file from server to client

2005-06-22 Thread M. Sokolewicz
send the correct Content-Type header, and then simply output the contents of the file you want to send. -tul Burkhard Herre wrote: hello i want to send a file as response of a skript call from the server to the client. of course i want to use the open connection. like the command: echo("te

Re: [PHP-WIN] How to make mail() use correct headers?

2005-07-12 Thread M. Sokolewicz
or you can set it via htaccess in the virtual domain dir of every user ;) (might be easier) anton wrote: Thanks so much Ross !! This works :) Now I only need to set it in a auto_prepend file :) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread M. Sokolewicz
Darvin Andrioli wrote: -Messaggio originale- Da: Alf Stockton [mailto:[EMAIL PROTECTED] Inviato: lunedì 12 settembre 2005 17.45 [...] So my code reads:- if(($rs = TRUE)) { ^^^ Is it your code or do you forget many "=" in the example? It should be if(($rs === TRU

Re: [PHP-WIN] MSIE problems

2005-09-16 Thread M. Sokolewicz
Bob Stout wrote: Bob Stout wrote: Although it works fine with Firefox, whenever I use a object to open a PHP file in a frame, with an internal reference, it ignores the reference. IOW, if the link I want in the frame is "somefile.php", everything works OK. If, instead, the link I want in the

Re: [PHP-WIN] Re: Calling MSSQL Stored Procedure

2005-09-16 Thread M. Sokolewicz
Alf Stockton wrote: Mark Rees wrote: I get 2005/09/16 10:09:22 AM which is exactly the same format as it appears in the database table when viewed via Enterprise Manager. I wouldn't set too much store by how it looks in EM. It is a datetime value, so its internal representation will b

[PHP-WIN] Re: Handling objects (again)

2005-11-12 Thread M. Sokolewicz
Marcos R. Cardoso wrote: > Hello to everyone, > > I'm manipulating objects in some scripts I've developed, and I've come > across a doubt: I perform a query and do some checkings, but to perform > this checkings I need to instantiate an object, and I really don't know > how to do it without crashi

[PHP-WIN] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz
I'm pretty sure something like this already exists. Why? because I know somebody who uses it. Ok, so it's written in asp (by MS if I'm not mistaking), still... I wouldn't know why you'd want to write a new one in php... seems hard to make to me; might be wrong though. anyway, good luck bala c

[PHP-WIN] Re: [PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz
Robert Cummings wrote: On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote: I'm pretty sure something like this already exists. Why? because I know somebody who uses it. Ok, so it's written in asp (by MS if I'm not mistaking), still... I wouldn't know why you'd want t

[PHP-WIN] Re: Parse errors not showing up in the browser

2005-11-26 Thread M. Sokolewicz
Wayne Khan wrote: Hi all, I am using Sokkit 3.5, and my parse errors are not showing up in the browser. I'm sure its something to do with php.ini, and trust me I've tried changing it, but it still doesn't show the parse errors. The result is that I spent a lot of time looking for that extra (or m

[PHP-WIN] Re: [PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz
Robert Cummings wrote: On Sat, 2005-11-26 at 14:03, M. Sokolewicz wrote: Robert Cummings wrote: On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote: I'm pretty sure something like this already exists. Why? because I know somebody who uses it. Ok, so it's written in asp (by MS

[PHP-WIN] Re: HTML event handling

2005-11-28 Thread M. Sokolewicz
Panos Laganakos wrote: Is it possible to handle the X/HTML events through PHP or, its only possible through JS? i.e. could I handle an onload event? Seen as PHP is a *serverside* language and JS is a *clientside* language combined with the fact that DOM events (which includes XHTML/HTML eve

Re: [PHP-WIN] If code not working?

2006-01-04 Thread M. Sokolewicz
I agree with the points about the futility of having a 0 there, however, it won't have any impact on how it works :) why? just follow the logic: if the ip equals x.x.x.x: access_disabled OR if the ip equals y.y.y.y: access_disabled OR if FALSE: (never happens) so, what you get is that on true fr

[PHP-WIN] Re: any good suggestion on books

2006-01-14 Thread M. Sokolewicz
El Bekko wrote: pfancy wrote: for beginners. I've been browsing the group for a little while. I honestly have not gotten a book to learn php on. just wanted to learn and see what you all were saying here. I'm not going to ask question about php since I haven't started yet, My question I am

[PHP-WIN] Re: Test.php loads, but nothing in Browser

2006-01-27 Thread M. Sokolewicz
actually, the closing tag is optional in php; it's not required(!) and PHP also doesn't mind a ton of whitespaces, it ignores them I would also suggest checking your display_errors value in your php.ini, make sure it's On. - tul Howard wrote: Error Reporting is set as you show. I changed

Re: [PHP-WIN] php displays nothing

2006-05-30 Thread M. Sokolewicz
Alf Stockton wrote: Luis Moreira wrote: Personally, I do it the hard way : Beginning at the very first line of code, a message saying something like "just got in", and then lots, and lots and lots and lots of echo messages throughout the code, including messages on the procedures and function

Re: [PHP-WIN] Save classes to db?

2007-06-26 Thread M. Sokolewicz
http://www.php.net/manual/en/language.oop5.magic.php Gustav Wiberg wrote: Hi again! I really can't find a manual for __sleep on the php.net site!? But I understand that __sleep is called before serialize and __wakeup is called before unserialize? Do you mean that I create a function __sleep

Re: [PHP-WIN] How do configure PHP support for MySQL on Windows?

2007-07-24 Thread M. Sokolewicz
If that's literally from a book then I strongly suggest you burn the book. I would never trust _anything_ learned from a book that actively disables error-reporting on almost _all_ functions. Kick out all the @ operators and you might start seeing errors (they force PHP to ignore them silently)

Re: [PHP-WIN] Re: php-windows Digest 23 Jul 2007 22:52:16 -0000Issue 3288

2007-07-26 Thread M. Sokolewicz
I'm not sure what you're replying to exactly. First of all, Sandeep just sent back the mailinglist-digest mail from last week which is a combination of all mails posted to this mailinglist in the last 7 days. He did not actually _ask_ anything or even _say anything at all_ (Sandeep, don't do th

Re: [PHP-WIN] Arrays past to functions

2007-07-27 Thread M. Sokolewicz
break; // etc. default: $tax = false; } if ($tax != false) { return ($Amt * $tax); } else { die("State not found!"); // or some other graceful method... } } ComputeSalesTax(2000, "CA");

Re: [PHP-WIN] Arrays past to functions

2007-07-27 Thread M. Sokolewicz
etax "; }} $Amount = 1850; compute_salestax($Amount , $State); - When I run it, I get this ----- 0= | 0 1=1.08 | 1998 2=1.05 | 1942.5

Re: [PHP-WIN] Arrays past to functions

2007-07-27 Thread M. Sokolewicz
Niel Archer wrote: Hi Jacob. Spotted another problem. function compute_salestax ($Amount , $State) { $taxRate = array("CA" => 5 , "WA" => 7, "OR" => 8); return $Amount / 100 * $taxRate($State); } $payment = 1500; $locale = 'CA'; print "Tax on $amount in $locale is " . compute_salesta

Re: [PHP-WIN] Arrays past to functions

2007-07-27 Thread M. Sokolewicz
Niel Archer wrote: Hi hi Niel, I believe Jacob wanted to know how he could calculate the tax for _all_ states passed in as an array in one go. Yours simply gives it for 1 State ("locale"). Other than thatm $taxRate($state) translates to Array($state) which gives an E_FATAL_ERROR obviously.

Re: [PHP-WIN] ORDER BY is not sorting

2007-08-01 Thread M. Sokolewicz
Gustav Wiberg wrote: Hi! I can't see anything with your code either. Mysql_fetch_array should work fine yes. No indexes are needed to sort fields, but are recommended for speeding up the process :-) How does the table users look like? (Please send a link to a screenshot or something like tha

Re: [PHP-WIN] Outlook 2007

2007-09-13 Thread M. Sokolewicz
Gustav, it's great that you're an active poster here, but I am starting to get the feeling you're into this all too deep. You have no idea what's going on, and instead of starting slowly and learning, you just dive in, get lost and ask the mailinglist to help you with every single problem you

Re: [PHP-WIN] What's the difference between and ???

2007-09-30 Thread M. Sokolewicz
grep, replace all thanks for the quick reply. I agree it is good to follow the rules (i mean standard ;) ), But the thing is if I use some script written by someone else, i have to rely on his/her choice. Thanks On 9/30/07, TG <[EMAIL PROTECTED]> wrote: There's a setting in php.ini that dictat

Re: [PHP-WIN] Remove End of Line Characters

2008-07-01 Thread M. Sokolewicz
Wei, Alice J. wrote: Hi, for ($i=1; $i <= 3; $i++) { echo $i . ": " . $lines4[$i] . "\n"; list($words, $file) = explode(" ", $lines4[$i]); $carriage= array("\r\n", "\r", "\n"); str_replace($carriage, "", $lines4[$i]); echo "File: $file has $words words\n\n"; $query3="INSERT INTO youtoo(Descript

[PHP-WIN] mbstring

2008-12-20 Thread M. Bolton
I am using php 5.2 with mysql 5 and I would like to initiate mbstring with gd2 for use with webasyst. I have added c:\php to windows path and in the php.ini the session_mbstring and session_gd is activated. the php_gd2.dll is in the right place. But when I let the webasyst install script check

Re: [PHP-WIN] GD2 build

2002-02-25 Thread Frank M. Kromann
You can find this on http://kromann.info/php4.php. This site is updated with the latest version of PHP sources from CVS each morning. Not all extensions are supported at the moment though but both GD1 and GD2 are included. - Frank > where can I find a PHP-build with the latest GD-functionalit

Re: [PHP-WIN] GD2 build

2002-02-25 Thread Frank M. Kromann
Hi Joris, > My php version 4.1.1 (downloaded from php.net a week ago) contains 2 files > in the extensions directory: php_gd.dll and php_gd2.dll This sounds like GD for version 1.x and 2.x. I'm not using any pre compiled versions of PHP so I have no idea of why the system is crashes. It could b

Re: [PHP-WIN] mail() and user name

2002-05-29 Thread Frank M. Kromann
Use the function imap_mail(). This function does rfc822 parsing on all mail adresses. You have to load the imap extension to use this function though. - Frank > Hi > > I have one question about mail() function. It works fine, but... > Once I wanted to send an e-mail with recipient name in addr

[PHP-WIN] php4ts error

2002-07-01 Thread David M. Doggette
age please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. Does anyone have a clue how to fix. Please include [EMAIL PROTECTED] on your response. -- David M. Doggette 2002 Certified Interwoven Consultant 301.725.0299 -- PHP Windows Mailing

[PHP-WIN] Apache Virtual Hosts Local Machine Help

2002-07-23 Thread Sean M. Mayhew
Im trying to set up virtual hosts with apache for testing php on my local machine. I've searched the web all over and found the same instructions consistantly and have tried them numerous times but have been unsuccessful. First of all I'm having trouble determining where this "hosts" file is s

[PHP-WIN] WIN2K Linux Dual Boot Question

2002-07-30 Thread Sean M. Mayhew
Anybody point me in the direction of a good tutorial or book on installing Linux on a Win2k machine as a dual boot system. Thanks in advance, Sean M. Mayhew -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Undefined Constant error Anybody Help?

2002-08-03 Thread Sean M. Mayhew
Can anyone tell me why the following php code produces the errors below $products = array(array(Code => "TIR", Description => "Tires", price => 100), array (Code => "OIL", Description => "Oil", price => 10), array (Code => "SPK", Description => "Spark Plugs", price => 4) ); for ($row = 0; $ro

RE: [PHP-WIN] Re: PHP/IIS5/MSSQL shows CGI Header Error

2002-09-28 Thread Frank M. Kromann
Hi All, The upsides are you wil lbe using a database interface with full support for all Microsofts new features like nText, nChar etc. The downsides: 1) A performence penalty, as OLEDB (used by ADODB) adds some overhead on featching data. I think most of this can be eliminated by only selecti

Re: [PHP-WIN] RE: printer_ functions...

2002-10-18 Thread Frank M. Kromann
You could also take a look at the printer extension for PHP http://php.net/printer These functions are available for server side printing, when PHP is running on a Win32 box. - Frank > it depends on your printer & system. > > if you want to use printer commands directly in your code then u m

Re: [PHP-WIN] db performance

2001-06-21 Thread Frank M. Kromann
Hi Scott, This could be an networking issue. Is the SQL server and the Web server on the same computer ? Are you using tcp/ip or netbeui to communicate from web server (php) to the database server ? If web and database is on the same platform I would recommend using netbeui and connect to a

Re: [PHP-WIN] Compile PHP under windows

2001-06-23 Thread Frank M. Kromann
So far only Microsoft Visual C++ is supported. - Frank > Hi all! > > Wich compiler (possibly free) can I use to compile PHP under Windows? > > Thanx! > > Bye > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands,

Re: [PHP-WIN] Problems with System DSN

2001-06-26 Thread Frank M. Kromann
Hi Thomas, The problem you are seeing has to do with access to the remote directory. The webserver is normally running as user IUSR_ and that user does not have access to the remote directory. - Frank > Hello... > > I'm running an ApacheWebserver 1.3.20 with mod_ssl/2.8.4, OpenSSL/0.9.6a and

Re: [PHP-WIN] system(), Access is denied

2001-06-27 Thread Frank M. Kromann
Running jobs from the command line usally uses another userid, with different rights than when run fram the web server. the web server normaly installs an uses IUSER_ to execute scripts. Further more a mapping made from a command line will not be available to other users on the same maschine.

Re: [PHP-WIN] help connecting to MS SQL 7.0 dbase

2001-06-28 Thread Frank M. Kromann
You neet to install the Client Tools for MSSQL Server (basically the file ntwdblib.dll) and the enable the mssql extension. You can do this in php.ini py removing the semi colon in front on the line ;extension=php_mssql.dll Or if you are using the CGI version you could use dl("php_mssql.dll");

Re: [PHP-WIN] Form processing in PHP

2001-06-30 Thread Frank M. Kromann
Hi, If you are changing the name of the select item from name=miasta_bad to name="miasta_bad[]" php will return all selected values in an array. - Frank > Hi, > > I have a little problem with processing a FORM's SELECT MULTIPLE field. > I mark several position in form, but in result file I h

Re: [PHP-WIN] SQL2000 problem

2001-06-30 Thread Frank M. Kromann
Hi Marc, It seams you are using an old version of php4. Please update to the latst version , where the extension is called php_mssql.dll - Frank > Hiya all :o) > > My system is win2k (IIS5) with sql2k and php4 > > If I un-remark the line ;extension=php_mssql70.dll in the php.ini then on > th

Re: RE: [PHP-WIN] PHP - MSSQL - IIS Size Question

2001-07-05 Thread Frank M. Kromann
Migrating is not the only solution ! MSSQL uses a default truncation size of text fields. This size can be changed with parameters in php.ini. The maximum size of a text fiels in MSSQL is 2GB. If you are storeing a 2 GB Text field in the database and try to view it on a web page, the user is m

Re: [PHP-WIN] PHP and IIS and Win2k and Access Violation problems...

2001-07-10 Thread Frank M. Kromann
Could you tell us some more about yor configuration ? Do you use CGI or ISAPI, what extensions do you use ? - Frank P.S. CGI is the most stable version at the moment. > Hi! > > I've recently setup PHP on my Win2000 with IIS5, > > Sometimes PHP works and other time it doesn't... > > When it

Re: [PHP-WIN] large number of data in MSSQL

2001-07-11 Thread Frank M. Kromann
There is no limmitations in updating or inserting any column with large data. use INSERT INTO or UPDATE. If you are using NCHAR, NVARCHAR, CHAR or VARCHAR with lengths > 256 you will not be able to select more than 256 bytes when you are using the mssql extension. This limitation is a limitat

Re: [PHP-WIN] Printing text on a printer in PHP4 Using PRINTER function

2001-07-18 Thread Frank M. Kromann
Hi, The php_printer.dll can only be used to print on a printer attached to the server (or a network printer known by the server). Remember that PHP is a server based scripting language. The content you are sending to the client (HTML documents) are handled by the client alone. If your client

Re: [PHP-WIN] problems returning varchars in MSSQL bigger than 255 chars

2001-07-25 Thread Frank M. Kromann
Hi, The problem is in the Microsoft libraries used in the MSSQL extension. These libraries was created for SQL Server 6.0 and has not been updated since. New data types and features was added in SQL Server 7.0 and 2000, but thd DB-Library was not updated. So far the only solution is to use CO

Re: [PHP-WIN] php on W2K server

2001-07-25 Thread Frank M. Kromann
Hi, IIS is the same on Windows 2000 server and Pro. The only difference is on the Pro version you can only have one web site. I use PHP on both types (doing only manual install though). - Frank > Can you install PHP on W2K server running IIS? > > I tried, it looked like it all worked until t

Re: RE: [PHP-WIN] PHP zombies on Win2K.

2001-07-30 Thread Frank M. Kromann
The default connection timeout in IIS is 900 seconds. It can be changed in "Internet Service Manager" by right clicking on the web site and select Properties. - Frank > I have had this problem intermittantly also. I was talking about it with > people at the PHP Conference out in San Diego and

Re: [PHP-WIN] Works through DOS, not through Apache

2001-07-31 Thread Frank M. Kromann
Hi Shawn, If you run the script without supressiung the warnings you would perhaps see the reson :-) When running the script from the command line PHP hase the same access rights as the user executing the script. When executing through a request to a web server, PHP has the same access rights

Re: [PHP-WIN] Configuring php4 with ms sql support

2001-08-05 Thread Frank M. Kromann
You need to have the client tools for MSSQL Server installed on the server running php before you can load the module. You can also copy ntwdblib.dll from \winnt\system32 on the MSSQL server to the same location on your php-box. This will not allow you to configure the client tools though. php_

Re: RE: [PHP-WIN] Re: MSSQL Functions

2001-08-14 Thread Frank M. Kromann
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 len

Re: [PHP-WIN] Re: Directory Date/Time

2001-08-27 Thread Frank M. Kromann
Hi David, The argument to the functions filemtime(), fileatime() and filectime() should be a valid file name. In your case readdir() returns file names in the directory located by $current_dir but these files does not exist in the current directry where the script is executed. You can fix th

[PHP-WIN] PHP CGI-mode - Problem with Apache ForceType directive

2001-09-04 Thread David M. Patterson
ks in advance, Dave ---- David M. Patterson Voice: 714-532-4492 Consulting Software Engineer Fax: 253-679-8673 Web/Php Developmentemail: [EMAIL PROTECTED] "A

Re: [PHP-WIN] Intermittently Occuring CGI Error Update and Info

2001-09-07 Thread Frank M. Kromann
Hi Flint, I know you asked me about this problem while I was in Denmark but I havent had any time to look into it yet. I'm planning on using some time on it this weekend and the following week so if you have a short php script I can use to reproduce this I might be able to help. I would say t

Re: [PHP-WIN] How can I retreive a users Windows logon name?

2001-09-17 Thread Frank M. Kromann
Hi Christian, If you change the access control from Basic to NT LM for the Intranet web site you will gain the following things: 1) Users loged on to the same NT domain as the web server will be veryfied and have access to your Intranet. This will work for IE browsers. If you use netscape or t

Re: RE: [PHP-WIN] How can I retreive a users Windows logon name?

2001-09-18 Thread Frank M. Kromann
Hi Christian, You can force NTLM to be activated by removing file access for the user IUSR_. If you have both basic and NTLM access to the files and the user running the web service has read access to the files the basic method is used. If the user don't have access NTLM will kick in and you wi

Re: [PHP-WIN] php and mssql

2001-09-19 Thread Frank M. Kromann
The extension was renamed to php_mssql.dll a while ago. You will need a copy of the extension that matches your other php binaries or yoy will have to update to the latest version of php. - Frank > is there an other extension for microsoft sql server out there?? > > the build in extension php

Re: [PHP-WIN] IIS admin dlls?

2001-09-19 Thread Frank M. Kromann
Hi, I have a documentation item on my todo list. I have no plans to extend the module with functions for user management though. What kind of management did you want ? I have an old PHP3 extension I used to read user and group information from the SAM database. Is this what you are looking for

Re: [PHP-WIN] php.ini

2001-10-01 Thread Frank M. Kromann
Hi, You could have a template of php.ini with this content: [Session] session.save_path=; argument passed to save_handler Then read the entire file into a php variable and do a replace on the file before saving it to the new locatinn. $php_ini = str_replace("", "E:\\CD\\PHP\\sessiondata",

Re: RE: [PHP-WIN] PHP and Lotus Notes

2001-11-14 Thread Frank M. Kromann
Hi, LDAP is one way and it requires that LDAP is enabled on the Notes server. There is also a notes extension for php where you can read and write to all notes bases. There is no documentation on this extension at this point. - Frank > > Is there a way to have a PHP script display a Lotus Note

  1   2   3   4   >