php-general Digest 6 May 2001 19:11:22 -0000 Issue 670 Topics (messages 51587 through 51649): IIS instead of PWS!!! what else can i do.. 51587 by: Thomas Edison Jr. 51588 by: Zak Greant 51591 by: Thomas Edison Jr. 51592 by: Thomas Edison Jr. 51593 by: Zak Greant 51594 by: Alexander Skwar Re: PHP on PWS not working! 51589 by: Thomas Edison Jr. 51590 by: Thomas Edison Jr. 51600 by: Phil Driscoll 51640 by: Thomas Edison Jr. 51644 by: Phil Driscoll Re: Sorry, what is "PWS" 51595 by: Alexander Skwar Re: "Free" Database Design Program 51596 by: Andrzej Swedrzynski Novedades en Gordos.com 51597 by: Gordos.com PHP as apache module and security. 51598 by: Andrzej Swedrzynski 51607 by: Estelle Martin 51609 by: Andrzej Swedrzynski Re: nslookup function ? 51599 by: Tom Carter Complete Newbie 51601 by: biscut What is msvcr70.dll?? 51602 by: Ermanno Iannacci Re: PEAR where should I start? 51603 by: Gyozo Papp Image displaying problem 51604 by: Estelle Martin Re: class (not class instance) variables 51605 by: Gyozo Papp Re: quicker query? 51606 by: Gyozo Papp searching a MySQL database 51608 by: Jamie Saunders 51620 by: bill 51623 by: John Vanderbeck Insert data into mysql table 51610 by: Mohamedou Re: wordwrap 51611 by: Yasuo Ohgaki php4apachi.dll 51612 by: Darren best ide for windows 51613 by: Alexander Bierbrauer 51615 by: Gyozo Papp 51617 by: Geir Eivind Mork 51618 by: John Vanderbeck 51626 by: Henrik Hansen 51628 by: Andrzej Swedrzynski 51629 by: Gyozo Papp 51630 by: Alex Piaz 51633 by: Alexander Skwar 51634 by: Bjorn Sodergren 51635 by: Andrzej Swedrzynski 51637 by: John Vanderbeck 51639 by: Andrzej Swedrzynski php.exe [filename .php] vs. run [filename.php] via webserver 51614 by: Art Install problems with PHP and GD 51616 by: John Vanderbeck if string contains... 51619 by: Jamie Saunders 51621 by: Alvin Tan 51622 by: Gyozo Papp Slightly OT - Backing up mySQL... 51624 by: Nick Terzich 51625 by: Felix Kronlage 51627 by: Henrik Hansen Re: simple database extraction problem :( 51631 by: Manuel Lemos Can php give me row number? 51632 by: Jan Grafström 51636 by: Gyozo Papp 51642 by: Stephan Ahonen Flash/PHP/MySQL 51638 by: FredrikAT 51641 by: Eduardo Pérez Jover Passing variables to another page - newbie 51643 by: Dean Martin 51645 by: Jack Dempsey 51646 by: John Vanderbeck 51647 by: tcuhost.hotmail.com [OT?] permission denied[OT?] 51648 by: Alexander Bierbrauer file() shooting blanks 51649 by: Jay Lepore Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
i think i'm almost at the verge of giving up...somehow the PWS in my system is ruined forever...i'd done everything..and i mean *EVERYTHING*...but PHP just doesn't seem to be working with my PWS. In fact, even my ASP scripts are not working anymore on PWS. I've uninstalled & reinstalled PWS twice already. it's just *&*%^. anyways, i think i'm gonna be trying out the IIS option. Is IIS ok to work with PHP4? any problems? and is there anywhere on the Internet that i can get IIS 4 from? thankx all yah, T. Edison jr. ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
You may want to try Xitami (www.imatix.com) as a fast/free/open source alternative to the Microsoft products. --zak ----- Original Message ----- From: "Thomas Edison Jr." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 06, 2001 12:52 AM Subject: [PHP] IIS instead of PWS!!! what else can i do.. > i think i'm almost at the verge of giving up...somehow > the PWS in my system is ruined forever...i'd done > everything..and i mean *EVERYTHING*...but PHP just > doesn't seem to be working with my PWS. In fact, even > my ASP scripts are not working anymore on PWS. I've > uninstalled & reinstalled PWS twice already. it's just > *&*%^. anyways, i think i'm gonna be trying out the > IIS option. Is IIS ok to work with PHP4? any problems? > and is there anywhere on the Internet that i can get > IIS 4 from? > > thankx all yah, > T. Edison jr. > > > ===== > Rahul S. Johari (Director) > ****************************************** > Abraxas Technologies Inc. > Homepage : http://www.abraxastech.com > Email : [EMAIL PROTECTED] > Tel : 91-4546512/4522124 > ******************************************* > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ > > -- > PHP General 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] >
The only reason why i'm opting for pws or IIS is because i need to run ASP scripts on my PC too. I'm an ASP engineer as well and it's my Second major. So i need to work with ASP too. Does Xitami support ASP? and if it doesn't, can u tell me any other web server for the PC which will run ASP & PHP both. I do have the Jrun Server installed cause i work with JSP too. I actually need all 3 : PHP, ASP & JSP running on my PC. I'm using JRun for JSP, Apache (now, before i was using PWS) for PHP and i need something for ASP now since my PWS is not working. Regards, T. Edison jr. --- Zak Greant <[EMAIL PROTECTED]> wrote: > You may want to try Xitami (www.imatix.com) as a > fast/free/open source > alternative to the Microsoft products. > > --zak > > > ----- Original Message ----- > From: "Thomas Edison Jr." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, May 06, 2001 12:52 AM > Subject: [PHP] IIS instead of PWS!!! what else can i > do.. > > > > i think i'm almost at the verge of giving > up...somehow > > the PWS in my system is ruined forever...i'd done > > everything..and i mean *EVERYTHING*...but PHP just > > doesn't seem to be working with my PWS. In fact, > even > > my ASP scripts are not working anymore on PWS. > I've > > uninstalled & reinstalled PWS twice already. it's > just > > *&*%^. anyways, i think i'm gonna be trying out > the > > IIS option. Is IIS ok to work with PHP4? any > problems? > > and is there anywhere on the Internet that i can > get > > IIS 4 from? > > > > thankx all yah, > > T. Edison jr. > > > > > > ===== > > Rahul S. Johari (Director) > > ****************************************** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : [EMAIL PROTECTED] > > Tel : 91-4546512/4522124 > > ******************************************* > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great > prices > > http://auctions.yahoo.com/ > > > > -- > > PHP General 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] > > > ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
>Why not install all three servers (IIS/Apache/Jrun) yeah, well i'm already doing that sir. only problem is, since few days my PWS is not working. Fortunately, just minutes ago i was able to fix it so that ASP is running perfectly on PWS now. Only PHP is not. So anyway, i guess i've dropped the idea of making PHP4 run on PWS since it is not going to (somehow). So now i Am running PWS/Apache/Jrun on my PC and working with ASP, PHP & JSP. no problem. that you do mention it, can u tell me if it's better to use IIS or PWS? and where can i get IIS? Cheers, T. Edison jr. ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
IIRC, it can with some caveats - check the library at xitami.com --zak ----- Original Message ----- From: "Thomas Edison Jr." <[EMAIL PROTECTED]> To: "Zak Greant" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, May 06, 2001 1:05 AM Subject: Re: [PHP] IIS instead of PWS!!! what else can i do.. > The only reason why i'm opting for pws or IIS is > because i need to run ASP scripts on my PC too. I'm an > ASP engineer as well and it's my Second major. So i > need to work with ASP too. Does Xitami support ASP? > and if it doesn't, can u tell me any other web server > for the PC which will run ASP & PHP both. I do have > the Jrun Server installed cause i work with JSP too. I > actually need all 3 : PHP, ASP & JSP running on my PC. > I'm using JRun for JSP, Apache (now, before i was > using PWS) for PHP and i need something for ASP now > since my PWS is not working. > > Regards, > T. Edison jr. > > > --- Zak Greant <[EMAIL PROTECTED]> wrote: > > You may want to try Xitami (www.imatix.com) as a > > fast/free/open source > > alternative to the Microsoft products. > > > > --zak > > > > > > ----- Original Message ----- > > From: "Thomas Edison Jr." <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, May 06, 2001 12:52 AM > > Subject: [PHP] IIS instead of PWS!!! what else can i > > do.. > > > > > > > i think i'm almost at the verge of giving > > up...somehow > > > the PWS in my system is ruined forever...i'd done > > > everything..and i mean *EVERYTHING*...but PHP just > > > doesn't seem to be working with my PWS. In fact, > > even > > > my ASP scripts are not working anymore on PWS. > > I've > > > uninstalled & reinstalled PWS twice already. it's > > just > > > *&*%^. anyways, i think i'm gonna be trying out > > the > > > IIS option. Is IIS ok to work with PHP4? any > > problems? > > > and is there anywhere on the Internet that i can > > get > > > IIS 4 from? > > > > > > thankx all yah, > > > T. Edison jr. > > > > > > > > > ===== > > > Rahul S. Johari (Director) > > > ****************************************** > > > Abraxas Technologies Inc. > > > Homepage : http://www.abraxastech.com > > > Email : [EMAIL PROTECTED] > > > Tel : 91-4546512/4522124 > > > ******************************************* > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Auctions - buy the things you want at great > > prices > > > http://auctions.yahoo.com/ > > > > > > -- > > > PHP General 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] > > > > > > > > ===== > Rahul S. Johari (Director) > ****************************************** > Abraxas Technologies Inc. > Homepage : http://www.abraxastech.com > Email : [EMAIL PROTECTED] > Tel : 91-4546512/4522124 > ******************************************* > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ > > -- > PHP General 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] >
So sprach Thomas Edison Jr. am Sun, May 06, 2001 at 12:41:24AM -0700: > that you do mention it, can u tell me if it's better > to use IIS or PWS? and where can i get IIS? IIS is *NOT* free! Actually it's rather expensive - check your local dealers, they most certainly will be happy to sell IIS to you. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 16 hours 22 minutes
> 1. Rename php.ini-dist to php.ini (if you haven't) > 2. Simplify your script > 3. Try changing your directory properties in PWS: > Read/Execute/Scripts - try different combinations been there, done that, you could say. i think i've tried every possible humanly available option. my \inetpub\wwwroot is the web dir. and i have read, execue & scripts checked for that on PWS. plus i have c:\php4\sapi\(the dll) declared in my regedit. everything is how it's supposed to be. i don't know what's wrong! help me if you can! T. Edison jr. ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
me again...i hope MTS is not required for running PHP4.0.5 on PWS. Cause i'm not having the MTS (Microsoft Transaction Server) installed on my PWS. T. Edison jr. --- Donald Goodwill <[EMAIL PROTECTED]> wrote: > I couldn't find your original message, but here are > some ideas: > 1. Rename php.ini-dist to php.ini (if you haven't) > 2. Simplify your script > 3. Try changing your directory properties in PWS: > Read/Execute/Scripts - try different combinations > > > --- "Thomas Edison Jr." <[EMAIL PROTECTED]> > wrote: > > would you believe it, i did!! still not working. > > still > > giving the "500 Internal Server Error". I > > uninstalled > > & then reinstalled PWS. cooked up the settings > > again...and no response!! > > > > T. Edison jr. > > > > --- Data Driven Design <[EMAIL PROTECTED]> > > wrote: > > > Did you copy the php4ts.dll to your > windows/system > > > directory? I think I had > > > to do that even though it wasn't in the > directions > > > > > > Data Driven Design > > > P.O. Box 1084 > > > Holly Hill, Florida 32125-1084 > > > > > > http://www.datadrivendesign.com > > > http://www.rossidesigns.net > > > ----- Original Message ----- > > > From: Thomas Edison Jr. > <[EMAIL PROTECTED]> > > > To: Data Driven Design > <[EMAIL PROTECTED]> > > > Cc: <[EMAIL PROTECTED]> > > > Sent: Saturday, May 05, 2001 2:44 PM > > > Subject: Re: [PHP] PHP on PWS not working! > > > > > > > > > > nothing does seem to work...i don't know what > > the > > > hell > > > > is the problem!! i did put this : > > > > > > > > > C:\\php\\sapi\\php4isapi.dll > > > > > > > > in the regedit file and it looks great. > > everything > > > is > > > > just so by the book. where the hell am i going > > > wrong!! > > > > can't understand what's different here that > was > > > not > > > > before coz it was working before!!! > > > > > > > > did you define any path in the > > > > > > > > doc_root = > > > > > > > > in php.ini? because i didn't! > > > > > > > > Cheers, > > > > T. Edison jr. > > > > > > > > > > > > > > > > > > > > ===== > > > > Rahul S. Johari (Director) > > > > ****************************************** > > > > Abraxas Technologies Inc. > > > > Homepage : http://www.abraxastech.com > > > > Email : [EMAIL PROTECTED] > > > > Tel : 91-4546512/4522124 > > > > ******************************************* > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Yahoo! Auctions - buy the things you want at > > great > > > prices > > > > http://auctions.yahoo.com/ > > > > > > > > -- > > > > PHP General 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] > > > > > > > > > > > > > > > > > ===== > > Rahul S. Johari (Director) > > ****************************************** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : [EMAIL PROTECTED] > > Tel : 91-4546512/4522124 > > ******************************************* > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great > > prices > > http://auctions.yahoo.com/ > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great > prices > http://auctions.yahoo.com/ > > -- > PHP General 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] > ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
What is going wrong is that you are using the ISAPI version of PHP and it is quite unstable on anything lower than W2K. It manifests itself in the server 500 errors you describe and, because it kills bits of the server, ASP dies as well. Just change to the cgi installation and all should become good. If you are using ASP then I think that moving to Xitami is not an option (someone correct me if I'm wrong with that guess). In the same vein, IIS only runs on NT server and W2K so that may not be an option - and in any case that would fall over with the ISAPI module as well. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
right, i can change to the CGI version immideately, as it is i have the module ver installed on my Apache. Tell me something, to make it back to the CGI ver, the only thing i have to do is to give the path in my regedit as "C:\php4\php.exe %s %s" instead of what i was giving "C:\php4\sapi\(the php dll)" ?? or is there something else also that i'll need to do? T. Edison jr. --- Phil Driscoll <[EMAIL PROTECTED]> wrote: > What is going wrong is that you are using the ISAPI > version of PHP and it is > quite unstable on anything lower than W2K. It > manifests itself in the server > 500 errors you describe and, because it kills bits > of the server, ASP dies > as well. > > Just change to the cgi installation and all should > become good. > > If you are using ASP then I think that moving to > Xitami is not an option > (someone correct me if I'm wrong with that guess). > > In the same vein, IIS only runs on NT server and W2K > so that may not be an > option - and in any case that would fall over with > the ISAPI module as well. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
I dont' have PWS so I#m guessing, but you probably have to remove the PHP ISAPI module from the list of installed ISAPI filters (you do have to do this on IIS so I assume PWS is the same). No idea where the user interface to this might be found though. Failing all else, deleting php4isapi.dll and rebooting will ensure that the module is no longer loaded in the filters list, and as long as PWS still starts then you are on to a winner! Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
So sprach Thomas Edison Jr. am Sat, May 05, 2001 at 11:41:17PM -0700: > Stable don't go in the same line. But anyways, it > works ok at home for any kind of work. Yeah, I suppose for a HOME server PWS is just fine. If you don't want to do any fancy, than PWS might be good. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 16 hours 24 minutes
On Sun, 6 May 2001, Alexander Skwar wrote: [dia] > Compared to ERWin, this is indeed *VERY* limited - but maybe I was just > unsuccessful, but eg. how can you define keys in an entity in dia? Just open attribute's properties window (double click on attribu te) and you have checkbox there. Is ERWin a free program or not? I searched freshmeat.net but fo und only HTML editor named erwin... Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl
Hello! Recently someone asked how to ensure that no one will read pas sword from php file. The only response I noticed was to create group and add apache user (often nobody) to that group. I consi dered this and I can not see what would stop other users from writing php script (run also as nobody) which reads filesystem with permissions of apache? Is there a method of making php as module really secure? Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl
Hi, What do you think about the following configuration: 1) safe-mode on : this ensures that a php script can read only files that are owned by the same Unix user on the machine; then just check that people having a right to use php and mysql on your box have all a different corresponding Unix user. 2) open-basedir : put this parameter for each "php directory" to this directory; then the scripts cannot access files that are elsewhere on the server In Apache httpd.conf it would be like: <Directory /path-to-a-php-directory> AddType application/x-httpd-php .php .php4 AddType application/x-httpd-php-source .phps php_admin_value open_basedir '/path-to-a-php-directory' </Directory> Has someone tested it ? Do you see a problem in it ? Estelle "Andrzej Swedrzynski" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] Hello! Recently someone asked how to ensure that no one will read pas sword from php file. The only response I noticed was to create group and add apache user (often nobody) to that group. I consi dered this and I can not see what would stop other users from writing php script (run also as nobody) which reads filesystem with permissions of apache? Is there a method of making php as module really secure? Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
On Sun, 6 May 2001, Estelle Martin wrote: > What do you think about the following configuration: > 1) safe-mode on : this ensures that a php script can read only files that > are owned by the same Unix user on the machine; then just check that people > having a right to use php and mysql on your box have all a different > corresponding Unix user. I can not use it because I need to create files dynamically and they will have ,,nobody'' as an user. Further executing scripts have no way to read those files. > 2) open-basedir : put this parameter for each "php directory" to this > directory; then the scripts cannot access files that are elsewhere on the > server > > In Apache httpd.conf it would be like: > <Directory /path-to-a-php-directory> > AddType application/x-httpd-php .php .php4 > AddType application/x-httpd-php-source .phps > php_admin_value open_basedir '/path-to-a-php-directory' > </Directory> > Has someone tested it ? Do you see a problem in it ? I haven't tested it, however it looks nice and I'll talk to my server's owner about it. There is however one bad feature of this method, the administroation. For every user and every application administrator has to create an entry in httpd.conf. Anyway it's his/her problem... Thanks for suggestions! Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl
A built in function in PHP (avoids running command line stuff) that does a reverse DNS lookup on an IP address... $host = gethostbyaddr($REMOTE_ADDR); (took me quite a while to find this one) HTH, Tom On Sat, 5 May 2001, Kurth Bemis wrote: > At 04:11 PM 5/4/2001, Matthew Luchak wrote: > > goto zend.com then to the code exchange...then search for kurth bemis...i > wrote a fucntion that does just that. > > ~kurth > > > >I'm working on a email address verification script and need to do a DNS > >lookup given the IP number of a remote host. > >ie: is [EMAIL PROTECTED] a viable address? > > > >get IP gethostbyname(here.net); > >nslookup IP to get mail server address > >pfsockopen blah...blah..blah... > > > >so........is there a nifty yet undocumented nslookup() function out > >there? > > > >____________________________ > >Matthew Luchak > >Webmaster > >Kaydara Inc. > >[EMAIL PROTECTED] > > > > > >-- > >PHP General 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 General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hi, I have not done anything with PHP before and have downloaded and isntalled the source code without any errors, however after following the install instructions on php.net I now cannot start my web server, in the error logs I get unable to get local address but the server was working fine before i reinstalled to get support for PHP. Is this something really obvious that I am doing wrong here ?? I have hada quick look through the FAQ and I am waiting for the FAQ to come through via this list so I apologise if this is already covered. I would appreciate it if someone could point me in the right direction of how to solve this problem. Thank you very much Regards biscut
Same problem on 2 different systems NT4+APACHE and WIN98+PWS. Php look for msvcr70.dll, and never found it. I upgraded from 4.0.4pl1, that never request this dll. I can see the request from filemon by sysinternals. I searched on google, altavista, etc. but I didn't find any info.
Thank you very much for these links! I'm to see all of them right now... ----- Original Message ----- From: "Philip Olson" <[EMAIL PROTECTED]> To: "Gyozo Papp" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: 2001. május 5. 22:29 Subject: Re: [PHP] PEAR where should I start? > > Old list archive (last post march 15, 2001) is full of good information : > > http://marc.theaimsgroup.com/?l=php-pear > > It recently split up into two lists, not quite as populated (yet) : > > http://marc.theaimsgroup.com/?l=pear-general > http://marc.theaimsgroup.com/?l=pear-cvs > > As you stated, the current pear.php.net is "slim" but you'll note the > documentation link finds it self on php.net where some good growing DOCS > exist on PEAR, have a look around : > > http://www.php.net/manual/en/ref.pear.php > > A few articles have existed in the past, here are some : > > http://www.phpbuilder.com/columns/sean20000712.php3 > http://www.phpbuilder.com/columns/allan20010115.php3 (DB) > http://www.vulcanonet.com/soft/pear_tut/ (DB) > > You can view the CVS online too, here : > > http://cvs.php.net/viewcvs.cgi/php4/pear/ > > This may also be helpful : > > http://www.phpdoc.de/pear/index2.html > > > regards, > philip > > > On Sat, 5 May 2001, Gyozo Papp wrote: > > > Hello, > > > > after reading thorugh the short introduction about PEAR > > I'd like to know that where I should start. > > > > Can anyone give links to this PHP extension? > > > > At this moment, http://pear.php.net is very "slim". > > > > Thanks in advance > > > > Papp Gyozo > > - [EMAIL PROTECTED] > > > > > > -- > > PHP General 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 General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hi all, I am using PHP 4.02 on a Solaris 8 box. We have a very strange problem : we have a program that choses banners to display on our sites. The code is a javascript, because it can be put on simple html pages. The images is chosen through a php code, that with "header" function sends the image. It works great, but in one case: when in a php page, we display the page coming from a form submission. In this case, the image is not displayed at all. There is no error in the logs, all the actions required in the php page sending the image are correctly performed, but the image is not here. When we hit "reload", the image come. When we take the information about the image and type the address directly in the address field of the browser, the image displays correctly. The problem does not occur in Netscape 6.0. But in IE 4 and IE 5 ... One example: http://forum.megaphone.ch/search.php?f=6 Without a form submission, the banner (on the right top of the page) displays correctly. Try to submit the form, the image does not come :-( Thank you for helping, Estelle ---------------------------------------------------------------------- Estelle Martin MEGAPHONE http://www.megaphone.ch/ mailto:estelle @ megaphone.ch ----------------------------------------------------------------------
Hello, I don't know the way to declare static properties explicitly, maybe this is even not supported yet. But, ... when I recently develop some classes in PHP I've found that static variables declared inside methods behave like static properties in C++. This means you should write a function (more accurate: a method) like test() in the code below and declare your statics within this functions. My simple test() return the current value of the static variable or sets its new value if any parameter is given. I don't know this is the normal behaviour, but it works for me on PHP 4.0.4pl1 with Apache on Win98. The example is following: <?php class A { var $a; // static var $common; function A($a) { $this->a = $a; $this->test($a); } function test($set = '') { static $common; return empty($set) ? $common : $common = $set; } } $a1 = new A(4); // sets $common in test to 4. var_dump($a1->test()); $a2 = new A(5); // sets $common in test to 5. var_dump($a2->test()); // echoes "int(5)" var_dump($a1->test()); // echoes "int(5)" for $a1 too! ?> I hope this helps and please inform me if it doesn't return the expected result. Then I won't use this feature (in other occassions), so please be so kind ! best Papp Gyozo - [EMAIL PROTECTED] ----- Original Message ----- From: "Andrzej Swedrzynski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Steven Haryanto" <[EMAIL PROTECTED]> Sent: 2001. május 5. 22:36 Subject: Re: [PHP] class (not class instance) variables On Sun, 6 May 2001, Steven Haryanto wrote: > Am I correct that PHP does not support class variables? That is, > variables that belong to a class and not copied into every object. > I need to put several arrays for information about a class, and I > do not want to bloat every object with this data (since potentially > I will create many instances of the class). > > Currently I do this with methods. Any other alternative? For every class I do create additional class called MetaXXX where XXX is the name of the original class. In the MetaXXX I do decla re all variables and methods which I would make static in other language such as C++ or Java. Then I do create one and only one object of class MetaXXX (called metaXXX for convenience) which is available in global scope. Hope this will help you. Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
hello, maybe there is another solution that should be quicker, because it uses fewer DB query. I don't have a clear view what you want from this query, so if you can give me a short description about it it would be appriciated. I think this one does the same job: INSERT INTO galaxy SELECT cluster AS gcluster, sum(size) as gsize, sum(score) as gscore, galaxy AS ggalaxy FROM universe WHERE cluster BETWEEN 1 AND 200 AND galaxy BETWEEN 1 AND 26 GROUP BY cluster, galaxy; ----- Original Message ----- From: "Michael Roark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 6. 05:27 Subject: [PHP] quicker query? Is there a faster (better) way to do the following: if ($result) { for ($cluster=1;$cluster<200;$cluster++) { for($galaxy=1;$galaxy<26;$galaxy++) { $sql="insert into galaxy select avg(cluster) as gcluster,sum(size) as gsize,sum(score) as gscore,avg(galaxy) as ggalaxy from universe where cluster='$cluster' and galaxy='$galaxy'"; $result=db_query($sql); Thanks Michael
Hi, I've set up a MySQL database and an HTML search form. I'd like to know how to search the database with whatever it entered into the form. It only needs to be a simple search, returning anything that matches the word(s) entered into the input box in the form. Thanks. Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk
On Sun, 6 May 2001, Jamie Saunders wrote: > Hi, > > I've set up a MySQL database and an HTML search form. I'd like to know how > to search the database with whatever it entered into the form. It only > needs to be a simple search, returning anything that matches the word(s) > entered into the input box in the form. Thanks. Yes, I would like to know how people are doing this too. I have a database where columns in multiple tables are searched for multiple keywords. The statement ends up lookup like this for the entered keyword: 'this or that' (the REGEXP prevents partial word matches, like 'hunk' in 'chunky') if you want the source for this part, email me privately... SELECT dates.date, dates.time, dates.city, dates.location, dates.contact, dates.phone, dates.eventid, dates.id ,events.title, events.descrip, events.speaker, events.attr, events.id FROM dates, events WHERE dates.eventid = events.id AND ( ( ( dates.city REGEXP '[[:<:]]this[[:>:]]' ) OR (dates.location REGEXP '[[:<:]]this[[:>:]]' ) OR (events.title REGEXP '[[:<:]]this[[:>:]]' ) OR (events.descrip REGEXP '[[:<:]]this[[:>:]]' ) OR (events.speaker REGEXP '[[:<:]]this[[:>:]]' ) OR (events.attr REGEXP '[[:<:]]this[[:>:]]' ) ) OR (*note) ( ( dates.city REGEXP '[[:<:]]that[[:>:]]' ) OR (dates.location REGEXP '[[:<:]]that[[:>:]]' ) OR (events.title REGEXP '[[:<:]]that[[:>:]]' ) OR (events.descrip REGEXP '[[:<:]]that[[:>:]]' ) OR (events.speaker REGEXP '[[:<:]]that[[:>:]]' ) OR (events.attr REGEXP '[[:<:]]that[[:>:]]' ) ) ) AND date LIKE '2001-05%' ORDER BY date (*note): this would have been AND if the keyword was 'this and that' is this how it is generally done or am I way off here? :) cheers, bill
Well, my site currently does not search based on multiple keywords, but rather just ONE keyword. This makes it easiers, as I offload all the work to mySQL. However, theoreticly, you could do the same things with a complex SQL query. [CODE] case 'searchform': { echo "Search for Article<BR><BR>\n"; echo "<FORM ACTION=$PHP_SELF METHOD=post>\n"; echo "<INPUT TYPE=hidden NAME=mode VALUE=\"search\">\n"; echo "<B>Keyword: </B><INPUT TYPE=text NAME=searchkeyword><BR>\n"; echo "<INPUT TYPE=submit VALUE=\"Search\"<BR>"; echo "</FORM>\n"; break; } case 'search': { $link = db_connect(); $query = "SELECT article_id,article_title,article_local,article_url FROM Articles WHERE article_keywords LIKE '%$searchkeyword%'"; $result = mysql_query($query, $link); echo "SQL Result:"; echo mysql_error($link); echo "<BR>\n"; echo "Your search results:<HR>\n"; $numRows = mysql_num_rows($result); echo "Your keyword matched <I>$numRows</I> articles.<BR><BR>\n"; while ($row = mysql_fetch_assoc($result)) { if ($row["article_local"] == 0) { // build link $title = "<A HREF=\"".$row["article_url"]."\" TARGET=\"_blank\">".$row["article_title"]."</A>"; } else { // build link $title = "<A HREF=\"http://gamedesign.incagold.com/displayarticle.php?mode=article&id=".$ row ["article_id"]."\">".$row["article_title"]."</A>"; } echo $title."<BR>\n"; } break; } [/CODE] - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -----Original Message----- > From: bill [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 11:10 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] searching a MySQL database > > > On Sun, 6 May 2001, Jamie Saunders wrote: > > > Hi, > > > > I've set up a MySQL database and an HTML search form. I'd like > to know how > > to search the database with whatever it entered into the form. It only > > needs to be a simple search, returning anything that matches the word(s) > > entered into the input box in the form. Thanks. > > Yes, I would like to know how people are doing this too. I have a database > where columns in multiple tables are searched for multiple keywords. The > statement ends up lookup like this for the entered keyword: 'this or that' > (the REGEXP prevents partial word matches, like 'hunk' in 'chunky') if you > want the source for this part, email me privately... > > SELECT dates.date, dates.time, dates.city, dates.location, dates.contact, > dates.phone, dates.eventid, dates.id ,events.title, events.descrip, > events.speaker, events.attr, events.id > > FROM dates, events > > WHERE dates.eventid = events.id > AND ( > ( > ( dates.city REGEXP '[[:<:]]this[[:>:]]' ) > OR (dates.location REGEXP '[[:<:]]this[[:>:]]' ) > OR (events.title REGEXP '[[:<:]]this[[:>:]]' ) > OR (events.descrip REGEXP '[[:<:]]this[[:>:]]' ) > OR (events.speaker REGEXP '[[:<:]]this[[:>:]]' ) > OR (events.attr REGEXP '[[:<:]]this[[:>:]]' ) > ) > OR (*note) ( > ( dates.city REGEXP '[[:<:]]that[[:>:]]' ) > OR (dates.location REGEXP '[[:<:]]that[[:>:]]' ) > OR (events.title REGEXP '[[:<:]]that[[:>:]]' ) > OR (events.descrip REGEXP '[[:<:]]that[[:>:]]' ) > OR (events.speaker REGEXP '[[:<:]]that[[:>:]]' ) > OR (events.attr REGEXP '[[:<:]]that[[:>:]]' ) > ) > ) > AND date LIKE '2001-05%' > ORDER BY date > > (*note): this would have been AND if the keyword was 'this and that' > > is this how it is generally done or am I way off here? :) > > cheers, > bill > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hello all, I have created a dabase with table news. I need to add some news into the table via a form. I created two files, the form and the action php file: But I am still unable to add data into the table. Look at my code: ###################addnewsform.php################################### <html dir="rtl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> <meta http-equiv="Content-Language" content="ar-sa"> <title>Add news</title> </head> <body> ÃÏÎá ÇáãÚáæãÇÊ Ëã ÇÖÛØ Úáì ÃÖÝ: <br> <form method="POST" action="addnews.php"> <div align="center"> <center> <table border=0 width=100% cellspacing=0 cellpadding=0> <tr> <td width=18% bgcolor=#CC99FF valign=top><u>ÚäæÇä ÇáÎÈÑ:</u></td> <td width="82%" bgcolor="#CCCCFF"><textarea rows="2" name="title" cols="40"></textarea></td> </tr> <tr> <td width="18%" bgcolor="#CC99FF" valign="top"><u>ÇáÎÈÑ:</u></td> <td width="82%" bgcolor="#CCCCFF"><textarea rows="10" name="news_body" cols="40"></textarea></td> </tr> <tr> <td width="18%" bgcolor="#CC99FF" valign="top"><u>ÚäæÇä ÇáÊÝÇÕíá:</u></td> <td width="82%" bgcolor="#CCCCFF"><input type="text" name="more_url" size="40"></td> </tr> <tr> <td width="18%" bgcolor="#CC99FF" valign="top"> </td> <td width="82%" bgcolor="#CCCCFF"> <div align="center"> <table border="0" width="80%" align="right" cellspacing="0" cellpadding="0"> <tr> <td width="50%"><input type="submit" value="ÃÖÝ" name="B1"></td> <td width="50%"><input type="reset" value="ãÓÍ" name="s2"></td> </tr> </table> </div> </td> </tr> </table> </center> </div> </form> </body> </html> ##########################adnews.php###################################### <? $verbindung=@mysql_connect("localhost", "root", "secret"); $abfrage="INSERT maurimedia(title, news_body, more_url) VALUES ($title, $news_body, $more_url)"; $ergebnis=mysql_db_query("maurimedia", $abfrage, $verbindung); //*Ueberpruefung der Verbindung if (!$verbindung) {echo "impossible de se connecter au db maurimedia"; exit; } //*Ueberpruefung, ob die Daten angekommen sind if ($ergebnis){echo "News successfull added :)";}else {echo "no news added :(";} mysql_close($verbindung); ?> _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
There no tag, but a function wordwrap(). http://www.php.net/manual/en/function.wordwrap.php You need to separate vars into message and comments also. Programming in any language w/o reading manual/reference is just a waste of time. IMO. Regards, -- Yasuo Ohgaki ""shawn"" <[EMAIL PROTECTED]> wrote in message 001401bfb6eb$78186e20$[EMAIL PROTECTED]">news:001401bfb6eb$78186e20$[EMAIL PROTECTED]... Is there a tag in php that acts like "wordwrap=virtual" does in html? I have a script that is sending out variables in a email from a contact form, but for a comments section it will not wordwrap in the email. Thanks Shawn
Hi. I just installed a fresh copy a windows 95. I installed winsock 2, apache 1.3.19 and php4. I followed the instructions with the php installation and I booted apache, I got a missing dll error message from apache. I got the impression that it wasn't php4apache.dll that was missing as it was there and http.conf was pointing to it. I can only assume that there is another dll somewhere that is missing. Any ideas? Thank you Darren
Hi people, does anyone know a good PHP developer IDE for Windows?? I'm using PHP Coder but it's a little bit to buggy. Alexander Bierbrauer Coordinator & Chief-Programmer of Not'A'Tric Web: http://www.notatric.de ICQ: 38412604
hello, here is a list php editors: http://www.itworks.demon.co.uk/phpeditors.htm I 'm using Edit Plus 2 or PHPEd (depending on the weather :), by the way. ----- Original Message ----- From: "Alexander Bierbrauer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 6. 14:57 Subject: [PHP] best ide for windows > Hi people, > > does anyone know a good PHP developer IDE for Windows?? I'm using PHP Coder > but it's a little bit to buggy. > > Alexander Bierbrauer > Coordinator & Chief-Programmer of Not'A'Tric > Web: http://www.notatric.de > ICQ: 38412604 > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
On Sunday 06 May 2001 14:57, Alexander Bierbrauer wrote: > does anyone know a good PHP developer IDE for Windows?? I'm using PHP > Coder but it's a little bit to buggy. slickedit is what I preffer to use, you got syntax highlighting, api help, function tagging so that you get info about your own functions, autocomplete on variable and functionnames, configurable to the limits and support almost any other major and minor language beside php. a bit pricy but still. -- php developer / CoreTrek AS | Above all things, reverence yourself. Sandnes / Rogaland / Norway | web: http://www.moijk.net/ |
I am a fan of UltraEdit. It has syntax highlighting and is a good all purpose powerful editor. What I really like though is the ability to Open >From and Save To FTP sites. This speeds up my work considerably. - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -----Original Message----- > From: Geir Eivind Mork [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 9:39 AM > To: Alexander Bierbrauer; [EMAIL PROTECTED] > Subject: Re: [PHP] best ide for windows > > > On Sunday 06 May 2001 14:57, Alexander Bierbrauer wrote: > > does anyone know a good PHP developer IDE for Windows?? I'm using PHP > > Coder but it's a little bit to buggy. > > slickedit is what I preffer to use, you got syntax highlighting, > api help, > function tagging so that you get info about your own functions, > autocomplete > on variable and functionnames, configurable to the limits and > support almost > any other major and minor language beside php. a bit pricy but still. > -- > php developer / CoreTrek AS | Above all things, reverence > yourself. > Sandnes / Rogaland / Norway | > web: http://www.moijk.net/ | > > -- > PHP General 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] > >
"Alexander Bierbrauer" <[EMAIL PROTECTED]> wrote: > Hi people, > > does anyone know a good PHP developer IDE for Windows?? I'm using PHP Coder > but it's a little bit to buggy. phpEd - phped.com -- Henrik Hansen
On Sun, 6 May 2001, John Vanderbeck wrote: > I am a fan of UltraEdit. It has syntax highlighting and is a good all > purpose powerful editor. What I really like though is the ability to Open > >From and Save To FTP sites. This speeds up my work considerably. And sends plain password over the network. Thanks. I use vim for nearly everything. With support of some other free programs it's quite powerful. http://www.vim.org Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl
Yeah, VIM is cool, really, and is default part of most linux distributions. ----- Original Message ----- From: "Andrzej Swedrzynski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "John Vanderbeck" <[EMAIL PROTECTED]> Sent: 2001. május 6. 18:20 Subject: RE: [PHP] best ide for windows > On Sun, 6 May 2001, John Vanderbeck wrote: > > > I am a fan of UltraEdit. It has syntax highlighting and is a good all > > purpose powerful editor. What I really like though is the ability to Open > > >From and Save To FTP sites. This speeds up my work considerably. > > And sends plain password over the network. Thanks. > > I use vim for nearly everything. With support of some other free > programs it's quite powerful. > > http://www.vim.org > > Regards, > > Andrzej > > -- > http://kokosz.horyzont.net > http://www.earthdawn.pl > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hi Folks! I've tested a lot of ide's for windows, but never found anything better than the Allaire Homesite. (www.allaire.com) On linux, Quanta is a good choice, since homesite does not run on linux (I couldn't run it through WINE). That's it. Alex
So sprach Alex Piaz am Sun, May 06, 2001 at 02:09:51PM -0300: > On linux, Quanta is a good choice, since homesite does not run on linux (I A lot of people also like bluefish. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 2 days 0 hours 39 minutes
> > I am a fan of UltraEdit. It has syntax highlighting and is a good all > > purpose powerful editor. What I really like though is the > ability to Open > > >From and Save To FTP sites. This speeds up my work considerably. > > And sends plain password over the network. Thanks. And how does this differ from any other ftp client ? I use homesite. its increadable in its power and easy usage. > I use vim for nearly everything. With support of some other free > programs it's quite powerful. Homesite is not near as complex in learning as vim,
On Sun, 6 May 2001, Bjorn Sodergren wrote: [UltraEdit] > > And sends plain password over the network. Thanks. > And how does this differ from any other ftp client ? Does not differ. But I use ssh/scp for everything and with vim I can send my file to its destination with a single keystroke. In UltraEdit I would have to open ssh client and send file by hand... [snip] > Homesite is not near as complex in learning as vim, IMHO vim is worth learning and it's not as hard to learn as it seems to be. And once you've learnt it you won't use any other editor anymore ;-). Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl
But isn't VIM a *nix only tool? The thread was about Windows IDE's. I'm always open to new editors though, so if VIM is available for Windows, can you give an URL? - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -----Original Message----- > From: Andrzej Swedrzynski [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 1:12 PM > To: [EMAIL PROTECTED] > Cc: Bjorn Sodergren > Subject: RE: [PHP] best ide for windows > > > On Sun, 6 May 2001, Bjorn Sodergren wrote: > > [UltraEdit] > > > And sends plain password over the network. Thanks. > > > And how does this differ from any other ftp client ? > > Does not differ. But I use ssh/scp for everything and with vim I > can send my file to its destination with a single keystroke. In > UltraEdit I would have to open ssh client and send file by > hand... > > [snip] > > Homesite is not near as complex in learning as vim, > > IMHO vim is worth learning and it's not as hard to learn as it > seems to be. And once you've learnt it you won't use any other > editor anymore ;-). > > Regards, > > Andrzej > > -- > http://kokosz.horyzont.net > http://www.earthdawn.pl > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
On Sun, 6 May 2001, John Vanderbeck wrote: > But isn't VIM a *nix only tool? No. Quote from vim's web page: VIM runs on many operating systems: AmigaOS, AtariMiNT, BeOS, DOS, MacOS, MachTen, OS/2, RiscOS, VMS, and Windows (95/98/NT4/NT5/2000) and, of course, on UNIX in a lot of flavours: A/UX, AIX, BSDI, Convex, DYNIX/ptx, DG/UX, DEC Unix, FreeBSD, HPUX, Irix, Linux [Debian, RedHat, Slackware, SuSE,...], MacOSX, NetBSD, NEXTSTEP, OpenBSD, OSF, QNX, SCO, Sinix, Solaris, SunOS, SUPER-UX, Ultrix, Unixware, Unisys. > The thread was about Windows IDE's. I'm always open to new editors though, > so if VIM is available for Windows, can you give an URL? http://www.vim.org Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl
Does it's neccessary that if PHP file (*.php) can be parse and execute by php.exe such as "c:\php\php [filename .php]", then it will output the same while run it by webserver such as "Apache" or the like? I have some problem with odbc_connect It's output the correct when I do the former, but always error in the later. Such Error: Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in c:\program files\apache group\apache\htdocs\test\odbc_acc.php on line 7
Hello all, Normally I have a sysadmin that takes care of all these things, but recently I joined onto another project and we are all clueless :) We need to install the GD extras, mainly JPEG and PNG for creating images with PHP. We are using the latest PHP and RedHat Linux. We understand that you need to compile in the GD options, but are unclear on what the path's are that it asks for. Would anyone has the kindness to write up a quick Installation of PHP-GD for Dummies? :) Thanks a million! - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues
Hi, I want to check whether a string contains a certain word e.g. $varOne = "this is a string"; if ($varOne contains "is") { return true; } else { return false; } Is there an operator for 'contains', if not how do you do this? Thanks. Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk
http://php.net/manual/en/function.strstr.php $varOne = "is"; $varTwo = "this is a string"; if(strstr($varTwo,$varOne)) { echo "true."; } else { echo "false."; } Regards, @lvin At 03:58 PM 5/6/01 +0100, Jamie Saunders wrote: >Hi, > >I want to check whether a string contains a certain word e.g. > >$varOne = "this is a string"; > >if ($varOne contains "is") { > > return true; > > } else { > > return false; > >} > >Is there an operator for 'contains', if not how do you do this? > >Thanks. > > >Jamie Saunders >Mail: [EMAIL PROTECTED] >Web: http://jamie-s.co.uk > > >-- >PHP General 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] >
$pos = strpos($varone, 'is') if ($pos === false) { /*not found */ } ----- Original Message ----- From: "Jamie Saunders" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 6. 16:58 Subject: [PHP] if string contains... > Hi, > > I want to check whether a string contains a certain word e.g. > > $varOne = "this is a string"; > > if ($varOne contains "is") { > > return true; > > } else { > > return false; > > } > > Is there an operator for 'contains', if not how do you do this? > > Thanks. > > > Jamie Saunders > Mail: [EMAIL PROTECTED] > Web: http://jamie-s.co.uk > > > -- > PHP General 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] >
Does anyone have any experience backing up mySQL from a "shared" web hosting account? I don't have root access to the database... will this keep me from running a shell script to do the back up? Is there a php script that will work better for me? I don't need the database emailed to me... just zipped and put onto my server where I can FTP it. thanks in advance.. Nick __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
On Sun, May 06, 2001 at 08:38:23AM -0700, Nick Terzich wrote: > Does anyone have any experience backing up mySQL from > a "shared" web hosting account? I don't have root > access to the database... will this keep me from > running a shell script to do the back up? If you have shell-access you can use mysqldump to do a dump of the database. Later you can use 'mysql -u user -p < dumpfile' to restore the database. Check the man-page for mysqldump for details. -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | |all your base are belong to us | shame on me | fkr@IRCnet |
Nick Terzich <[EMAIL PROTECTED]> wrote: > Does anyone have any experience backing up mySQL from > a "shared" web hosting account? I don't have root > access to the database... will this keep me from > running a shell script to do the back up? Is there a > php script that will work better for me? I don't need > the database emailed to me... just zipped and put onto > my server where I can FTP it. look at the mysqldump program if you have shell access to your webhost... else look at phpmyadmin which has a feature to dump a database to a csv file (afaik). -- Henrik Hansen
Hello Sandeep, On 03-May-01 20:07:51, you wrote: >just a quick thing. i've got loads of info in mysql, which i extract >and then use a "while ($r = mysql_fetch_array($result)) {" to output >the result. >the only thing is, because its a loop, all results look the same, >whereas i want the first row to be displayed differently than the >next 4. You may want to try this Query result table display class that you can sub-class to customize details like row and cell colors and even highlighting colors (the color that rows switch to when the mouse is over them). http://phpclasses.UpperDesign.com/browse.html/package/130 Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
Hi! First I wan´t to thank those kind guys who helped me with the search for words in a string. It works fine and here goes my file: --- $fd = fopen($filename1, "r"); $string = fread($fd, filesize($filename1)); fclose($fd); if (eregi("$word", $string)) { print "found the word"; } ----- Now I also wan´t to know to in which row the word was found. Is there a simple way to add some code? Thanks for any tips. Regards Jan
use fgets or fscanf (>= PHP 4.0.1)instead of fread. Fgets(fp, length) ends reading when length - 1 bytes have been read, on a newline (which is included in the return value), or on EOF (whichever comes first). ----- Original Message ----- From: "Jan Grafström" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 6. 19:04 Subject: [PHP] Can php give me row number? > Hi! > First I wan´t to thank those kind guys who helped me with the search for > words in a string. It works fine and here goes my file: > --- > $fd = fopen($filename1, "r"); > $string = fread($fd, filesize($filename1)); > fclose($fd); > if (eregi("$word", $string)) { > print "found the word"; > } > ----- > Now I also wan´t to know to in which row the word was found. > Is there a simple way to add some code? > > Thanks for any tips. > Regards > Jan > > > -- > PHP General 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] >
> Now I also wan´t to know to in which row the word was found. > Is there a simple way to add some code? You could explode the file into an array with "\r\n" as the delimiter before you do the search, then iterate through the resulting array to look for the word, then the array index you find the word in is the line number. To save a couple lines of code, use the file() function, it returns the contents conveniently pre-split into the array. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email
Can Flash import some text from a database (e.g MySQL) and print it on the fly? --------------------------------- Fredrik A. Takle [EMAIL PROTECTED]
you can find an example in flashkit.com go to examples > databases
I have an order form that is validating input, mailing me the results of the form, then I want to pass the user off to either Paypal or Revecom (depending on their choice) for processing. Everything works except trying to pass the variables to the payment processor. I thought that header("location://url?var1=value1?var2=value2") would work but not luck. Could someone point me in the right direction please? Thanks, Dean Martin
header("Location: http://something.foo.bar.com/page.extension?var1=etc"); -----Original Message----- From: Dean Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 1:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing variables to another page - newbie I have an order form that is validating input, mailing me the results of the form, then I want to pass the user off to either Paypal or Revecom (depending on their choice) for processing. Everything works except trying to pass the variables to the payment processor. I thought that header("location://url?var1=value1?var2=value2") would work but not luck. Could someone point me in the right direction please? Thanks, Dean Martin -- PHP General 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]
Your location header should be a fully qualified URL, just like you had typed it into your browser. - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -----Original Message----- > From: Dean Martin [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 1:50 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Passing variables to another page - newbie > > > I have an order form that is validating input, mailing me the > results of the > form, then I want to pass the user off to either Paypal or Revecom > (depending on their choice) for processing. > > Everything works except trying to pass the variables to the payment > processor. I thought that > > header("location://url?var1=value1?var2=value2") would work but not luck. > > Could someone point me in the right direction please? > > Thanks, > Dean Martin > > > -- > PHP General 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] > >
also is you want to add more than one variable in the example given you use the '&' Sign ex with one var: header("Location: http://something.foo.bar.com/page.extension?var1=etc"); ex with 3 vars: header("Location: http://something.foo.bar.com/page.extension?var1=etc&var2=123&var3=abc"); ----- Original Message ----- From: "Jack Dempsey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Dean Martin" <[EMAIL PROTECTED]> Sent: Sunday, May 06, 2001 11:01 AM Subject: RE: [PHP] Passing variables to another page - newbie > header("Location: http://something.foo.bar.com/page.extension?var1=etc"); > > -----Original Message----- > From: Dean Martin [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 1:50 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Passing variables to another page - newbie > > > I have an order form that is validating input, mailing me the results of the > form, then I want to pass the user off to either Paypal or Revecom > (depending on their choice) for processing. > > Everything works except trying to pass the variables to the payment > processor. I thought that > > header("location://url?var1=value1?var2=value2") would work but not luck. > > Could someone point me in the right direction please? > > Thanks, > Dean Martin > > > -- > PHP General 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 General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Hi again, I'm trying to write a few strings to a file on my Win2K home server(IIS 5). But The only thing I get is: Warning: fopen("score.txt","w") - Permission denied in c:\inetpub\wwwroot\nat\g2score\newscore.php on line 30 I've set the properties of score.txt to writeable and readable! I've got the same error after setting the directory to write/readable too. Here's my code...any hints?? THE CODE: //falls er nicht in die datei schreiben kann if(!is_writeable("score.txt"))print("file is not writeable<br>"); //<- I don't get this message! if($datei=fopen("score.txt","w")) { for($i=0;$i<$scorecount;$i++) { //falls der spieler mehr punkte hat wird dieser ausgegeben if($usrscore>$tmpscore[$i] && $check==false) { fwrite($datei,$usrname); fwrite($datei,$usrscore); fwrite($datei,$usrmode); fwrite($datei,$usrplayer); $check=true; } blablabla.... Alexander Bierbrauer Coordinator & Chief-Programmer of Not'A'Tric Web: http://www.notatric.de ICQ: 38412604
Hello, I have an ASCII fixed width text file I'm trying to convert to an array of fields. When I use file() to place each line (record) in it's own array element, it strips out any blanks it finds except one. This results in in ABC MOTORS becoming ABC MOTORS. That creates a problem if ABC is in a fixed width 5 character field and MOTORS is in its own field. Any ideas on how to get file() to not shoot out my blanks would be appreciated. [EMAIL PROTECTED]