[PHP] Japanese character validation
Hi Gurus, (B (BI am new to PHP. I am using PHP4 on Linux. (B (BI have accept input from the user and check if the input is japanese (Bcharacter only, (Bfor example : If name is accepted , I need to check if its any of the (BHiragana, Katakana or Kanji. (B (BI have enabled multibyte support while compiling PHP. (B (BAs there is jcode.pl in perl, I want to know if there is something in PHP. (BCan anybody help me in this regard. (B (BThanking you in anticipation. (B (BRegards, (B (BUmesh.
[PHP] PHP developers
Can anyone recommend a good place where I can find some talented PHP contractors? I'm looking to hire some people for some upcoming projects, and I don't want to just put an ad in the paper and get a bunch of responses from barely-qualified people. Thanks, J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php.net links
hello, i was wondering who i would need to contact to submit my site to the php.net links page. my site is stargeek.com, thanks -dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Japanese character validation
Hi, On Fri, 7 Nov 2003 12:58:51 +0530 umesh [EMAIL PROTECTED] wrote: Hi Gurus, I am new to PHP. I am using PHP4 on Linux. I have accept input from the user and check if the input is japanese character only, for example : If name is accepted , I need to check if its any of the Hiragana, Katakana or Kanji. Hmm... why would you like to do that? I've never really seen the need for that. I'm sure there will be a lot of issues if you want to write one yourself... I have enabled multibyte support while compiling PHP. As there is jcode.pl in perl, I want to know if there is something in PHP. Can anybody help me in this regard. That's a library for character code conversion. PHP can do that as well: http://www.php.net/mbstring - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] passing random variables names
Hi all, I made a form which pass constant variables which never change (Ex. product_name) and dynamic variables which i withdraw from the db (Ex. attribute_id = 1, value = color). Now my problem is with the passing of the dynamic variables. Because the fields can change their name (id's) i need to design my functions so they will know how to receive them. I used to make an array in the form (Ex. attribute_id[0], attribute_id[1] where the numbers in the [] are the id numbers from the db) and then at the function i used to $_POST['attribute_id'] and then withdraw from them their id's and values. I read that this kind of passing variables is making problems with javascripting (and maybe it violate W3C standards). Is there a way that i can pass names like attribute_id_X where X is the changing name and the function will be able to withdraw it like $_POST['attribute_id_X'], or any other way which doesnt violate W3C standards? Any help will be greatly appreciated, Thanks -- My friends are worth gold to me, so I prefer to sell them and get rich! Ben-Nes Yonatan Canaan Surfing Ltd Tel: 972-4-6991122 Fax: 972-4-6990098 http://www.canaan.net.il --
Re: [PHP] passing random variables names
On Fri, 2003-11-07 at 09:40, Yonatan Ben-Nes wrote: Hi all, I made a form which pass constant variables which never change (Ex. product_name) and dynamic variables which i withdraw from the db (Ex. attribute_id = 1, value = color). Now my problem is with the passing of the dynamic variables. Because the fields can change their name (id's) i need to design my functions so they will know how to receive them. I used to make an array in the form (Ex. attribute_id[0], attribute_id[1] where the numbers in the [] are the id numbers from the db) and then at the function i used to $_POST['attribute_id'] and then withdraw from them their id's and values. I read that this kind of passing variables is making problems with javascripting (and maybe it violate W3C standards). Is there a way that i can pass names like attribute_id_X where X is the changing name and the function will be able to withdraw it like $_POST['attribute_id_X'], or any other way which doesnt violate W3C standards? Any help will be greatly appreciated, It should be possible to access these kind of fields in javascript. Eg. if you have an input field named attribute_id[1] you access that field by doing like this: documents.form_name.elements['attribute_id[1]'].value Try that Thanks -- My friends are worth gold to me, so I prefer to sell them and get rich! Ben-Nes Yonatan Canaan Surfing Ltd Tel: 972-4-6991122 Fax: 972-4-6990098 http://www.canaan.net.il -- -- Venlig hilsen / Best regards, Jacob Vennervald System Developer Proventum Solutions ApS Tuborg Boulevard 12 2900 Hellerup Denmark Phone: +45 36 94 41 66 Mobile: +45 61 68 58 51 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] trouble with forcing output to be cached
Hallo all, I would like to force PHP generated images to cache on client-side. just for reduce traffic and speed of pageloading. The problem is that PHP adds some headers by default, They are: Cache-Control : no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma : no-cache :) it is possible to rewite Cache-Control header with private ar public values. bet Pragma do not have positive value :) so i found that i cant set Empty header(Pragma: ); :) and it works :) except one browser - Opera :). i know that it is Operas problem, but is there any idea to absolutely remove response header ? or block PHP to add its own headers ? -- Ilja Polivanovas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP developers
http://www.weberdev.com/jobmatching/about.php3 Sincerely berber Visit http://www.weberdev.com/ http://www.weberblog.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com Search for PHP Code from your browser http://toolbar.weberdev.com Share your thoughts : http://www.weberblog.com/submit.php?type=storytopic=PHP_Web_Logs -Original Message- From: James [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:00 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP developers Can anyone recommend a good place where I can find some talented PHP contractors? I'm looking to hire some people for some upcoming projects, and I don't want to just put an ad in the paper and get a bunch of responses from barely-qualified people. Thanks, J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Japanese character validation
Hi Edwin, Original Message- From: - Edwin - [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 2:02 PM To: umesh Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Japanese character validation Hi, On Fri, 7 Nov 2003 12:58:51 +0530 umesh [EMAIL PROTECTED] wrote: Hi Gurus, I am new to PHP. I am using PHP4 on Linux. I have accept input from the user and check if the input is japanese character only, for example : If name is accepted , I need to check if its any of the Hiragana, Katakana or Kanji. Hmm... why would you like to do that? I've never really seen the need for that. As there are fields called Last First Name (Kanji) and Last First name (Kana) on my forms. Its the need of the application. It would be great, If I could do that. I'm sure there will be a lot of issues if you want to write one yourself... Actually, I have tried to do it, but it wont understand some characters. Like . I have enabled multibyte support while compiling PHP. As there is jcode.pl in perl, I want to know if there is something in PHP. Can anybody help me in this regard. That's a library for character code conversion. PHP can do that as well: http://www.php.net/mbstring - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/
Re: [PHP] Japanese character validation
umesh wrote: As there are fields called Last First Name (Kanji) and Last First name (Kana) on my forms. Its the need of the application. It would be great, If I could do that. Are Kanji and Kana chracter sets? Form cannot use more charsets. Charset that your script receives will be the same as the charset the page uses. Marek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SQL Injections
Hi, does anyone know of a function i can include in my scrpits to ensure all $_POST values sent from a page don't include any SQL? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Multiple Image Uploads
Jay Fitzgerald wrote: I tried posting my code to the list but there are around 800+ lines of code and my email keeps bouncingi am open to suggestions? Jay Only 500+. And all that I need to know is that Undefined index notice. Search the archives for that string. Marek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cross Site Scripting
Hi, Is there a way to filter metacharacters from all $_POST values sent from pages on my site in an effort to eliminate the majority of XSS attacks? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Japanese character validation
No, Kanji Kana are not charsets. The form is having charset EUC-JP. Umesh. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 3:08 PM To: umesh Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Japanese character validation umesh wrote: As there are fields called Last First Name (Kanji) and Last First name (Kana) on my forms. Its the need of the application. It would be great, If I could do that. Are Kanji and Kana chracter sets? Form cannot use more charsets. Charset that your script receives will be the same as the charset the page uses. Marek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can i run DOS command from browser
Hi, Any one know that how can me run a script from command line after receving the input from FORM thru browser thnx
[PHP] PHP Conf 2004 Sofia, Bulgaria
The first Web Technology conference in Bulgaria will be held in March 2004 at the city of Sofia. Within its framework, the first PHP conference will be held. The purpose of this meeting is to discuss the new tendencies in this direction and to popularize the Internet technologies in the spheres of business, education, services and to support the technological progress of Bulgaria. The range of subjects includes technologies like PHP, ASP, PERL, Escapade, Business systems through Web, education through the Internet, and others. Registration and information here: http://webdevmagazine.co.uk/conf/index_n.php Regards Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] passing random variables names
On 07 November 2003 08:41, Yonatan Ben-Nes wrote: Hi all, I made a form which pass constant variables which never change (Ex. product_name) and dynamic variables which i withdraw from the db (Ex. attribute_id = 1, value = color). Now my problem is with the passing of the dynamic variables. Because the fields can change their name (id's) i need to design my functions so they will know how to receive them. I used to make an array in the form (Ex. attribute_id[0], attribute_id[1] where the numbers in the [] are the id numbers from the db) and then at the function i used to $_POST['attribute_id'] and then withdraw from them their id's and values. I read that this kind of passing variables is making problems with javascripting Only if you want to do certain things, and then only if you don't understand the relevant features of JavaScript ;) (and maybe it violate W3C standards). It doesn't. Is there a way that i can pass names like attribute_id_X where X is the changing name and the function will be able to withdraw it like $_POST['attribute_id_X'], or any other way which doesnt violate W3C standards? Stick to what you're doing -- it's the best PHP-wise, and causes only minimal inconvenience in your JavaScript in certain well-defined cases. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cross Site Scripting
Shaun wrote: Hi, Is there a way to filter metacharacters from all $_POST values sent from pages on my site in an effort to eliminate the majority of XSS attacks? htmlentities() preg_match_all() -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQL Injections
Shaun wrote: Hi, does anyone know of a function i can include in my scrpits to ensure all $_POST values sent from a page don't include any SQL? preg_match_all() -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQL Injections
On Fri, Nov 07, 2003 at 09:43:20AM -, Shaun wrote: : : does anyone know of a function i can include in my scrpits to ensure all : $_POST values sent from a page don't include any SQL? If you're using MySQL, look at mysql_escape_string(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to support Multi Lingual characters
Dear List, I would like to support Multi lingual characters using PHP in my application. How can I support? Does PHP automatically supports this feature. Please let me know. I will be really waiting for your suggestions -- Thanks Regards Praveen Kumar SoftPro Systems Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to support Multi Lingual characters
(Byes, though compile PHP with japanese support, you can accept input in (BEnglish as well. (B (BUmesh. (B (B-Original Message- (BFrom: K. Praveen Kumar [mailto:[EMAIL PROTECTED] (BSent: Friday, November 07, 2003 4:16 PM (BTo: [EMAIL PROTECTED]; Praveen Kumar (BSubject: [PHP] How to support Multi Lingual characters (B (B (BDear List, (B I would like to support Multi lingual characters using PHP in my (Bapplication. How can I support? Does PHP automatically supports this (Bfeature. Please let me know. (B I will be really waiting for your suggestions (B-- (BThanks Regards (BPraveen Kumar (BSoftPro Systems Ltd (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
Pablo Gosse wrote: Hi Burhan. I have a quick question about what you write below that I don't want to post to the whole list? What is it meant to top post? I've mainly been a lurker in forums such as phpbuilder and devshed until recently, but this list is proving to be a much better resource than those two. Can you please let me know what it means to top post when you have a moment? Top post means posting on top of the text (what you did). Always paste below the text that you are replying to (what I did). -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to support Multi Lingual characters
Dear Umesh, Thanks for your quick reply. Let me explain the scenario: We have an application in English. The data will be stored in MySQL database. If some body enter the data using Japanese keyboard (Japanese language) that will be stored in Japanese language only and should display in the same language. Can it be done?? -- Thanks Regards Praveen Kumar SoftPro Systems Ltd On Fri, 2003-11-07 at 16:17, umesh wrote: yes, though compile PHP with japanese support, you can accept input in English as well. Umesh. -Original Message- From: K. Praveen Kumar [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 4:16 PM To: [EMAIL PROTECTED]; Praveen Kumar Subject: [PHP] How to support Multi Lingual characters Dear List, I would like to support Multi lingual characters using PHP in my application. How can I support? Does PHP automatically supports this feature. Please let me know. I will be really waiting for your suggestions -- Thanks Regards Praveen Kumar SoftPro Systems Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---SOFTPRO DISCLAIMER-- Information contained in this E-MAIL and any attachments are confidential being proprietary to SOFTPRO SYSTEMS is 'privileged' and 'confidential'. If you are not an intended or authorised recipient of this E-MAIL or have received it in error, You are notified that any use, copying or dissemination of the information contained in this E-MAIL in any manner whatsoever is strictly prohibited. Please delete it immediately and notify the sender by E-MAIL. In such a case reading, reproducing, printing or further dissemination of this E-MAIL is strictly prohibited and may be unlawful. SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment hereto is free from computer viruses or other defects. The opinions expressed in this E-MAIL and any ATTACHEMENTS may be those of the author and are not necessarily those of SOFTPRO SYSTEMS. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
On Fri, Nov 07, 2003 at 01:55:45PM +0300, Burhan Khalid wrote: : : Pablo Gosse wrote: : : What is it meant to top post? I've mainly been a lurker in forums : such as phpbuilder and devshed until recently, but this list is : proving to be a much better resource than those two. : : Top post means posting on top of the text (what you did). Always paste : below the text that you are replying to (what I did). http://www.faqs.org/docs/jargon/T/top-post.html http://www.faqs.org/docs/jargon/B/bottom-post.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQL Injections
If you delete all reserved words from a string then this sentence would become: you reserved words a this sentence would become :) You want to ensure the incoming variables are not INTERPRETED as sql. Properly escape and quote the input. Shaun wrote: Hi, does anyone know of a function i can include in my scrpits to ensure all $_POST values sent from a page don't include any SQL? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Source code
Dear Chris, Thanks for the response. 1. What I want is to view the files offline. Is there any thing like Anonymous FTP or a zipped version of the entire site? 2. How can I see the php version of the documentation. I didnt find the php version any where in the documentation. Thanks Regards, ___ PHPLover Göd döësn't pläy dícë. - Älbërt Ëínstëín -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:27 PM To: John Nichel; PHPLover Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Source code 1. Is it possible to download the entire PHP site so that i can learn from the source code at my liesure. I know that source code of PHP can be accessible through CVS but is there any anonymous FTP or a zip file download? Not to my knowledge. If you don't like using CVS, you can always browse the source here: http://cvs.php.net/cvs.php/phpweb Of course, someone else could do a simple CVS checkout for you or something. But, I don't see why CVS isn't sufficient for what you're wanting. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to support Multi Lingual characters
(BDear Praveen, (B (BYes, you can do it very easily, first of all, please see if you have (Bcompiled PHP with multibyte support, (Bif not you will have to recompile the PHP with follow. options (B--enable-mbstring=all or --enable-mbstring ( will enable only Japanese (Blanguage support) (B (BRegards, (B (Bumesh. (B (B-Original Message- (BFrom: K. Praveen Kumar [mailto:[EMAIL PROTECTED] (BSent: Friday, November 07, 2003 4:39 PM (BTo: umesh (BCc: [EMAIL PROTECTED] (BSubject: RE: [PHP] How to support Multi Lingual characters (B (B (BDear Umesh, (B Thanks for your quick reply. Let me explain the scenario: (BWe have an application in English. The data will be stored in MySQL (Bdatabase. If some body enter the data using Japanese keyboard (Japanese (Blanguage) that will be stored in Japanese language only and should (Bdisplay in the same language. Can it be done?? (B (B-- (BThanks Regards (BPraveen Kumar (BSoftPro Systems Ltd (BOn Fri, 2003-11-07 at 16:17, umesh wrote: (B yes, though compile PHP with japanese support, you can accept input in (B English as well. (B (B Umesh. (B (B -Original Message- (B From: K. Praveen Kumar [mailto:[EMAIL PROTECTED] (B Sent: Friday, November 07, 2003 4:16 PM (B To: [EMAIL PROTECTED]; Praveen Kumar (B Subject: [PHP] How to support Multi Lingual characters (B (B (B Dear List, (B I would like to support Multi lingual characters using PHP in my (B application. How can I support? Does PHP automatically supports this (B feature. Please let me know. (B I will be really waiting for your suggestions (B -- (B Thanks Regards (B Praveen Kumar (B SoftPro Systems Ltd (B (B -- (B PHP General Mailing List (http://www.php.net/) (B To unsubscribe, visit: http://www.php.net/unsub.php (B (B (B---SOFTPRO DISCLAIMER-- (BInformation contained in this E-MAIL and any attachments are confidential (Bbeing proprietary to SOFTPRO SYSTEMS is 'privileged' and 'confidential'. (BIf you are not an intended or authorised recipient of this E-MAIL or have (Breceived it in error, You are notified that any use, copying or (Bdissemination of the information contained in this E-MAIL in any manner (Bwhatsoever is strictly prohibited. Please delete it immediately and notify (Bthe sender by E-MAIL. In such a case reading, reproducing, printing or (Bfurther dissemination of this E-MAIL is strictly prohibited and may be (Bunlawful. SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment (Bhereto is free from computer viruses or other defects. The opinions (Bexpressed in this E-MAIL and any ATTACHEMENTS may be those of the author and (Bare not necessarily those of SOFTPRO (BSYSTEMS. --- (B- (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to support Multi Lingual characters
Please refer the follow. URL. (B (Bhttp://www.php.net/manual/en/ref.mbstring.php (B (B-Original Message- (BFrom: K. Praveen Kumar [mailto:[EMAIL PROTECTED] (BSent: Friday, November 07, 2003 4:39 PM (BTo: umesh (BCc: [EMAIL PROTECTED] (BSubject: RE: [PHP] How to support Multi Lingual characters (B (B (BDear Umesh, (B Thanks for your quick reply. Let me explain the scenario: (BWe have an application in English. The data will be stored in MySQL (Bdatabase. If some body enter the data using Japanese keyboard (Japanese (Blanguage) that will be stored in Japanese language only and should (Bdisplay in the same language. Can it be done?? (B (B-- (BThanks Regards (BPraveen Kumar (BSoftPro Systems Ltd (BOn Fri, 2003-11-07 at 16:17, umesh wrote: (B yes, though compile PHP with japanese support, you can accept input in (B English as well. (B (B Umesh. (B (B -Original Message- (B From: K. Praveen Kumar [mailto:[EMAIL PROTECTED] (B Sent: Friday, November 07, 2003 4:16 PM (B To: [EMAIL PROTECTED]; Praveen Kumar (B Subject: [PHP] How to support Multi Lingual characters (B (B (B Dear List, (B I would like to support Multi lingual characters using PHP in my (B application. How can I support? Does PHP automatically supports this (B feature. Please let me know. (B I will be really waiting for your suggestions (B -- (B Thanks Regards (B Praveen Kumar (B SoftPro Systems Ltd (B (B -- (B PHP General Mailing List (http://www.php.net/) (B To unsubscribe, visit: http://www.php.net/unsub.php (B (B (B---SOFTPRO DISCLAIMER-- (BInformation contained in this E-MAIL and any attachments are confidential (Bbeing proprietary to SOFTPRO SYSTEMS is 'privileged' and 'confidential'. (BIf you are not an intended or authorised recipient of this E-MAIL or have (Breceived it in error, You are notified that any use, copying or (Bdissemination of the information contained in this E-MAIL in any manner (Bwhatsoever is strictly prohibited. Please delete it immediately and notify (Bthe sender by E-MAIL. In such a case reading, reproducing, printing or (Bfurther dissemination of this E-MAIL is strictly prohibited and may be (Bunlawful. SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment (Bhereto is free from computer viruses or other defects. The opinions (Bexpressed in this E-MAIL and any ATTACHEMENTS may be those of the author and (Bare not necessarily those of SOFTPRO (BSYSTEMS. --- (B- (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How can i run DOS command from browser
from the manual ?php echo 'pre'; // Outputs all the result of shellcommand ls, and returns // the last output line into $last_line. Stores the return value // of the shell command in $retval. $last_line = system('ls', $retval); // Printing additional info echo ' /pre hrLast line of the output: '.$last_line.' hrReturn value: '.$retval; ? also see passthru pete Imran wrote: Hi, Any one know that how can me run a script from command line after receving the input from FORM thru browser thnx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: trouble with forcing output to be cached
This posting has made me think.. Problem is server side because the script executes to create the image and the script runs every time.. Try writing out the image to a file and then send that to the browser psuedo code if image NOT exists create it write to file embed file pete Ilja Polivanov wrote: Hallo all, I would like to force PHP generated images to cache on client-side. just for reduce traffic and speed of pageloading. The problem is that PHP adds some headers by default, They are: Cache-Control : no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma : no-cache :) it is possible to rewite Cache-Control header with private ar public values. bet Pragma do not have positive value :) so i found that i cant set Empty header(Pragma: ); :) and it works :) except one browser - Opera :). i know that it is Operas problem, but is there any idea to absolutely remove response header ? or block PHP to add its own headers ? -- Ilja Polivanovas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mysql_field_type() ...
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... ...will say if a field is of type ENUM, but not its possible values (including default). Does anyone know how I can fetch possible values of a field type of ENUM? Thanks. ...Rene Try this little function which I use as an include file; there are possibly other and/or better ways to do it. Watch out for linewrap :-0 ?php function mysql_fetch_enums( $link, $table_name, $field_name ){ /* Takes a connection link identifier, MySQL table name and field name for an enum type field Returns an associative array containing the enum values as both key and value,ready to feed to dropdown.inc; or 0 on error */ global $database; mysql_select_db($database); $mysql_datatype_field = 1; if (!$result = mysql_query (SHOW COLUMNS FROM $table_name LIKE '$field_name', $link ) ){ $output=0; echo mysql_error(); } else { $mysql_column_data = mysql_fetch_row( $result ); if ( !$enum_data= $mysql_column_data[$mysql_datatype_field] ){ $output=0; } else if ( !$buffer_array=explode(', $enum_data) ){ $output = 0; } else { $I = 0; reset ($buffer_array); while (list(, $value) = each ($buffer_array)) { if( $I % 2 ) $output[stripslashes($value)] = stripslashes($value); ++$I; } } } return $output; } ? -- Quod subigo farinam A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Stats] PHP Net List: October 2003
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Probably because nobody wants to risk offending John--or (more likely) because no one will admit knowing who the other John Holmes is ;-) Cheers, Marco -- php|architect - The Magazine for PHP Professionals Try us free at http://www.phparch.com! Complete searchable PHP mailing list archives at http://www.phparch.com/mailinglists Roger Spears wrote: That is funny stuff..I often wonder why no one ever cracks jokes or makes a connection... John W. Holmes wrote: John Nichel wrote: Hey, I beat John Holmes You mean you're bigger than 14 inc... err, nevermind, you're talking about something else... But the other one is dead -- Quod subigo farinam A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How can i run DOS command from browser
imran wrote: Any one know that how can me run a script from command line after receving the input from FORM thru browser Assuming your talking about running a program on the server, take a look at exec(). If you're wanting to run something on the user's computer, ummm, no. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cross Site Scripting (and SQL Injection)
Shaun wrote: Is there a way to filter metacharacters from all $_POST values sent from pages on my site in an effort to eliminate the majority of XSS attacks? There's no magic function that's going to protect you from Cross Site Scripting or SQL Injection. Do you honestly even know what they are or how they work? You need to understand that first. Then, once you understand what's going on, htmlentities(), addslashes(), etc, will help. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
Oh.. I'm personally trying to avoid not top-posting, cause I think it's nicer when ppl place the message at the top where I can read it instantly without scrolling down.. :s So why bottompost? -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are using windows, you may be infected by Swen. Please go here to find out more: http://us.mcafee.com/virusInfo/default.asp?id=helpCenterhcName=swen http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ## Burhan Khalid [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Pablo Gosse wrote: Hi Burhan. I have a quick question about what you write below that I don't want to post to the whole list? What is it meant to top post? I've mainly been a lurker in forums such as phpbuilder and devshed until recently, but this list is proving to be a much better resource than those two. Can you please let me know what it means to top post when you have a moment? Top post means posting on top of the text (what you did). Always paste below the text that you are replying to (what I did). -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Some Information on A Help Database Application Using PHP and XML
Et al, I'm interested in either designing or participating in a current project which utilizes PHP and XML to create a documentation application. My company (caravelcms.org) has designed a content management system using PHP and we are currently investigating how we can document effectively our various userland functions. Instead of re-inventing the wheel, I thought I'd put a call out to the PHP community to see if you could push me in the right direction. Basically, what I want is a way of writing and storing and inter-linking documentation for our application. It seems XML would be the best route to go, but I'd prefer the documentation app to also be in PHP. I'd imagine others have had a similar desire and perhaps an app is out there already. If anyone has insite, please let me know. Sincerely, Peter John Hartman caravelcms.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] BTML 2.0 released!!!
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on mailing lists? [snip] Oh.. I'm personally trying to avoid not top-posting, cause I think it's nicer when ppl place the message at the top where I can read it instantly without scrolling down.. :s So why bottompost? [/snip] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: BTML 2.0 released!!!
Some comments in the code would be nice too. It's too much of a bother to decipher code without indentation or comments. -Rob -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:21 AM To: [EMAIL PROTECTED] Subject: BTML 2.0 released!!! Okay, i am happy that BTML 2.0 is released(finally) It is also known as BTML Template Edition. The 3 files(the parser, a simple template and a test BTML-file) btmltpl.php --- ?php function tpl2html($title, $images, $text, $tplfile = simple.tpl, $links = ) { $tpldata = file_get_contents($tplfile); $trans = array('%title%' = $title, '%text%' = $text, '%images%' = $images, '%links%' = $links); $html = strtr($tpldata, $trans); return $html; } function parseTags($file) { /* readfile... here */ $filedata = file_get_contents($file); $tag_match =(!bttag=(\w*)\s*(.*?)\s*/bttag!is); preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tag['tagname'] = $tagname; $tag['value'] = $matches[2][$i]; $tags[] = $tag; } return $tags; } include_once template.php; $filename = $_GET['name']; $bttags = parseTags($filename); // echo HTMLHEAD; foreach($bttags as $tag) { switch($tag['tagname']) { case 'title': $title = $tag['value']; // echo TITLE . $tag['value'] . /TITLE/HEADBODY; // echo H1 . $tag['value'] . /h1br; break; case 'heading': $completetext .= h1 . $tag['value'] . /h1br; // echo H1 . $tag['value'] . /h1br; break; case 'image': if (!empty($tag['value'])) { // echo IMG SRC=\ . $tag['value'] . \; $images .= IMG SRC=\ . $tag['value'] . \br; } break; case 'text': // echo nl2br($tag['value']); $completetext .= nl2br($tag['value']); break; case 'nl': // echo br\n; $completetext .= br; break; case 'template': $templatefile = $tag['value']; break; case 'link': $links .= a href= . $tag['value'] . . $tag['value'] . /abr } } // echo /body/html; if (empty($templatefile)) { echo tpl2html($title, $images, $completetext); } else { echo tpl2html($title, $images, $completetext, $templatefile); } ? --- simple.tpl --- HTML HEADTITLE%title%/TITLE/HEAD BODY centerh1%title%/h1/centerbr hr %text%brbr Images: br %images% /BODY /HTML --- And test.btm --- bttag=title Welcome to BTML page v1! /bttag bttag=text Welcome to my BTML page!!! This is an experimentally version of HTML!!! brBye!!! /bttag bttag=nl /bttag bttag=heading Bye /bttag --- Hope that you like it and please tell me wat you think of it, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
Well, that's a bit overdue... I don't reverse the order of my posts... But anyway... I guess not everyone (you for example) follow threads like I do... -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are using windows, you may be infected by Swen. Please go here to find out more: http://us.mcafee.com/virusInfo/default.asp?id=helpCenterhcName=swen http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ## Jay Blanchard [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on mailing lists? [snip] Oh.. I'm personally trying to avoid not top-posting, cause I think it's nicer when ppl place the message at the top where I can read it instantly without scrolling down.. :s So why bottompost? [/snip] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] BTML 2.0 released!!!
[snip] Well, that's a bit overdue... I don't reverse the order of my posts... But anyway... I guess not everyone (you for example) follow threads like I do... [/snip] If you top post you ARE reversing the order of the post. And everyone does not follow threads the way that you do. Top posting has been a concern on usenet and mailing lists since before you typed your first line of code. The newbie list mentions it. BTW PHP rocks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
I mainly bottom-post, but sometimes top-post. I love it when snobs jump in and add no meaningful information to the technical subject of the thread (like I'm doing now) but instead get on their soap-box about you must always bottom post, blah, blah, blah, it messes up my way of reading. And for the heck of it, I've going to top *and* bottom post DvDmanDT wrote: Oh.. I'm personally trying to avoid not top-posting, cause I think it's nicer when ppl place the message at the top where I can read it instantly without scrolling down.. :s So why bottompost? That said, I think bottom posting (with proper stripping of the original message) is overall the best way to go. -eric wood -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Themes/Wallpapers
Hi, Wouldn't that be good if PHP is on the desktop. I feel that we can show our support to PHP by putting wallpapers, themes or ICON's. I can't find any themes/wallpapers with PHP logo on the net. If you find any pls let me know Thanks Regards, ___ PHPLover Göd döësn't pläy dícë. - Älbërt Ëínstëín -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] BTML 2.0 released!!!
[snip] snobs jump in [/snip] What is funny about that is that it is those snobs who folks ask their questions to. It is those snobs who solve problems for others. It is those snobs who have learned and experienced so that others may benefit. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Themes/Wallpapers
Isn't there things like that on the official php.net site? -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are using windows, you may be infected by Swen. Please go here to find out more: http://us.mcafee.com/virusInfo/default.asp?id=helpCenterhcName=swen http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ## Phplover [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, Wouldn't that be good if PHP is on the desktop. I feel that we can show our support to PHP by putting wallpapers, themes or ICON's. I can't find any themes/wallpapers with PHP logo on the net. If you find any pls let me know Thanks Regards, ___ PHPLover Göd döësn't pläy dícë. - Älbërt Ëínstëín -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.3.2, HTML and MSSQL2000
Hi All, I'm having trouble with a input box disappearing when using php to generate the input box. I tested this script in a test.htm and worked fine. Does it have something to do with the script being inside the div/div statement? Any help would be appreciated. Thanks div id=Oobj220 style=position:absolute;z-index:74;visibility:visible; left:612px;top:96px;width:110px;height:21px; span id=Ggeo201 class=dfltt ?php $link = mssql_connect(server) or die (Not Connected); $db = mssql_select_db(database)or die (Unable to connect to database); $sql= SELECT CId, ReportNum FROM tblCounter WHERE CId = 1; $sql_result= mssql_query($sql,$link) or die (Query not executed); function RepInc($reportnum) { $reportnum += 1; } while ($row = mssql_fetch_array($sql_result)) { $cid = $row[CId];$reportnum = $row[ReportNum]; } RepInc($reportnum); echo input type=text name=reportnum size=20 value=$reportnum; mssql_free_result($sql_result); mssql_close($link); ? /span /div -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] COM and PHP.ini
(PHP 4.3.0, Windows XP Pro, Office 2000 Pro) Hello, Just playing around with COM, and I got the error below. Searching on google it mentions something about a DLL error. Iv'e enabled dcom in php.ini. What have I missed! Line 2 says $excel = new COM(Excel.Application) or die(Excel could not be started); THANK! Warning: (null)(): Unable to obtain IDispatch interface for CLSID {00024500---C000-0046}: Server execution failed in c:\websites\excel.php on line 2 Fatal error: Maximum execution time of 30 seconds exceeded in c:\websites\excel.php on line 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP developers
craigslist.org, it's free and I've heard nothing but good things from people looking for, well, just about anything. But it's also a great place to find talent. On Thursday, November 6, 2003, at 12:59 PM, James wrote: Can anyone recommend a good place where I can find some talented PHP contractors? I'm looking to hire some people for some upcoming projects, and I don't want to just put an ad in the paper and get a bunch of responses from barely-qualified people. Thanks, J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 4.3.2, HTML and MSSQL2000
[snip] Does it have something to do with the script being inside the div/div statement? div id=Oobj220 style=position:absolute;z-index:74;visibility:visible; left:612px;top:96px;width:110px;height:21px; span id=Ggeo201 class=dfltt ?php echo input type=text name=reportnum size=20 value=$reportnum; ? /span /div [/snip] Aside from the HTML being badly formed in the echo statment (all attributes should be double-quoted) i.e. echo input type=\text\ name=\reportnum\ size=\20\ value=\$reportnum\; it would appear that something in your dfltt class may be causing the problem. This is more of a CSS or HTML problem and would have a better chance at a solution on one of those lists. As for the script it doesn't care where it lives as long as the syntax between the ?php ? tags is correct...and appears to be. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
Jay Blanchard wrote: [snip] snobs jump in [/snip] What is funny about that is that it is those snobs who folks ask their questions to. It is those snobs who solve problems for others. It is those snobs who have learned and experienced so that others may benefit. Hi, while we are at it, is it possible to fix your mail client to include References or In-Reply-To header? Broken threading is more annoying to me that (top|bottom)-posting. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cross Site Scripting
--- Shaun [EMAIL PROTECTED] wrote: Is there a way to filter metacharacters from all $_POST values sent from pages on my site in an effort to eliminate the majority of XSS attacks? Yes, but it's probably more important that you understand what XSS is and what methods people use to protect against such attacks. You can download a free article on the topic here: http://www.phparch.com/sample.php?mid=16 Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQL Injections
--- Shaun [EMAIL PROTECTED] wrote: does anyone know of a function i can include in my scrpits to ensure all $_POST values sent from a page don't include any SQL? It's only important that the data sent from the client will not be executed by your database. Depending on which database you use, there is a different way of escaping data. PHP's addslashes() is good for escaping quotes that can cause problems with MySQL (even unintentionally). A better approach, or at least something you should do also, is to make sure all data is exactly the type of data you are expecting. Rather than trying to prevent some specific type of attack that you may have heard of, try instead to verify all of your data using very strict data filtering. Otherwise, you basically make yourself vulnerable to every type of attack you might not have heard of. That's a risky approach. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
Guys, I dont mean to get into your very heartfelt flaming / arguement but can you take this offlist please? Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: COM and PHP.ini
see this page http://purplerain.org/article.php ensure that are you using all necessary settings Regards Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP 4.3.2, HTML and MSSQL2000
echo input type='text' name='reportnum' size='20' value='$reportnum'; Rique Gresham wrote: Hi All, I'm having trouble with a input box disappearing when using php to generate the input box. I tested this script in a test.htm and worked fine. Does it have something to do with the script being inside the div/div statement? Any help would be appreciated. Thanks div id=Oobj220 style=position:absolute;z-index:74;visibility:visible; left:612px;top:96px;width:110px;height:21px; span id=Ggeo201 class=dfltt ?php $link = mssql_connect(server) or die (Not Connected); $db = mssql_select_db(database)or die (Unable to connect to database); $sql= SELECT CId, ReportNum FROM tblCounter WHERE CId = 1; $sql_result= mssql_query($sql,$link) or die (Query not executed); function RepInc($reportnum) { $reportnum += 1; } while ($row = mssql_fetch_array($sql_result)) { $cid = $row[CId];$reportnum = $row[ReportNum]; } RepInc($reportnum); echo input type=text name=reportnum size=20 value=$reportnum; mssql_free_result($sql_result); mssql_close($link); ? /span /div -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: To format a number
This problem can be veryu simple if you are at Unix like server: http://www.php.net/localeconv [ See also setlocale() ] - zerof - [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi, I have a little problem. I have a number for example 5 and I would it transform in 5,00. I tried with round() but it doesn't add the numbers after comma with an interger number. Does some funtion that make this exist? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP developers
James, et al -- ...and then James said... % % Can anyone recommend a good place where I can find some talented PHP % contractors? That's been discussed on this list a few times before, so the archives may be of some help to you. I'm still looking for reliable and worthwhile places to post myself so that I can be found and get some business... % % I'm looking to hire some people for some upcoming projects, and I don't want % to just put an ad in the paper and get a bunch of responses from % barely-qualified people. Since you want a contractor, count me in :-) What do you need? % % Thanks, % J HTH HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, Science and Health http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] PHP developers
Try Prosavvy.com On Fri, 7 Nov 2003, David T-G wrote: James, et al -- ...and then James said... % % Can anyone recommend a good place where I can find some talented PHP % contractors? That's been discussed on this list a few times before, so the archives may be of some help to you. I'm still looking for reliable and worthwhile places to post myself so that I can be found and get some business... % % I'm looking to hire some people for some upcoming projects, and I don't want % to just put an ad in the paper and get a bunch of responses from % barely-qualified people. Since you want a contractor, count me in :-) What do you need? % % Thanks, % J HTH HAND :-D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] training material on PHP + MySQL + IIS + Windows 2000
Hello friends, Does anyone have a training course that can be bought or licensed for training PHP and WAMP? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Japanese character validation
Howdy, I have accept input from the user and check if the input is japanese character only, for example : If name is accepted , I need to check if its any of the Hiragana, Katakana or Kanji. Hmm... why would you like to do that? I've never really seen the need for that. It's actually quite common for forms here in Japan (both online and paper) where the user is requested to give the phonetic reading in Hiragana or Katakana for their Kanji name. (Especially the first name where there can be a lot of latitude on the reading even if the Kanji used has other more conventional readings. Likewise for some uncommon place names.) Online, it can also be handy where you want to disallow the use of and catch and filter numbers or symbols that may also have double-byte equivalents, and instead use only the Hankaku ASCII forms, though these can usually be validated more directly by an A - Z, 0 - 9, etc. regular expression. We currently do this to validate our form inputs on the client side using Javascript functions before accepting the inputs serverside. When I have time, I'll look into what's possible with the mb_ereg/mb_regex functions. Umesh, if you'd like a copy of our Javascript functions, please contact me offlist. Hope this helps, Lew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cell Colour Change!!! HELP
I have a cell in my view.php which shows up in all my pages of my site. This is wha tI need to do: If the user is on the home page(index.php) then the cell colour should be blue. If the user is on the compose page(compose.php) then the cell colour should be green If the user in on the registration page then the colour should red and if the user is on the contac us then the color of thecell should be yellow! Can some one point me to an example or provide me with a basic php code structure to work with. Much help would be appriciated! Enrique F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] training material on PHP + MySQL + IIS + Windows 2000
At 11:41 PM 11/7/2003 +0800, Denis L. Menezes wrote: Hello friends, Does anyone have a training course that can be bought or licensed for training PHP and WAMP? Thanks Denis Denis, That's not an easily answered question; each is a major product. Would you want a gloss, or in depth approach? There are certainly lots of training courses for Windows, and probably for IIS. I believe the MySQL web site has training courses listed, but this would also depend on how much database theory you want to absorb. (Some is needed so that you design effective data structures.) And as for PHP, how much programming knowledge do you have? If the answer is Some, then there are lots of online tutorials and examples which give you enough to get started. Otherwise, a basic programming course would be a good first step - even one of the quickie or Dummies books. Something that doesn't require a web server would be a good idea, say Python in 24 Hours, if such a title exists. Regards - Miles Thompson PS You may want to familiarize yourself with Linux and Apache, as that's how the majority of web sites are hosted. You would also save yourself a bundle in licensing fees. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cell Colour Change!!! HELP
I have a cell in my view.php which shows up in all my pages of my site. This is wha tI need to do: If the user is on the home page(index.php) then the cell colour should be blue. If the user is on the compose page(compose.php) then the cell colour should be green If the user in on the registration page then the colour should red and if the user is on the contac us then the color of thecell should be yellow! Can some one point me to an example or provide me with a basic php code structure to work with. You could check the name of the current page and set a variable for the cell color accordingly. Something like: if (eregi(index, $PHP_SELF)) { $color = blue; } elseif (eregi(compose, $PHP_SELF)) { $color = green; } elseif (eregi(register, $PHP_SELF)) { $color = red; } elseif (eregi(contact, $PHP_SELF)) { $color = yellow; } else { $color = ; } HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Japanese character validation
Hi, (B (BOn 2003.11.7, at 18:20 Asia/Tokyo, umesh wrote: (B (B...[snip]... (B (B As there are fields called Last First Name (Kanji) and Last First (B name (Kana) on my forms. Its the need of the application. (B It would be great, If I could do that. (B (BLet's say you can do that. What happens if my name doesn't have a (BKanji? You'll just reject it? (Since you're validating that certain (Bfield *should* just be Kanji.) (B (B Actually, I have tried to do it, but it wont understand some (B characters. Like $B)!(B. (B (BWell, that's "one of the issues" I was trying to tell you... (B (B- E - (B (B__ (BDo You Yahoo!? (BYahoo! BB is Broadband by Yahoo! (Bhttp://bb.yahoo.co.jp/ (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Japanese character validation
On 2003.11.7, at 18:37 Asia/Tokyo, Marek Kilimajer wrote: ...[snip]... Are Kanji and Kana chracter sets? Kan - Chinese + ji - character kana: (quoted from the American Heritage Dictionary) 1. Japanese syllabic writing. The characters are simplified kanji and are usually used with kanji primarily to write inflections, particles, and function words and to show the pronunciations of some kanji and of all foreign words. So, no, they're not the character sets *we* usually refer to (i.e. euc-jp, shift_jis, etc.) -- - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to support Multi Lingual characters
Hi, On 2003.11.7, at 20:09 Asia/Tokyo, K. Praveen Kumar wrote: Dear Umesh, Thanks for your quick reply. Let me explain the scenario: We have an application in English. The data will be stored in MySQL database. If some body enter the data using Japanese keyboard (Japanese language) that will be stored in Japanese language only and should display in the same language. Can it be done?? Yes. Just make sure that your output is properly encoded, etc... - check the archives - check http://www.php.net/mbstring for some info - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQL Injections
Just to add... On 2003.11.8, at 00:04 Asia/Tokyo, Chris Shiflett wrote: --- Shaun [EMAIL PROTECTED] wrote: does anyone know of a function i can include in my scrpits to ensure all $_POST values sent from a page don't include any SQL? It's only important that the data sent from the client will not be executed by your database. Depending on which database you use, there is a different way of escaping data. PHP's addslashes() is good for escaping quotes that can cause problems with MySQL (even unintentionally). A better approach, or at least something you should do also, is to make sure all data is exactly the type of data you are expecting. Rather than trying to prevent some specific type of attack that you may have heard of, try instead to verify all of your data using very strict data filtering. Otherwise, you basically make yourself vulnerable to every type of attack you might not have heard of. That's a risky approach. Have different users for different tasks. For example, one user can *only* view (select) data. And another, can insert/alter data, etc... - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] On OS X (10.2) where is php installed?
All, Forgive me for the simplistic question, I'm not much of a Unix, Apache, or PHP wiz. I'm running Mac OS X 10.2 on a 12 PB. I've installed PHP 4.3.0 from Marc Lynric's site (http://www.entropy.ch). However, I cannot actually find the installation files on my laptop. My web server works. It serves PHP pages quite well, but I want to know where the binaries are located. I've tried using some sources I thought might tell me where the files are located, but they have not. Can anyone shed some light? Regards, Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Send data Header Response
psuedo code index.php php code to process form if(no_errors) redirect to another page ? form action=index.php method=post input type='text' name='user_name' value='?php echo $_POST['user_name']? submit /form YOur submitting the form to itself so the $_POST variable is available in the form hope it help Pete Jonathan Villa wrote: I would like submit a form to a page, do some processing on that page, then if need be, return to the referrer but also send the submitted data along with it... and data is coming from a POST form, not a GET. I tried header('location:'.$referrer.'?data'.$_POST); or something to that effect... If I can't do this, what options do I have? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: single quotes in database
also check magic_quotes_runtime in php.ini. This add's slashes to incoming Post/get variables You can change this at tun time with the ini_set() function pete Steve Buehler wrote: I am using PHP/MySQL and am having a problem. We have some names and addresses in the database that have single quotes in them. For instance. There is a town around here called Lee's Summit. Also names like O'connel. When I pull from the database it skips these because of the quotes. I know there is something that I have seen before about this, but can't find it now. Can anybody help me? I really hope this makes since because I am sick today and am having a hard time thinking straight. Is it something that I will have to fix when putting things into the database? I am hoping on being able to fix this when going in and when coming out of the database so that I don't have to go back and redo all the ones that are already in the database. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: trouble with forcing output to be cached
The image is already written to a file. i wrote ..CREATION.. as an example, because there is no difference do you write and read, or create. If you pass something through PHP, it will append it's own header HUH :( .. so not so simple ;[ i guess that it is impossible to find a solution here, but i would be interested in any information about this simple trouble, and maybe request for feature for something like remove_header() function.. Any other ideas :) ? Pete M [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This posting has made me think.. Problem is server side because the script executes to create the image and the script runs every time.. Try writing out the image to a file and then send that to the browser psuedo code if image NOT exists create it write to file embed file pete Ilja Polivanov wrote: Hallo all, I would like to force PHP generated images to cache on client-side. just for reduce traffic and speed of pageloading. The problem is that PHP adds some headers by default, They are: Cache-Control : no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma : no-cache :) it is possible to rewite Cache-Control header with private ar public values. bet Pragma do not have positive value :) so i found that i cant set Empty header(Pragma: ); :) and it works :) except one browser - Opera :). i know that it is Operas problem, but is there any idea to absolutely remove response header ? or block PHP to add its own headers ? -- Ilja Polivanovas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Japanese character validation
Hi, On 2003.11.8, at 00:42 Asia/Tokyo, Lew Mark-Andrews wrote: Howdy, I have accept input from the user and check if the input is japanese character only, for example : If name is accepted , I need to check if its any of the Hiragana, Katakana or Kanji. Hmm... why would you like to do that? I've never really seen the need for that. It's actually quite common for forms here in Japan (both online and paper) where the user is requested to give the phonetic reading in Hiragana or Katakana for their Kanji name. (Especially the first name where there can be a lot of latitude on the reading even if the Kanji used has other more conventional readings. Likewise for some uncommon place names.) True. But... Online, it can also be handy where you want to disallow the use of and catch and filter numbers or symbols that may also have double-byte equivalents, and instead use only the Hankaku ASCII forms, though these can usually be validated more directly by an A - Z, 0 - 9, etc. regular expression. Well, just like you said, Hankaku can easily be validated. But, how and WHY would you want to validate if a certain field is Kanji, katakana, or hiragana? And limit certain fields to each of those? Think what would happen if you only accept only Kanji in a certain field. Here are some issues you'd face: 1. Not all Japanese have Kanjis in their names. 2. Not all who can read Japanese have Japanese names. ;) We currently do this to validate our form inputs on the client side using Javascript functions before accepting the inputs serverside. When I have time, I'll look into what's possible with the mb_ereg/mb_regex functions. Umesh, if you'd like a copy of our Javascript functions, please contact me offlist. Hmm... interesting but whether you validate with Javascript and/or PHP, you'll face the same problem I mentioned above. Besides, there are some issues (for example with Shift_JIS) that bothers (with no easy solution) even members of the Japanese PHP Group ML. (Like the recent thread [PHP-users 18803] on http://www.php.gr.jp/ or http://ns1.php.gr.jp/mailman/listinfo/php-users mentioned about the SJIS trouble.) There was actually a similar topic on validation (in the Japanese ML) but there is no easy solution esp. about those platform (read Windows) independent characters. This was also mentioned by the OP (numbers inside circles character problem). Well, I'm satisfied (for now) with the mb_ functions... - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: High bandwidth application tips
another small tweak is to limit or remove html comments. this doesn't directly speed up code, but makes for less strain on your outbound pipe (good for you) and smaller downloads for the users (think dial-up). i usually try to put my comments in the php code. this reduces the bytes sent, maintains code readablity, and doesn't adversely affect script execution time. Craig -Original Message- From: felix zaslavskiy [mailto:[EMAIL PROTECTED] Sent: November 5, 2003 8:35 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: High bandwidth application tips Take a look here: http://phplens.com/lens/php-book/optimizing-debugging-php.php I also recommend X-debug extention for profiling. On Wed, 5 Nov 2003 13:36:01 -0600 [EMAIL PROTECTED] (Luis Lebron) wrote: I have been coding php for a few years now, but I haven't build a high bandwidth application. I am currently working on an application for a customer that may have a very large amount of users (10,000 or more according to the customer). Are there any good reference books, articles and general information on building such a site. I have been googling for a while but have found anything on this particular topic. thanks, Luis R. Lebron Sigmatech, Inc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] On OS X (10.2) where is php installed?
Hi, On 2003.11.8, at 01:51 Asia/Tokyo, Adam wrote: All, Forgive me for the simplistic question, I'm not much of a Unix, Apache, or PHP wiz. I'm running Mac OS X 10.2 on a 12 PB. I've installed PHP 4.3.0 from Marc Lynric's site (http://www.entropy.ch). However, I cannot actually find the installation files on my laptop. My web server works. It serves PHP pages quite well, but I want to know where the binaries are located. I've tried using some sources I thought might tell me where the files are located, but they have not. Can anyone shed some light? Try /usr/local/php - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP developers
James wrote: Can anyone recommend a good place where I can find some talented PHP contractors? I'm looking to hire some people for some upcoming projects, and I don't want to just put an ad in the paper and get a bunch of responses from barely-qualified people. www.freelancedeveloper.org www.scguild.org or me :) www.webcommons.org At any rate, I recommend avoiding all those job bidding sites... can you really trust the guys in far off places who charge $5 an hour? Instead, consider offshoring to Louisville, KY or other internal US cities with low costs of living. :) -- Steve Magruder www.webcommons.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cell Colour Change!!! HELP
Hi I had somthing like the following in my code which almost works but code use debugging! tr bgcolor= ? IF(?page!=home) { print(#006633) ; } elseif (?page!=compose) { print(#009966) ; } elseif (?page!=Registration) {print(#CC0033) ;} tdtd/ tr/ But what would happen a totally different colour would show In the above example would I assing the variable as such tr bgcolor=$color Lowell Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a cell in my view.php which shows up in all my pages of my site. This is wha tI need to do: If the user is on the home page(index.php) then the cell colour should be blue. If the user is on the compose page(compose.php) then the cell colour should be green If the user in on the registration page then the colour should red and if the user is on the contac us then the color of thecell should be yellow! Can some one point me to an example or provide me with a basic php code structure to work with. You could check the name of the current page and set a variable for the cell color accordingly. Something like: if (eregi(index, $PHP_SELF)) { $color = blue; } elseif (eregi(compose, $PHP_SELF)) { $color = green; } elseif (eregi(register, $PHP_SELF)) { $color = red; } elseif (eregi(contact, $PHP_SELF)) { $color = yellow; } else { $color = ; } HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP, SiteSpinner and MS SQL2000
Hi All, What I'm trying to do is query a mssql database using a SELECT statement to get the last report number from a table, increment that number by 1 and have it display in a INPUT box. The data will not INSERT into the database as a new record until one presses the SUBMIT button. PHP 4.3.2 SiteSpinner HTML MS SQL2000 Thanks, Rq -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP, SiteSpinner and MS SQL2000
Rique, With almost any SQL database you can select max(column) + 1 (or some such) to get the next available number, but if you plan to have more than one user on the database at the same time, what will you use to prevent them both from getting the same number and attempting to save over each others information (I am assuming this is something like a record number). Techniques to reserve the number in advance cause problems when the user changes his mind and never saves his record, leaving unused numbers in your sequence. A more common technique which is employed by most databases, is to not make any promises about numbers that will be used. The number is assigned when the user finally makes up his mind and commits to adding the record (see MySQL auto increment feature) and the system prevents multiple inserts from getting the same number. After the insert completes, the user is now told what number was used for future reference. I believe mssql also uses this technique. If you still need to reserve the number, then insert a blank record (row) and see what number was assigned and perform all further updates to that record. This technique will prevent multiple users from being assigned the same number (the query above will not). hope this helps, Warren Vail -Original Message- From: Rique Gresham [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 10:24 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP, SiteSpinner and MS SQL2000 Hi All, What I'm trying to do is query a mssql database using a SELECT statement to get the last report number from a table, increment that number by 1 and have it display in a INPUT box. The data will not INSERT into the database as a new record until one presses the SUBMIT button. PHP 4.3.2 SiteSpinner HTML MS SQL2000 Thanks, Rq -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Some Information on A Help Database Application Using PHP and XML
Peter Hartman (To 1886) wrote: Et al, I'm interested in either designing or participating in a current project which utilizes PHP and XML to create a documentation application. My company (caravelcms.org) has designed a content management system using PHP and we are currently investigating how we can document effectively our various userland functions. Instead of re-inventing the wheel, I thought I'd put a call out to the PHP community to see if you could push me in the right direction. Basically, what I want is a way of writing and storing and inter-linking documentation for our application. It seems XML would be the best route to go, but I'd prefer the documentation app to also be in PHP. I'd imagine others have had a similar desire and perhaps an app is out there already. You can use DOCBOOK (XML) to source your documentation, and then use PHP to generate the resulting XML files, or you can use any number of the javadoc-like php auto-documentation generators. The PEAR syntax guide has an example to effectively document classes/methods so that phpdocumentor (and other auto-documentation generators) can create the documentation automatically. There was a similar question recently to which I (and others) posted some links to some auto-document generators. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP developers
On Saturday 08 November 2003 01:42, Steve Magruder wrote: At any rate, I recommend avoiding all those job bidding sites... can you really trust the guys in far off places who charge $5 an hour? Well, as long you pay after seeing the completed work then there really shouldn't be any problem. If anything it is the far off guys who should be worried about being ripped off. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The Killer Ducks are coming!!! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] single quotes in database
Steve Buehler wrote: I am using PHP/MySQL and am having a problem. We have some names and addresses in the database that have single quotes in them. [snipped] mysql_escape_string() stripslashes() addslashes() -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
Marek Kilimajer wrote: Jay Blanchard wrote: [snip] snobs jump in [/snip] What is funny about that is that it is those snobs who folks ask their questions to. It is those snobs who solve problems for others. It is those snobs who have learned and experienced so that others may benefit. Hi, while we are at it, is it possible to fix your mail client to include References or In-Reply-To header? Broken threading is more annoying to me that (top|bottom)-posting. ;) Along the same topic, does anyone know what magic header tells Mozilla mail to add the Newsgroup: header? I've been trying to figure this out for some time now. On some mailing lists, it shows up on (seemingly) random emails. Free Tip : Want to avoid array index undefined Notices? Verify your indexes before you use the array in a statement. My favorite method is : $var = isset($foo['index']) ? $foo['index'] : NULL; Practical example : $username = isset($_POST['username']) ? $_POST['username'] : NULL; Other ways to do the same : if(isset($_POST['username'])) { $username = $_POST['username']; } else { $username = NULL; } -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
On Friday 07 November 2003 21:12, DvDmanDT wrote: Oh.. I'm personally trying to avoid not top-posting, cause I think it's nicer when ppl place the message at the top where I can read it instantly without scrolling down.. :s So why bottompost? I've said it before, and I'll say it again - the very act of top-posting encourages people not to trim posts. They just hit reply, stick their comments on top and post it off leaving sh*tload of crap on the end. Like this post, unless you're reading this on a Blackberry then I doubt you'll have much scrolling to do. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Take me drunk, I'm home again! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] question about :: usage
Hi yizzle. Anyway... Here is my problem. I have a class called Validate that has a method called ValidateInput. There is another method in this class called phonenumber. ValidateInput calls phonenumber at some point like this $this-phonenumber($input);. In my page I'm trying to use this class without instantiating an object. Like so: (keep in mind ValidateInput will return true or false.) if(Validate::ValidateInput($input, phone)) { echo valid; } else { echo invalid; } I get an error that says Call to a member function on a non-object. This error is pointing to the $this-phonenumber($input); call in the ValidateInput method. Does this mean that one method cannot call another method in the same class unless that class in instantiated into an object? Or does it mean I'm just being brain dead and doing something wrong? Thanks, Chris. p.s. I was looking for this answer on my own but I forgot what the :: notation is called and double colon didn't do it. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cell Colour Change!!! HELP
student wrote: Hi I had somthing like the following in my code which almost works but code use debugging! tr bgcolor= ? IF(?page!=home) { print(#006633) ; } elseif (?page!=compose) { print(#009966) ; } elseif (?page!=Registration) {print(#CC0033) ;} tdtd/ tr/ But what would happen a totally different colour would show Please don't top post. What you need is tr bgcolor= ? if($_GET['page']!=home) { print(#006633) ; } elseif ($_GET['page']!=compose) { print(#009966) ; } elseif ($_GET['page']!=Registration) {print(#CC0033) ;} tdtd/ tr/ -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP, SiteSpinner and MS SQL2000
Rique Gresham wrote: Hi All, What I'm trying to do is query a mssql database using a SELECT statement to get the last report number from a table, increment that number by 1 and have it display in a INPUT box. The data will not INSERT into the database as a new record until one presses the SUBMIT button. I believe @@IDENTITY holds the last auto-increment for MSSQL. You can use that to retrieve the last inserted record (assuming you have an auto-increment id field). This should work SELECT @@IDENTITY But I'm not a MSSQL guru or anything, so apologies if that doesn't work for you. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
I disagree. I usually trim replies regardless of whether I top or bottom post. And while I didn't have to scroll to read this email, I often have to scroll for longer emails when it is bottom posted. Which seems kinda silly to me since I've already read the thread. While I'm at it someone did something like the following earlier: A. dog Q. What is your favourite animal? A. blue Q. What is your favourite colour? Now what they failed to do was show where previous posts had been quoted which REALLY makes a difference in perception. Allow me to examplify: A. dog Q. What is your favourite animal? A. blue Q. What is your favourite colour? Looks pretty darned obvious to me. Amazing how some people use out of context examples to bolster their arguments. It's like watching the news these days. Cheers, Rob. On Fri, 2003-11-07 at 14:20, Jason Wong wrote: I've said it before, and I'll say it again - the very act of top-posting encourages people not to trim posts. They just hit reply, stick their comments on top and post it off leaving sh*tload of crap on the end. Like this post, unless you're reading this on a Blackberry then I doubt you'll have much scrolling to do. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Japanese character validation
On Sat, Nov 08, 2003 at 02:20:00AM +0900, - Edwin - wrote: : : Besides, there are some issues (for example with Shift_JIS) that : bothers (with no easy solution) even members of the Japanese PHP : Group ML. (Like the recent thread [PHP-users 18803] on : http://www.php.gr.jp/ or : http://ns1.php.gr.jp/mailman/listinfo/php-users mentioned about the : SJIS trouble.) Force the end-user not to use Shift-JIS. It's a brain-dead format used only for internal processing purposes and not meant as a for-the-public encoding method. Stick with something nice like normal JIS or Unicode. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MX lookup email verification on Windows
Does anyone know of a way to perform an MX lookup on a Windows server to perform an email verification? Any help on this would be great, since I can only find code for this that will work on *nix servers. Please let me know if you can help. Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Japanese character validation
On Sat, Nov 08, 2003 at 01:35:40AM +0900, - Edwin - wrote: : : On 2003.11.7, at 18:37 Asia/Tokyo, Marek Kilimajer wrote: : : ...[snip]... : : Are Kanji and Kana chracter sets? : : Kan - Chinese + ji - character : : kana: (quoted from the American Heritage Dictionary) : 1. Japanese syllabic writing. The characters are simplified kanji Actually, kana are not simplified kanji because it is not the case that kana can replace kanji while preserving the exact same meaning. In fact, most kana by themselves have no meaning. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to remove new line character?
How to remove new line / CrLf from a string? http://www.weberdev.com/get_example.php3?count=3577 Sincerely berber Visit http://www.weberdev.com/ http://www.weberblog.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com Search for PHP Code from your browser http://toolbar.weberdev.com Share your thoughts : http://www.weberblog.com/submit.php?type=storytopic=PHP_Web_Logs -Original Message- From: Shu Hung Yeung [mailto:[EMAIL PROTECTED] Sent: Sunday, November 02, 2003 6:14 PM To: [EMAIL PROTECTED] Subject: [PHP] How to remove new line character? Hello, I am a beginner of PHP. I know a little about Perl. In Perl, there is a chomp() function to remove newline (return) character in a long string. How about PHP? Can I do the same in PHP Thankyou _ Linguaphone : Learning English? Get Japanese lessons for FREE http://go.msnserver.com/HK/30476.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
On Saturday 08 November 2003 03:35, Robert Cummings wrote: I disagree. Yes, I think you disagreed with me last time as well :-) And if you keep doing that I might to forced to start using InterJinn! I usually trim replies regardless of whether I top or bottom post. And kudos to you for that, but ... And while I didn't have to scroll to read this email, I often have to scroll for longer emails when it is bottom posted. Which seems kinda silly to me since I've already read the thread. ... but the mailing list is not about *you*. Who cares if *you* have already read it because *you* was following the thread? Think about the future historians who will be reading these archives - and the incoherent mess they'll have to trawl through because of top-posting! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* If a cow laughed real hard, would milk come out her nose? -- Why Why Why n8 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] BTML 2.0 released!!!
Robert Cummings mailto:[EMAIL PROTECTED] on Friday, November 07, 2003 11:35 AM said: And while I didn't have to scroll to read this email, I often have to scroll for longer emails when it is bottom posted. Which seems kinda silly to me since I've already read the thread. The only reason for that is because the person doing the replying did not trim the previous email enough. MOST of the time when I see bottom posting the person has left the entire email intact including the persons sig. In those cases I'd rather have the post at the top because it makes the bottom posting practically worthless. A. dog Q. What is your favourite animal? A. blue Q. What is your favourite colour? Looks pretty darned obvious to me. Amazing how some people use out of context examples to bolster their arguments. It's like watching the news these days. It's not pretty darned obvious everyone because the way a normal person off the street would read that is probably like this (in both of my examples you have to assume that the person doing the reading knows what , , , and means): 1. There eyes will read A. dog 2. Then they will realize that that sentence is in reply to something else. 3. Then they will read the next line Q. What is your favourite animal?. 4. Then they will realize that that sentence is in reply to something else. 5. Then they will read A. blue 6. Then they will realize that that sentence is in reply to something else. 7. Then they will read Q. What is your favourite colour? If it was done the correct way: Q. What is your favourite colour? A. blue Q. What is your favourite animal? A. dog a person would read it like the following: 1. Read the first line Q. What is your favourite colour? 2. Read the next line knowing it's in reply to the first (no realization is involved because it's immediately obvious). 3. Read the next line knowing it's in reply to the first (no realization is involved because it's immediately obvious). 4. Read the next line knowing it's in reply to the first (no realization is involved because it's immediately obvious). So it's still the same thing even though your example is a little more accurate for the context of mailing lists. The point still stands that our brains are not trained to read that way. Any publication in English is not written like that, where the new information comes before the old information. Old information always comes first. Sure you can retrain your brain to read the wrong way, but why go to the trouble? Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] what is a global
[snip] I thought i knew the useage of the global keyword in a function but after reading a pals program i am really confused, i tried http://php.net/global but that does not give me any results...searched the list and found some reference to global and the scope of the function but still confused. Anybody have a good link or can give me a place to read up on the defination with an example? [/snip] http://us4.php.net/language.variables.scope -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] what is a global
--- Ryan A [EMAIL PROTECTED] wrote: I thought i knew the useage of the global keyword in a function but after reading a pals program i am really confused, i tried http://php.net/global but that does not give me any results...searched the list and found some reference to global and the scope of the function but still confused. Anybody have a good link or can give me a place to read up on the defination with an example? There are two scopes you need to understand in order to grok this: 1. Global 2. Function Local Most normal variables are global. There are, of course, the superglobals that PHP provides, but a $foo that you create is global. The exception is when you create $foo within a function. In this case, its scope is local to that function only. If you want it to be global instead, you can declare it as such. As a result of this, there are two ways that a function can manipulate global data: 1. The variable is passed in by reference. 2. The variable is declared to be global. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] BTML 2.0 released!!!
Actually researhc seems to be showing that our brains process visual information in parallel versus serial. Thus your assertion seems somewhat flawed. And I'm sure you understood my intentional typo of researhc since your brain more than likely read it in all at once rather than as a series of characters. Cheers, Rob. On Fri, 2003-11-07 at 14:53, Chris W. Parker wrote: The point still stands that our brains are not trained to read that way. Any publication in English is not written like that, where the new information comes before the old information. Old information always comes first. Sure you can retrain your brain to read the wrong way, but why go to the trouble? -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] question about :: usage
On Fri, Nov 07, 2003 at 11:28:18AM -0800, Chris W. Parker wrote: : : Anyway... Here is my problem. I have a class called Validate that has a : method called ValidateInput. There is another method in this class : called phonenumber. ValidateInput calls phonenumber at some point like : this $this-phonenumber($input);. Won't work. $this refers to the instance of an object. : Does this mean that one method cannot call another method in the same : class unless that class in instantiated into an object? I think so, since your class method is using $this. : Or does it mean I'm just being brain dead and doing something wrong? I'm still learning PHP's way of OOP. I don't know the correct way to do this in PHP, or if there is a correct way, or if it's not doable in PHP4 but is doable in PHP5. Thoughts anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] what is a global
Got it, thanks. For a snob you aint half bad :-D Cheers, -Ryan http://us4.php.net/language.variables.scope -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BTML 2.0 released!!!
On Fri, 2003-11-07 at 14:54, Jason Wong wrote: On Saturday 08 November 2003 03:35, Robert Cummings wrote: I disagree. Yes, I think you disagreed with me last time as well :-) Great to be consistent. And if you keep doing that I might to forced to start using InterJinn! I think the InterJinn references grow tiresome since they have little to do with any debate or argument at hand. ... but the mailing list is not about *you*. Who cares if *you* have already read it because *you* was following the thread? Think about the future historians who will be reading these archives - and the incoherent mess they'll have to trawl through because of top-posting! understandably it is not about me, understandably it is about everyone. Now lemme think on this, I'm not the only top poster, thus the involved universe of top posters already extends beyond me. I guess you don't believe in evolving systems. I'm sure people told Columbus that the world wasn't about him and that he should stop arguing that the world was round. I guess by this logic, we wouldn't advance because nobody would dare to challenge the masses *pt*. Buncha' sheep I tell ya. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] question about :: usage
Eugene Lee mailto:[EMAIL PROTECTED] on Friday, November 07, 2003 12:00 PM said: Won't work. $this refers to the instance of an object. Yeah I've decided to just instantiate an object. It's not really a big deal I guess, I just thought it might be a little cleaner to not instantiate. A friend suggested I might be able to do Class::Method(); instead of $this-Method(); but that would defeat the whole person anyway. Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php