php-general Digest 1 Mar 2001 18:17:20 -0000 Issue 541 Topics (messages 42125 through 42203): multiple query in 1 select ? 42125 by: Jack Sasportas 42131 by: CC Zona Caller's __LINE__ 42126 by: elias Re: [PHP-GENERAL] Please help 42127 by: Nilesh Parmar 42130 by: Jack Dempsey Re: Template recommendations 42128 by: Alexander Wagner Re: Hebrew websites transition with php3 .. 42129 by: Boaz Yahav 42173 by: Meir kriheli 42177 by: Aviv Revach 42179 by: Meir kriheli about include 42132 by: Marcos 42133 by: Felipe Fernandez 42141 by: Christian Reiniger How would you have liked to have invested in Yahoo when it was still a year old? 42134 by: Jess Ragaza Re: PHP on Cobalt 42135 by: Fernando Caamaño variable scope -- unsetting vars inside functions 42136 by: Michael A. Smith Newbie question about running JAVA classes on PHP scripts 42137 by: Federico Ragazzoni 42140 by: Robert Vetter 42172 by: Adrian Murphy Re: PHP single user?? 42138 by: Rick Hodger Re: require on compressed files 42139 by: Christian Reiniger big database with php ? 42142 by: Markus H. Maussner 42190 by: Chris Lee 42195 by: Julian Wood Need Function generating integers 42143 by: M. A. Ould-Beddi 42147 by: CC Zona 42162 by: Miles Thompson including html 42144 by: Marcos 42145 by: Harshdeep S Jawanda 42151 by: Josh Reynolds File type not set 42146 by: Fredrik Wahlberg 42187 by: Chris Lee newbie: mail setup in php.ini 42148 by: Mat Marlow iptcembed 42149 by: Mathur get html-page 42150 by: mailing_list.gmx.at images problem 42152 by: John LYC Re: Restrict Access per IP Addresses 42153 by: Nazoréen 42178 by: Nazoréen 42180 by: Ernest E Vogelsinger whats the message count ? 42154 by: Markus H. Maussner 42156 by: Kees Hoekzema Re: PHP and iPlanet on Solaris 42155 by: Montgomery-Recht, Evan Export Linux Users and Password's to MYSQL database 42157 by: Joe Njeru 42159 by: Hrishi 42165 by: Jason Beebe Re: found a bug with File Uploads.. 42158 by: TTT 42196 by: TTT Javascript and Php 42160 by: kaab kaoutar PHP on NetWare 42161 by: Surendranath strange think with 'mail()' [sendmail?] 42163 by: Michael Plies strange think with 'mail()' 42164 by: Michael Plies 42166 by: Lewis Bergman pg_cmdtuples support needed in PHP4 42167 by: Jess Perez 42170 by: Egon Schmid (.work) changing the .ini file 42168 by: Mat Marlow 42169 by: Ernest E Vogelsinger Re: How to insert time and date into mysql? 42171 by: Foley, John 42175 by: Kevin Cawthorne 42181 by: Foley, John security improvements 42174 by: Gustavo Vieira Goncalves Coelho Rios Re: PostgreSQL vs InterBase 42176 by: Meir kriheli Re: Passing values from ASP to PHP 42182 by: Sebastian Stadtlich 42183 by: Opec Kemp 42184 by: Michael Geier Re: Double Click 42185 by: Brinkman, Theodore 42191 by: Hrishi javascript VS php 42186 by: Miguel Loureiro 42188 by: Reuben D Budiardja Re: best slashdot? 42189 by: Rick Hodger pleaaaaaaaase help! 42192 by: kaab kaoutar 42194 by: Jason Jacobs 42200 by: Thomas Deliduka htaccess problem 42193 by: Jason Jacobs Re: Can't connect php to mysql on linux 42197 by: John Huggins exclusive file locking under windows 42198 by: Monte Ohrt Announcing PHP-GTK 42199 by: Andrei Zmievski Javascript & php 42201 by: kaab kaoutar 42202 by: Jason Jacobs related to my .htgroup question... 42203 by: Jason Jacobs 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] ----------------------------------------------------------------------
lets say we have a database with the State Names and cities, and I wanted to select all the cities in FL I would execute something like this mysql_query("SELECT * FROM cities WHERE state='FL'"); and lets say there are 50 records returned.... I want to be able to get all the cities in FL & GA instead of just FL and display the results together as if it was 1 restult. Then the resul would be 100 records ( 50 FL & 50 GA ). Thanks! I did look on php.net and in a php book I have, but could not find anything... ___________________________________________________________ Jack Sasportas
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jack Sasportas) wrote: > lets say we have a database with the State Names and cities, and I > wanted to select all the cities in FL I would execute something like > this > mysql_query("SELECT * FROM cities WHERE state='FL'"); > and lets say there are 50 records returned.... > > I want to be able to get all the cities in FL & GA instead of just FL > and display the results together as if it was 1 restult. Then the resul > would be 100 records ( 50 FL & 50 GA ). > > Thanks! > > I did look on php.net and in a php book I have, but could not find > anything... The reason you couldn't find you answer in a PHP reference is that it's really a SQL question you're asking. Any basic SQL reference should help. In answer to your question: a where clause can have multiple conditions such as "WHERE state='FL' or state='GA'", which means if a record matches either of the two possible conditions, then that record will be displayed. -- CC
Hello. I want to make a small function that sends a debug message: function debuginfo($msg) { echo"<b>the message is $msg, at line" . __LINE__ . " </b><br>"; } in my code: line 1 line 2 line x: debuginfo("hello!!!"); is there is anyway to show the caller's line number? in this case 'x' ?
Hi My name is Nilesh.I at present learning PHP, i have successfully installed PHP along with Apache .Everything works fine.But i have the following problem. i have created a html page which has a text area with the following code in it. <html> <head> </head> <body> <FORM METHOD=GET ACTION="text.php"> WHO IS UR FAVORATE AUTHOR ? <INPUT NAME="Author" TYPE="TEXT"> <br> <br> <INPUT TYPE = SUBMIT> </FORM> </body> </html> and then i have written a php script file text.php with the following code <html> <head> </head> <body> your favorate author is : <?php echo $Author; ?> </body> </html> when i view the text.html in my browser and type in the name of the author ,i am expected to get the result " your favorate author is <author name> but this dosent seem to happen. Can u help me ? Nilesh Parmar
Nilesh, > <html> > <head> </head> > <body> > <FORM METHOD=GET ACTION="text.php"> > WHO IS UR FAVORATE AUTHOR ? > <INPUT NAME="Author" TYPE="TEXT"> > <br> > <br> > <INPUT TYPE = SUBMIT> > </FORM> > </body> > </html> Ok, I just created the text.html file. > > and then i have written a php script file text.php with the following code > > <html> > <head> </head> > <body> > your favorate author is : > <?php > echo $Author; > ?> > </body> > </html> And I created the text.php file. (both in my www root) > when i view the text.html in my browser and type in the name of the author > ,i am expected to get the result " your favorate author is <author name> > but this dosent seem to happen. Can u help me ? I DO get the desired result though! Is there something you might have overlooked? Are they both in the same directory? What browser are you using? What's happening? Since I copied your code, and it works for me, I'm thinking its either a browser issue, or where the files are placed, etc...you sure everything's installed correctly/working fine? Best of luck, Jack Dempsey
Joseph H Blythe wrote: > Not be phplib (sorry I have tried and dont like the autoprepend) You can use the template-class from PHPlib whithout the rest of the lib, it is completely independent. Just include the "template.inc"-file and you can start. > Be easy to use It's not that easy to use but once you found out how it works this shouldn't be a problem. > Be Fast It's pretty fast. If you want something faster, try Smarty. regards Wagner -- Assumption is the mother of all fuck-ups.
Hi Manuel, All is great, working hard to make WeberDev.com a better place for the community and trying to make people understand we don't make $$$ from it :) The IE / NN war was one that left no chance for NN in Israel. While MS spent millions in making all of their products in Hebrew, including the free IE, NN refused to support Hebrew. While the 3% is correct for Israel, it's far from being true on an international basis. There are 3 large portals in Israel, 1 supports only IE (MSN), and the other two that supported NN, until not long ago, started to develop for IE only about 4-6 months ago. This is why there is no reason to support anything other than IE in Israel. With all due respect to people that like other browsers, developing for all browsers costs lots of $$$ and as long as portals are free and loosing lots of $$$ it's not profitable to develop for all. Bottom line, as the CTO of one of those portals I say go with Logical Hebrew and dump Netscape (In Israel Only). and don't forget to add the <HTML DIR="rtl"> tag at the beginning of each page. Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 10:51 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Hebrew websites transition with php3 .. Hello Boaz, How are you doing these days? :-) On 28-Feb-01 16:39:35, you wrote: >The figures I'm giving you are from one of the two biggest portals in >Israel. >it's less than 3%. Mind me for jumping in, but I think Aviv question about the truth of the 3% figure ie very pertinent. The way I see it it is a gross mistake to assume that the audience of a large portal is necessary a reflex of the potential audience of that portal. I also work for a large portal company (not for the Hebrew audience though) and I found people making the same large mistake. They looked at the sites audience and figure that there is over 90% of Internet Explorer users in a site that used IE specific DHTML. Needless to say that it didn't show right in Netscape. Given that sites do not show right in certain browsers, it looks obvious that almost nobody using those browsers would show in the browser audience rates. I even wonder why there are still 3% of users of browsers that do not support logical Hebrew display that go to your portal. Same for the 10% of Netscape users that go to that other site in my company portal. Maybe those are just lurkers that went there and gave up on the site and did not return because they could not see right what was in there. The reality is that it turns out that there is still about 30% os Netscape users, meaning that if you force a certain type of display that they don't see right, you loose their audience. Just my .02 EUR. :-) Manuel Lemos >I'm not sure about Opera, if you are developing for an Israeli >audience, you can simply develop for IE 4.x and up. >anyone with any other browser can go and get IE :) >-----Original Message----- >From: Aviv Revach [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, February 27, 2001 4:03 PM >To: Boaz Yahav; [EMAIL PROTECTED] >Subject: RE: [PHP] Hebrew websites transition with php3 .. >Hey! >Thank you for the quick reply. >I do have some questions regarding your answer. > From what I know and have seen so far, there are more than just 3% >Internet users in Israel which use Netscape 4.x (I use it myself...). >Are you sure that I should just ignore these people, and just use logical >Hebrew? >Also, quite a lot of people started using Opera lately.. (ain't speaking >about Israeli users). >Does Opera supports Logical Hebrew? If so, from which version? >Best Regards - > Aviv Revach >At 15:20 28/02/01 +0200, Boaz Yahav wrote: >>Hi Aviv >> >>Let me give you a small tip about Hebrew on the net. >> >>The proper Hebrew code which was adopted by the Israeli Institute of >>Standards >>is the Logical standard. This standard is automatically supported by IE 4.x >>and 5.x >>and also by Netscape 6.x. >> >>The percentage of not IE4.x or 5.x users in Israel is less than 3%. >> >>3 of the major portals in Israel (Walla, Nana and MSN) are already moving >to >> >>logical Hebrew. >> >>So why use Visual Hebrew? >> >>In case you decide to go with Visual in any case, did you try hebrevc()? >> >>Sincerely >> >> berber >> >>Visit http://www.weberdev.com Today!!! >>To see where PHP might take you tomorrow. >> >> >>-----Original Message----- >>From: Aviv Revach [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, February 27, 2001 1:43 PM >>To: [EMAIL PROTECTED] >>Subject: [PHP] Hebrew websites transition with php3 .. >> >> >>Hey! >> >>I've just joined this mailing-list, therefore, first of all, I would like >>to say hello to everybody. >> >> >>Now, regarding the issue.. >> >>As some of you might know, handling with Hebrew websites is rather >>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth' >>instead of 'html'). >> >>I'm working on a php3 script which would help me do the following - >>Load an existing HTML file which consists Hebrew words (as well as English >>words and HTML tags), then reversing the Hebrew words back to order. >> >>The problem I'm dealing with is how to reverse only the Hebrew words and >>not the entire >>document, which contains HTML tags and English words as well. >>The function 'hebrev()' does the process of reversing, but it reverses tags >>as well. >> >> >>I would really appreciate it, if anyone will find some spare time to help >>me. >> >> >>Thank you in advance - >> >> Aviv Revach >> >>XOR-Coders Mega Programming Resource Site! - >> http://members.xoom.com/xorcoders/ >> >> >>-- >>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] >XOR-Coders Mega Programming Resource Site! - > http://members.xoom.com/xorcoders/ >-- >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] 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 -- -- 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 Thursday 01 March 2001 09:17, Boaz Yahav wrote: I think that Aviv should stick to logical hebrew (which is the standart, as mentioned by Boaz). I don't use IE (I'm using Linux) and I can access all the logical sites with no problem, including the "<html dir=rtl>" tag and the 'direction: rtl' style (thank god for konqueror). Netsacpe 6/Mozilla should support logical Hebrew pretty soon so no trouble there, and if Opera wants to gain market share they shold support the standart (logical) in here to. Altough the 3% estimate seems wrong (as noted by Manuel Lemos - Hi :-) , the majority of users in Israel are using IE. One more problem you'll have with visaul hebrew is the ugly line breaks which cause the end of the sentence to appear before the start of it. I had a long discussion of this subject with Manuel off this mailing list. I can send you a digest of it if you wish. -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd > Hi Manuel, > > All is great, working hard to make WeberDev.com a better place > for the community and trying to make people understand we don't > make $$$ from it :) > > The IE / NN war was one that left no chance for NN in Israel. > While MS spent millions in making all of their products in Hebrew, > including the free IE, NN refused to support Hebrew. > > While the 3% is correct for Israel, it's far from being true on an > international basis. > > There are 3 large portals in Israel, 1 supports only IE (MSN), > and the other two that supported NN, until not long ago, started > to develop for IE only about 4-6 months ago. > > This is why there is no reason to support anything other than > IE in Israel. > > With all due respect to people that like other browsers, developing > for all browsers costs lots of $$$ and as long as portals are free > and loosing lots of $$$ it's not profitable to develop for all. > > Bottom line, as the CTO of one of those portals I say go > with Logical Hebrew and dump Netscape (In Israel Only). > > and don't forget to add the <HTML DIR="rtl"> tag at the > beginning of each page. > > Sincerely > > berber > > Visit http://www.weberdev.com Today!!! > To see where PHP might take you tomorrow. > > > -----Original Message----- > From: Manuel Lemos [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 28, 2001 10:51 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Hebrew websites transition with php3 .. > > > Hello Boaz, > > How are you doing these days? :-) > > On 28-Feb-01 16:39:35, you wrote: > >The figures I'm giving you are from one of the two biggest portals in > >Israel. > >it's less than 3%. > > Mind me for jumping in, but I think Aviv question about the truth of the 3% > figure ie very pertinent. > > The way I see it it is a gross mistake to assume that the audience of a > large portal is necessary a reflex of the potential audience of that > portal. > > I also work for a large portal company (not for the Hebrew audience though) > and I found people making the same large mistake. They looked at the sites > audience and figure that there is over 90% of Internet Explorer users in a > site that used IE specific DHTML. Needless to say that it didn't show > right in Netscape. > > Given that sites do not show right in certain browsers, it looks obvious > that almost nobody using those browsers would show in the browser audience > rates. > > I even wonder why there are still 3% of users of browsers that do not > support logical Hebrew display that go to your portal. Same for the 10% of > Netscape users that go to that other site in my company portal. Maybe > those are just lurkers that went there and gave up on the site and did not > return because they could not see right what was in there. > > The reality is that it turns out that there is still about 30% os Netscape > users, meaning that if you force a certain type of display that they don't > see right, you loose their audience. > > Just my .02 EUR. :-) > > Manuel Lemos > > >I'm not sure about Opera, if you are developing for an Israeli > >audience, you can simply develop for IE 4.x and up. > > > >anyone with any other browser can go and get IE :) > > > >-----Original Message----- > > From: Aviv Revach [mailto:[EMAIL PROTECTED]] > > >Sent: Tuesday, February 27, 2001 4:03 PM > >To: Boaz Yahav; [EMAIL PROTECTED] > >Subject: RE: [PHP] Hebrew websites transition with php3 .. > > > > > >Hey! > > > >Thank you for the quick reply. > > > >I do have some questions regarding your answer. > > > > From what I know and have seen so far, there are more than just 3% > >Internet users in Israel which use Netscape 4.x (I use it myself...). > >Are you sure that I should just ignore these people, and just use logical > >Hebrew? > > > >Also, quite a lot of people started using Opera lately.. (ain't speaking > >about Israeli users). > >Does Opera supports Logical Hebrew? If so, from which version? > > > > > >Best Regards - > > > > Aviv Revach > > > >At 15:20 28/02/01 +0200, Boaz Yahav wrote: > >>Hi Aviv > >> > >>Let me give you a small tip about Hebrew on the net. > >> > >>The proper Hebrew code which was adopted by the Israeli Institute of > >>Standards > >>is the Logical standard. This standard is automatically supported by IE > > 4.x > > >>and 5.x > >>and also by Netscape 6.x. > >> > >>The percentage of not IE4.x or 5.x users in Israel is less than 3%. > >> > >>3 of the major portals in Israel (Walla, Nana and MSN) are already moving > > > >to > > > >>logical Hebrew. > >> > >>So why use Visual Hebrew? > >> > >>In case you decide to go with Visual in any case, did you try hebrevc()? > >> > >>Sincerely > >> > >> berber > >> > >>Visit http://www.weberdev.com Today!!! > >>To see where PHP might take you tomorrow. > >> > >> > >>-----Original Message----- > >>From: Aviv Revach [mailto:[EMAIL PROTECTED]] > >>Sent: Tuesday, February 27, 2001 1:43 PM > >>To: [EMAIL PROTECTED] > >>Subject: [PHP] Hebrew websites transition with php3 .. > >> > >> > >>Hey! > >> > >>I've just joined this mailing-list, therefore, first of all, I would like > >>to say hello to everybody. > >> > >> > >>Now, regarding the issue.. > >> > >>As some of you might know, handling with Hebrew websites is rather > >>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth' > >>instead of 'html'). > >> > >>I'm working on a php3 script which would help me do the following - > >>Load an existing HTML file which consists Hebrew words (as well as > >> English words and HTML tags), then reversing the Hebrew words back to > >> order. > >> > >>The problem I'm dealing with is how to reverse only the Hebrew words and > >>not the entire > >>document, which contains HTML tags and English words as well. > >>The function 'hebrev()' does the process of reversing, but it reverses > > tags > > >>as well. > >> > >> > >>I would really appreciate it, if anyone will find some spare time to help > >>me. > >> > >> > >>Thank you in advance - > >> > >> Aviv Revach > >> > >>XOR-Coders Mega Programming Resource Site! - > >> http://members.xoom.com/xorcoders/ > >> > >> > >>-- > >>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] > > > >XOR-Coders Mega Programming Resource Site! - > > http://members.xoom.com/xorcoders/ > > > >-- > >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] > > 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 > --
Hey! Ok, I think that I will stick to logical Hebrew as most of you suggested. But still, I'm interested in knowing how could I take a HTML document which contains HTML tags, Hebrew words and English words, and reveres only the Hebrew words (making them Visual Hebrew) using only php3 functions (the server I'm using doesn't support php4). It would be great if anyone could point of a solution for doing that. By writing a script that will do that, I will both options - show the Hebrew in my website as Logical or use a script to translate it into visual Hebrew for browsers who do not support it. Thank you in advance - Aviv Revach At 16:45 01/03/01 +0200, Meir kriheli wrote: >On Thursday 01 March 2001 09:17, Boaz Yahav wrote: > >I think that Aviv should stick to logical hebrew (which is the standart, as >mentioned by Boaz). > >I don't use IE (I'm using Linux) and I can access all the logical sites with >no problem, including the "<html dir=rtl>" tag and the 'direction: rtl' >style (thank >god for konqueror). > >Netsacpe 6/Mozilla should support logical Hebrew pretty soon so no trouble >there, and if Opera wants to gain market share they shold support the >standart (logical) in here to. > >Altough the 3% estimate seems wrong (as noted by Manuel Lemos - Hi :-) , the >majority of users in Israel are using IE. > >One more problem you'll have with visaul hebrew is the ugly line breaks which >cause the end of the sentence to appear before the start of it. > >I had a long discussion of this subject with Manuel off this mailing list. I >can send you a digest of it if you wish. > >-- >Meir Kriheli > > There's someone in my head, but it's not me - Pink Floyd > > > Hi Manuel, > > > > All is great, working hard to make WeberDev.com a better place > > for the community and trying to make people understand we don't > > make $$$ from it :) > > > > The IE / NN war was one that left no chance for NN in Israel. > > While MS spent millions in making all of their products in Hebrew, > > including the free IE, NN refused to support Hebrew. > > > > While the 3% is correct for Israel, it's far from being true on an > > international basis. > > > > There are 3 large portals in Israel, 1 supports only IE (MSN), > > and the other two that supported NN, until not long ago, started > > to develop for IE only about 4-6 months ago. > > > > This is why there is no reason to support anything other than > > IE in Israel. > > > > With all due respect to people that like other browsers, developing > > for all browsers costs lots of $$$ and as long as portals are free > > and loosing lots of $$$ it's not profitable to develop for all. > > > > Bottom line, as the CTO of one of those portals I say go > > with Logical Hebrew and dump Netscape (In Israel Only). > > > > and don't forget to add the <HTML DIR="rtl"> tag at the > > beginning of each page. > > > > Sincerely > > > > berber > > > > Visit http://www.weberdev.com Today!!! > > To see where PHP might take you tomorrow. > > > > > > -----Original Message----- > > From: Manuel Lemos [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 28, 2001 10:51 PM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP] Hebrew websites transition with php3 .. > > > > > > Hello Boaz, > > > > How are you doing these days? :-) > > > > On 28-Feb-01 16:39:35, you wrote: > > >The figures I'm giving you are from one of the two biggest portals in > > >Israel. > > >it's less than 3%. > > > > Mind me for jumping in, but I think Aviv question about the truth of the 3% > > figure ie very pertinent. > > > > The way I see it it is a gross mistake to assume that the audience of a > > large portal is necessary a reflex of the potential audience of that > > portal. > > > > I also work for a large portal company (not for the Hebrew audience though) > > and I found people making the same large mistake. They looked at the sites > > audience and figure that there is over 90% of Internet Explorer users in a > > site that used IE specific DHTML. Needless to say that it didn't show > > right in Netscape. > > > > Given that sites do not show right in certain browsers, it looks obvious > > that almost nobody using those browsers would show in the browser audience > > rates. > > > > I even wonder why there are still 3% of users of browsers that do not > > support logical Hebrew display that go to your portal. Same for the 10% of > > Netscape users that go to that other site in my company portal. Maybe > > those are just lurkers that went there and gave up on the site and did not > > return because they could not see right what was in there. > > > > The reality is that it turns out that there is still about 30% os Netscape > > users, meaning that if you force a certain type of display that they don't > > see right, you loose their audience. > > > > Just my .02 EUR. :-) > > > > Manuel Lemos > > > > >I'm not sure about Opera, if you are developing for an Israeli > > >audience, you can simply develop for IE 4.x and up. > > > > > >anyone with any other browser can go and get IE :) > > > > > >-----Original Message----- > > > > From: Aviv Revach [mailto:[EMAIL PROTECTED]] > > > > >Sent: Tuesday, February 27, 2001 4:03 PM > > >To: Boaz Yahav; [EMAIL PROTECTED] > > >Subject: RE: [PHP] Hebrew websites transition with php3 .. > > > > > > > > >Hey! > > > > > >Thank you for the quick reply. > > > > > >I do have some questions regarding your answer. > > > > > > From what I know and have seen so far, there are more than just 3% > > >Internet users in Israel which use Netscape 4.x (I use it myself...). > > >Are you sure that I should just ignore these people, and just use logical > > >Hebrew? > > > > > >Also, quite a lot of people started using Opera lately.. (ain't speaking > > >about Israeli users). > > >Does Opera supports Logical Hebrew? If so, from which version? > > > > > > > > >Best Regards - > > > > > > Aviv Revach > > > > > >At 15:20 28/02/01 +0200, Boaz Yahav wrote: > > >>Hi Aviv > > >> > > >>Let me give you a small tip about Hebrew on the net. > > >> > > >>The proper Hebrew code which was adopted by the Israeli Institute of > > >>Standards > > >>is the Logical standard. This standard is automatically supported by IE > > > > 4.x > > > > >>and 5.x > > >>and also by Netscape 6.x. > > >> > > >>The percentage of not IE4.x or 5.x users in Israel is less than 3%. > > >> > > >>3 of the major portals in Israel (Walla, Nana and MSN) are already moving > > > > > >to > > > > > >>logical Hebrew. > > >> > > >>So why use Visual Hebrew? > > >> > > >>In case you decide to go with Visual in any case, did you try hebrevc()? > > >> > > >>Sincerely > > >> > > >> berber > > >> > > >>Visit http://www.weberdev.com Today!!! > > >>To see where PHP might take you tomorrow. > > >> > > >> > > >>-----Original Message----- > > >>From: Aviv Revach [mailto:[EMAIL PROTECTED]] > > >>Sent: Tuesday, February 27, 2001 1:43 PM > > >>To: [EMAIL PROTECTED] > > >>Subject: [PHP] Hebrew websites transition with php3 .. > > >> > > >> > > >>Hey! > > >> > > >>I've just joined this mailing-list, therefore, first of all, I would like > > >>to say hello to everybody. > > >> > > >> > > >>Now, regarding the issue.. > > >> > > >>As some of you might know, handling with Hebrew websites is rather > > >>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth' > > >>instead of 'html'). > > >> > > >>I'm working on a php3 script which would help me do the following - > > >>Load an existing HTML file which consists Hebrew words (as well as > > >> English words and HTML tags), then reversing the Hebrew words back to > > >> order. > > >> > > >>The problem I'm dealing with is how to reverse only the Hebrew words and > > >>not the entire > > >>document, which contains HTML tags and English words as well. > > >>The function 'hebrev()' does the process of reversing, but it reverses > > > > tags > > > > >>as well. > > >> > > >> > > >>I would really appreciate it, if anyone will find some spare time to help > > >>me. > > >> > > >> > > >>Thank you in advance - > > >> > > >> Aviv Revach > > >> > > >>XOR-Coders Mega Programming Resource Site! - > > >> http://members.xoom.com/xorcoders/ > > >> > > >> > > >>-- > > >>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] > > > > > >XOR-Coders Mega Programming Resource Site! - > > > http://members.xoom.com/xorcoders/ > > > > > >-- > > >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] > > > > 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 > > -- XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/
As Boaz suggested look into hebrev and hebrevc functions. They are the only ones I can think about right now. check http://php.net/hebrev http://php.net/hebrevc the manual states that this functions are defined in PHP3 and PHP4. HTH -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd On Wednesday 28 February 2001 17:00, Aviv Revach wrote: > Hey! > > Ok, I think that I will stick to logical Hebrew as most of you suggested. > > But still, I'm interested in knowing how could I take a HTML document which > contains > HTML tags, Hebrew words and English words, and reveres only the Hebrew > words (making > them Visual Hebrew) using only php3 functions (the server I'm using doesn't > support php4). > > It would be great if anyone could point of a solution for doing that. > By writing a script that will do that, I will both options - show the > Hebrew in my website as Logical or use a script to translate it into visual > Hebrew for browsers who do not support it. > > Thank you in advance - > > Aviv Revach > > At 16:45 01/03/01 +0200, Meir kriheli wrote: > >On Thursday 01 March 2001 09:17, Boaz Yahav wrote: > > > >I think that Aviv should stick to logical hebrew (which is the standart, > > as mentioned by Boaz). > > > >I don't use IE (I'm using Linux) and I can access all the logical sites > > with no problem, including the "<html dir=rtl>" tag and the 'direction: > > rtl' style (thank > >god for konqueror). > > > >Netsacpe 6/Mozilla should support logical Hebrew pretty soon so no trouble > >there, and if Opera wants to gain market share they shold support the > >standart (logical) in here to. > > > >Altough the 3% estimate seems wrong (as noted by Manuel Lemos - Hi :-) , > > the majority of users in Israel are using IE. > > > >One more problem you'll have with visaul hebrew is the ugly line breaks > > which cause the end of the sentence to appear before the start of it. > > > >I had a long discussion of this subject with Manuel off this mailing list. > > I can send you a digest of it if you wish. > > > >-- > >Meir Kriheli > > > > There's someone in my head, but it's not me - Pink Floyd > > > > > Hi Manuel, > > > > > > All is great, working hard to make WeberDev.com a better place > > > for the community and trying to make people understand we don't > > > make $$$ from it :) > > > > > > The IE / NN war was one that left no chance for NN in Israel. > > > While MS spent millions in making all of their products in Hebrew, > > > including the free IE, NN refused to support Hebrew. > > > > > > While the 3% is correct for Israel, it's far from being true on an > > > international basis. > > > > > > There are 3 large portals in Israel, 1 supports only IE (MSN), > > > and the other two that supported NN, until not long ago, started > > > to develop for IE only about 4-6 months ago. > > > > > > This is why there is no reason to support anything other than > > > IE in Israel. > > > > > > With all due respect to people that like other browsers, developing > > > for all browsers costs lots of $$$ and as long as portals are free > > > and loosing lots of $$$ it's not profitable to develop for all. > > > > > > Bottom line, as the CTO of one of those portals I say go > > > with Logical Hebrew and dump Netscape (In Israel Only). > > > > > > and don't forget to add the <HTML DIR="rtl"> tag at the > > > beginning of each page. > > > > > > Sincerely > > > > > > berber > > > > > > Visit http://www.weberdev.com Today!!! > > > To see where PHP might take you tomorrow. > > > > > > > > > -----Original Message----- > > > From: Manuel Lemos [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, February 28, 2001 10:51 PM > > > To: [EMAIL PROTECTED] > > > Subject: RE: [PHP] Hebrew websites transition with php3 .. > > > > > > > > > Hello Boaz, > > > > > > How are you doing these days? :-) > > > > > > On 28-Feb-01 16:39:35, you wrote: > > > >The figures I'm giving you are from one of the two biggest portals in > > > >Israel. > > > >it's less than 3%. > > > > > > Mind me for jumping in, but I think Aviv question about the truth of > > > the 3% figure ie very pertinent. > > > > > > The way I see it it is a gross mistake to assume that the audience of a > > > large portal is necessary a reflex of the potential audience of that > > > portal. > > > > > > I also work for a large portal company (not for the Hebrew audience > > > though) and I found people making the same large mistake. They looked > > > at the sites audience and figure that there is over 90% of Internet > > > Explorer users in a site that used IE specific DHTML. Needless to say > > > that it didn't show right in Netscape. > > > > > > Given that sites do not show right in certain browsers, it looks > > > obvious that almost nobody using those browsers would show in the > > > browser audience rates. > > > > > > I even wonder why there are still 3% of users of browsers that do not > > > support logical Hebrew display that go to your portal. Same for the > > > 10% of Netscape users that go to that other site in my company portal. > > > Maybe those are just lurkers that went there and gave up on the site > > > and did not return because they could not see right what was in there. > > > > > > The reality is that it turns out that there is still about 30% os > > > Netscape users, meaning that if you force a certain type of display > > > that they don't see right, you loose their audience. > > > > > > Just my .02 EUR. :-) > > > > > > Manuel Lemos > > > > > > >I'm not sure about Opera, if you are developing for an Israeli > > > >audience, you can simply develop for IE 4.x and up. > > > > > > > >anyone with any other browser can go and get IE :) > > > > > > > >-----Original Message----- > > > > > > From: Aviv Revach [mailto:[EMAIL PROTECTED]] > > > > > > >Sent: Tuesday, February 27, 2001 4:03 PM > > > >To: Boaz Yahav; [EMAIL PROTECTED] > > > >Subject: RE: [PHP] Hebrew websites transition with php3 .. > > > > > > > > > > > >Hey! > > > > > > > >Thank you for the quick reply. > > > > > > > >I do have some questions regarding your answer. > > > > > > > > From what I know and have seen so far, there are more than just 3% > > > >Internet users in Israel which use Netscape 4.x (I use it myself...). > > > >Are you sure that I should just ignore these people, and just use > > > > logical Hebrew? > > > > > > > >Also, quite a lot of people started using Opera lately.. (ain't > > > > speaking about Israeli users). > > > >Does Opera supports Logical Hebrew? If so, from which version? > > > > > > > > > > > >Best Regards - > > > > > > > > Aviv Revach > > > > > > > >At 15:20 28/02/01 +0200, Boaz Yahav wrote: > > > >>Hi Aviv > > > >> > > > >>Let me give you a small tip about Hebrew on the net. > > > >> > > > >>The proper Hebrew code which was adopted by the Israeli Institute of > > > >>Standards > > > >>is the Logical standard. This standard is automatically supported by > > > >> IE > > > > > > 4.x > > > > > > >>and 5.x > > > >>and also by Netscape 6.x. > > > >> > > > >>The percentage of not IE4.x or 5.x users in Israel is less than 3%. > > > >> > > > >>3 of the major portals in Israel (Walla, Nana and MSN) are already > > > >> moving > > > > > > > >to > > > > > > > >>logical Hebrew. > > > >> > > > >>So why use Visual Hebrew? > > > >> > > > >>In case you decide to go with Visual in any case, did you try > > > >> hebrevc()? > > > >> > > > >>Sincerely > > > >> > > > >> berber > > > >> > > > >>Visit http://www.weberdev.com Today!!! > > > >>To see where PHP might take you tomorrow. > > > >> > > > >> > > > >>-----Original Message----- > > > >>From: Aviv Revach [mailto:[EMAIL PROTECTED]] > > > >>Sent: Tuesday, February 27, 2001 1:43 PM > > > >>To: [EMAIL PROTECTED] > > > >>Subject: [PHP] Hebrew websites transition with php3 .. > > > >> > > > >> > > > >>Hey! > > > >> > > > >>I've just joined this mailing-list, therefore, first of all, I would > > > >> like to say hello to everybody. > > > >> > > > >> > > > >>Now, regarding the issue.. > > > >> > > > >>As some of you might know, handling with Hebrew websites is rather > > > >>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth' > > > >>instead of 'html'). > > > >> > > > >>I'm working on a php3 script which would help me do the following - > > > >>Load an existing HTML file which consists Hebrew words (as well as > > > >> English words and HTML tags), then reversing the Hebrew words back > > > >> to order. > > > >> > > > >>The problem I'm dealing with is how to reverse only the Hebrew words > > > >> and not the entire > > > >>document, which contains HTML tags and English words as well. > > > >>The function 'hebrev()' does the process of reversing, but it > > > >> reverses > > > > > > tags > > > > > > >>as well. > > > >> > > > >> > > > >>I would really appreciate it, if anyone will find some spare time to > > > >> help me. > > > >> > > > >> > > > >>Thank you in advance - > > > >> > > > >> Aviv Revach > > > >> > > > >>XOR-Coders Mega Programming Resource Site! - > > > >> http://members.xoom.com/xorcoders/ > > > >> > > > >> > > > >>-- > > > >>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] > > > > > > > >XOR-Coders Mega Programming Resource Site! - > > > > http://members.xoom.com/xorcoders/ > > > > > > > >-- > > > >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] > > > > > > 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 > > > -- > > XOR-Coders Mega Programming Resource Site! - > http://members.xoom.com/xorcoders/
hi, everytime i add include function to a script it will answer like: Warning: Failed opening 'common.php' for inclusion (include_path='/usr/local/apache/htdocs:/home/httpd/mydomain') in /home/httpd/mydomain/h24h/foro/admin/index.php on line 23 and lines 22 and 25 have: chdir("/home/httpd/mydomain/phorum/"); include "common.php"; in php.ini i have this: include_path = "/usr/local/apache/htdocs:/home/httpd/mydomain" doc_root = user_dir = /usr/local/apache/htdocs ; extension_dir = ./ enable_dl = On after this, where should i put all my php files? can i put admin php files into other directories? any suggestions will be appreciated, thanks in advance, marcos lloret [EMAIL PROTECTED]
Hi, Marcos You can try something like this: ///// web root $SiteRootDir = "/home/httpd/mydomain"; ///// phorum directory $PhorumDir = "/phorum"; ///// libraries include $SiteRootDir.$PhorumDir."/common.php"; .... Felipe At 08:59 1/03/01 +0000, Marcos wrote: >hi, > everytime i add include function to a script it will answer like: > Warning: Failed opening 'common.php' for inclusion >(include_path='/usr/local/apache/htdocs:/home/httpd/mydomain') in >/home/httpd/mydomain/h24h/foro/admin/index.php on line 23 > > and lines 22 and 25 have: > chdir("/home/httpd/mydomain/phorum/"); > include "common.php"; > > in php.ini i have this: > > include_path = >"/usr/local/apache/htdocs:/home/httpd/mydomain" > doc_root = > user_dir = >/usr/local/apache/htdocs ; > extension_dir = ./ > enable_dl = On > > after this, where should i put all my php files? can i put admin php >files into other directories? > >any suggestions will be appreciated, > >thanks in advance, > > >marcos lloret >[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] ___________________ Felipe Fernández Perera EPSILON ERIDANI http://www.epsilon-eridani.com mailto:[EMAIL PROTECTED]
On Thursday 01 March 2001 09:59, you wrote: > hi, > everytime i add include function to a script it will answer like: > Warning: Failed opening 'common.php' for inclusion > (include_path='/usr/local/apache/htdocs:/home/httpd/mydomain') in > /home/httpd/mydomain/h24h/foro/admin/index.php on line 23 > > and lines 22 and 25 have: > chdir("/home/httpd/mydomain/phorum/"); > include "common.php"; The chdir doesn't affect include () in any way. It looks for "common.php" in the include path, i.e. /usr/local/apache/htdocs/common.php or /home/httpd/mydomain/common.php Writing include ('phorum/common.php') will work in your setup -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler
or eBay? Well, I missed it too. Now we all have the great opportunity not only to relive it but also to help usher the real Information Highway and be rewarded for our vision and courage! Our company, Internet Architecture, Inc. will offer free web contents: true beginning applications of the Information Highway utilizing the much wider bandwidth of Digital Subscriber Line (DSL) and cable modems, supported by the latest satellite technology. These will be cutting edge technologies in virtual reality and spatial navigation applications: (1) "What if ..." situations for business and other decision making applications. This will be done in conjunction with the state of the art in artificial intelligence and virtual reality; (2) Spatial Navigation of roadways/topography/weather several miles ahead of your trip. This will be done with the help of Geopositioning and Weather Satellites; (3) floor plans and other design utilities. We have just successfully presented for the first time to a group of investors in Florida and will continue our pilgrimage as explained below to solicit financing for cutting edge technologies in virtual reality and spatial navigation applications.. Watch for the announcement in our web site for a presentation close to you. This will give you a unique opportunity to network and prospect as well. We are now presenting in the Washington, D.C./Virginia areas in February and March, 2001. We can be reached at 703-204-9698 and 321-287-7280. Attached is my recent offer of the same Multimedia presentation to individuals in key cities along my way. If you or anybody you know in your area may be interested, please respond. Or feel free to transmit this e-mail to anybody who may be interested. ------------------------------------------------------- ------------------------------------------------------- To: … Cc: … Subject: Now that my associate, the brilliant Mr. Fred Servillon, and I have given a fairly successful inaugural presentation of our company, to a group of investors in Tampa, I have decided to begin my expedition. First to the Washington, D.C. and Virginia areas per invitation of Amos and Ate Emelina Camp (Ate Emelina, my first cousin, is the eldest among the Ragaza clan), to the New York/New Jersey areas, to Chicago, to Fort Madison, Iowa, per invitation of my second cousin Johnny and his lovely wife, Dr. Cristina Rabo, and finally to the Sunnyvale/Palo Alto/Santa Clara areas. I will be leaving Florida on Saturday, January 27, 2001. Can you possibly arrange to have another such presentation in your area. It will be a multimedia presentation using MS PowerPoint superimposed against the already money-making web site http://www.internetarchitecture.com/ It will be not only educational (history of the internet, our competition Yahoo*, a new organizational concept that is similar to the internet, a bird's eye view of project development - systems planning, systems analysis, ..., etc.) but also creatively enjoyable. In Tampa we had so much fun (and boisterous, belly-aching laughter at times**) investigating various ... what if ... situations and the audience was actually actively participating in the solution and spontaneous humor! * This is a compelling story about the little train that could ... or David and GOLIATH ... check our business plan for introducing the following unproven free contents: virtual reality and spatial navigation, the real beginnings of the information highway. ** For example, one of the attendees loved the pulsating heart in the logo at the top of the menu/index on the left. When we visited the Playboy store, one of the occupants in our virtual mall, another attendee (a well known community leader here) noticed that suddenly the heart stopped beating! GOD really appears in mysterious ways?! Just below is the formal invitation we sent to the attendees of our inaugural presentation in Tampa. ------------------------------------------------------- I am wholeheartedly inviting each one of you to an introductory presentation of Internet Architecture, Inc. It will be held at 10 A.M., on Saturday, January 13, 2001, at Esther Gianan's house. In consonant with the high technology nature of our business, we will arrange to have a multimedia showing using MS PowerPoint and the Internet. This will be an exciting, let alone educational, affair for the people of a great city who gave me all the opportunities to be, therefore I am: 1. Beyond Yahoo! The true beginning of the Information Highway 2. Content providers are where the big money will be made 3. Internet Growth 4. The demise of Yahoo 5. The demise of eBay 6. BUSINESS PLAN 7. For the calendar year 2000 8. For the calendar year 2001 9. Local Area Network that will house the company's domain and enterprise system 10. Financial Projection 11. PLAN for such BOLD MISSION: Build Satellite Local Branches, a new organizational concept patterned after the Internet Create Strategic Alliances Esther's home is at (click the following Yahoo map): http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=4618+Bay+to+Bay+Blvd&city=Tampa&state=FL&slt=27.918900&sln=-82.521200&name=&zip=33629-7601&country=us&BFCat=&BFClient=&mag=8&desc=&cs=9&newmag=7 Attached you will find my reply to an inquiry by a representative of Legg Mason, a nationwide brokerage firm. This should give you enough background for the presentation. Happy New Year! Thank you and I hope to see all of you next weekend. Jess (Ragaza) PS (1) Since this is a catered occasion, RSVP via e-mail or call me at my cell phone: 321-287-7280. Alternatively, you may call Esther at 813-837-9660; (2) Please refer us to people or companies that are in the cutting edge technologies of Virtual Reality and Spatial Navigation. ------------------------------------------------------- --- Jess Ragaza <[EMAIL PROTECTED]> wrote: Date: Tue, 26 Dec 2000 11:09:03 -0800 (PST) From: Jess Ragaza <[EMAIL PROTECTED]> Subject: Your call is very timely! Thank you for the possibility of an investment by a trust client of your company. To: Becky Clark <[EMAIL PROTECTED]> Per your request, attached you will find the latest e-mail I sent yesterday to some outstanding individuals who I personally feel, based on their proven success in their fields of endeavor, are best qualified to help and eventually reap the reward with your potential investors and us. Thank you again, and I give you my solemn promise to make this a successful undertaking. Jess Ragaza, President Internet Architecture, Inc. ------------------------------------------------------- Subject: Internet Architecture, Inc. has started to have small revenue ... through its portal with virtual offices and mall http://www.internetarchitecture.com/ and has accomplished its 2000 objective in advance. Click "Business Plan" at http://www.internetarchitecture.com/companyinfo.html We are embarking a new year, however, with greater challenge toward our desire to have a very profitable company and an initial public offering (IPO) in 3-4 years. To accomplish this, the highest priority in our agenda is to create an embryonic, but creative and powerful organization. First, we need a strong and knowledgeable Board of Directors (BOD). These directors will cut across the full spectrum of business functions, from accounting and finance, to high technology, to law, to marketing, to human resources. The BOD will provide the leadership to accomplish the company's mission and business plan. I have known each one of you and your outstanding contribution to business and your community. You will be invaluable to our organization. I therefore offer you a membership in the board. Please either call (tel. 407-628-1594; cell. 321-287-7280) or e-mail me. Next, we need to attract venture capital and be right at the main vein of high technology. It is for these reasons, as most of you already know, that I will be making an expedition move to the Silicon Valley (Sunnyvale, Santa Clara, Palo Alto areas). Concurrent with this move to California, we will start a massive marketing to the level of at least a million visitors to our web site per month. This will impose the heaviest expenditure on the company because it will entail not only online, but also the traditional media - newspaper, magazine, radio and television. We hope you share our vision and be rewarded accordingly for your courage. I personally look forward to your support. And have a very Merry Christmas and a Happy New Year. Jess Ragaza, President Internet Architecture, Inc. PS You may check yours truly's short curriculum vitae by visiting my company's web site, http://www.internetarchitecture.com clicking "Company Information" in the index frame on the left, then clicking in the content frame "Jess Ragaza" which may be blinking, if you are using Netscape Navigator, or simply bold, if you are using Internet Explorer. ===== Jess Ragaza, President http://www.internetarchitecture.com/ With shopping and entertainment … an experience in great deals, ease and comfort Disney, amazon.com, eBay, AOL, CarsDirect, Sony, Franklin Mint, Playboy and others With your satisfaction … designed by us personally into every web page Watch for the next Initial Public Offering that will reap rewards beyond your imagination! [EMAIL PROTECTED]; [EMAIL PROTECTED]; cellphone: 321-287-7280/HTML __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
Hello, by default there aren't any php version in the cobalt, but you could install the version you prefer. I have been working with cobaltraq 3 for a year with php, and it works ok. regards Fernando Caamaño ----- Original Message ----- From: "Jochen Kaechelin" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 1:57 AM Subject: [PHP] PHP on Cobalt > does anybody know which versions > of PHP are installed on a CobaltRAQ3 or CobaltRAQ4 > when you buy a new one? > > -- > Ihr WEBberater > Stuttgarter Str.3, D-73033 Göppingen > Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598 > http://www.wa-p.de ** mailto:[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] > >
When a function finishes execution does it automatically clean up its local variables or should I manually unset() them? For example: function do_something() { $local_var = 'something really big...'; return true; } Does $local_var immediately vanish from existence when do_something finishes executing? Thanks! -- Michael A. Smith <[EMAIL PROTECTED]> Director of Data Systems, wcities.com ICQ: 35884415 :wq
Hi all, I've a problem with my php.ini file, running JAVA classes... What exactly should write in php.ini? I've JDK in /usr/local/jdk and PHP in /usr/local/php Tanks
Federico Ragazzoni wrote: > > Hi all, I've a problem with my php.ini file, running JAVA classes... > What exactly should write in php.ini? > I've JDK in /usr/local/jdk and PHP in /usr/local/php Would you explain us, what does (or should) php.ini have to do with JAVA? Robert
try this article: http://www.phpbuilder.com/columns/marknold20001221.php3 though i must admit i couldn't get it to work on windows. ----- Original Message ----- From: Federico Ragazzoni <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 9:24 AM Subject: [PHP] Newbie question about running JAVA classes on PHP scripts Hi all, I've a problem with my php.ini file, running JAVA classes... What exactly should write in php.ini? I've JDK in /usr/local/jdk and PHP in /usr/local/php Tanks
Todd Cary <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am having a very strange problem: PHP 4.0.4 on a NT 4 platform with > IIS 5 is only allowing one surfer to do a DB Select. If the DB is busy > with the first user, the page is not available to other users. And I > have no problems with Win 2K. > > Am I missing something very obvious? Umm...is IIS5 not Win2k -only-? -- Rick @ DomainsBuy.com
On Wednesday 28 February 2001 22:58, you wrote: > I am trying to get the expected behavior of: > require("filename.gz"); > or > require("filename.bz2"); > to work properly. Why do you want to do that? If that file is just a normal include file, compression just adds unneccessary overhead. If it's some file you don't know the contents of, don't include it (that would mean executing arbitrary code on your server) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler
hi.. i am looking for a database wich runs with php and supports big tables ... i am thinking about areas in the range of 1,5-2TB. can mysql handle that ? i know ms-sql is good for databases at arround 1TB. markus
on a 45mb table with 31,470 rows mysql takes this long. mysql> SELECT stockno from products; ... 31470 rows in set (2.34 sec) mysql> not exactly great performance, if I put two 'LIKE' statments and an 'ORDER BY' clause then we're at 8 sec this is on a PII500 512mb ram linux.mysql 3.23.28 this is not a lightning fast server, but I am not impressed with mysql speed. if you ever have todo any table joins I would highly recommend against mysql people has 161 rows. products has 31,470 rows select count(stockno), count(customernum) from products, people; ... 1 row in set (12.34 sec) mysql> try adding a third table, oi. or a fouth, I timedout at nearly 2 hours with four tables. postgres (7.1beta) could do the same four tables in less then 0.9sec. I use mysql because I use mysql. I would like to use postgres but everyone seems to use mysql and clients know the name. they request it. I hear problems about un-stability of 7.0 on phpbuilder.com, are they warented? I am interested in hearing strong customer testomonials for postgres or against it. I have little info other then a few benchamrks I ran myself. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Markus H. Maussner"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi.. i am looking for a database wich runs with php and supports big tables ... i am thinking about areas in the range of 1,5-2TB. can mysql handle that ? i know ms-sql is good for databases at arround 1TB. markus -- 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]
Definitely something wrong with your setup, if a query takes as long as 2 hours. I could see maybe 2 seconds to return all 31000 rows, but why would you ever need all 31000 rows? Put a limit on it to say 20 or 30 and you'll get fast performance. If your columns are indexed, the order by won't take as long as you indicate. As for joins, mysql is very fast in my experience. Take this for instance, operating on several tables with about 20000 rows: select a.description as project, b.phase, c.worktype, d.description, d.regular, d.ot, d.uid, d.sync, d.ot15, d.ot2, d.project_id, d.phase_id, d.worktype_id, DATE_FORMAT(d.date, '%a, %b %d, %Y') as date from project a, phase b, worktype c, hours d where week(d.date) = week('2001-02-03') and year(d.date) = year('2001-02-03') and d.project_id = a.code and d.phase_id = b.code and d.worktype_id = c.code and d.personnel_id = 1139 order by d.date asc; 22 rows in set (0.07 sec) A count for 1 col on the same table takes 0.01 seconds. This is on a slower machine than yours - but for the join it's only returning the important rows. I think that might be where you're interpreting the slow performance, unless you're missing indexes on the pertinent joins. Julian -- Julian Wood Multimedia Developer University of Calgary on 3/1/01 6:52 AM, Chris Lee at [EMAIL PROTECTED] wrote: > on a 45mb table with 31,470 rows mysql takes this long. > > mysql> SELECT stockno from products; > ... > 31470 rows in set (2.34 sec) > mysql> > > not exactly great performance, if I put two 'LIKE' statments and an 'ORDER BY' > clause then we're at 8 sec > > this is on a PII500 512mb ram linux.mysql 3.23.28 this is not a lightning fast > server, but I am not impressed with mysql speed. if you ever have todo any > table joins I would highly recommend against mysql > > people has 161 rows. > products has 31,470 rows > > select count(stockno), count(customernum) from products, people; > ... > 1 row in set (12.34 sec) > mysql> > > try adding a third table, oi. or a fouth, I timedout at nearly 2 hours with > four tables. postgres (7.1beta) could do the same four tables in less then > 0.9sec. > > I use mysql because I use mysql. I would like to use postgres but everyone > seems to use mysql and clients know the name. they request it. I hear problems > about un-stability of 7.0 on phpbuilder.com, are they warented? I am > interested in hearing strong customer testomonials for postgres or against it. > I have little info other then a few benchamrks I ran myself. >
I need a sequence of small integers for primary keys in mysql tables; I want php to generate them. How can I do that? Thanks
In article <Pine.LNX.3.96.1010301102752.419D-100000@localhost>, [EMAIL PROTECTED] ("M. A. Ould-Beddi") wrote: > I need a sequence of small integers for primary > keys in mysql tables; I want php to generate them. > How can I do that? A sequence of integers for the primary of a table in a mysql database.... Mind if I ask why you don't want to use let mysql do that by assigning "auto_increment" to the field? -- CC
Use MySQL's autoincrement ? Miles At 10:29 AM 3/1/01 +0000, M. A. Ould-Beddi wrote: >I need a sequence of small integers for primary >keys in mysql tables; I want php to generate them. >How can I do that? > >Thanks > > > >-- >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 would like to put all the content from a html file into a php. (like working with SSI) index.php include ('info.html) is this right? regards, marcos [EMAIL PROTECTED]
Marcos wrote: > index.php > include ('info.html) I think readfile($inputFileName); would be a better option. -- Regards, Harshdeep Singh Jawanda.
On Thu, 1 Mar 2001, Marcos wrote: > hi, > > i would like to put all the content from a html file into a php. > (like working with SSI) > index.php > include ('info.html) > > is this right? > > regards, > > marcos > [EMAIL PROTECTED] > <?php include "page.html" ?>
I'm uploading a file to my server, and I check the mime-type and file size before saving it. For some reason I get the file size, but not the file type. $userfile_type returns nothing and $userfile_size returns the correct size. This works just fine on another server where I have the same script so the problem is not in the browser. I'm running RedHat 7.0 with PHP rpm php-4.0.4pl1-3 Bug, feature or my fault? /Fredrik
I find depending on the browser the mime-type is not allways set or correct. I like to double check it before I save the type in my db. I find alot of the time my type is set to application/octlet-stream meaning it knows its binary data, just the browser didnt know what kind. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Fredrik Wahlberg" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm uploading a file to my server, and I check the mime-type and file size before saving it. For some reason I get the file size, but not the file type. $userfile_type returns nothing and $userfile_size returns the correct size. This works just fine on another server where I have the same script so the problem is not in the browser. I'm running RedHat 7.0 with PHP rpm php-4.0.4pl1-3 Bug, feature or my fault? /Fredrik -- 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 have a simple form that seems to do everything except send the mail and it's not even returing TRUE from mail() anymore. I'm pretty sure there's a problem with our smtp server since we're using our ISP's smtp to send mail from usually so I've tried setting SMTP to that outside server in the php.ini but should it be the IP address or what? This is the error I'm getting: Warning: Failed to Connect in D:\Cryptic\pages\forms\contact_form.php Thanks for your help, Mat
Hi ! Anybody having a clue, about how to use iptcembed () !! And by the way the iptcparse() function dowsnot pick up the image URL .. Mathur
Hi! I have a php-script, that gets a HTML-Page, parses it and print some information on this page! 'file("http:// ...")' doesn't work on my server, so I use 'fsockopen($host,$port)' which works fine! Now I migratet my scripts to another free-ISP, and there both methods fail! - What can I try else? - What is the reason, why they don't work? thanks michi -- Sent through GMX FreeMail - http://www.gmx.net
i uses the following method to display an image draw from database.. //////////////////////////////////////////////////////////////// set_magic_quotes_runtime(0); $query = "select diagram from $QuestTab where qns_id = '$QnsID'"; $result = @MYSQL_QUERY($query); $data = @MYSQL_RESULT($result,0, "diagram"); Header("Content-type: image/png"); print $data; set_magic_quotes_runtime(get_magic_quotes_gpc()); ///////////////////////////////////////////////// i have problem getting the images size.... dose anyone know? i had tried almost all ways i know of.. to using images functions from the GD lib.. john
Thank you for the script, but it is not clear for me :-) i'm a beginner in PHP ! This script accept all range IP for every domain, but me i need to determine only a range IP for select domains. Users will be connect by my network, so they have an IP give by the network. Example (because i don't speak english very well !) : there are 3 networks, each of them have a mask : (it is not necessary to know these parameters i think !) 198.143.15.255 (255.255.255.0) 202.139.84.255 (255.255.255.128) 210.176.142.255 (255.255.255.192) When a user will connect, his IP will be between 198.143.15.0 and 198.143.15.255 or between 202.139.84.0 and 202.139.84.255 or between 210.176.142.0 and 210.176.142.255 So if someone else connect without using my network, the system disallow him and redirect in 403 Page. To resume : - Users will be accept by the system if they will use my network. - Others will be redirect in 403 Page. - So i must check there IP Addresses and authorize them or not to enter in the member area in fontion of there IP ! Thanks for every solutions ! Byebye @+ Anthony. > --------------------[snip]-------------------- > >well i have a problem, i try make an authentication per range IP Address > >like : > >from 194.195.196.0 to 194.195.196.255 but it doesn't work, except if i make > >an authentication for only one IP Address. I tried to make with "LOOP" and > >"WHILE" tag, but i got the problem everytime ! > > > >This is the last example script i made with two domains which accept only > >the range IP Address for each : > > > ><?php > > > >$host = getenv("REMOTE_ADDR"); > >$ip = range(0,255); > >if ($host != "194.195.196.($ip)) > >if ($host != "195.196.197.($ip)) > --------------------[snip]-------------------- > > Salut Anthony, > > you may check if an address is within a certain network/subnet, you need to > compare each octet. > > For example: > Address 192.168.11.212 Network 192.168.12.255 Mask 255.255.255.0 > 192 & 255 = 192 192 & 255 = 192 OK > 168 & 255 = 168 168 & 255 = 168 OK > 11 & 255 = 11 12 & 255 = 12 NOT WITHIN SUBNET > > I've put this together in this littel test form: > > --------------------[snip]-------------------- > <?php > > function contains_ip($network, $snmask, $address) > { > if (!is_array($network)) $network = explode(".", $network); > if (!is_array($snmask)) $snmask = explode(".", $snmask); > if (!is_array($address)) $address = explode(".", $address); > > for ($i=0; $i<4; ++$i) { > $a = $address[$i]*1; > $m = $snmask[$i]*1; > $n = $network[$i]*1; > $m1 = $a & $m; > $m2 = $n & $m; > if (($a & $m) != ($n & $m)) > return false; > } > return true; > } > > if ($network && $subnet && $address) > $result = contains_ip($network, $subnet, $address); > > ?> > > <html> > <body> > <?php if (isset($result)):?> > <h4><?=$address?> is<?php if(!$result):?> <i>not</i><?php endif;?> > contained in <?=$network?>, mask <?=$subnet?></h4> > <?php endif;?> > <form> > Enter Address: <input type="text" name="address" value="<?=$address?>"><br> > Enter Network: <input type="text" name="network" value="<?=$network?>"><br> > Enter Subnetmask: <input type="text" name="subnet" value="<?=$subnet?>"><br> > <input type="submit"> > </form> > </body> > </html> > --------------------[snip]--------------------
Thank you for the script, but it is not clear for me :-) i'm a beginner in PHP ! This script accept all range IP for every domain, but me i need to determine only a range IP for select domains. Users will be connect by my network, so they have an IP give by the network. Example (because i don't speak english very well !) : there are 3 networks, each of them have a mask : (it is not necessary to know these parameters i think !) 198.143.15.255 (255.255.255.0) 202.139.84.255 (255.255.255.128) 210.176.142.255 (255.255.255.192) When a user will connect, his IP will be between 198.143.15.0 and 198.143.15.255 or between 202.139.84.0 and 202.139.84.255 or between 210.176.142.0 and 210.176.142.255 So if someone else connect without using my network, the system disallow him and redirect in 403 Page. To resume : - Users will be accept by the system if they will use my network. - Others will be redirect in 403 Page. - So i must check there IP Addresses and authorize them or not to enter in the member area in fontion of there IP ! Thanks for every solutions ! Byebye @+ Anthony. > --------------------[snip]-------------------- > >well i have a problem, i try make an authentication per range IP Address > >like : > >from 194.195.196.0 to 194.195.196.255 but it doesn't work, except if i make > >an authentication for only one IP Address. I tried to make with "LOOP" and > >"WHILE" tag, but i got the problem everytime ! > > > >This is the last example script i made with two domains which accept only > >the range IP Address for each : > > > ><?php > > > >$host = getenv("REMOTE_ADDR"); > >$ip = range(0,255); > >if ($host != "194.195.196.($ip)) > >if ($host != "195.196.197.($ip)) > --------------------[snip]-------------------- > > Salut Anthony, > > you may check if an address is within a certain network/subnet, you need to > compare each octet. > > For example: > Address 192.168.11.212 Network 192.168.12.255 Mask 255.255.255.0 > 192 & 255 = 192 192 & 255 = 192 OK > 168 & 255 = 168 168 & 255 = 168 OK > 11 & 255 = 11 12 & 255 = 12 NOT WITHIN SUBNET > > I've put this together in this littel test form: > > --------------------[snip]-------------------- > <?php > > function contains_ip($network, $snmask, $address) > { > if (!is_array($network)) $network = explode(".", $network); > if (!is_array($snmask)) $snmask = explode(".", $snmask); > if (!is_array($address)) $address = explode(".", $address); > > for ($i=0; $i<4; ++$i) { > $a = $address[$i]*1; > $m = $snmask[$i]*1; > $n = $network[$i]*1; > $m1 = $a & $m; > $m2 = $n & $m; > if (($a & $m) != ($n & $m)) > return false; > } > return true; > } > > if ($network && $subnet && $address) > $result = contains_ip($network, $subnet, $address); > > ?> > > <html> > <body> > <?php if (isset($result)):?> > <h4><?=$address?> is<?php if(!$result):?> <i>not</i><?php endif;?> > contained in <?=$network?>, mask <?=$subnet?></h4> > <?php endif;?> > <form> > Enter Address: <input type="text" name="address" value="<?=$address?>"><br> > Enter Network: <input type="text" name="network" value="<?=$network?>"><br> > Enter Subnetmask: <input type="text" name="subnet" value="<?=$subnet?>"><br> > <input type="submit"> > </form> > </body> > </html> > --------------------[snip]-------------------- -- 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]
At 16:09 01.03.2001, Nazoréen said: --------------------[snip]-------------------- >there are 3 networks, each of them have a mask : (it is not necessary to >know these parameters i think !) >198.143.15.255 (255.255.255.0) >202.139.84.255 (255.255.255.128) >210.176.142.255 (255.255.255.192) > >When a user will connect, his IP will be between 198.143.15.0 and >198.143.15.255 or between 202.139.84.0 and 202.139.84.255 or between >210.176.142.0 and 210.176.142.255 > >So if someone else connect without using my network, the system disallow him >and redirect in 403 Page. --------------------[snip]-------------------- Anthony, given the function contains_ip from my earlier post, you would code: <?php if (!contains_ip("198.143.15.255", "255.255.255.0", $REMOTE_ADDRESS) && !contains_ip("202.139.84.255", "255.255.255.128", $REMOTE_ADDRESS) && !contains_ip("210.176.142.255", "255.255.255.192", $REMOTE_ADDRESS)) { header("403 Forbidden"); echo "<h1>Access Forbidden</h1>You may not come here from outside our domain"; exit(); } process_domain_app(); ?> ...ebird >O Ernest E. Vogelsinger (\) http://www.1-at-web.at/ ^ ICQ# 13394035
hi.. i have 2 small questions 1. is there somehting like an archive since the verry first mail here ? 2. i can order "old" mails from the script who managed this folder right ? but i need to say what number i want.. like i want number 499-550 .. so my question what number do we have actually ? (i suppose it started with one, but where are we right now?) markus
hi, 1. http://marc.theaimsgroup.com/?l=php-general 2. will be there too i think Kees -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Markus H. Maussner Verzonden: Thursday, March 01, 2001 12:52 PM Aan: [EMAIL PROTECTED] Onderwerp: [PHP] whats the message count ? hi.. i have 2 small questions 1. is there somehting like an archive since the verry first mail here ? 2. i can order "old" mails from the script who managed this folder right ? but i need to say what number i want.. like i want number 499-550 .. so my question what number do we have actually ? (i suppose it started with one, but where are we right now?) markus -- 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]
Figured it out, it the reference for php4_execute service needs to be higher up in the file. evan > -----Original Message----- > From: Montgomery-Recht, Evan [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, February 28, 2001 9:33 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP and iPlanet on Solaris > > I got the latest snapshot of php to compile on solaris (4.0.4pl1 > wouldn't). > > Anyways I edited the mime.types and obj.conf as described in the > installation instructions, but right now it's trying to download the > test.php file I created instead of processing. Is there anything not in > the > documentation that I need to add. > > thanks, > > evan > > -- > 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, Is there a way I can export the users in my Linux machine to a mysql database. Together with their passwords without manually entering all of them. I will appreciate any input. Thanks in advance, Joe Njeru Nairobi, Kenya. "Where the sun shines all day!!"
On Thursday 01 March 2001 17:37, Joe Njeru wrote: > Hi All, > > Is there a way I can export the users in my Linux machine to a mysql > database. Together with their passwords without manually entering all of > them. the passwords are usually encrypted and stored in /etc/passwd or /etc/shadow you'll have to make a script that takes values from here and stores them in the DB. these passwords cannot usually be decrypted, so for verification/validation you will have to use the same encryption algorithm on the password that the users have sent and compare this with the encrypted key. > I will appreciate any input. > Thanks in advance, > > Joe Njeru > Nairobi, Kenya. > "Where the sun shines all day!!"
Depends. say you are wanting to put the passwords from your servers passwd file, you would only be able to export the encrpypted passwords, since they are one-way encrypted. you will not be able to store plain text passwords in the db from your passwd file through importing it. if you want to do that the best way is to send a mass email to the users, sending the to a link with some scripting, having them enter their password. the scripting with take the inputed password, then encrypt it and compare it against the passwd file. if it's a match it would insert the users password in the mysql users table. people like to use plain text passes in db's either because they want to be able to send their users their passes in the email incase they are forgotten or other functions that require a plain text password to be displayed, or maybe laziness =). encrypting is better security wise, for a number of reasons. mainly are threats from both your remote code hacker, and anyone with an account on the system, not to mention admins and employees. do a password hint and/or question (allowing the user to change his pass incase he forgets it). it may not be possible or neccessarily needed for all applications, but those with sensitive information should always be encrypted. > -----Original Message----- > From: Joe Njeru [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 01, 2001 5:08 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Export Linux Users and Password's to MYSQL database > > > Hi All, > > Is there a way I can export the users in my Linux machine to a mysql > database. Together with their passwords without manually entering all of > them. > > I will appreciate any input. > Thanks in advance, > > Joe Njeru > Nairobi, Kenya. > "Where the sun shines all day!!" > > > > > > -- > 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] >
after hunting a little more it appears that apache adds a 'content-type: blabla" at the start of the file. Php just copies the already corrupted file ... any clues on how to fix that ? -- Thierry TABARD Digital Sound Planet http://www.digitalsoundplanet.com ""TTT"" <[EMAIL PROTECTED]> wrote in message 97jdcm$9ja$[EMAIL PROTECTED]">news:97jdcm$9ja$[EMAIL PROTECTED]... > Hi , > in fact it doesn't do much ( at least on the couple browser I tested it) : > whatever you put as a limit the file will upload ... > this is a p.. in the a... because if you do the check on the server it can > only be done when the upload is complete : pretty unfair to tell the user > that he has no more space when he spent 20 minutes uploading a file ( we use > audio files and they might be fairly big) > > but apart from that I recently upgraded to 4.04pl1 and I have the same > problem (which didn't happen before) that is described by Dhaval , running > on Linux (RHT 7.0 with plenty'o patch ... , Apache 1.3.14) ... > > changing the max file size doesn't do much :-( > > the uploaded file seems to have 'type multipart...' and other junk caracters > added at the beginning of the file after the copy (which returns a success > error code !!!) > > it seems to be a bug in 4.04pl1 > > help .... > > -- > Thierry TABARD > Digital Sound Planet > http://www.digitalsoundplanet.com > ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message > 97jbpe$m17$[EMAIL PROTECTED]">news:97jbpe$m17$[EMAIL PROTECTED]... > > try droping the max_file_size entry, does it help? I run on linux and my > file uploads work from all browsers but opera. > > > > <input type=hidden name='MAX_FILE_SIZE' value='100000'> > > > > is a silly thing php has added, the only purpose I could ever see for this > is to prevent people from uploading 3G files, but if this is the case, > should the security not be server side, vs client side? as you mentioned, > modify php.ini to change your limit. does anyone know another use for this ? > > > > > > -- > > > > Chris Lee > > Mediawaveonline.com > > > > ph. 250.377.1095 > > ph. 250.376.2690 > > fx. 250.554.1120 > > > > [EMAIL PROTECTED] > > > > > > "Dhaval Desai" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi! > > > > I think I just found a bug in php. > > > > I try to upload a file of size 37.0 K and you know > > what happens.,, > > > > The browser takes its own time..and the stupid thing > > doesnot upload the file. > > > > If I upload a file of size 2k then it uploads.. > > > > > > I have specified the file size in the form as : > > > > <FORM ENCTYPE="multipart/form-data" > > ACTION="upload.php" METHOD="POST"> > > <INPUT TYPE="hidden" name="MAX_FILE_SIZE" > > value="100000"> > > > > In Php.ini file I have found 8M is the maximum size.. > > > > > > I am running php 4.0.3pl1 wioth Apache on Windows 98. > > I also have a server on Cqhost.com > > > > I have seen the same happen there,.too... > > > > > > Is this a bug or a problem..?? > > > > > > Please Reply > > > > Cheers!~ > > Dhaval Desai > > > > > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Get email at your own domain with Yahoo! Mail. > > http://personal.mail.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] > > > > > > > > -- > 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 found a workaround in http://bugs.php.net/bugs.php?id=9298&edit=2 hope that helps. -- Thierry TABARD Digital Sound Planet http://www.digitalsoundplanet.com ""TTT"" <[EMAIL PROTECTED]> wrote in message 97jdcm$9ja$[EMAIL PROTECTED]">news:97jdcm$9ja$[EMAIL PROTECTED]... > Hi , > in fact it doesn't do much ( at least on the couple browser I tested it) : > whatever you put as a limit the file will upload ... > this is a p.. in the a... because if you do the check on the server it can > only be done when the upload is complete : pretty unfair to tell the user > that he has no more space when he spent 20 minutes uploading a file ( we use > audio files and they might be fairly big) > > but apart from that I recently upgraded to 4.04pl1 and I have the same > problem (which didn't happen before) that is described by Dhaval , running > on Linux (RHT 7.0 with plenty'o patch ... , Apache 1.3.14) ... > > changing the max file size doesn't do much :-( > > the uploaded file seems to have 'type multipart...' and other junk caracters > added at the beginning of the file after the copy (which returns a success > error code !!!) > > it seems to be a bug in 4.04pl1 > > help .... > > -- > Thierry TABARD > Digital Sound Planet > http://www.digitalsoundplanet.com > ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message > 97jbpe$m17$[EMAIL PROTECTED]">news:97jbpe$m17$[EMAIL PROTECTED]... > > try droping the max_file_size entry, does it help? I run on linux and my > file uploads work from all browsers but opera. > > > > <input type=hidden name='MAX_FILE_SIZE' value='100000'> > > > > is a silly thing php has added, the only purpose I could ever see for this > is to prevent people from uploading 3G files, but if this is the case, > should the security not be server side, vs client side? as you mentioned, > modify php.ini to change your limit. does anyone know another use for this ? > > > > > > -- > > > > Chris Lee > > Mediawaveonline.com > > > > ph. 250.377.1095 > > ph. 250.376.2690 > > fx. 250.554.1120 > > > > [EMAIL PROTECTED] > > > > > > "Dhaval Desai" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi! > > > > I think I just found a bug in php. > > > > I try to upload a file of size 37.0 K and you know > > what happens.,, > > > > The browser takes its own time..and the stupid thing > > doesnot upload the file. > > > > If I upload a file of size 2k then it uploads.. > > > > > > I have specified the file size in the form as : > > > > <FORM ENCTYPE="multipart/form-data" > > ACTION="upload.php" METHOD="POST"> > > <INPUT TYPE="hidden" name="MAX_FILE_SIZE" > > value="100000"> > > > > In Php.ini file I have found 8M is the maximum size.. > > > > > > I am running php 4.0.3pl1 wioth Apache on Windows 98. > > I also have a server on Cqhost.com > > > > I have seen the same happen there,.too... > > > > > > Is this a bug or a problem..?? > > > > > > Please Reply > > > > Cheers!~ > > Dhaval Desai > > > > > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Get email at your own domain with Yahoo! Mail. > > http://personal.mail.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] > > > > > > > > -- > 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'd like to include an inc file once a button id cliked! I tried calling that function: function more() { <?php include "sessions.inc"; ?>; // var f=<?php include "sessions.inc"; ?>; document.form1.action="formhtl_rd.html";document.form1.submit(); } but it fails! Any idea Thanks _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hi, Can you please let me know whether anyone is working on PHP for NetWare Web server (Apache/Enterprize)? Rgds, Surendra
Hy leuts i got a strange problem and hope someone knows a solution or a hint i send a mail in a absenden.php3 like this: mail("[EMAIL PROTECTED]","subjekt","inhalt", "Content-Type: text/html\nFrom: <[EMAIL PROTECTED]>"); the mail reaches me, is readable, but on the next time i start netscape its GONE ? I tryed some other header pieces, but all get the same effekt. does anyone know a reason ? i think the code is quite simple - maybe a problem with senmail? i hope for answers befor my brain goes to the same place where my mails go thanks
Hy leuts i got a strange problem and hope someone knows a solution or a hint i send a mail in a absenden.php3 like this: mail("[EMAIL PROTECTED]","subjekt","inhalt", "Content-Type: text/html\nFrom: <[EMAIL PROTECTED]>"); the mail reaches me, is readable, but on the next time i start netscape its GONE ? I tryed some other header pieces, but all get the same effekt. does anyone know a reason ? i think the code is quite simple - maybe a problem with senmail? i hope for answers befor my brain goes to the same place where my mails go thanks
> mail("[EMAIL PROTECTED]","subjekt","inhalt", > "Content-Type: text/html\nFrom: <[EMAIL PROTECTED]>"); > > the mail reaches me, is readable, but on the next > time i start netscape its GONE ? > I tryed some other header pieces, but all get the >same effekt. What do the headers look like when it arrives? I suspect it disappears because they are screwed up. I would seperate them with '\r\n' instead of just '\n'.
Is there anyone here who can tell me where I can get the pgsql.c module for PHP4 that has the cmdtuples support compiled in so that when it is called from PHPlib it does not give the following error message. Warning: This compilation does not support pg_cmdtuples() in ../phplib/php/db_pgsql.inc on line 177 I looked in the source code and the is an constant I think it was HAVE_CMDTUPLES that determined whether that section of the code would be compiled in or excluded. I would appreciate any assistence in getting this module with this compiled in. -- Regards Jess Perez
Jess Perez wrote: > > Is there anyone here who can tell me where I can get the pgsql.c module for > PHP4 that has the cmdtuples support compiled in so that when it is called > from PHPlib it does not give the following error message. > > Warning: This compilation does not support pg_cmdtuples() in > ../phplib/php/db_pgsql.inc on line 177 Configure PHP with --with-pgsql and pg_cmdtuples() will be compiled in. -Egon -- SIX Offene Systeme GmbH · Stuttgart - Berlin Sielminger Straße 63 · D-70771 Leinfelden-Echterdingen Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de Besuchen Sie uns auf der CeBIT 2001, Halle 6, Stand F62/4
Hi, Surely you don't have to re-boot the server (NT/IIS) when you change the .ini file??!! I'm trying to change the SMTP value but when I do, my phpinfo() page still lists the old one. And that'll be why my forms don't work! ;o) I've stopped and started the website to no avail, what should I do? ta Mat
At 14:47 01.03.2001, Mat Marlow said: --------------------[snip]-------------------- >Hi, >Surely you don't have to re-boot the server (NT/IIS) when you change the >.ini file??!! I'm trying to change the SMTP value but when I do, my >phpinfo() page still lists the old one. And that'll be why my forms don't >work! ;o) >I've stopped and started the website to no avail, what should I do? --------------------[snip]-------------------- If you're using the CGI (php.exe) changes should be reflected immediately. If you're using the ISAPI (php4isapi.dll) you need to down and restart the IIS Admin service (Web Publishing Service is not sufficient). Reason: the ISAPI reads the ini file once upon being loaded, and it remains loaded with IIS until shutdown. Hth, ...ebird >O Ernest E. Vogelsinger (\) http://www.1-at-web.at/ ^ ICQ# 13394035
I have an application that serializes uploaded files by datetime of upload. This may not be the most efficient, but this will yield a MySQL DATETIME type string: $datetime = date("YmdHis"); If you are looking for a DATE column and a TIME column seperately (not recomended . . . use logic to parse the TIME and DATE parts of a DATETIME column) thet you will need to use $myDate = date("Ymd"); //year,month,day with preceeding zeros $myTime = date("His"); //hours,minutes,seconds with preceeding zeros I have not checked the documentation for these: check the DATE and TIME column type requirements in MySQL, and the date() function in PHP. Obviously, make sure your MySQL column data type is DATETIME, and that you single quote the $datetime value since it's considered text. Here is my SQL string: $sql="INSERT INTO $docMaster ( sqDocID, sqUID, sqSubmitDate, sqDocAnon, sqRequestID, sqHostID, sqTitle, sqCopies, sqOptionStr, sqFileName, sqDocType, Fsize, ppFsize ) VALUES ( NULL, $uid, '$datetime', '$Anon', '$request_id', $sqHostID, '$title', $copies, '$option_list', '$file', '$DocType', $Fsize, $tmpFsize )"; It should be obvious by now that I am making a PHP4/CGI shell script LP print filter. This filter intercepts incoming print streams, then converts postscript to PDF or compresses PCL, moves the result to a controlled directory structure, and then logs to database. A little Apache with PHP with MySQL later, and I have a hands-off paperless queueing system. I love OpenSource! Any interest from the PHP community in seeing this effort released? I'm developing on Solaris for production use on Solaris, and have noted some incompatabilities with Linux, FWIW. John T. Foley Network Administrator Pollak Engineered Products, Actuator Products Division, A Stoneridge Company 195 Freeport Street, Boston MA 02122 ph: (617) 474-7266 fax: (617) 282-9058 The geographical center of Boston is in Roxbury. Due north of the center we find the South End. This is not to be confused with South Boston which lies directly east from the South End. North of the South End is East Boston and southwest of East Boston is the North End. > -----Original Message----- > From: Zenith [SMTP:[EMAIL PROTECTED]] > Sent: Monday, February 28, 2000 1:16 PM > To: [EMAIL PROTECTED] > Subject: How to insert time and date into mysql? > > How can I insert time and date into mysql table, > if the table i have to insert has a field of type time, and a field of > type > date. > > Then how can I insert it in PHP, if I use time() function?? > >
Why not use the CURDATE() and CURTIME() functions built into mysql? Kevin Cawthorne ----- Original Message ----- From: "Foley, John" <[EMAIL PROTECTED]> To: "'Zenith'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 2:20 PM Subject: [PHP] RE: How to insert time and date into mysql? > > I have an application that serializes uploaded files by datetime of > upload. > This may not be the most efficient, but this will yield a MySQL > DATETIME type string: > $datetime = date("YmdHis"); > > If you are looking for a DATE column and a TIME column seperately > (not recomended . . . use logic to parse the TIME and DATE parts of a > DATETIME column) thet you will need to use > $myDate = date("Ymd"); file://year,month,day with preceeding zeros > $myTime = date("His"); file://hours,minutes,seconds with preceeding > zeros > I have not checked the documentation for these: check the DATE and > TIME column type requirements in MySQL, and the date() function in PHP. > > > Obviously, make sure your MySQL column data type is DATETIME, and > that you single quote the $datetime value since it's considered text. Here > is my SQL string: > $sql="INSERT INTO $docMaster ( > sqDocID, > sqUID, > sqSubmitDate, > sqDocAnon, > sqRequestID, > sqHostID, > sqTitle, > sqCopies, > sqOptionStr, > sqFileName, > sqDocType, > Fsize, > ppFsize > ) > VALUES ( > NULL, > $uid, > '$datetime', > '$Anon', > '$request_id', > $sqHostID, > '$title', > $copies, > '$option_list', > '$file', > '$DocType', > $Fsize, > $tmpFsize > )"; > > > It should be obvious by now that I am making a PHP4/CGI shell script > LP print filter. > This filter intercepts incoming print streams, then converts > postscript to PDF or compresses PCL, moves the result to a controlled > directory structure, and then logs to database. > A little Apache with PHP with MySQL later, and I have a hands-off > paperless queueing system. I love OpenSource! > > Any interest from the PHP community in seeing this effort released? > I'm developing on Solaris for production use on Solaris, and have noted some > incompatabilities with Linux, FWIW. > > > > John T. Foley > Network Administrator > Pollak Engineered Products, Actuator Products Division, A Stoneridge > Company > 195 Freeport Street, Boston MA 02122 > ph: (617) 474-7266 fax: (617) 282-9058 > > The geographical center of Boston is in Roxbury. Due north of > the center we find the South End. This is not to be confused with South > Boston which lies directly east from the South End. North of the South > End is East Boston and southwest of East Boston is the North End. > > > > > > > > > -----Original Message----- > > From: Zenith [SMTP:[EMAIL PROTECTED]] > > Sent: Monday, February 28, 2000 1:16 PM > > To: [EMAIL PROTECTED] > > Subject: How to insert time and date into mysql? > > > > How can I insert time and date into mysql table, > > if the table i have to insert has a field of type time, and a field of > > type > > date. > > > > Then how can I insert it in PHP, if I use time() function?? > > > > > > -- > 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] >
>Why not use the CURDATE() and CURTIME() functions built into mysql? Because my filing system requires that the filename.extension be datetime.extension in the PHP LP script (lazy man's serialization). That way, I can just referance the datetime when I build my table of links on the query output. Since this is an LP filter, there's no guarantee of consistancy in filenaming conventions in the LP/LPD handling from the clients. I've seen different behavior from Solaris (local queue) and the following client queues: HP-UX, IRIX 6.5, SAMBA, and most significantly OS/400. IRIX was the worst. I had to discover the "mkbsdnetpr" command since IRIX's graphical Printer Administrator makes for really strange queues. By default, there apparently is no LP style "host!user" information passed from an IRIX client to a "non-SGI" server. Instead, an option list "user@host; flist=file1 file2" is used. "mkbsdnetpr" however creates a "real" BSD-style queue. Also, since my main interest is in making paperless PCL reports from my AS/400 enterprise resource planning system, the filenames passed by OC/400's TCP/IP spooler are pretty meaningless anyway. (Ever seen what OS/400 does with filenames?) And, all, please disregard the file:// referances in my code examples from earlier. Damn Microsoft Outlook changed my C++ style comments without asking. John T. Foley Network Administrator Pollak Engineered Products, Actuator Products Division, A Stoneridge Company 195 Freeport Street, Boston MA 02122 ph: (617) 474-7266 fax: (617) 282-9058 The geographical center of Boston is in Roxbury. Due north of the center we find the South End. This is not to be confused with South Boston which lies directly east from the South End. North of the South End is East Boston and southwest of East Boston is the North End. > -----Original Message----- > From: Kevin Cawthorne [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, March 01, 2001 9:58 AM > To: Foley, John; 'Zenith'; [EMAIL PROTECTED] > Subject: Re: [PHP] RE: How to insert time and date into mysql? > > Why not use the CURDATE() and CURTIME() functions built into mysql? > > Kevin Cawthorne > ----- Original Message ----- > From: "Foley, John" <[EMAIL PROTECTED]> > To: "'Zenith'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, March 01, 2001 2:20 PM > Subject: [PHP] RE: How to insert time and date into mysql? > > > > > > I have an application that serializes uploaded files by datetime of > > upload. > > This may not be the most efficient, but this will yield a MySQL > > DATETIME type string: > > $datetime = date("YmdHis"); > > > > If you are looking for a DATE column and a TIME column seperately > > (not recomended . . . use logic to parse the TIME and DATE parts of a > > DATETIME column) thet you will need to use > > $myDate = date("Ymd"); file://year,month,day with preceeding zeros > > $myTime = date("His"); file://hours,minutes,seconds with preceeding > > zeros > > I have not checked the documentation for these: check the DATE and > > TIME column type requirements in MySQL, and the date() function in PHP. > > > > > > Obviously, make sure your MySQL column data type is DATETIME, and > > that you single quote the $datetime value since it's considered text. > Here > > is my SQL string: > > $sql="INSERT INTO $docMaster ( > > sqDocID, > > sqUID, > > sqSubmitDate, > > sqDocAnon, > > sqRequestID, > > sqHostID, > > sqTitle, > > sqCopies, > > sqOptionStr, > > sqFileName, > > sqDocType, > > Fsize, > > ppFsize > > ) > > VALUES ( > > NULL, > > $uid, > > '$datetime', > > '$Anon', > > '$request_id', > > $sqHostID, > > '$title', > > $copies, > > '$option_list', > > '$file', > > '$DocType', > > $Fsize, > > $tmpFsize > > )"; > > > > > > It should be obvious by now that I am making a PHP4/CGI shell script > > LP print filter. > > This filter intercepts incoming print streams, then converts > > postscript to PDF or compresses PCL, moves the result to a controlled > > directory structure, and then logs to database. > > A little Apache with PHP with MySQL later, and I have a hands-off > > paperless queueing system. I love OpenSource! > > > > Any interest from the PHP community in seeing this effort released? > > I'm developing on Solaris for production use on Solaris, and have noted > some > > incompatabilities with Linux, FWIW. > > > > > > > > John T. Foley > > Network Administrator > > Pollak Engineered Products, Actuator Products Division, A Stoneridge > > Company > > 195 Freeport Street, Boston MA 02122 > > ph: (617) 474-7266 fax: (617) 282-9058 > > > > The geographical center of Boston is in Roxbury. Due north of > > the center we find the South End. This is not to be confused with South > > Boston which lies directly east from the South End. North of the South > > End is East Boston and southwest of East Boston is the North End. > > > > > > > > > > > > > > > > > -----Original Message----- > > > From: Zenith [SMTP:[EMAIL PROTECTED]] > > > Sent: Monday, February 28, 2000 1:16 PM > > > To: [EMAIL PROTECTED] > > > Subject: How to insert time and date into mysql? > > > > > > How can I insert time and date into mysql table, > > > if the table i have to insert has a field of type time, and a field of > > > type > > > date. > > > > > > Then how can I insert it in PHP, if I use time() function?? > > > > > > > > > > -- > > 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] > >
Would it be a good features if php had all programs executed with system,exec,passthrouth and `<program_name>` wrapped by apache suexec ? What you think about that ?
On Wednesday 28 February 2001 06:19, [EMAIL PROTECTED] wrote: > Arnold Gamboa wrote: > > I hve heard a great deal about InterBase. Please comment on which is > > better: > > > > 1. Speed > > 2. Data Reliability > > 3. Compatibility with PHP > > > > Thanks for your comments. > > > > -- > > 1. I think Postgresql > 2 and 3 I can't say which is better. Both seem to work ok - you might > want to search for postgresql and persistent connections in the archives > - seems they aren't perfect yet. I use both of the databases (Interbase 6.01 and PostgreSQL 7.1beta4). PostgreSQL has more features comapared to Interbase (the procedureal language is very robust and there are many datatyps to choose from. Also you can have some kind of object support in it to inherit tables for example), but it's windows implemenation is very hard (at least for me, I like to compile it). As for speed both are very fast (even when compared to commerical DB, in my tests the deafult install of Interbase outperfomed the default install of Oracle 8i about 10X, tested on P166 with 96MB and PII400 with 192MB). -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd
Hi you could try to ad a filter for 'exactfilename.asp' and assign it to php. i forgot most of my iis knowledge, but as far as i recal the .asp filter can be changed on per-directory basis. putting exactfilename.asp in the filter- tab higher then the asp one should map it to php.... it can be done with apache even easier, but as you use asp, i assume you use iis Sebastian > -----Ursprungliche Nachricht----- > Von: Isaac [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 28. Februar 2001 22:08 > An: [EMAIL PROTECTED] > Betreff: [PHP] Passing values from ASP to PHP > > > I've been given a project that I want to use PHP with, but > unfortunately > there are unchangable hard-coded values that point clients to an ASP > script residing on our server. Here's what I want to do, and I don't > really know how to do it: > > I want to pass all the key/value pairs that are passed to the > ASP script > to a PHP script. I can get values with Request.Form("key_name"), but > that takes hard-coding the name of the key. > > So if the following is passed to the ASP script: > one=blue&two=red&three=yellow > > Then I would want to redirect to > myscript.php?one=blue&two=red&three=yellow > > How do I go about walking through all the key/values that > have been passed > in ASP? I really don't want to have to learn this ugly language.. > > -- > Isaac Force [EMAIL PROTECTED] > (503)656-2489 http://gorgonous.dhs.org > > Real Users find the one combination of bizarre > input values that shuts down the system for days. > > > > -- > 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, To enumerate the key/value in ASP from the form you'd do this <% dim element dim objForm dim strURL '/* We're creating an object so that it won't matter which ' * HTTP method the previous form uses. ' */ If LCase(Server.Request("HTTP_METHOD")) = "post" Then Set objForm = Request.Form Else Set objForm = Request.QueryString End If strURL = "myscript.php?" '/* Now step through the form For each element in objForm '/* Key Name is in the "element" var ' * Value of the key is in the objForm(element) ' * Now build the Redirect string ' */ strURL = strURL & Server.URLEncode(element) & "="& Server.URLEncode(objForm(element)) & "&" Next '/* Now redirect Response.Redirect(strURL) %> That should do it. > > I've been given a project that I want to use PHP with, but > > unfortunately there are unchangable hard-coded values that point clients to an ASP > > script residing on our server. Here's what I want to do, and I don't > > really know how to do it: > > > > I want to pass all the key/value pairs that are passed to the > > ASP script > > to a PHP script. I can get values with Request.Form("key_name"), but > > that takes hard-coding the name of the key. > > > > So if the following is passed to the ASP script: > > one=blue&two=red&three=yellow > > > > Then I would want to redirect to > > myscript.php?one=blue&two=red&three=yellow > > > > How do I go about walking through all the key/values that > > have been passed > > in ASP? I really don't want to have to learn this ugly language.. > >
I'm no ASP guru (never touched it actually), but...it seems as if this will add an extra "&" on the end of the url. myscript.php?one=blue&two=red&three=yellow& ^ -----Original Message----- From: Opec Kemp [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 9:47 AM To: [EMAIL PROTECTED] Cc: PHP General List Subject: RE: [PHP] Passing values from ASP to PHP Hi, To enumerate the key/value in ASP from the form you'd do this <% dim element dim objForm dim strURL '/* We're creating an object so that it won't matter which ' * HTTP method the previous form uses. ' */ If LCase(Server.Request("HTTP_METHOD")) = "post" Then Set objForm = Request.Form Else Set objForm = Request.QueryString End If strURL = "myscript.php?" '/* Now step through the form For each element in objForm '/* Key Name is in the "element" var ' * Value of the key is in the objForm(element) ' * Now build the Redirect string ' */ strURL = strURL & Server.URLEncode(element) & "="& Server.URLEncode(objForm(element)) & "&" Next '/* Now redirect Response.Redirect(strURL) %> That should do it. > > I've been given a project that I want to use PHP with, but > > unfortunately there are unchangable hard-coded values that point clients to an ASP > > script residing on our server. Here's what I want to do, and I don't > > really know how to do it: > > > > I want to pass all the key/value pairs that are passed to the > > ASP script > > to a PHP script. I can get values with Request.Form("key_name"), but > > that takes hard-coding the name of the key. > > > > So if the following is passed to the ASP script: > > one=blue&two=red&three=yellow > > > > Then I would want to redirect to > > myscript.php?one=blue&two=red&three=yellow > > > > How do I go about walking through all the key/values that > > have been passed > > in ASP? I really don't want to have to learn this ugly language.. > > -- 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]
A tactic I've been planning to use, but don't know if it actually works or not, is to disable the button first thing in its onClick so the second click occurs on a disabled button. Does anybody know if this actually works or not? - Theo -----Original Message----- From: John Huggins [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 3:04 PM To: Manuel Lemos; [EMAIL PROTECTED] Subject: RE: [PHP] Double Click If you are lucky and are feeding this form data to a database, you can create a unique hash field from other fields that would not change from click 1 to click 2. Then just make the database treat the hash as a unique index and it should prevent double entries. Works for me. Other advice is to not tell the double clicker that had an error; Just silently ignore their second request. > -----Original Message----- > From: Manuel Lemos [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 28, 2001 2:55 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Double Click > > > Hello Fabian, > > On 28-Feb-01 03:01:02, you wrote: > > > >Hi, > > >I have a page, and when I have to add a product I use a form, > many people are > >used to make double click in every task, so when the product is > sent with a > >double click in the send button, the program send it twice to > the data base. > > >What can I do to prevent this? > > You may want to try this forms generation class that lets you define a > warning message that shows when the user attempts to submit a form more > than once. > > http://phpclasses.UpperDesign.com/browse.html/package/1 > > 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 > -- > > > -- > 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 Thursday 01 March 2001 21:41, Brinkman, Theodore wrote: > A tactic I've been planning to use, but don't know if it actually works or > not, is to disable the button first thing in its onClick so the second > click occurs on a disabled button. Does anybody know if this actually > works or not? <script language="javascript"> <!-- var submitpressed; submitpressed=0; function submitcheck() { if(submitpressed) return false; submitpressed=1; return true; } //--> </script> <input type=button value="Submit" onClick="return submitcheck();"> > - Theo > > -----Original Message----- > From: John Huggins [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 28, 2001 3:04 PM > To: Manuel Lemos; [EMAIL PROTECTED] > Subject: RE: [PHP] Double Click > > > If you are lucky and are feeding this form data to a database, you can > create a unique hash field from other fields that would not change from > click 1 to click 2. Then just make the database treat the hash as a > unique index and it should prevent double entries. Works for me. > > Other advice is to not tell the double clicker that had an error; Just > silently ignore their second request. > > > -----Original Message----- > > From: Manuel Lemos [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 28, 2001 2:55 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] Double Click > > > > > > Hello Fabian, > > > > On 28-Feb-01 03:01:02, you wrote: > > >Hi, > > > > > >I have a page, and when I have to add a product I use a form, > > > > many people are > > > > >used to make double click in every task, so when the product is > > > > sent with a > > > > >double click in the send button, the program send it twice to > > > > the data base. > > > > >What can I do to prevent this? > > > > You may want to try this forms generation class that lets you define a > > warning message that shows when the user attempts to submit a form more > > than once. > > > > http://phpclasses.UpperDesign.com/browse.html/package/1 > > > > 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 > > -- > > > > > > -- > > 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 would like to know if its possible from a javascript function call a php function (uiuiuiuiui...) ? This because I have a bidimensional array, and when user select a option of a checbox, on javascript function I read the selectedIndex and want to see the values of that name ( see arr[selectedIndex] with for cicle). If not possible(and I think it isnt), there is any solution? TY all Best Regards Miguel Loureiro <[EMAIL PROTECTED] >
Javascript (js) is client side and PHP is server side. So what you can do to call the php function is by re-submitting the page, with somekind of a flag from the js to call the php function. You write the php parts like: if($flag) callTheFunctions(args); Reuben D. B At 04:28 PM 3/1/01 +0000, Miguel Loureiro wrote: >Hello all >I would like to know if its possible from a javascript function call a php >function (uiuiuiuiui...) ? >This because I have a bidimensional array, and when user select a option >of a checbox, on javascript function I read the selectedIndex and want to >see the values of that name ( see arr[selectedIndex] with for cicle). >If not possible(and I think it isnt), there is any solution? >TY all >Best Regards >Miguel Loureiro <[EMAIL PROTECTED] >
Jason Murray <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > PHPSlash is really goodd, although user management won't be > > out until .7 and .6 was just released. PHPNuke has usermanagement, > > but from what I hear its not all that customizable.. Check out phpslash > > at www.phpslash.org.. they aren't running phpslash on that site currently > > due to DB difficulties with the host (i.e., requested the DB and am still > > waiting..) > > I'm evaluating PHPNuke at the moment. It certainly seems to have the > goods on customisation. > > Besides which, you can always edit and fiddle :) I'm working on one at the moment that'll (hopefully, fingers crossed) be fully customisable. And the admin/users area has permissions. Which is something PHPNuke is lacking in. -- Rick Hodger [EMAIL PROTECTED]
Hi! please i'm really in need of knowing if there is a way to do a php statement once a button is clicked! Thanks _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Um...yeah. Make the action of the form with the button be a script with the statement. ----- Original Message ----- From: kaab kaoutar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 11:59 AM Subject: [PHP] pleaaaaaaaase help! > Hi! > please i'm really in need of knowing if there is a way to do a php statement > once a button is clicked! > Thanks > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] >
Uh huh, I agree. You can't run client-side PHP, it's called javascript. On 3/1/01 12:01 PM this was written: > Um...yeah. Make the action of the form with the button be a script with the > statement. > > ----- Original Message ----- > From: kaab kaoutar <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, March 01, 2001 11:59 AM > Subject: [PHP] pleaaaaaaaase help! > > >> Hi! >> please i'm really in need of knowing if there is a way to do a php > statement >> once a button is clicked! -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
Hey all. I've written htaccess files and stuff with one or 2 users, and it works fine. I decided that making an htgroup file would work best in my situation though, so I went to webmonkey.com and followed their tutorial to make the htaccess files. As far as I can tell, all of my files are correct. But for some reason when I try to authenticate, the server won't take my info as valid. Has anyone else had this problem with using an htgroup file? Thanks. Jason
Also, consider getting PHP 4 on your system. PHP 3 is old hat. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 24, 2001 11:33 AM > To: George Alexander; [EMAIL PROTECTED] > Subject: Re: [PHP] Can't connect php to mysql on linux > > > Addressed to: "George Alexander" <[EMAIL PROTECTED]> > [EMAIL PROTECTED] > > ** Reply to note from "George Alexander" > <[EMAIL PROTECTED]> 24 Feb 2001 05:40:59 -0000 > > > > Hi, > > > > I working on Redhat Linux 6.1 and I've installed > > MySQL-3.23.33-1.i386.rpm and MySQL-client-3.23.33-1.i386.rpm. > > MySql is working fine. I've even created a database also using > > MySqlAdmin. > > Regarding Php I've installed php-3.0.18-1.6.x.i386.rpm and as for > > Apache : apache-1.3.14-2.6.2.i386.rpm. > > I've even installed php-mysql-3.0.16-1.i386.rpm and > > mod-php3-3.0.12-2.i386.rpm. > > > > My problem is I can't connect PHP to Mysql Db using the > > mysyql_connect("localhost","root","mypassword") command. > > > mypassword is the same password you used for mysqladmin, and the command > line interpreter for the root user, right? > > > Try this command and see what it returns. If the error message doesn't > give you a good idea what is wrong, please post again, including the > error message you receive. > > > mysql_connect( "localhost", "root", "mypassword" ) or > die( "Unable to connect<BR>" . mysql_error()); > > > I suggest you always use this code, along with: > > mysql_select_db( "database" ) or > die( "Unable to select<BR>" . mysql_error()); > > in every program you write. It is almost impossible to troubleshoot > problems if you don't know what went wrong. > > > > > Rick Widmer > Internet Marketing Specialists > http://www.developersdesk.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] >
Is exclusive locking not supported under windows? It doesn't seem to be working: flock($fd, LOCK_EX); -- Monte Ohrt <[EMAIL PROTECTED]> http://www.ispi.net/
The first release of PHP-GTK is now available. PHP-GTK is a PHP extension that provides an object-oriented interface to GTK+ toolkit and enables you to write client-side cross-platform GUI applications. For more information, visit http://gtk.php.net/. -Andrei UNIX is like sex: If you don't know it, you don't miss it. But if you know it, you'll need it. -- Anonymous.
Thanks! Does it mean that there is no way to execute a php statement after the click of a button ? then go to the other page mentionned in the form action ? >From: "Johnson, Kirk" <[EMAIL PROTECTED]> >To: "'kaab kaoutar'" <[EMAIL PROTECTED]> >Subject: RE: [PHP] pleaaaaaaaase help! >Date: Thu, 1 Mar 2001 10:47:58 -0700 > >Jason Jacobs has the right idea. Put the PHP code that you want to run in a >2nd file, for example, myScriptFile.php. Put this file name in the "ACTION" >attribute of your <FORM> tag in your first file. Then, when the user clicks >the "Submit" button in the first file, myScriptFile.php gets executed. > >Say your first file is named myForm.php and it contains the <FORM>. In this >file put: > ><FORM METHOD = "post" ACTION = "myScriptFile.php"> ><INPUT TYPE = "submit"> > >Put your PHP code in the file named myScriptFile.php. > >You see, you have to hit the server again to run the PHP code. If you want >the code to run in *real time without leaving the first page* (myForm.php), >you need to use JavaScript to do that. > > >-----Original Message----- >From: kaab kaoutar [mailto:[EMAIL PROTECTED]] >Sent: Thursday, March 01, 2001 10:23 AM >To: Johnson, Kirk >Subject: RE: [PHP] pleaaaaaaaase help! > > >I don't get what u mean ! >i know that one is client side and the other server side! > > > >From: "Johnson, Kirk" <[EMAIL PROTECTED]> > >To: "'kaab kaoutar'" <[EMAIL PROTECTED]> > >Subject: RE: [PHP] pleaaaaaaaase help! > >Date: Thu, 1 Mar 2001 10:01:47 -0700 > > > >Not without hitting the server! > > > >PHP works on the server side, JavaScript works on the client side. > > > >-----Original Message----- > >From: kaab kaoutar [mailto:[EMAIL PROTECTED]] > >Sent: Thursday, March 01, 2001 9:59 AM > >To: [EMAIL PROTECTED] > >Subject: [PHP] pleaaaaaaaase help! > > > > > >Hi! > >please i'm really in need of knowing if there is a way to do a php > >statement > > > >once a button is clicked! _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Not exactly. I mean, like I said, you can execute a script as the action, but if you have output generated by the script, a redirect using header() or a javacsript redirect won't work (I think). You could either write all of the output (don't ask me how, but I'm sure it's possible) to a file, redirect, and then output the file you wrote, or what I would probably do myself is make a link saying "continue" to the page you want the user redirected to. But, no, you can't execute PHP code with a button (or any form element) that I'm aware of, and as far as I know without submitting the form. Jason ----- Original Message ----- From: kaab kaoutar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 1:00 PM Subject: [PHP] Javascript & php > > Thanks! > Does it mean that there is no way to execute a php statement > after the click of a button ? then go to the other page mentionned in the > form action ?
Heh...I'm a list frequenter today... Ok, so I want to be able to do some things with php. 1) add a user to the .htpasswd file I know I can use exec() to run commands on the server. The problem here is that when I do "htpasswd .htpasswd username" I get prompted for passwords twice. How the heck can I do that with php? Will this work (I just thought of this right now...): exec("htpasswd& .htpasswd username"); exec("password"); exec("password"); If this works, that would be great. I would assume that after this, the program stops and I don't have something running in the background. 2&3)edit the .htgroup and .htaccess files I have no idea how to do this at all whatsoever. I don't want the person running this script to have to see or touch the file at all, but I'm thinking that I'm going to have to, like, read the file into a textarea and make the user edit it and then save it again. That's going to be a pain in the butt when the user is office personnel that doesn't know this stuff from french. Throughtout this all, I don't want any output. I just want the scripts to run and then redirect back to the page it was submitted from. Whew...any ideas? I'm not going to have to learn perl just for this am I? ;^) Thanks a bunch Jason