[PHP-WIN] Issue with MSSQL and PHP under windows
I've been trying to track down a gremlin within our servers for months now and can't seem to determine what I can do to resolve this issue. My existing setup is a MSSQL server running on Server 03 and it's a fairly beastly server. It's a 3.0ghz, dual processor, quad core server with 4 gigs of memory. Our web server is a bit more meager, a 3.4ghz dual processor, dual core xeon with 2 gigs of ram. I've been fighting with an issue which I had originally though was IIS where once we would get ~60 users on our system, PHP would lose its ability to connect to the MSSQL server and the only immediate way to resolve the issue was to restart IIS. The main users of the webserver is our call center, an average user loads a page once every 30-60 seconds.When I started working with the previous programmers code, I was able to reduce the frequency of this problem by optimizing some less efficient queries and writing some stored procedures. To ease the phone calls, I wrote a check where if the system is unable to connect, it would restart IIS. Over the past few months I've been rewriting our call center site under the Zend Framework and switched our server from IIS to Apache v2.2 and I'm receiving the same issues. During testing, when we had 30 users on Apache and 30 on IIS, IIS would still crash but Apache never had any issues. Once we moved the other 30 users to the new site, the errors are occurring again. I've already made sure I installed the ms sql client tooks on our webserver and have ntwdlib.dll in the system32 directory but I'm at a loss as to what the issue is. Part of me wonders if it's an issue with PHP's MSSQL functionality or an API issue. I could take the time to convert our server and try using apache under Linux but I can't imagine I'm going to have a better experience with FreeTDS but at the same time I can't be the only person with this much traffic on a Windows / MSSQL setup. Has anyone had a similar issue? I'm pretty stumped at this point and would appreciate any suggestions / ideas. Thanks! -Justin -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP4 strangeness with SQL Server 2005
In my experience I haven't come across something specifically like this. Have you run the specific query in Management Studio and taken a look at it? Quite often coming from a LAMP school myself, I always want to blame my query issues on php's support of mssql but more often than not its me looking in the wrong spot. Not to say that this is the case. Sometimes queries running in 2000 create different execution plans than they do in 2005. Weaver Hickerson wrote: Greetings to the group. I have a PHP4 report that has a couple of queries that "go out to lunch" when connected to 2005. Connect back to 2000 and it works fine. These are based on the mssql_connect, mssql_query, etc. Any help in getting past this stumbling block would be greatly appreciated. WE are looking to port to PHP5, but of course not overnight and this one came at us out of left field and we already are moved to the 2005 server. Every other php and query seems to work fine. Is there/are there some tricks/settings for dealing with php4 and SQL Server 2005? (the web server is a separate box from the DB server, by the way..) Thanks, -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] there must be better way to handle "Null" undefined variables
This is more a matter of a php.ini setting. Check the values of error_reporting in both your php.ini on the Windows and Linux boxes. My guess is your windows value is E_ALL. -Justin Fred Silsbee wrote: Problem with the code below Works perfectly under Linux Fedora 9 however Under windows, the first page has an error Notice: Undefined variable: ExercisePrice in C:\Inetpub\wwwroot\new_black_scholes.php on line 198 stuck in the entry slot for every variable. I did correct the first slot with some PHP code! Is there a better way? "; return; } } function gcf( &$gammcf,$a,$x,&$gln) { $gold=0.0; $fac=1.0; $b1=1.0; $b0=0.0; $a0=1.0; $gln=gammln($a); $a1=$x; for ($n=1;$n<=ITMAX;$n++) { $an=(double) $n; $ana=$an-$a; $a0=($a1+$a0*$ana)*$fac; $b0=($b1+$b0*$ana)*$fac; $anf=$an*$fac; $a1=$x*$a0+$anf*$a1; $b1=$x*$b0+$anf*$b1; if ($a1) { $fac=1.0/$a1; $g=$b1*$fac; if (abs(($g-$gold)/$g) < EPS) { $gammcf=exp(-$x+$a*log($x)-($gln))*$g; return; } $gold=$g; } } echo "a too large, ITMAX too small in routine GCF"; } function gammp($a,$x) { if ($x < 0.0 || $a <= 0.0) { echo "Invalid arguments in routine GAMMP"; return 0.; } if ($x < ($a+1.0)) { gser($gamser,$a,$x,$gln); return $gamser; } else { gcf($gammcf,$a,$x,$gln); return 1.0-$gammcf; } } function gammq($a,$x) { if ($x < 0.0 || $a <= 0.0) echo "Invalid arguments in routine GAMMQ"; if ($x < ($a+1.0)) { gser($gamser,$a,$x,$gln); return 1.0-$gamser; } else { gcf($gammcf,$a,$x,$gln); return $gammcf; } } function erfc($x) { return $x < 0.0 ? 1.0+gammp(0.5,$x*$x) : gammq(0.5,$x*$x); } function erf($x) { return $x < 0.0 ? -gammp(0.5,$x*$x) : gammp(0.5,$x*$x); } function myerf($argin) { return .5*(1.+erf($argin/sqrt(2.0))); } ?> Black Scholes Option Price Calculator: temp website under Redhat Fedora 9 Linux: the first 5 boxes require input(try 100. 100. .12 .1 365.): StockPrice (required): " /> ExercisePrice (required): Risk Free Rate of Interest(required): Instantaneous Variance Rate of Stock's Return (required): Time to Expiration of the Option(days) (required): Values of the Call Option : Values of the Put option : Delta(calls): Delta(puts): Calculate Demo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: [PHP] dynamic water marks?
The only ways would be: 1. dynamically add the water mark to the actual image (change the pixels) so that the source file has a watermark. 2. add a css layer on top of the image that contains a watermark Which brings me to the question, why don't you just add a watermark to each image? If a css layer or anything esle that DOESN'T change the source file was employed, it would only act as a very mild deterent. Why not just set-up an action script (macro) in Photoshop to batch process all the images with a watermark... end of story. Justin French on 19/06/02 2:22 PM, Peter ([EMAIL PROTECTED]) wrote: > howdy > > does any one know if it's possible to assign a dynamic watermark to am image > or place a watermark effect over a images so it looks like it's on the file > when it's not really?...with out going into layers hopefully ... for > example... > > a user up loads a simple image to the site say in jpg format > when the image is displayed on any page a watermark is disply over part of > the image .. to try and bluff other people into thinking the watermark is > part of the image... > > > > Cheers > > Peter > "the only dumb question is the one that wasn't asked" > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Instilation problem
I am running Sambar Server Pro v5.0 on Win ME. It requires php4 to run as isapi. I know my sambar config files are correct but I'm not sure about php. When I try to run any php file I get: Warning: Failed opening 'D://docs/bin/myfile.php' for inclusion (include_path='') in Unknown on line 0 php.ini is in c:\windows and msvcrt.dll and php4ts.dll are in c:\windows\system Thanks for any help, Justin
Re: Re: [PHP-WIN] Instilation problem
> Justin: Are you including the myfile.php into another php file... That's whats weird about it. I am not using any includes. All I am doing is trying to test my instillation with: I also tried: But I still get the same error. -- 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]
Re: [PHP-WIN] Re: Instilation problem
> If these are not empty, they try to include files... They are empty. Still doesn't work. -- 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]
Re: [PHP-WIN] Individual Lines of text
> I am pulling down data from a switch which looks like > > Port 1, 33889029532 > Port 2, 0 > Port 3, 135852 > Port 4, 6652941243 > etc etc > > I need to know if it is possible with PHP to write a script that will pull > the individual lines of this text file and store them into a mysql database > line by line. You can read the entire text file to a string and then use explode() to break it into an array using the newline character. Like this: $array = explode("\n", $string); That should make it easy to store it line by line to a dbase. Justin -- http://blaix.org -- 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]
Re: [PHP-WIN] redirect -- pls help!
> header ("Location: http://www.cw213.net/";); > > make sure u run this b4 any output to the browser. You should also add "exit;" after the statement so the script does not keep running. ... I think. Justin -- http://blaix.org -- 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]
Re: [PHP-WIN] Re: mysql_fetch_array() doesn't work
> It only works when the $arr['user_id'] is out of the quotes. > echo " target='_top'>"; > then IE showed no error any longer Thank you! I was having the exact same problem. Justin -- http://blaix.org -- 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-WIN] Re: multidimensional array
Should be able to do it the same way you do a one dimensional array. -- Justin Garrett "Afan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > to put an array into database I use serialize/unserialize function. > How can I put a multidimensional array? > > Thanks for any help! > > Afan -- 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-WIN] Re: PHP.ini problems
Use phpinfo() to see where PHP is looking for its config file. -- Justin Garrett "Harry Blohm" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I'm running PHP4.06 on win2k server.. and PHP seems to work fine. > I'm running a Vbulletin and that mostly works like a pro. I find my that > I can't use any email function under Vbulletin. After chasing this > around for many day I believe the problem is that php.ini file is not > being read. When I use the phpinfo function it shows my SMTP set > localhost and does not reflect the sendmail_from email address I've > used. Either the phpinfo does not report accurately or my php.ini file > is not being read. > > I have searched for a day thru all manner of PHP related sites and > have found others asking about this problem but whenever the problem > pertains to a win2k machine no one responds. According to phpinfo it is > looking for php.ini in the > c:\winnt directory ..which is where the dumb thing is and always has > been. I have removed ALL other files with a php and an .ini in the > name. The only thing I see.. and it seems nearly impossible is the fact > that technically my the directory is name C:\WINNT all in uppercase and > the phpinfo refers to it in lowercase. Those are the same directories in > NT but not in unix. > I'm thinking that php was born of unix and somehow that is the root of > the problem. > > HELP this is an absurd problem! Does anyone know where to find the > setting that controls what directory php.ini is expected to live ?? > > Help ? > > Harry > -- 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-WIN] Re: [PHP] Tutorials on OOP
Both of those classes would already exist on a site like phpclasses.org... do you have to BUILD them, or do you NEED them? Justin on 23/12/02 11:43 AM, Davy Obdam ([EMAIL PROTECTED]) wrote: > Hi people,. > > I have to build several classes for a project i am doing, but i am quite > new to OOP programming. I need to make a database abstraction layer > class and a user login class.. Does anyone know some good tutorials > about these things and OOP in general. Thanks in advance.. > > Best regards, > > Davy Obdam > mailto:[EMAIL PROTECTED] > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: ereg-replace removing whitespace...
I don't use ereg myself, but with preg_replace you could do: $str = preg_replace('/\[\/URUB\]\s*/', '', $str); Bobo Wieland wrote: Hi... I'm trying to use ereg_replace to replace "[/URUB]" with "" The problem is that ther might, and might not, be any number of trailing whitespaces after the [/URUB]-tag... Everything between the [/URUB] (and the tag itself) and the next alphanumeric char should be replaced with "" So far I use: $str = ereg_replace("(\[/URUB\])+( |\n|\t|\r)*","",$str); which doesn't work, leaving a lot of whitespaces behind... Thanks for your help... .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: ODBC/MSSQL Connect function
Harpreet wrote: I use the below function string to connect to the database. mssql_connect($_SESSION["hostname"],$_SESSION["user"],$_SESSION["password"]) now if i want to connect using the odbc_connect function do i have to change all my mssql_fetch_array and mssql_query functions too. Please help Thanks Regards, Harpreet Kaur Yes, that's the way that the database functions work, unfortunately. However, there is a solution. If you use a database abstraction class, you can use the same code for many types of databases. One such is PEAR's DB. (http://pear.php.net/package/DB). You could also use PEAR's MDB and the ADODB PHP package. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Return all Tables
Gerardo Rojas wrote: I have a connection to an MS SQL server. I am able to get a list of all available DB's on this server by running: "exec sp_helpdb" the question is: How do we return all tables from a selected db for MS SQL? i am developing a web interface to the DB. I need to be able to give my users a choice of which Table to use. -- Gerardo S. Rojas mailto: [EMAIL PROTECTED] Not sure about MS SQL, but "show tables;" works in MySql. And "show databases;" works for databases. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: querying more than one db from a php page?
George Pitcher wrote: Hi, I am developing my main site to run on php/mysql (currently lasso/filemaker). I am also developing some individual sites to be hosted on the same server as my main one and I'd like to be able to update those smaller site databases when activity happens on the main site. I'm still a couple of months away from tackling that part but can anyone predict trouble ahead, and if so, any remedies? MTIA George in Oxford/Edinburgh Well, if you use the DB functions directly, you: 1) limit yourself to the use of a single database system. 2) will have to manually select your db every time you change databases within one script. I would highly suggest using a DB abstraction class, such as PEAR::DB. http://pear.php.net/package/DB -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] embedded PHP in HTML
Piotr Pluciennik wrote: Try this way... remove and trying to call PHP. ?> HTH Piotr --- Ahmad Khashan <[EMAIL PROTECTED]> wrote: I am trying to get this code to work: trying to call PHP.
?>
The PHP code is not executed. Any way to get this to work?. BTW, I can execute PHP files if i use the formaction...submit route. Many thanks - Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ Yes, PHP is not a client-side scripting language, it is server side. (
[PHP-WIN] Re: Shopping Cart Woes!!
You may want to try SELECT * FROM dvd WHERE key="value" AND key2="value2"... Kaizer Boab wrote: I am trying to build a shopping cart for my college project. I am able to display items from the database, add items to the cart, but I am unable to view the items that are in the cart. In my "view_cart.php" page I receive the following error: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN (64) ORDER BY dvd.dvd_title ASC' at line 1". The error appears to be from this part of my script: $query = 'SELECT * FROM dvd IN ('; foreach ($_SESSION['cart'] as $key => $value) { $query .= $key . ','; } $query = substr ($query, 0, -1) . ') ORDER BY dvd.dvd_title ASC'; $result = mysql_query ($query) or die(mysql_error()); Could someone please tell why the query is not working? Thanks in advance. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: imitating browser
Donatas wrote: Has anyone ever tried to imitate a browser with PHP or seen code snippets that could help? Scenario would be (everything via PHP): -login to the page sending username and password and all other necessary fields via POST -now that the script is "logged in (session started)" we my use a search form to search anything we need by sending POST queries to ex. search page (search doesn't work if you are not logged in) -save those pages (trivial part) I am pretty sure that has to be possible with sockets and things alike. Any help is appreciated! /Donatas See http://pear.php.net/package/HTTP_Client -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: AW: [PHP-WIN] imitating browser
Sven Schnitzke wrote: Hi, may I assume you want to automatically feed the otherwise human answers to the dialog presented by the search engine/catalog ? This is possible but at least a little tedious. First you shold make sure that there positively isn't any HTTP RPC (no misspelling, I mean remote proc call) access to the engine; this would be much easier (google e.g. has one with its google API and asking others may show up some enlightening results). The most problematic aspect is that the human interface is not considered fixed (not even necessarily the answer part) and may change without notice. Apart from that, talking to a web server is just opening a socket and talking to that socket in HTTP style. Googling HTTP and RPC brings up the ideas about automation over HTTP, basis of some APIs around (some stock quote feeds work this way too, e.g. yahoo). HTH Sven -Ursprüngliche Nachricht- Von:Donatas [SMTP:[EMAIL PROTECTED] Gesendet am:Montag, 2. Februar 2004 11:48 An: [EMAIL PROTECTED] Betreff:[PHP-WIN] imitating browser Has anyone ever tried to imitate a browser with PHP or seen code snippets that could help? Scenario would be (everything via PHP): -login to the page sending username and password and all other necessary fields via POST -now that the script is "logged in (session started)" we my use a search form to search anything we need by sending POST queries to ex. search page (search doesn't work if you are not logged in) -save those pages (trivial part) I am pretty sure that has to be possible with sockets and things alike. Any help is appreciated! /Donatas -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php And then there's PEAR::HTTP_Client which will do all of this for you. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Emailing via mail(), secondary servers
Manuel Lemos wrote: Hello, On 02/11/2004 09:13 AM, Paul J. Smith wrote: At the moment you only seem able to send mail via a specific host specified in the ini file.I want some resilience so I can send emails even if the first mail server cannot accept email. Problem 1 As far as I know mail() returns no result so you cannot tell if your first attempt to mail something was OK or not. PHP returns a result yes but that means whether the relay SMTP server accepted the message for later delivery. It can't tell immediately if the message could be delivered to the final recepient unless the final SMTP server is the same. Still, you need to be aware that some servers are configured to ignore messages that will never be delivered. Most servers will bounce the message but often not imediately. Usually the messages go to local queue before they are attempted to deliver to the final mailbox. This has been particularly true with servers with anti-virus that can't handle the flood of infected messages so fast. The best you can do is to set a return path address so the message gets bounced soon or later in case there was a problem. Problem 2 You can't override the relaying server ip in the mail() function. Not on Windows with normal SMTP servers. On Unix/Linux using sendmail, the messages are not queued using SMTP. That is too slow and pointless when the sendmail is installed in the same machine where you are sending messages from. Has anyone dealt with this? Any suggestions before I try and botch my own solution? I would suggest dumping Windows and use a Unix/Linux solution with sendmail or compatible program like qmail, postfix, etc... If you are stuck with Windows, you may want to try this SMTP class that les you send messages directly to the receipient SMTP server, thus without relaying in any intermediate SMTP server. http://www.phpclasses.org/smtpclass If you do not want to change your scripts much, you may also want to use this other class that uses the class above to send message via SMTP. It comes with a wrapper function named smtp_mail() that is compatible with the mail() function but lets you configure SMTP delivery details like direct delivery option. http://www.phpclasses.org/mimemessage You could also try PEAR's Mail package. http://pear.php.net/package/Mail -- -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Emailing via mail(), secondary servers
Manuel Lemos wrote: Hello, On 02/11/2004 08:57 PM, Justin Patrin wrote: Has anyone dealt with this? Any suggestions before I try and botch my own solution? I would suggest dumping Windows and use a Unix/Linux solution with sendmail or compatible program like qmail, postfix, etc... If you are stuck with Windows, you may want to try this SMTP class that les you send messages directly to the receipient SMTP server, thus without relaying in any intermediate SMTP server. http://www.phpclasses.org/smtpclass If you do not want to change your scripts much, you may also want to use this other class that uses the class above to send message via SMTP. It comes with a wrapper function named smtp_mail() that is compatible with the mail() function but lets you configure SMTP delivery details like direct delivery option. http://www.phpclasses.org/mimemessage You could also try PEAR's Mail package. http://pear.php.net/package/Mail AFAIK, PEAR Mail package does not support SMTP direct delivery, only relaying. No, not directly, but that hardly seems to matter as the original post asked about relaying. You could always set up direct delivery by looking up the MX server for the e-mail address and using the 'smtp' Mail type. Or you could make your own Mail_SMTP_Direct class which wraps around Mail_SMTP and post it back to PEAR for others use. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Emailing via mail(), secondary servers
Manuel Lemos wrote: >> >> No, not directly, but that hardly seems to matter as the original post >> asked about relaying. > > > You do not seem to be paying attention. The original post asked > explicitly about overriding relaying. Read again. > > >> Problem 2 >> You can't override the relaying server ip in the mail() function. > > I read that as "I want to put in a specific relaying mail server IP but I can't." IMHO, the original post wanted to try one relaying server, then if it failed, try another (or possibly directly send the message). Which would mean changing the 'relaying server'. Technically, all SMTP servers you connect to are the same no matter whether it relays or accepts for 'local' delivery. You still just hand off the message and let the remote SMTP server deal with delivery. > > When you use sendmail, it does not relay messages in any intermediate > SMTP server. This is what the Paul Smith seems to want, but the mail > function does not does that for him. > > >> You could always set up direct delivery by looking up the MX server >> for the e-mail address and using the 'smtp' Mail type. Or you could make > > > It is not that easy. I will let you figure why as your homework! ;-) > Actually, that's exactly what an SMTP sending program does. Look up the MX record in DSN and send to that server directly. If it fails, it tries the next MX server. > >> your own Mail_SMTP_Direct class which wraps around Mail_SMTP and post >> it back to PEAR for others use. > > > Are you kidding me? Why would I bother to develop something to work with > a PEAR package that I do not use, when I already have a package that > does that for me since several years ago? > This is mostly just preference. I don't know why everyone who uses phpclasses gets so defensive when I suggest a PEAR class. I'm just suggesting alternatives that I use myself and that I know work well. I use PEAR because it has a centralized and robust error reporting mechanism, adheres to high coding standards, is actively tested and maintained by many people, is highly re-usable and tries not to duplicate code, and many other reasons. Before you get your back up, I'm not saying that the stuff on phpclasses doesn't have these features, I'm just saying that's why I use PEAR. If you don't agree, fine. > Furthermore, this package that I recommended provides a direct > replacement to the mail() function as I mentioned. So the users do not > have to figure how use PEAR packages to solve their problem. > > They just replace calls to the original mail() functions calls in their > scripts by calls to smtp_mail() which is the replacement provided by the > package that I suggested. > Yes, a drop-in replacement is nice. Here's a proof of concept for you. http://www.reversefold.com/~papercrane/smtp_direct I've implemented the smtp_direct class I spoke of earlier. It's not 100% tested and is not yet fully PEAR compliant, but I'll propose it to PEAR for inclusion. Here's four simple steps to get it running (2-3 if you already have PEAR): 1) Get PEAR installed -On Linux, type this in as root: lynx -source http://go-pear.org/ | php -For more information, or for Windows instructions, see: http://pear.php.net/manual/en/installation.getting.php 2) Get the Mail and Net_DNS packages installed pear install Mail Net_DNS 3) Download smtp_direct.phps from the above URL, copy it to your PEAR's Mail sub-directory. Rename it to smtp_direct.php. 4) Use the simple code in send.phps to get started. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Extensions directory trouble for CURL and Sablotron
I am running PHP 4.04 on IIS 4.0/NT 4 sp 4 as a CGI. I am trying to run the CURL, DOMXML, Java, PDF, and Sablotron extensions. As of right now everything but CURL and Sablotron work. The .ini reads as follows extension_dir = c:/php4/extensions/ I have tried c:/php4/extensions c:\php4\extensions c:\php4\extensions\ I also have copied all the .dlls to both the winnt\system32 and \php4 directories and tried c:\php4 c:\winnt\system32 I am really having trouble understanding why it is only these two extensions that are failing to work. Any help that you guys could give would be greatly appreciated. -- 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-WIN] Addition to previous post
I tried changing a random .dll to php_sablot.dll. The system loaded the module but of course died when it realized that it was the wrong library. When I switched back to the real php_sablot.dll it gave me the module cannot be found error. This is a completely unexplainable error in my eyes but I hope someone out there can prove me wrong -- 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]
Re: [PHP-WIN] Re: Emailing via mail(), secondary servers
Once more into the breach. Manuel Lemos wrote: Hello, On 02/13/2004 08:13 AM, B.A.T. Svensson wrote: Why would you go watching TV in the neighbours house when you have your own TV working at home? Because of the usual reasons: they might have a bigger or better TV, or they might have a broader selection on the cable TV network. Besides the tech points, it might also be be because the neighbor is a good old friend and one just happen to like the neighbors company, and (s)he even might have a nice supply of cold beers in the fridge to. heheh, some people do that yes, but I don't. Not that my TV is better but I would not have the nerve to push myself to neighbour's house and disturb them just to abuse of their TV and not for a less material reason. To bring this back to a more on-topic issue, I am perfectly aware that there is a lot of people that just download my stuff to learn how to do things and then adopt the code to their own versions and claim they did it. Those are the "knowledge s*ckers". This is part of the reason why I, as an author, prefer to upload it to the PHPClasses.org site and only allow downloading to subscribers that need to authenticate. It does not bother that people just go in there to steal some ideas or code to gain merits from my work. If it bothered me, I would not have make it available as Open Source with a BSD license in first place. However, I am more interested in legitimate users that download and try the code. This helps me test my code more intensively and iron any bugs or limitations much faster. I do not even wish or expect people to thank me. As long as they test the code and report any problems, or do not report anything because it is all right for them, that is fine for me. I agree fully. Testing and giving back is a major reason for putting my software out there. This is why I use PEAR. There is a large group of both developers and users who actively work together to make the packages better. I also like the standardization and use of high level programming concepts, such as seperation of functionality and re-use of code. The documentation is also very important. Nearly every bit of code in PEAR packages is documented. If no "Documentation" is on the site, you can still check the code itself to find instructions and even usage and examples. Obviously, the "knowledge s*ckers" will not provide any valuable feedback. Actually some of them even come in public just to b*tch that I require them to login to download my stuff. Some even threat to download similar packages from some other repository, as if I care. The world does not revolve around any individual alone, even less KS. If that requirement of login detracts some KS from even accessing the site, that is just perfect for me. That is not the main reason to keep that requirement for my classes but it is one reason more. I can justify spending time and effort to retribute the feedback that legitimate users provide. As for KS, sorry, they are not helping me at all, so I can't justify even to worry about the usual b*tching or threatning to use the TV of some other neighbour. ;-) Instead of making harder for legitimate users to use your software, maybe you should think about why people are "knowledge sucking" instead of using your class. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: Emailing via mail(), secondary servers
Manuel Lemos wrote: On 02/17/2004 07:26 PM, Justin Patrin wrote: However, I am more interested in legitimate users that download and try the code. This helps me test my code more intensively and iron any bugs or limitations much faster. I do not even wish or expect people to thank me. As long as they test the code and report any problems, or do not report anything because it is all right for them, that is fine for me. I agree fully. Testing and giving back is a major reason for putting my software out there. This is why I use PEAR. There is a large group of both developers and users who actively work together to make the packages better. I also like the standardization and use of high level programming concepts, such as seperation of functionality and re-use of code. As much as this thread was not about PEAR and PHP Classes, you seem to enjoy keep bringing that subject up. You sound like a snake oil salesman, always trying to push PEAR as the best place in the world to publish author classes, in typical attack to PHP Classes site as if it is a great threat to your existence. The truth is that many authors will always refuse to publish their classes in PEAR for reasons that have nothing to with the PHP Classes site. Many authors, including myself, have tried to contribute to PEAR but then there were a few individuals that were set to make it hard or even impossible to do it, usually for reasons of arguable logic. It seems that there is usually a small feud formed by a few individuals that are not interested to let other developers have a role that may put them in the shadow. With this protective attitude it is really very hard to even try to contribute. For instance the admitance of only one coding style will always be an obstacle to motivate developers to contribute to PEAR. I even recall until today, when Andrei Zmievski said PEAR coding style was so ridiculous that made him cry. I guess that was the reason why Smarty was never contributed as a PEAR package. Curiously, I read some statistics that show that Smarty alone is a more popular PHP.net project than the whole PEAR project. I even proposed to allow to preserve the coding style of the original contributor. The problem is that when people try to change coding styles, not only they waste a lot of time doing it right, but they may add bugs by accident where none existed. This proved to be true when Lukas Smith ported Metabase to PEAR style. Many bugs were added in code from Metabase that was working perfectly. Forcing people to change styles is like making all right handed people start writing with the left hand to be accepted. PEAR was set to be what CPAN was to Perl but CPAN does not have such mandatory style requirements. CPAN is a very large and useful repository. It has amazing automation and packaging as well as a great installer. However, you're missing some points. CPAN has standards as well. You muct name your module to conform with the namespaces already in ther system. You have to name your files a certai way. You are encouraged to talk about your module before submitting it. Other than that I see no written coding standards, but I highly doubt that a badly written module will last long or be used much. The Perl community is old and rife with its own politics. Actually, I'm not that surprised about the lack of standards surrounding CPAN. Perl itself is a kitchen sink language, including everything under the sun and allowing many *many* ways of doing the same thing. I myself have never been able to figure out what to do with Perl. I've used it and for big projects, but it doesn't scale well at all. But I'm digressing. The lack of standardizaition comes with a price. If you don't enforce any kind of standards, code can very easily have bugs and, worse, be hard to understand and debug. I treat perl modules as compiled binaries (as they sometimes are) because they are almost universally hard to understand, as it most Perl. PHP, on the other hand, is much easier to standardize, especially if we start now before we're as bug as Perl. PEAR in particular I find easy to use. There is *always* some kind of documentation for a decently developed package. Until PEAR people become effectively more open minded, without any hipocrisy and protectionism, PEAR will always suffer from the absence of many very qualified PHP developers, making it a shadow of what PEAR hoped to be. The reality speaks for itself. PEAR rules are not consensual nor there seems to be great interest from PEAR people to change that. It is all in their hands to change. Good points, but you are missing something there. It is true that a rigourous standard cuts out lots of developers. Even lots of talented developers, but if you start with PEAR, it's not so hard to code for PEAR. Even if you don't start there, the standards are still a good thing. Once you know how
Re: [PHP-WIN] Re: Emailing via mail(), secondary servers
Manuel Lemos wrote: Hello, On 02/18/2004 02:15 PM, B.A.T. Svensson wrote: The main point of requiring a valid address has nothing to do with sending you spam, but rather to make it difficult for some authors to boost their top download ranking positions by creating many accounts and download their own packages. That is explained in the why page. And that's of course what indvidual with low moral will do when If you study a little about the human nature you will realize that tehre would be people capable of doing that and much worse. If you just think of people with great needs to satisfy their egos at the cost of getting exposure to their names it is not hard to understand. It is not wrong to desire to obtain recognition. What is wrong is to commit fraud to obtain undeserved recognition. Of course, this is what happens when you have "top" sites. Any "top" site you look at has cheating in it. IMHO, you shouldn't be using the "most downloaded" thing as that's real easy to fix. So, you have an idea, this is the hall of fame page that provides exposure to those that are top ranked: http://www.phpclasses.org/browse/top/top.html given the chanse. However my first remark (a time ago) was not ment to spawn a oral war, but suggest reason why people would like to select this or that package. Sometimes those reason are not founded in technical motivated arguments, but those of confidense and easniess. Easiness in the sence that one tend to stick to what one already know and has developed skills with. Sure, but when somebody does not know, people tend to follow advice or hints provided by information based on the opinions of a significant number of people. That is why in the PHP Classes site there charts based on statistics collected from things like the classes that were downloaded and rated by many users. -- -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Working with Base64 data
Hubo wrote: When I attempt to view the generated test.jpg in a browser, it is unable to display. Same with photoshop and the windows built-in pic viewer. I know that the base64 data is not corrupted, since I can get it to display properly in netscape with the following code: echo ''; Unfortunately, I'm tied to IE. Has anyone run into a problem like this before? For IE it is just (I'm using PHP 4.3.1): echo base64_decode($image_data); Thanks! Steve -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You may want to try adding a header call: header('Content-Type: image/jpeg'); -- -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: Emailing via mail(), secondary servers
Manuel Lemos wrote: Hello, On 02/18/2004 06:40 PM, Justin Patrin wrote: The main point of requiring a valid address has nothing to do with sending you spam, but rather to make it difficult for some authors to boost their top download ranking positions by creating many accounts and download their own packages. That is explained in the why page. And that's of course what indvidual with low moral will do when If you study a little about the human nature you will realize that tehre would be people capable of doing that and much worse. If you just think of people with great needs to satisfy their egos at the cost of getting exposure to their names it is not hard to understand. It is not wrong to desire to obtain recognition. What is wrong is to commit fraud to obtain undeserved recognition. Of course, this is what happens when you have "top" sites. Any "top" site you look at has cheating in it. IMHO, you shouldn't be using the "most downloaded" thing as that's real easy to fix. Definetely you are not very skilled in addressing the needs of communities of capable individuals. Why do you insist on simply saying I know nothing. Why not discuss or explain rather than make character attacks? You still have not given me any concrete reasons for anything you say. I am not going to bother to explain why, but the existence of that top is one of the reasons that motivates so many developers to contribute to the PHP Classes site. The fact that only downloads done by authenticated users count for the tops is the one of the reasons why most developers that contribute to the site do not lift the login requirement to download. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: AW: [PHP-WIN] Re: Emailing via mail(), secondary servers
I'd like to apoligize to the list for wasting bandwidth and venting like this. Not only did this huge conversation accomplish nothing, it was fairly personal and should have been conducted off list. I'll stop doing such things unless they are on topic. But I won't stop proposing usage of PEAR packages. :-) -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: AW: [PHP-WIN] Re: Emailing via mail(), secondary servers
Manuel Lemos wrote: Hello, On 02/19/2004 02:35 PM, Justin Patrin wrote: I'd like to apoligize to the list for wasting bandwidth and venting like this. Not only did this huge conversation accomplish nothing, it was fairly personal and should have been conducted off list. I'll stop doing such things unless they are on topic. But I won't stop proposing usage of PEAR packages. :-) I bet you will. Nobody said that was a bad thing. The only problem is when you disregard the original poster problems and propose packages that do not solve the user problems at all. Maybe if you stop being so obcessed by posting competitive messages to the ones I write (especially those that propose packages that I wrote but are not available in PEAR), you will probably be able to figure when to post or not post followup messages to mine. Remember, cooperating is better than competing! The PEAR Mail package did solve the problem. It supports authentication and changing of the server to send to. I don't post simply to be in opposition, I post to give an alternative so that users know that there are multiple things out there. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: how to create a 2 colors(B&W) bmp image by php ?
Yuegong wrote: > Hi, > > How to create a 2 colors(B&W) bmp image by php ? > Thanks. > > yuegong > There is no built-in way to do this. The GD library functions only support creation of colored images. You can easily just use black and white. See http://us2.php.net/manual/en/ref.image.php Please stop asking the same question over and over. That really does not help. If no one answers, it's because no one knows the answer. -- -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Running an exe from local drive
Harpreet K. Singh wrote: I am trying to run an exe file from my php page. But i get an error Access is denied I am trying to open the file using javascript document.location=fp Thismight be a javascript question but if any one can help that would be great Regards, I believe that javascript isn't allowed to run or access local files. That would cause huge security problems (in fact, it has) as websites could put viruses on peoples' machines or grab their personal files. What exactly are you trying to do? P.S. Please don't hit reply when sending a new message ot the list. Your message gets grouped with the other message and can easily be lost. Use New or Compose instead. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Date Conversion
Sudeep sarath wrote: Hi everyone, A small problem..Help me out of this. I have to convert the server date and time to my local date and time i.e Indian standard time(IST)(or to my system time). My program is : $display=date("F d, Y"); $time=date("H:i:s"); echo $display.""; echo $time; ?> which displays the server date & time which is in the time Zone PST. So please tell how to convert this date to my local date & time(IST). Note: IST is +0530 GMT SuDeEp.. Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. You may want to check out PEAR::Date. http://pear.php.net/package/Date $date = new Date(); $date->convertTZ('IST'); echo $date->format('your format'); -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Connecting to MSSQL Server
Gerardo Rojas wrote: I am able to connect to my MSSQL server and do whatever i need to do. The problem lies in that when I close the connection and the script terminates normally. I do a 'netstat' on my machine i see that i still have a socket connection to all my databases. Isn't the mssql_close() function supposed to close the connection? ENV: Windows 2000 PHP 4.3.3 MS SQL SERVER 2000 -- Gerardo S. Rojas mailto: [EMAIL PROTECTED] Are you using mssql_connect or mssql_pconnect? If you're using pconnect, the connection is supposed to stay (that's the point of a persistent connection). -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: HMTL E-mails with images (again)
Michael Horton wrote: Hi, Having just recently started to try and use php (by necessity- the only person in the department who used php left us recently). I'm trying to make a form to send out a specific e-mail to the selected recipients. I've managed to get it to send an html e-mail to the recipients I want, but I can't seem to get images incorporated into it. I've seen the example classes posted to a similar question on this list, but they're all far to complex for what I need to do. Can anyone help please? Mike Horton - I'm sorry, did my Karma run over your Dogma? I would suggest PEAR's Mail_Mime package. It has a few simple method calls to do this kind of thing. http://pear.php.net/package/Mail_Mime Note: you can also do inline images where the content of the image is in the src, but I can't find any docs on it at the moment. ;-) Also, it would only work on Mozilla based clients. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Removing extra slashes from a path
Gerardo Rojas wrote: I am passing a path value from a form input to a script. For some reason, the path ends up with 2 slashes instead of one (which is the way i typed it in). Any help would be appreciated. Environment: PHP 4.3.4 Windows2000 Pro IIS 5.0 -- Gerardo S. Rojas mailto: [EMAIL PROTECTED] It's probably magic quotes. See magic_quotes_gpc at http://us2.php.net/info -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: More Then one email
Will wrote: I have a problem. When I put 2 email addresses together it does not send the email. The coding is like this: $recipient = "[EMAIL PROTECTED], $_POST[email]"; The send form looks like this: $recipient = "[EMAIL PROTECTED], $_POST[email"; $mailheader .= "From: $_POST[email]\n"; $mailheader .= "To: $_POST[email]\n"; $msg .= "A message has been sent from the domain.com\n\n"; $msg .= "Senders Name: $_POST[name]\n"; $msg .= "Senders Email: $_POST[email]\n\n"; $msg .= "Message: \r$_POST[message]\n"; mail($recipient,$subject,$msg,$mailheader); ?> Everything works, the subject message etc. But when it is sent I do not get any emails at all!! Please help. :) ~WILL~ Use two mail() calls instead. mail('[EMAIL PROTECTED]', $subject, $msg, $mailheader); mail($_POST['email'], $subject, $msg, $mailheader); -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: Expression evaluation - how is it done?
BTW, that's called Short Circuiting. B.A.T. Svensson wrote: I asking because i read through the section about expression, but it was just wining about that $a == 5 if $a = $b and $b = 5, and other trivial matters. So if you could point me to the manual section you are referring to, I would appreciate it. Anyhow, I take your answer that PHP is doing a left-to-right-hand evaluation of the expression, and stops when it not needed to evaluate it further. i.e. in the same way as in C/C++. Thanks for the answer, that all I need to know (for now:). //Anders On Thu, 2004-03-18 at 13:12, DvDmanDT wrote: It's done the lazy way.. If the whole expression can't return true, it's not nessecary to evaluate the right side of the && operator.. In other words, my_bool_function will never be called... See the manual for more.. -- // DvDmanDT MSN: dvdmandt$hotmail.com Mail: dvdmandt$telia.com "B.A.T. Svensson" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] Does PHP uses the same expression evaluation as in C/C++? This questions also consider expression with function that returns booleans, typical: if (false && my_bool_function()) Will my_bool_function() be evaluated or not in this case? -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: An old dog, with a new trick..
If you're just starting out, this is a great time to learn PEAR DB as it can help you a lot in the future. In fact, PEAR is a great place to look for lots of code to do all sorts of things. http://pear.php.net http://pear.php.net/package/DB Felipe eduardo ortiz lópez wrote: Bueno, héme aquí, un perro viejo tratando de aprender nuevos trucos. Comienzo a desarrollar en PHP, con la idea de conectar bases de datos MySQL y Firebird a las aplicaciones. ¿Me podrían orientar de por dónde comenzar, libros, sitios, algo así? Les estaré muy agradecido, y disculpen si comienzo a hacer preguntas tontas... Well, I'm here, an old dog trying to learn new tricks. I'm starting to develop in PHP, having the idea to connect MySQL and Firebord databases to the aplications. Can anyone lend me a hand to have a good starting, bokks, sites, something else? I'll be very grateful, and very sorry if I'm starting with the silly questions... _ Felipe Eduardo Ortiz López, Consultor. Tiammat Software. Yahoo! Messenger: tiammatsoftware MSN Messenger: [EMAIL PROTECTED] http://www.prodigyweb.net.mx/tiammat/default.html -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Replicating Double quotes
[EMAIL PROTECTED] wrote: Hi all, I have a problem in that when I am retrieving data from MySQL that containes double quotes, the double quotes gets repeat, and also the string that does contain double quotes gets double quotes added to the begin and end of it For example I get the following: "16"" Manikin" From what should be the following 16" Manikin Wh I inserted the data into the database I used the 'addslashes' function. Even when I use the 'stripslashes' the output is still the same. Anyone have any clues? :-s Cheers Tryst It's how you're inserting it. Check your insert code to try to find the problem. Also, you could post it for people to look at, -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Email with attachments coming through damaged
Ron Herhuth wrote: Hi, I'm trying to send an attachment via email using the following function, but it keeps coming through damaged. I am having no trouble emailing the same attachment using OutLook. Is there something wrong with the function I'm using? The attachment shows up and I'm not getting any errors, but it just won't open up in Acrobat. Thanks, Ron $email_address = "[EMAIL PROTECTED]"; $email_from = "[EMAIL PROTECTED]"; $subject = "Testing Email with attachments"; $msg = "Text message shown in email"; $attach_filepath = array("2003_CIO_K1_Memo.pdf"); xmail($email_address,$email_from,$subject,$msg,$attach_filepath); function xmail($email_address,$email_from,$subject,$msg,$attach_filepath) { $b = 0; $mail_attached = ""; $boundary = md5(uniqid(time(),1))."_xmail"; if (count($attach_filepath)>0) { for ($a=0;$a $mail_attached; return mail($email_address,$subject,$mail_content,"From: ".$email_from."\r\n".$add_header); } else return mail($email_address,$subject,$msg,"From: ".$email_from); } } ?> I would suggest using a known good solution, such as PEAR's Mail_MIME package. http://pear.php.net/package/Mail_MIME -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: PLEASE HELP...Email attachment corruption
Ron Herhuth wrote: I am dying here. I'm on a deadline and I can't get attachments...specifically PDFs and Word Docs to send without corruption. I am using the script below to send the emails, and I have used several of the classes on PHP.classes to try but everytime the files show up and the error reads "The File is damaged and could not be repaired" when they are opened. When I print the message out to the browser it appears as though the entire string is not being sent. Is there any ini settings that might affect this? I am really in a bind and don't know what to do. Any suggestions would be greatly appreciated. SCRIPT: ini_set("sendmail_from","[EMAIL PROTECTED]"); $toaddress = "[EMAIL PROTECTED]"; $fromaddress = "Tatum CIO Tax <[EMAIL PROTECTED]>"; $subject = "Tatum CIO K-1 & State Tax Information"; $headers = "From: $fromaddress\n"; $headers .= "Reply-To: $fromaddress\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"MIME_BOUNDARY\"\n"; $headers .= "X-Sender: $fromaddress\n"; $headers .= "X-Mailer: PHP4\n"; $headers .= "X-Priority: 3\n"; $headers .= "Return-Path: $fromaddress\n"; $headers .= "This is a multi-part message in MIME format.\n"; $message = "--MIME_BOUNDARY\n"; $message .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n"; $message .= "Content-Transfer-Encoding: quoted-printable\n\n"; $message .= "\n\n"; // email text message goes here $message .= " \n Attached to this email are the following 3 documents: to you from the Tatum CIO Tax \n\n "; $message .= "\n"; $message .= "--MIME_BOUNDARY\n"; // FILE ATTACHMENT CODE $file_url = "Simpletest.pdf"; $fp = fopen($file_url,"r"); $str = fread($fp, filesize($file_url)); $str = chunk_split(base64_encode(implode("", file("Simpletest.pdf"; ; $message .= "Content-Type: application/pdf; name=\"Simpletest.pdf\"\n"; $message .= "Content-disposition: attachment\n"; $message .= "Content-Transfer-Encoding: base64\n"; $message .= "\n"; $message .= "$str\n"; $message .= "\n"; $message .= "--MIME_BOUNDRY\n"; $message .= "--MIME_BOUNDRY--\n"; // echo "TO: $toaddress SUBJECT: $subjectMESSAGE: $message"; mail("[EMAIL PROTECTED]",$subject,$message,$headers); If you're on a deadline I highly suggest grabbing PEAR's Mail_MIME package and using it instead of generating your own e-mails. http://pear.php.net/package/Mail_MIME -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: PEAR vs. PHPLib
Jim Macdiarmid wrote: Can anyone shed some light on these two? Pros and Cons, etc. I've just ran across an article that mentions that PHPLib is the "defacto" standard. I've recently started using the PEAR::DB in a web application and I'd like to make sure that I'm working with something that is reliable. Can anyone give me their feelings on these two (methodologies?) please? Thank you, Jim I've been using PEAR packages for quite a while now in a production environment and they've all been very stable (when marked stable ;-) and extremely useful. Even though I don't plan to change our DBs, I still use PEA::DB as it is very nice to have all of its added functionality and automatic resource handling as well as a unified API to ALL DB backends. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: MySQL Limit Question
Tony Devlin wrote: How can I setup a query to select from a database ONLY the last 5 inserted rows. OR atleast the last 5 starting from this date back, but only select the last 5 in order. If anyone has any suggestions I'd appreciate them. Thanks, Tony I would set up a timestamp column in the table then select ordered by the timstamp descending and limit to 5. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Update multiple records from a text field
Kaizer Boab wrote: Hi everybody, I have built a shopping cart using tables. I am able to add items and remove items from the cart. The problem I am having is updating the quantities in the cart. When users view the cart they can see the quantity in a text field. I want to allow users to type in the quantities they want in this box and then submit the form to display the new quantities. The problem is when the form is submitted only one of the quantity fields is updated, the others remain unchanged. I have tried to use a while loop to make it update all the quantities but it doesn't seem to work. Below is the script I am using to UPDATE the quantites. Can anyone help me? Thanx in advance. mysql_select_db($database_con_ayrsrock, $con_ayrsrock); $queryQty= "SELECT qty FROM cart WHERE trackerId = $trackerId AND albumId = $albumId"; $rsQty = mysql_query($queryQty); while ($row_rsQty = mysql_fetch_array($rsQty)) { $newQty = $qty; mysql_query("update cart set qty = $newQty where trackerId = $trackerId and albumId = $albumId"); } ; ?> Looks like you're naming all of your quantity text boxes "qty". You need to use different var names to make multuple values come back. For instance you could use "qty[]" to have the results come back in an array. Or you could use qty[x] where x is a specific # so that you know which product to update. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Update multiple records from a text field
Kaizer Boab wrote: Hi Justin, I only have the one qty field in the View Cart page. It is part of a loop to pull out all the quantities from the cart. It is retrieved via the script below: Since the qty text field is only one box in a loop, naming it won't help. Is there another way I could achieve the update? Thanx for your help. Looks like you're naming all of your quantity text boxes "qty". You need to use different var names to make multuple values come back. For instance you could use "qty[]" to have the results come back in an array. Or you could use qty[x] where x is a specific # so that you know which product to update. -- paperCrane You need to use what I said in my reply. Change name="qty" to name="qty[]" or name="qty[some database id]". -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Update multiple records from a text field
Kaizer Boab wrote: I have changed it to name="qty[]" . How would I reference it on my processing script? "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Kaizer Boab wrote: Hi Justin, I only have the one qty field in the View Cart page. It is part of a loop to pull out all the quantities from the cart. It is retrieved via the script below: $row_rsCart['albumArtist'];?> $row_rsCart['albumTitle'];?> Since the qty text field is only one box in a loop, naming it won't help. Is there another way I could achieve the update? Thanx for your help. Looks like you're naming all of your quantity text boxes "qty". You need to use different var names to make multuple values come back. For instance you could use "qty[]" to have the results come back in an array. Or you could use qty[x] where x is a specific # so that you know which product to update. -- paperCrane You need to use what I said in my reply. Change name="qty" to name="qty[]" or name="qty[some database id]". -- paperCrane Just try a print_r to see how it comes out and work from there. ;-) You'll have an array of values. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Update multiple records from a text field
Kaizer Boab wrote: This has still got me stumped. I tried the following script to update the table but I'm still experiencing the same result, only one row updates, the rest remain unchanged. while (list($k, $v) = each($qty)) { $newQty = $v; $update = "update cart set qty = $newQty WHERE trackerId = $trackerId AND albumId = $albumId"; mysql_query($update); } for($i = 0; $i < sizeof($qty); ++$i) { $update = 'update cart set qty = '.$qty[$i].' WHERE trackerId = '.$trackerId[$i].' AND albumId = '.$albumId[$i]; mysql_query($update); } I then tried changing my form field names on my View Cart page to name="albumId[]" and name="trackerId[]" as well. I could view the results using the array_multisort function with this script: echo("\n"); for ($i=0; $i < count($trackerId); $i++) { echo("$qty[$i]$albumId[$i]$trackerId[$i]\n"); } echo("\n"); But I am still confused as to how to get the script to update more than one row. You need to use what I said in my reply. Change name="qty" to name="qty[]" or name="qty[some database id]". -- paperCrane Just try a print_r to see how it comes out and work from there. ;-) You'll have an array of values. -- paperCrane -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: problems getting the GET method to work properly
Leonardo Javier BeléN wrote: I am using a winnt server 4.0 box with apache 1.3x and php 4.2.x to serve some intranet pages. The strange thing is that i am not able to use the get method properly. Has anyone an idea of what am i doing wrong? at least I need the session id to be populated by gets. A last thing, I realized that this only happens when I use a web form, because using an anchor is perfectly working... thanks Are you setting method="get" in the form? If it's set to post, of course you won't get them via get. Also, if it's not set it *could* be defaulting to post, although that's very unlikely. Are you using globals or $_GET? Does using $_REQUEST work? -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Can you receive email with php?
Brent wrote: Hi, just wondering if anyone knows of some plugin or class etc that will allow me to receive email from a mail server via pop3. i have looked at PHP mailer but that only seems to send emails. Thanks, Brent. http://pear.php.net/package/Mail_IMAP -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Can't set a cookie from within my SOAP server class
Noah Lively wrote: Hi all, I have a class that I'm using with a SOAP server. Inside of a function in this class, I am trying to set a cookie, but have been unsuccessful so far. I'm using PHP5 RC2 on Windows XP. Cookies set fine on my server in other places, such as classes (that aren't used for a SOAP server) and standalone PHP scripts. Any ideas? ~Noah Well, I wouldn't think cookies would work as SOAP isn't supposed to work stateful. Assuming you're using a web server for the SOAP server (you can use sockets and such for it as well), each request is its own trhing. There generally isn't any kind of continuity between calls. I doubt that it's supported by anyone. I'd suggest adding a parameter to whatever call you're making and keeping track of it yourself on the client side. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Photo gallery with description
Lenny Davila wrote: I am trying to find a photo gallery (Preferrably PHP based) that I can set up for a client that would allow him/her to upload their own photos, and leave a caption under. The client will update the album regularly and wants to be able to do it on their own. They wouold also like to have a description of the photo underneath that they would also like to be able to create themselves. Kinda like the yahoo or msn group photos. TIA Lenny Gallery http://gallery.sf.net -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Automated Login
Ron Herhuth wrote: I am trying to build an automated dashboard sort of thing that goes and checks if several of my clients sites are functioning and reporting back the findings. I have two types of URLs that I'm attmepting to check. 1) Typical static URLs example: http://www.yahoo.com 2) I would like to have the app attempt to login by sending the Login handling page the username and password as POST data. This seems like it would be easy if it were a GET form but it is a POST form. How can I hit the pages and report back if the site is working and the page loaded, and in the case of the login pages, if I was able to have the script successfully login? Thanks, Ron PEAR's HTTP_Client can do it very simply. Keeps track of cookies and state and such. It tries to simulate a browser when accessing the page. http://pear.php.net/package/HTTP_Client I've had lots of luck with it. I've even added some features to it and fixed some bugs. One big thing is accessing sites using client SSL ceritifcates. If you want to use that, e-mail me as I doubt it's in the manuals yet. -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Hello and first question
Chris Patrick Carias Stas wrote: I have problems running php scripts under w2k. for example, a form to send a mail. I has 3 fields, name, email and msg. The actions goes through POST to a file send.php. In send.php i try to use the variables $name, $email and $msg, but it says they are not declared. The same script works fine under linux. I tried installing apache with php instead of IIS but the same thing happens. I installed the cgi and de module version of php, but the same error occurs. Any sugestions? Chris The register_globals php.ini setting is set to 0 on your windows box. This is, however, a *good* thing. You should generally use the superglobal arrays to access these variables so that you know exactly where your variables are coming from. $_POST $_GET $_REQUEST $_COOKIE $_FILES -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: pretty pictures
Ross Honniball wrote: Hello all, This is nothing to do with php, but it's the only list i'm subscribed to right now and I'm too lazy to join another. And you php people know more than just php, right? I'm chasing some very slick pretty pictures for drawing navigation buttons (ie. '<< start', '< back', 'next>', 'end >>') with slick looking arrows including different pictures for enabled and disabled. I can't believe how much time I have wasted un-successfully searching the internet for this. Ideally I'd love a cheap (ie. free) drawing product that is really good for whippying up my own, but if there are some really cool pictures already out there that that's going to save me time. Please help ... Desperate. . . Ross Honniball. JCU Bookshop Cairns, Qld, Australia. . I just found Inkscape myself. It's free and might just do the trick for you. http://www.inkscape.org/ -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: send XML thru POST
Joakim Ling wrote: Hi Im tring to send XML thru POST to a server. I have a demo in asp that works fine but how do I write this in php. This is the ASP demo sXML = " Call oHttpConn.Open("POST", sURL, False) Call oHttpConn.setRequestHeader("Content-Type", "Text/xml") Call oHttpConn.send(sXML) sXMLResponse = oHttpConn.responseText Set oHttpConn = Nothing I tried this from the php-manual but no result. Its like it cant find the remote server. $fp = fsockopen ($sUrl, 80, $errno, $errstr, 30); $msg = "\r\n"); } else { if ($fp) { fputs($fp, "POST /$sUrl HTTP/1.0\r\n"); fputs($fp, "Content-Type: text/xml\r\n"); fputs($fp, "Content-Length: ".strlen($msg)."\r\n"); fputs($fp, "\r\n"); fputs($fp, $msg); $content = 0; $reply = array(); while (!feof($fp)) { echo fgets ($fp,128); } fclose($fp); } } Thanks for help.. // Jocke Well, the easieest way to do this is use a pre-existing set of code which does this for you (like you did in ASP). Try HTTP_Request from PEAR. http://pear.php.net/package/HTTP_Request -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: SOAP in php 4.3.7
Darren Horrocks wrote: is it posible to use SOAP in 4.3.7, or is it a php5 only thing? Yes, of course it is. PHP5 just has SOAP functionality built-in. I would suggest using PEAR::SOAP. http://pear.php.net/package/SOAP -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: GTK - why not?
You could write a PHP client app (that runs in PHP on the client machine) that uses PHP-GTK. You could then have a web service that also runs PHP on some website that it polls. You can't write a PHP-GTK app that runs on the web server (in the web browser), but displays on the client. It doesn't work that way. On Thu, 8 Jul 2004 09:58:09 +0200, William CANDILLON <[EMAIL PROTECTED]> wrote: > But you can run a server application with php GTk as a client application. > > -Message d'origine- > De : Oliver John V. Tibi [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 8 juillet 2004 06:41 > À : [EMAIL PROTECTED] > Objet : [PHP-WIN] Re: GTK - why not? > > > > hi dude! > > the reason behind php- gtk not being web based is because GTK was primarily > created as a toolkit for creating GUI apps on Unixes / Linuxes / Etc. > running the X window system. that means GTK is a client technology, not a > server technology. > > i hope i satisfied your question. > > peace! > > O.J. > > "Cbq - Gmx.At" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > hi @ all > > > > quick question: > > > > ready? > > > > here it is! > > > > WHY IS PHP - GTK not webbased? > > > > > > sorry, may i am wrong, but i am looking for someone, who is responsable > for GTK. > > cz, some programmers (including myself) thinking loud about, what could be > the reason why PHP-GTK is not webbased. > > > > that would be high-end applications. > > > > + u have nothing to install. > > + all is accessable over the internet and > > + just call it, like page over an http link > > + and the source would be still php. > > > > so here is the main question: > > > > Why not? > > > > Would it be maybe a option in the future, if yes, WHEN ? > > > > thx to everybody, who could send me a little personal feedback and/or > telling me please, over who i could get some more informations. > > > > PS: sorry about my english, but its d**n late here. > > > > best regards > > CBQ > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > !DSPAM:40ecfbc7312061669019730! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] HTML (Web Site) Parser
http://pear.php.net/package/HTTP_Client That package supports posting data and deals with cookies and such so that you can login to a site and get pages from it afterwards. You can then use something like HTMLSax to parse it if you really need it. I use Perl regular expressions myself for simple HTML parsing. On Fri, 9 Jul 2004 09:40:27 -0700, Flint Doungchak <[EMAIL PROTECTED]> wrote: > Hello All, > > I'm doing a little research. I need to pull some dynamic content off > some sites that don't offer XML data of RSS. So I can't go about it that > way. > > I'm wondering, from a theoretical sense, it is possible to write a php > application that could log into site, supply the necessary post > information (i.e. search criteria, etc.), and then parse the results? > I'd be going to the same site and I could somewhat depend on format. > It's just that the site admin isn't interested at this point in > developing an XML app I could tap. > > Practically speaking, I worry about things like sessions, SSL, supplying > that POST and GET data, etc. Has anyone ever done anything like this? > I've seen some static page and URL parsing on the list, but I'm talking > about something a bit larger (almost like a PHP based web browser > thingy...) I'm just looking at possible solutions now, any ideas? Any > resources would be great, I really don't mind reading other people's > experiences... > > Thanks, > > -Flint > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > !DSPAM:40eecc5a7186397312192! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: Handling Linux directory paths in Win32
On Thu, 22 Jul 2004 05:24:41 -0400, Jason Barnett <[EMAIL PROTECTED]> wrote: > I actually use Apache so I knew it was safe for that, but didn't realize it > would work for IIS as well (you just never know with Microsoft ;) ). Good to > know, thanks! > > Windows claims POSIX compliance, so it's surprising how much works on it. Then again, it's not surprising how many bugs there are... > > > Paul Menard wrote: > > Just a comment or thought on Jason's reply. I thought you could use '/' as the > > seperator and the > > PHP engine would figure out based on the run-time OS what the actual path format > > would be. Hence > > you can use actual path names like; > > > > E:/path1/path2/path3/somefile.php > > > > in your include and require statements. > > > > At least my code uses the '/' on these types of paths and works fine on Windows > > and *nix systems. > > IIS and Apache both. > > > > FPM > > > > --- Jason Barnett <[EMAIL PROTECTED]> wrote: > > > >>I've run into this exact problem many times. Two things: > >> > >>1) use the PEAR constant DIRECTORY_SEPERATOR, or define it yourself > >>if (PHP_OS == 'Win32' || PHP_OS == 'WinNT') { > >> define('DIRECTORY_SEPERATOR', '\'); > >>} else { > >> define('DIRECTORY_SEPERATOR', '/'); > >>} > >> > >>2) I have two ways that I solve the relative include problem. > >> a) include_once dirname(__FILE__) . 'path/to/relative/include.php'; > >> > >> or for class libraries > >> > >> b) function __autoload($class) { > >>// Use your own logic, I have mine defined to do PEAR-like loading > >>$file = str_replace('_', DIRECTORY_SEPERATOR, $class); > >>include_once($file . '.php'); > >> } > >> > >> > >>>As that would mean the macro code would not slow the linux > >>>machine down at all when running the php script if it did > >>>not even have to evaluate to see if it did need to run the > >>>macro function, although I know php is a scripted language > >>>and not compiled like C/C++ so I don't think its possible > >> > >>Note: PHP goes through the compile step, it's just that everything is compiled > >>on demand. > >> -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Question about the Apache 2.0 Warning in the PHP manual on the PHP web site
On Thu, 22 Jul 2004 10:40:33 -0400, Jim MacDiarmid <[EMAIL PROTECTED]> wrote: > > [ Exerp from PHP manual pages on website: > "Warning Do not use Apache 2.0 and PHP in a production environment neither > on Unix nor on Windows." ] > > Can anyone tell me what this means? This is the only warning I see. > Please search the archives before posting, we were talking about this yesterday. http://marc.theaimsgroup.com/?l=php-general&m=109021837828927&w=2 -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Confused
On Fri, 30 Jul 2004 23:46:22 +0200, Schalk Neethling <[EMAIL PROTECTED]> wrote: > Why would the following line not be parsed in a PHP page? > > > Are you saying that all other PHP code in the page is run, but this isn't? This is how I would code that: '; -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Parsing problem
On Sat, 31 Jul 2004 13:27:41 +1000, Keith McIlvride <[EMAIL PROTECTED]> wrote: > I am very new to PHP. The first line of my php file is " encoding="iso-8859-1"?>" This page is straight out of a Dreamweaver sample > file. > When the page is parsed I get this error "Parse error: parse error, > unexpected T_STRING in c:\Inetpub\wwwroot\TestPHP\comments-view.php on line > 1" > > Can anyone help. > Turn off short_open_tag in your php.ini. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Strange behaviour
On Sat, 31 Jul 2004 17:33:50 +0200, Schalk Neethling <[EMAIL PROTECTED]> wrote: > Hi there > > I have a line of PHP code that behaves very strangely, I was hoping > someone can shed some light on this. > > When the line reads as follows: > href="javascript:openWindow();">'.$row_ads['full_img'].'' ?> > it works find and the output is displayed. Now, when I change the line > as follows no output is produced. > > src="'.$row_ads['full_img'].'" width="87" height="120" />' ?> > 1) Put a semi-colon at the end of the line. 2) I would suggest not using the PHP tags inline as it makes the code hard to read 3) Have you looked at the source HTML for the page to see if anything gets output? '; ?> -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Need help with PHP -> Mail -> SMTP -> Windows Exchange
On Sat, 31 Jul 2004 10:37:53 -0400, Andrew English <[EMAIL PROTECTED]> wrote: > I am trying to get my web page ready for uploading when I ran into a snag. > The person who supplied me with the php code for the contact page gave me > the send mail code. I am wondering if anyone can help me out with converting > the code so I can sent it via SMTP Auth? > > Here is what I got from the person. > > $to = "[EMAIL PROTECTED]"; > $msg .= "This message has been sent from your Contact Form\n\n"; > $msg .= "Name: $name\n"; > $msg .= "Email: $email\n"; > $msg .= "Website: $website\n"; > $msg .= "Address 1: $address1\n"; > $msg .= "Address 2: $address2\n"; > $msg .= "City: $city\n"; > $msg .= "State: $state\n"; > $msg .= "Zip Code: $zip\n"; > $msg .= "Country: $country\n"; > $msg .= "Message: $comment\n"; > mail($to, $name, $msg, "From: Contact Form\nReply-To: $email\n"); > ?> > > And here what I found on the net for doing SMTP Auth. > > > //mail($catre, $subject, $message, $headers); //old fashion mail, using > sendmail, useful on linux > sock_mail($catre, $subject, $message, $headers,$from);//sock version, usable > on Win32 > > //this is the sock mail function > function sock_mail($auth,$to, $subj, $body, $head, $from){ >$lb="\r\n";//linebreak >$body_lb="\r\n";//body linebreak >$loc_host = "localhost";//localhost >$smtp_acc = "steve";//account >$smtp_pass="jonson";//password >$smtp_host="smtp.server.com";//server SMTP >$hdr = explode($lb,$head);//header > >if($body) {$bdy = > preg_replace("/^\./","..",explode($body_lb,$body));} > >// build the array for the SMTP dialog. Line content is > array(command, success code, additonal error message) >if($auth == 1){// SMTP authentication methode AUTH LOGIN, use > extended HELO "EHLO" >$smtp = array( >// call the server and tell the name of your local host >array("EHLO ".$loc_host.$lb,"220,250","HELO error: "), >// request to auth >array("AUTH LOGIN".$lb,"334","AUTH error:"), >// username >array(base64_encode($smtp_acc).$lb,"334","AUTHENTIFICATION > error : "), >// password >array(base64_encode($smtp_pass).$lb,"235","AUTHENTIFICATION > error : ")); >} >else {// no authentication, use standard HELO >$smtp = array( >// call the server and tell the name of your local host >array("HELO ".$loc_host.$lb,"220,250","HELO error: ")); >} > >// envelop >$smtp[] = array("MAIL FROM: <".$from.">".$lb,"250","MAIL FROM error: > "); >$smtp[] = array("RCPT TO: <".$to.">".$lb,"250","RCPT TO error: "); >// begin data >$smtp[] = array("DATA".$lb,"354","DATA error: "); >// header >$smtp[] = array("Subject: ".$subj.$lb,"",""); >$smtp[] = array("To:".$to.$lb,"",""); >foreach($hdr as $h) {$smtp[] = array($h.$lb,"","");} >// end header, begin the body >$smtp[] = array($lb,"",""); >if($bdy) {foreach($bdy as $b) {$smtp[] = array($b.$body_lb,"","");}} >// end of message >$smtp[] = array(".".$lb,"250","DATA(end)error: "); >$smtp[] = array("QUIT".$lb,"221","QUIT error: "); > >// open socket >$fp = @fsockopen($smtp_host, 25); >if (!$fp) echo "Error: Cannot conect to ".$smtp_host.""; > >$banner = @fgets($fp, 1024); >// perform the SMTP dialog with all lines of the list >foreach($smtp as $req){ >$r = $req[0]; >// send request >@fputs($fp, $req[0]); >// get available server messages and stop on errors >if($req[1]){ >while($result = @fgets($fp, 1024)){if(substr($result,3,1) == > " ") { break; }}; >if (!strstr($req[1],substr($result,0,3))) > echo"$req[2].$result"; >} >} >$result = @fgets($fp, 1024); >// close socket >@fclose($fp); >return 1; >} > > ?> > > Your help would be appreciate it! Thanks > So what's your problem exactly? You could always try going with another mailing solution: http://pear.php.net/package/Mail -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] RE: Strange behaviour
On Sat, 31 Jul 2004 22:13:49 +0200, Schalk Neethling <[EMAIL PROTECTED]> wrote: > > > Justin > > I copied your php string with the ; at the end and as before nothing :( > When looking at the HTML source after the page has been parsed the > following is there: > > so the tag is completely > skipped. > Try it in a different browser as well. There's no way with that line of code that you can't get the img tag. Either another line of code is being run or your browser (or a proxy or firewall) is removing the img tag. Try putting it all one one line. If that doesn't work: '; echo ''; echo ''; ?> Also, try setting $row_ads['full_img'] to something you know will work just before the echo. Perhaps your value in that array isn't populated. Try print_r($row_ads['full_img']); > Justin Patrin wrote: > > > On Sat, 31 Jul 2004 17:33:50 +0200, Schalk Neethling > > <[EMAIL PROTECTED]> wrote: > > > > > >> Hi there > >> > >> I have a line of PHP code that behaves very strangely, I was hoping > >> someone can shed some light on this. > >> > >> When the line reads as follows: > >> >> href="javascript:openWindow();">'.$row_ads['full_img'].'' ?> > >> it works find and the output is displayed. Now, when I change the line > >> as follows no output is produced. > >> > >> >> src="'.$row_ads['full_img'].'" width="87" height="120" />' ?> > >> > >> > > > > > > 1) Put a semi-colon at the end of the line. > > 2) I would suggest not using the PHP tags inline as it makes the code > > hard to read > > 3) Have you looked at the source HTML for the page to see if anything > > gets output? > > > > > echo ' > src="'.$row_ads['full_img'].'" width="87" height="120" />'; > > ?> > > > > > > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] RE: Strange behaviour
On Sat, 31 Jul 2004 15:15:33 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > On Sat, 31 Jul 2004 22:13:49 +0200, Schalk Neethling > <[EMAIL PROTECTED]> wrote: > > > > > > Justin > > > > I copied your php string with the ; at the end and as before nothing :( > > When looking at the HTML source after the page has been parsed the > > following is there: > > > > so the tag is completely > > skipped. > > > > Try it in a different browser as well. > > There's no way with that line of code that you can't get the img tag. > Either another line of code is being run or your browser (or a proxy > or firewall) is removing the img tag. > > Try putting it all one one line. If that doesn't work: > > echo ''; > echo ''; > echo ''; > ?> > > Also, try setting $row_ads['full_img'] to something you know will work > just before the echo. Perhaps your value in that array isn't > populated. > > Try print_r($row_ads['full_img']); I meant: print_r($row_ads); > > > > Justin Patrin wrote: > > > > > On Sat, 31 Jul 2004 17:33:50 +0200, Schalk Neethling > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > >> Hi there > > >> > > >> I have a line of PHP code that behaves very strangely, I was hoping > > >> someone can shed some light on this. > > >> > > >> When the line reads as follows: > > >> > >> href="javascript:openWindow();">'.$row_ads['full_img'].'' ?> > > >> it works find and the output is displayed. Now, when I change the line > > >> as follows no output is produced. > > >> > > >> > >> src="'.$row_ads['full_img'].'" width="87" height="120" />' ?> > > >> > > >> > > > > > > > > > 1) Put a semi-colon at the end of the line. > > > 2) I would suggest not using the PHP tags inline as it makes the code > > > hard to read > > > 3) Have you looked at the source HTML for the page to see if anything > > > gets output? > > > > > > > > echo ' > > src="'.$row_ads['full_img'].'" width="87" height="120" />'; > > > ?> > > > > > > > > > > > > -- > DB_DataObject_FormBuilder - The database at your fingertips > http://pear.php.net/package/DB_DataObject_FormBuilder > > paperCrane --Justin Patrin-- > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] RE: Question
On Sat, 31 Jul 2004 22:34:38 +0200, Schalk Neethling <[EMAIL PROTECTED]> wrote: > Is the following line good/legal usage of PHP in an HTML page? > > vspace="5" border="1" /> > Sureit's not very readable, though. P.S. Please try to get rid of that awful message at the bottom of your mails. It's meaningless and annoying. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] RE: Strange behaviour
On Sun, 01 Aug 2004 00:27:33 +0200, Schalk Neethling <[EMAIL PROTECTED]> wrote: > Justin > > Ok here is what is happening, the code is as follows: > > > echo ''; > echo ' height="120" />'; > echo ''; > ?> > > > > When I access the page with either FireFox 0.9 or IE 6.0 BLOCK TWO > prints ../media/ads/001.jpg but, BLOCK ONE is totally skipped over. > What does the HTML source of the web page look like? Can you put this online so we all can see it? > Justin Patrin wrote: > > >On Sat, 31 Jul 2004 22:13:49 +0200, Schalk Neethling > ><[EMAIL PROTECTED]> wrote: > > > > > >>Justin > >> > >>I copied your php string with the ; at the end and as before nothing :( > >>When looking at the HTML source after the page has been parsed the > >>following is there: > >> > >> so the tag is completely > >>skipped. > >> > >> > >> > > > >Try it in a different browser as well. > > > >There's no way with that line of code that you can't get the img tag. > >Either another line of code is being run or your browser (or a proxy > >or firewall) is removing the img tag. > > > >Try putting it all one one line. If that doesn't work: > > > > >echo ''; > >echo ''; > >echo ''; > >?> > > > >Also, try setting $row_ads['full_img'] to something you know will work > >just before the echo. Perhaps your value in that array isn't > >populated. > > > >Try print_r($row_ads['full_img']); > > > > > > > >>Justin Patrin wrote: > >> > >> > >> > >>>On Sat, 31 Jul 2004 17:33:50 +0200, Schalk Neethling > >>><[EMAIL PROTECTED]> wrote: > >>> > >>> > >>> > >>> > >>>>Hi there > >>>> > >>>>I have a line of PHP code that behaves very strangely, I was hoping > >>>>someone can shed some light on this. > >>>> > >>>>When the line reads as follows: > >>>> >>>>href="javascript:openWindow();">'.$row_ads['full_img'].'' ?> > >>>>it works find and the output is displayed. Now, when I change the line > >>>>as follows no output is produced. > >>>> > >>>> >>>>src="'.$row_ads['full_img'].'" width="87" height="120" />' ?> > >>>> > >>>> > >>>> > >>>> > >>>1) Put a semi-colon at the end of the line. > >>>2) I would suggest not using the PHP tags inline as it makes the code > >>>hard to read > >>>3) Have you looked at the source HTML for the page to see if anything > >>>gets output? > >>> > >>> >>>echo ' >>>src="'.$row_ads['full_img'].'" width="87" height="120" />'; > >>>?> > >>> > >>> > >>> > >>> > >>> > > -- > Kind Regards > Schalk Neethling > Web Developer.Designer.Programmer.President > Volume4.Development.Multimedia.Branding > emotionalize.conceptualize.visualize.realize > Tel: +27125468436 > Fax: +27125468436 > email:[EMAIL PROTECTED] > web: www.volume4.co.za > > This message contains information that is considered to be sensitive or confidential > and may not be forwarded or disclosed to any other party without the permission of > the sender. If you received this message in error, please notify me immediately so > that I can correct and delete the original email. Thank you. > > !DSPAM:410c1abb221341842210701! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Setting redirect after HTTP upload
On Wed, 4 Aug 2004 14:35:41 +0100 (BST), Mikey <[EMAIL PROTECTED]> wrote: > Hi NG, > > Was wondering if anyone knew how why my code would fail to re-direct to > another page and whether this may be related to the fact that I have done an > HTTP upload? > > On several pages, I perform a dB update and then re-direct to another page > using: > > header ("Location: /some_url.php\n\n"); > // \n\n included cos I read it in the manual years ago 1) According to standards, you're supposed to give a full absolute URL for the Location header 2) You shouldn't need the newlines in the header call > > And this works as expected. However, on one page, I upload either one or > two files via HTTP and process them, however, once the files have been > processed and the database has been updated, the page is blank and it says > it is done. > > It have put in an echo just above the header() call and the re-direct fails > as expected ("Cannot modify headers, etc...") so their can't be any other > output created by my script. > > I have included the complete listing of the code that I am trying to execute > below - I have already through all the online comments in the manual > regarding both header() and HTTP uploads, but have found nothing that > helps. > > Ta! > > frak! > > if (isset ($_REQUEST['sub_symbol'])) > { > $sp = "/images/symbols/"; > > // Are there files to process? > if (count ($_FILES) > 0) > { >if (isset ($_FILES['Image']) && $_FILES['Image']['tmp_name'] != "") >{ > $img_name = $_FILES['Image']['name']; > while (file_exists ($_SITEPATH.$sp.$img_name)) > $img_name = uniqid ("img").".jpg"; > $img = new Photograph (); > $img->open ($_FILES['Image']['tmp_name']); > $img->create ($_SITEPATH.$sp, "", $img_name); >} >if (isset ($_FILES['Eps']) && $_FILES['Eps']['tmp_name'] != "") >{ > $eps_name = "/eps/symbols/".$_FILES['Eps']['name']; > while (file_exists ($_SITEPATH.$eps_name)) > $eps_name = "/eps/symbols/".uniqid ("eps").".eps"; > move_uploaded_file ($_FILES['Eps']['tmp_name'], $_SITEPATH.$eps_name) > or die ("Couldn't move uploaded > file...({$_FILES['Eps']['tmp_name']})\n"); >} > } > > if (!isset ($img_name)) >$img_name = $_REQUEST['old_img_path']; > else >$img_name = $sp.$img_name; > if (!isset ($eps_name)) >$eps_name = $_REQUEST['old_eps_path']; > > if ($_REQUEST['sub_symbol'] == "Save Changes") > { >$sql = "UPDATE tblSymbols SET \"swmName\"='".safeSQL > ($_REQUEST['swmName'])."', \"swmImgPath\"='$img_name', > \"swmEpsPath\"='$eps_name' WHERE \"irpSymbol\"=".$_REQUEST['irpSymbol']; > } > else > { >$sql = "INSERT INTO tblSymbols VALUES (0, '".safeSQL > ($_REQUEST['swmName'])."', '$img_name', '$eps_name')"; > } > $sth = ociparse ($conn, $sql) >or die ("Couldn't parse SQL: $sql\n"); > ociexecute ($sth) >or die ("Coudn't execute SQL: $sql\n"); > header ("Location: /admin/symbols.html\n\n"); > exit (); > } > > -- > Recruitment consultants are like morning dew - soggy and wet in the > morning and non-existent by the afternoon. > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Passing arrays by reference
On Mon, 9 Aug 2004 17:28:40 -0400, Jim MacDiarmid <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I've seen several examples of passing arrays by reference such as the > following: > > $a = array(); > > function foo(&a) function foo(&$a) > { > for ($i=0; $i < 10; i++) > { > $a[$i] = $i; > } > } > > foo($a); > echo ""; > print_r($a); > echo ""; > > However, when I try this on my setup, it doesn't work and I get the > following error message: > > PHP Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE > in... > > Anyone have any ideas or suggestions? > > Thanks, > Jim > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP 5, IIS 6, no love....
On Wed, 11 Aug 2004 03:10:03 -0400, news.php.net <[EMAIL PROTECTED]> wrote: > Ok, so I decided to go the easy route with PHP 5 and simply use the > installer. Fresh installation of Win2K3, IIS works just fine, and I take > the next step of running the PHP 5 installshield app. I updated the > permissions as the installer recommends at the end of the installation. > > Everything appeared to be good. So I created a simple test script and it > wouldn't run. I checked the permissions to make sure they matched those > recommended by the installer -- no difference. I moved the php5ts.dll file > over to \windows as suggested by the manual install -- no difference. I set > the iusr_ account to have read and read/execute permissions on the PHP > folder -- no difference. I fiddled with different settings in IIS -- no > difference. > > Whenever I attempt to run a script via IE, it hits me with a standard 404, > "file or directory cannot be found" error. Of course, I *KNOW* the files > are there so that's not the issue. > > Suggestions? > You did remember to restart IIS, right? -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help: a NS7 problem
On Wed, 11 Aug 2004 22:08:09 -0300, oleks <[EMAIL PROTECTED]> wrote: > Hi All > > How to fix a NS7 problem where it wants to add a .PHP extension to all > filenames > > I try to use this funnction: > > function download ($fileDir, $fileName) { > $completeFilePath=$fileDir.'/'.$fileName; > header('Pragma: no-cache'); > header("Content-type: archive/exe\n >Content-Disposition: attachment; > filename=\"" . $fileName . "\"\n >Content-length: ".(string)(filesize($completeFilePath)) > ); > $fd=fopen($completeFilePath,'rb'); > while(!feof($fd)) { > print(fread($fd, 4096)); > flush(); > } > } > 1) don't use newlines in your headers. Send each header with its own header() call 2) browsers are fickle when it comes to downloading files. Search Google and the lists for more ideas Here's what I ended up with after lots of heartache: header('Pragma: private'); header('Content-Type: '.$resource['mimeType']); header('Content-Disposition: inline; filename="'.$resource['fileName'].'"'); //header('Content-Length: '.strlen($resource['data'])); header('Content-Transfer-Encoding: binary'); echo $resource['data']; I never got the content-length to work right, myself. > MSIE6 works perfect but NS7 adds .php extension when I try to force NS7 > to download a file. How to fix this problem > > Thanks for help ... > Oleks > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > !DSPAM:411ac0d2228921094323535! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] User Level Access Control Priviledges
On Thu, 12 Aug 2004 13:52:33 EDT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am encountered with what seems a potentially difficult system to > implement. I need to implement a user level access control system. The application I > will create is a consultancy application, with various user categories, where > each user category will have access rights to a particular table (or possibly > individual fields in each table). > > A user group can have the following: no access, read access, write access. > and depending on their group, they will be able to view and manipulate certain > pieces of information that are contained in tables. > > What I want, is more or less similar to the way in which MySQL implements > privileges and level control for users. > > I originally planned to implement this into MySQL database, but now feel > that it would be best if I implemented were to code it. Yet, I may still > implement it in MySQL if its a simple enough solution. I am to look into both > methods. > > Does anyone know how I can best implement this (or would be able to start me > off so that I could take it on further), or know of any online tutorials? > > Your help is greatly appreciated. > By "implement in mysql", do you mean implement it in the server itself in C? If so, if you're not submitting your source back to mysql, it would be a pain to keep it in sync. Also, they just might not accept the code. If you need a system to plug into a PHP script, there are some good permissions packages out there. One is: http://pear.php.net/package/LiveUser -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] connection: close header
On Thu, 12 Aug 2004 15:38:02 -0400, Gryffyn, Trevor <[EMAIL PROTECTED]> wrote: > Just tossing out my 2cents.. Maybe there's a way or a reason, but HTTP > connections are, by their nature, connectionless. They send the data > and close the connection. I'm not sure why you'd want to keep a > persistant connection to a specific page. > > There are "Keep Alive" codes you can send that maintain a connection to > the web server so you don't have to go through all the handshaking and > stuff again (ok, I'm not using exact terms here, forgive me.. My > networking is a bit rusty) but that doesn't keep you connected to a > single PHP or HTML or ASP page, just the server. > > Sounds like everything's behaving just as it was designed to and you're > trying to do something really odd. But maybe I'm just not getting what > you're trying to do or something. > Actually, this is something that's supported by the HTTP protocol. You use the same TCP connection (stream) for multiple requests to the webserver. It is a bit strange, but it's supported. Sounds like the OPs webserver isn't allowing the persistent connections to go through. Maybe Apache needs to be configured differently. Or PHP might be doing it. Or maybe the client application should be rewritten to not use persistent HTTP connections. ;-) > Just what popped into my head when I read this. > > -TG > > > > > -Original Message- > > From: d c [mailto:[EMAIL PROTECTED] > > Sent: Thursday, August 12, 2004 2:51 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] connection: close header > > > > > > Hello, > > > > I am using php 4.3.4 on windows 2000 with iis 5 and isapi. We > > recently switched from asp to php. There is an application > > that we have that hits one of the pages to send some info, > > and it uses persistant connections. The php page was not > > working correctly, and a trace using ethereal showed that the > > difference was the "Connection: close" header being sent with > > the php page, while the "Connection" header was not present > > in the asp page's response. I tried using the latest version > > of php, and the header is still being sent. > > > > Is there a way to get iis to not close the connection with php? > > > > Thanks, > > Dave > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Mail functions?
On Thu, 12 Aug 2004 17:42:57 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Am I correcting thinking that, when you use the mail() function on the hosting > server, the server will automatically pick up the SMTP server (i assume a hosting > server will already have the SMTP-Server value in the php.ini file, which we do not > have access to). > On Linux, it uses the local mail agent. On Windows, yes, the hosting provder should have it filled out. > But if testing on a local server, for instance on your laptop/PC, you need to edit > teh PHP.ini file so that the SMPT server value points to a valid SMTP server? > > Thanks > > Tryst > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] User Level Access Control Priviledges
On Thu, 12 Aug 2004 17:50:44 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I meant be implemeting the User Access priviledges into the database, so then the > code being used will extract that this data for certain users and execute whats > necessary. > > For example... > > CREATE TABLE User ( > ID int not null > , Name varchar(30) not null > , PRIMARY KEY (ID) > ); > > CREATE TABLE AccessObject ( > ID int not null > , Description varchar(255) not null > , PRIMARY KEY (ID) > ); > > CREATE TABLE UserAccessPermission ( > User int not null > , AccessObject int not null > , CanRead char(1) not null default('Y') > , CanWrite char(1) not null default('N') > , PRIMARY KEY (User, AccessObject) > ); > > Hope this helps you grasp what I had in mind. > LiveUser does this. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] User Level Access Control Priviledges
On Thu, 12 Aug 2004 18:14:53 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Can I actually look behind the scenes to see how LiveUser actually implements this? > Also, if I were to use LiveUser, would I be able to bolt it onto my online > Application? > Yes, that's that PEAR packages are for. They're re-usable components. You can look at the code it uses and the DB it uses, of course. > Sorry can you send me the link again, I seem to have accidentally deleted yopur > previous email. > http://pear.limbourg.com/ http://pear.php.net/package/LiveUser -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] connection: close header
On Fri, 13 Aug 2004 11:07:35 -0700 (PDT), d c <[EMAIL PROTECTED]> wrote: > The page is for uploading files. The client posts some info about the file, and also > the file itself. The file is actually sent in chunks. The client is hitting the page > multiple times until all of the chunks for the file are uploaded. All of the data is > being sent the the php page, and the first chunk/file info are stored in the db. > Since the client is trying to re-use the connection, the other chunks are not > getting sent. It is instead timing-out. Simulating the client in a web browser will > upload all of the chunks, hitting the page multiple times. I don't know why the > client was written to try to use persistant connections. It doesn't make sense to me > to do it that way, but that's the way it is. > > With the client, it works on Apache on Windows, but not with IIS. The only > difference between Apache and IIS is the "Connection: close" header present from > IIS. The only difference with the asp page and the php page on IIS is the > "Connection: close" header also. > Well, then, the solution is to use Apache instead of IIS. Problem solved. ;-) I have no idea where you can look for this. Perhaps it is in how PHP is used with IIS? Don't know if you can use a module vs. CGI with IIS, but if you can, try. Perhaps it's your build? Have you patched IIS with all the newest patches? Have you gotten the newest PHP? If yes to all, it's either a setting in IIS (or PHP) or you just can't do it with PHP/IIS. > "Gryffyn, Trevor" <[EMAIL PROTECTED]> wrote: > Yeah, I understand that bit. Persistent connections to the web server > make sense to me. What doesn't make sense is why you'd require a > persisent connection for something to work. The workstation might be > persistently connected to the web server, but a PHP, ASP or HTML page is > going to send it's data, then stop. Then you send another request to > the web server and it sends more data to you. Then you make another > request and it sends more data. Whether you're persistent or not > shouldn't make something break as far as I know. It might make things a > little slower because of having to renegotiate the connection, but since > HTTP is connectionless by nature, the data it sends doesn't require > persistent connection. > > That's what sessions are for, isn't it? > > Not trying to be antagonistic, I just don't understand why a persistent > connection is required for this to work. Maybe Dave is asking the wrong > question. > > Ok, working with Dave's response to this where he says that he doesn't > have the option of changing the client, let's focus on the PHP page that > the application is accessing. > > Dave, describe "Not working correctly". What is the nature of the data > the application sends to the PHP and ASP pages, why does it need a > persistent connection (again, maybe this isn't the right question to > solve this problem) and what's the PHP page doing that the ASP doesn't. > Is it not retrieving all the data or something? > > A little more detail might help solve this one. > > -TG > > > -Original Message- > > From: Justin Patrin [mailto:[EMAIL PROTECTED] > > Sent: Thursday, August 12, 2004 5:45 PM > > To: Gryffyn, Trevor > > Cc: [EMAIL PROTECTED]; d c > > Subject: Re: [PHP-WIN] connection: close header > > > > > > On Thu, 12 Aug 2004 15:38:02 -0400, Gryffyn, Trevor > > wrote: > > > Just tossing out my 2cents.. Maybe there's a way or a > > reason, but HTTP > > > connections are, by their nature, connectionless. They > > send the data > > > and close the connection. I'm not sure why you'd want to keep a > > > persistant connection to a specific page. > > > > > > There are "Keep Alive" codes you can send that maintain a > > connection to > > > the web server so you don't have to go through all the > > handshaking and > > > stuff again (ok, I'm not using exact terms here, forgive me.. My > > > networking is a bit rusty) but that doesn't keep you connected to a > > > single PHP or HTML or ASP page, just the server. > > > > > > Sounds like everything's behaving just as it was designed > > to and you're > > > trying to do something really odd. But maybe I'm just not > > getting what > > > you're trying to do or something. > > > > > > > Actually, this is something that's supported by the HTTP protocol. You > > use the same TCP
Re: [PHP-WIN] using the mail function in php
On Wed, 18 Aug 2004 17:38:45 +1000, neil <[EMAIL PROTECTED]> wrote: > Thanks Lenny > > The stripslashes worked. I didn't think to use it as there was no slashes to > strip. But since it puts it in they need to be removed. > How many times must I say this? If you see slashes, THERE ARE SLASHES IN THE STRING! If stripslashes removes them, they had to be in there in the first place. Period. End of story. > Neil > > "Lenny Davila" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Try using the strip slashes http://us3.php.net/stripslashes > > stripslashes($messageVariable); > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Graphical popup wiindow on link mouseover
On Wed, 18 Aug 2004 11:56:03 -0400, Jim MacDiarmid <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I have a link on a page and I would like to present dynamic list of names in > graphical popup "window" ( and I use this term loosely) at the cursor > position when a mouseover or the link is done. I don't want a "browser" > window to popup but rather something like resembles a floating square or > layer with a border perhaps. > > I've been doing some research and I am aware that you can use the title > attribute of the tag, I'd like to do something a little bigger. Has > anyone ever done this before? > http://www.bosrup.com/web/overlib/ Very nice. Optionally, if you don't want to use someone else's code, use a div which is absolutely positioned and use onblur in your link tag. But I suggest using overlib. ;-) -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Persistant Socket Across Different Scripts
I am trying to figure out if there is a way to have a socket persist in different executions of the same script. My situation is as follows; I have a Java program running and waiting for connections on port 1. When it receives a connection it reads a "device" id and loads a device driver for it and then passes the stream to this driver. I would like to be able to communicate over this stream with the client using a browser and PHP. I can open the stream when the script runs for the first time, but each time the user gets the script again the connection is being re-made. I tried pfsockopen but it seemed to work the same of fsockopen. Thanks very much, Justin -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] How do I enable QDBM dba handler for windows?
I am running PHP 5.0.3 and Apache/2.0.53(Win32) on WinXP Pro. I have enabled the DBA extention (php_dba.dll) in php.ini. I have downloaded qdbm-1.8.21-win32 and copied the required dlls into the PHP directory (and C:\WINDOWS to be doubly sure they are in the path). How do I enable the QDBM as a supported dba handler? There doesn't seem to be any php.ini settings for DBA, and yes I did restart Apache. There must be a simple or obvious step I am missing. Is there suppose to be another extension I need to download/add to the php.ini file or setting? I noticed someone asked a similar question in January, though not QDBM specifically, but no-one has responded, or the solution wasn't posted. Thanks, Justin Tan -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] How do I enable QDBM dba handler for windows?
Hi Edin, Indeed that may be the case! However, there is a Win32 port for QDBM that I downloaded from qdbm.sourceforge.net which includes dlls, header files to compile qdbm support into win apps, and comes with DOS apps that can create, access and test qdbm files. This may be a new addition to the QDBM binaries. I just need to now find out how to get PHP's dba extention to support it too! Thanks :) Justin -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Curly and annoying. Session vars and uniquely identifying a
One way you could get around this (for debugging purposes only) is to use another browser.. ie. IE and Firefox. This works because each of the browser instances have separate cookie stores. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] php_apc for windows
Hi All, I was waiting for the pecl for windows site to come back up. However, I would really like to get hold of an apc.dll that will work with 4.3.10. Does anyone have and links to one I could download? regards Justin
[PHP-WIN] PHP Build problems on windows
Hello, I've been trying to build PHP on WIndows 7 with the windows platform SDK. In my first attempt I ran configure.js like this: C:\src\php-5.3.1>configure --enable-debug --enable-crt-debug --enable-cli-win32 --with-openssl --enable-soap --with-xsl I ran make and it ended like this: stream.c tar.c util.c c:\src\php-5.3.1\ext\phar\util.c(30) : fatal error C1083: Cannot open include file: 'openssl/evp.h': No such file or director y NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin\cl.exe"' : return code '0x2' Stop. Now I think the fact configure didn't fail or disable openssl support should be configured a bug, but I thought I would confirm that here. Relevant configure output: Checking for library ssleay32.lib ... Enabling extension ext\pcre Enabling extension ext\phar Native OpenSSL support in Phar enabled Meanwhile I installed the open ssl MSI, updated my envirorment and retried a build. This lead to some errors that seem to be zlib related. My new configure line configure --disable-zts --enable-debug --enable-crt-debug --enable-cli-win32 --with-openssl --enable-soap --with-xsl --with-extra-includes=c:\src\win32build\include;c:\OpenSSL\include --with-extra-libs=c:\src\win32build\lib;c:\OpenSS L\lib I reran nmake and got the following complaints related to zlib: php_xsl.c xsltprocessor.c rc /fo Debug\php5_debug.dll.res /d FILE_DESCRIPTION="\"PHP Script Interpreter\"" /d FILE_NAME="\"php5_debug.dll\"" / d PRODUCT_NAME="\"PHP Script Interpreter\"" /IDebug /d MC_INCLUDE="\"Debug\wsyslog.rc\"" win32\build\template.rc Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385 Copyright (C) Microsoft Corporation. All rights reserved. php5_debug.dll.def : error LNK2001: unresolved external symbol compressBound php5_debug.dll.def : error LNK2001: unresolved external symbol deflateBound php5_debug.dll.def : error LNK2001: unresolved external symbol deflatePrime php5_debug.dll.def : error LNK2001: unresolved external symbol gzclearerr php5_debug.dll.def : error LNK2001: unresolved external symbol gzungetc php5_debug.dll.def : error LNK2001: unresolved external symbol inflateBack php5_debug.dll.def : error LNK2001: unresolved external symbol inflateBackEnd php5_debug.dll.def : error LNK2001: unresolved external symbol inflateBackInit_ php5_debug.dll.def : error LNK2001: unresolved external symbol inflateCopy php5_debug.dll.def : error LNK2001: unresolved external symbol zlibCompileFlags Debug\php5_debug.lib : fatal error LNK1120: 10 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin\cl.exe"' : return code '0x2' Stop. Any suggestions?
[PHP-WIN] nmake clean bug
Hi, I wanted to report this on a seperate thread to avoid confusion. I am attempting to build PHP on windows and failing. I am attempting to run nmake clean and failing. Output from the first time: C:\src\php-5.3.1>nmake clean Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. Cleaning SAPI Cleaning distribution build dirs rd /s /q Debug\php-5.3.1 The system cannot find the file specified. --END--- And the second time: C:\src\php-5.3.1>nmake clean Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. Cleaning SAPI Could Not Find C:\src\php-5.3.1\Debug\php5_debug.dll Cleaning distribution build dirs Could Not Find C:\src\php-5.3.1\Debug\*.res rd /s /q Debug\php-5.3.1 The system cannot find the file specified. C:\src\php-5.3.1>gvim configure.output C:\src\php-5.3.1>configure --disable-zts --enable-debug --enable-crt-debug --enable-cli-win32 --with-openssl --enable-soap -- with-xsl --with-extra-includes=c:\src\win32build\include;c:\OpenSSL\include --with-extra-libs=c:\src\win32build\lib;c:\OpenSS L\lib --END--- Is this considered a bug in the makefile?
[PHP-WIN] nmake snap message: WARNING: distro depends on (msvcr90d.dll && libpq.dll), but could not find it on your system
Hi, So I finally got it to build and run on windows. I am tweaking with the configure options to my likings, but I've made some good progress. So one thing I noticed after I added postgres support was the following output of "nmake snap" WARNING: distro depends on msvcr90d.dll, but could not find it on your system WARNING: distro depends on libpq.dll, but could not find it on your system I have both these libraries in my system. How do I get nmake to find them? My configure is as follows: configure --disable-zts --enable-debug --enable-cli-win32 --with-openssl --enable-soap --with-pgsql=shared --enable-pdo=shared --with-libxml=shared --with-xml --with-xsl --with-extra-includes="c:\Program Files\PHP\extras\zlib-1.2.3-vc9-x86\include" --with-extra-libs="c:\Program Files\PHP\extras\zlib-1.2.3-vc9-x86\lib;c:\program files\Expat 2.0.1\bin" my path is as follows: C:\src\php-5.3.1\vc9\x86\php-5.3-svn>path PATH=C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin;C:\Program Files\Microsoft Visual Studio 9.0\VC\vcpackages;C:\Progra m Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin;C:\Windows\Microsoft.NET\Fra mework\v3.5;C:\Windows\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft SDKs\Windows\v7.0\Setup;C:\Program Files \PHP\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\To rtoiseGit\bin;C:\Program Files\PHP\extras\wso2-wsf-php\wsf_c\lib;C:\Program Files\PHP\extras\libxml2-2.7.6.win32\bin;C:\Progr am Files\PHP\extras\iconv-1.9.2.win32\bin;%LIBXSLT\bin%;C:\OpenSSL\bin;C:\Program Files\WinMerge;c:\Program Files\Microsoft S QL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;c:\Program Fil es\PostgreSQL\8.4\bin;C:\Program Files\Nmap;c:\php-sdk\bin\\..\bin;c:\php-sdk\bin\
Fwd: [PHP-WIN] PHP 5.3.4 has built
Meant to reply to everyone -- Forwarded message -- From: Justin Dearing Date: Wed, Nov 17, 2010 at 3:53 PM Subject: Re: [PHP-WIN] PHP 5.3.4 has built To: Pierre Joye So wait we can use the Windows 7 SDK to get it to build now? A couple months back when I was fixing my bug with the Soap Client talkign to a WCF service, I had to use an older SDK. This is great news!! Justin On Wed, Nov 17, 2010 at 3:47 PM, Pierre Joye wrote: > hi, > > Nice, finally! :) > > On Wed, Nov 17, 2010 at 9:17 PM, Steven Scott wrote: >> Thanks to everyone for the help. I created a new image with Visual >> Studio 2008 Express. Added the Windows 7.0 SDK and then configured >> the system to use that version. Followed the build instructions, and >> I now have a development build of PHP 5.3.4. >> >> Thanks again for all the help. >> >> -- >> PHP Windows Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP 64-bit binaries?
On Sun, Oct 16, 2011 at 9:12 AM, Pierre Joye wrote: > PHP is slower in 64bit than in 32bit modes. Databases (be oracle, > mysql or other) are another stories and many of them are faster. > However one does not have to run php in 64bit mode to talk to database > servers running in 64bit mode. > > Those are good points, but sometimes 64 bit php would make sense. For example, what if I had a script that I ran from the command line that edited xml files that were more than 3 gigabytes in size? Lets assume that this was the only way to get this data, and this script was putting the data in a database. I would not be able to do that operation in 32 bit php because the entire xml file could not be loaded into memory. The above example is more feasible then many would think (sometimes you have no control over the format of the data you get). There are also other cases where the memory address limitations of a 32 bit process could come into play. Justin
[PHP-WIN] Can't build the MSI installer
Hi, I am building PHP from https://svn.php.net/repository/php/php-src/branches/PHP_5_4 When I do a nmake msi-installer I get the following: zip error: Nothing to do! (try: zip -9 -q -r php-devel-pack-5.4.0RC5-dev-Win32-VC9-x86.zip . -i php-5.4.0RC5-dev-devel-VC9-x86) cd ..\.. Release_TS\php.exe ..\php-installer\build-installer.php "Release_TS" "php5ts.dll" "php-cgi.exe php.exe php-win.exe" "php_gd2.dll" "" The system cannot find the path specified. NMAKE : fatal error U1077: 'Release_TS\php.exe' : return code '0x1' Stop. c:\php-sdk\php54dev\vc9\x86\php-src-5.4> I don't see the php-installer directory anywhere. Regards, Justin Dearing P.S. My goal is to make a patch that will register PHP fastcgi with IIS express in addition to the full version of IIS.
Re: [PHP-WIN] Can't build the MSI installer
Hello sir or madam, I am aware that https://svn.php.net/repository/php/php-src/branches/PHP_5_4is the source code to PHP. My instention was to build php binaries for windows and package them with the PHP MSI installer. I apologize if I was unclear as to my intentions. Best Regards, Justin Dearing 2012/1/2 昵称不可用 > this is php's source code! > > ** > -- > > > 此致 > 敬礼! > 杨胜良 > ** > > > > ------ Original -- > *From:* "Justin Dearing"**; > *Date:* 2012年1月3日(星期二) 上午10:55 > *To:* "php-windows"**; > *Subject:* [PHP-WIN] Can't build the MSI installer > > Hi, > > I am building PHP from > https://svn.**php.net/repo**sitory/php/p**hp-src/branc**hes/PHP_5_4<https://svn.php.net/repository/php/php-src/branches/PHP_5_4> > > When I do a nmake msi-installer I get the following: > > zip error: Nothing to do! (try: zip -9 -q -r > php-devel-pack-5.4.0RC5-dev-Win32-VC9-x86.zip . -i > php-5.4.0RC5-dev-devel-VC9-x86) > cd ..\.. > Release_TS\php.exe ..\php-installer\build-installer.php > "Release_TS" "php5ts.dll" "php-cgi.exe php.exe php-win.exe" "php_gd2.dll" > "" > The system cannot find the path specified. > NMAKE : fatal error U1077: 'Release_TS\php.exe' : return code '0x1' > Stop. > > c:\php-sdk\php54dev\vc9\x86\php-src-5.4> > > I don't see the php-installer directory anywhere. > > Regards, > > Justin Dearing > > P.S. My goal is to make a patch that will register PHP fastcgi with IIS > express in addition to the full version of IIS. > >
[PHP-WIN] Is there going to be an MSI for php 5.4?
Hello, I'm curious as to the plan for msi installers for PHP 5.4? Is this going to continue? Is the installer being rewritten? Thanks, Justin
Re: [PHP-WIN] Is there going to be an MSI for php 5.4?
Pierre, I don't NEED it but I like it. Was going to suggest adding IIS express support to it. I can live with phpmanager for IIS andthe command line tools, I find the MSI superior and was looking forward to figuring out how to do custom silent installs with it. Justin On Mar 8, 2012 7:16 PM, "Pierre Joye" wrote: > hi, > > As of now, no more msi. In the need of it? > > On Thu, Mar 8, 2012 at 10:38 PM, Justin Dearing > wrote: > > Hello, > > > > I'm curious as to the plan for msi installers for PHP 5.4? Is this going > to > > continue? Is the installer being rewritten? > > > > Thanks, > > Justin > > > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org >
Re: [PHP-WIN] Is there going to be an MSI for php 5.4?
The MSI is a great asset for PHP on windows when it "just works." I remember older releases where that was not always the case. Recently, it seems pretty good with IIS. I can see the case that the MSI might be more trouble than its worth because it has to be maintained. Would it be possible to direct people towards phpmanager, webmatrix, etc on the download page as alternatives to the zip file for people uncomfortable with configuring IIS? Justin On Fri, Mar 9, 2012 at 5:32 AM, Lester Caine wrote: > Pierre Joye wrote: > >> Yes, but it does not always work as it should and it costs us a lot of >> time to maintain. On the other, projects like Wamp, xampp, easyphp, >> phpmanager for IIS do a great job to simplify updates and >> installations of newer PHP. They also use our binaries, so everything >> is fine. >> > > Since there are at least two options of web server, I think I would agree > that maintaining something in addition to the options already available > does not make sense. And extending an MSI to take care of > IIS/Apache2.2/Apache2.4 with the other expanding installation options is > going to take someones time. > > Personally I find that the ZIP packages are more than enough, but I > install on top of Apache and that is already configured. > > -- > Lester Caine - G8HFL > - > Contact - > http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact> > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk// > Firebird - > http://www.firebirdsql.org/**index.php<http://www.firebirdsql.org/index.php> > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >