[PHP] Re: (OT) Our Spam Friend
Good GOod Good but hey isn't going to get off that easy. one day it's going to say sorry that mailbox doesn't exist. or even better sorry this person doesn't own a computer anymore after his last spam crusade LOL Chris Shiflett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I just thought this was worth sharing. :-) - The following addresses had permanent fatal errors - [EMAIL PROTECTED] - Transcript of session follows - RECIPIENTS MAILBOX IS FULL 554 [EMAIL PROTECTED]... Service unavailable -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I import tables into MySQL from web page ...
Thanks for pointing me in the right direction. Could not get the output (success or failure) assigned to a variable in front of the system call but got it to assign a 0 (success) or 1 (failure) to the return_var argument as you suggested so I am happy. ?php system(mysql -u myuserid -pmypassword mydbname /path/to/mydumpfile.txt, $status); if($status == 1){ echo 'Failed'; } else { echo 'Success'; } ? What mixed me up and I still don't understand is the manual entry for system() says ... Returns the last line of the command output on success, and FALSE on failure. When it says it Returns, where does it return this information and how can it be captured for comparison? The return_var appears to only return a 0 or a 1. I thought I could capture it by assigning the system call to a variable in front but that appears to capture nothing on success or failure. Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, Jul 09, 2002 at 10:59:04PM -0700, Fargo Lee wrote: Thanks but it still returns Success on a failure. If anyone knows if it is even possible to assign the output of system, passthru or exec to a variable to check for success or failure and how to do it, please advise. The $status variable seems to always be empty on success or failure when I try to echo it. The way you set things up, $status is the last line of text returned by executing the command. Add the return_var argument to your system() statement. Take a look at the manual again. http://www.php.net/manual/en/function.system.php You can only make an accurate if() statement if you know what the values are you're expecting. Now, do some hacking. Set up the test to fail. Echo $status and $return to the screen and see what they look like. Set up the test to succeed. What do $status and $return look like then? --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: banner rotation and advertisement
Try phpadsnews. Andy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello everybody: sorry for this kind of off topic question. I hope that someone might point me into the right direction. I am operating a web portal and think about advertisement. Unfortunatelly I do not have any idea how to start this. First off all how does the client know how many banner views happend? I mean there must be a system which is proving how often. And second off all how to find the right sponsors fitting to the site. Maybe someone knows a third party company which does this for a fee. Has anybody a good hint? Thank you in advance. Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submitting form in new window!
This is JavaScript you need. one example. FORM NAME=Information INPUT TYPE=text NAME=TextField VALUE=Nothing Here INPUT TYPE=submit NAME=go VALUE= Go! onSubmit=FormSubmit()' /FORM SCRIPT LANGUAGE=JavaScript TYPE=JavaScript/Text function FormSubmit() { var textfield = Information.TextField.value; var url = ./processForm.php?textfield= + textfield; window.open(url); } /SCRIPT OR just add this to your form tag. TARGET=_blank Thomas Edison Jr. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Glory, Attach a javascript event to the submit button Something like : input type=submit name=go onSubmit=wow(); Wherein wow() defines a the window.open function? and also attach the form values to the url. How do i do this? Because the 3 or 4 form fields i have, which are Hidden Fields, contain values coming in from $myrow[stuff], that is, coming in from a Database Table. How do i define these values up in the Javascript function in the head of the file? Thanks, T. Edison Jr. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Storing values in Session
Try pushing the variables into an array before sending to the session. I never have problems with arrays in sessions. Sachin Keshavan [EMAIL PROTECTED] wrote in message B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00">news:B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00... Hello, I want to add a set of values to the session variable $BOOKS. This is the code which I used. if($BOOKS==) { #this seems to be the first book which the user has selected $BOOKS = $bookid; #this param comes from the URL } else { $BOOKS = $BOOKS+,+$bookid; } Here the 'if..' part gets executed, and because of that I cannot add details of another book. I have initialised the session and added the registered the value BOOKS in the previous page. Thanks in advance, Sachin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is their a jobs mailing list?
pls... unsubscribe.. me... pls..and pls again sharif. [EMAIL PROTECTED] - Original Message - From: Bret L Conard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 08, 2002 9:46 PM Subject: Re: [PHP] is their a jobs mailing list? The site is called: tech-temp.com Bret -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Storing values in Session
Oh an for the if statement. My PHP gets confused, maybe it's just me but give it a try if(empty($BOOKS)) Sachin Keshavan [EMAIL PROTECTED] wrote in message B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00">news:B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00... Hello, I want to add a set of values to the session variable $BOOKS. This is the code which I used. if($BOOKS==) { #this seems to be the first book which the user has selected $BOOKS = $bookid; #this param comes from the URL } else { $BOOKS = $BOOKS+,+$bookid; } Here the 'if..' part gets executed, and because of that I cannot add details of another book. I have initialised the session and added the registered the value BOOKS in the previous page. Thanks in advance, Sachin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] hiding submitted variable values in location bar of browser !
Hi everyone, Is there any way to hide my form submitted variables (like passwords etc) in the location bar http://somedomain.org/checkpassword.php? password=mypassword or atleast show in an encypted form n the location bar. form method=POST HTH, Axel Tietje -- FLYnet FLYer Kommunikationsgesellschaft mbH Weender Landstr. 46 37073 Göttingen 0551-499750 http://www.flynet.de [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Storing values in Session
It should be: $BOOKS = $BOOKS.,.$bookid; Rudolf Visagie Principal Software Developer Digital Healthcare Solutions mailto:[EMAIL PROTECTED] Tel: 011 2655478 Cell: 082 895 1598 -Original Message- From: Sachin Keshavan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 8:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Storing values in Session Hello, I want to add a set of values to the session variable $BOOKS. This is the code which I used. if($BOOKS==) { #this seems to be the first book which the user has selected $BOOKS = $bookid; #this param comes from the URL } else { $BOOKS = $BOOKS+,+$bookid; } Here the 'if..' part gets executed, and because of that I cannot add details of another book. I have initialised the session and added the registered the value BOOKS in the previous page. Thanks in advance, Sachin. -- 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] hiding submitted variable values in location bar of browser !
It would be better to use POST operation like FORM ACTION=checkpassword.php METHOD=POST If you do this, the parameters will not appear in the URL bar at all. Hope this helps, Sachin. -Original Message- From: Axel Tietje [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 12:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] hiding submitted variable values in location bar of browser ! Hi everyone, Is there any way to hide my form submitted variables (like passwords etc) in the location bar http://somedomain.org/checkpassword.php? password=mypassword or atleast show in an encypted form n the location bar. form method=POST HTH, Axel Tietje -- FLYnet FLYer Kommunikationsgesellschaft mbH Weender Landstr. 46 37073 Göttingen 0551-499750 http://www.flynet.de [EMAIL PROTECTED] -- 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] Hiding submitted variable values in location bar of browser !
Use the POST Method Use MD5 encryption for additional security === MD5.js= /* * Convert a 32-bit number to a hex string with ls-byte first */ var hex_chr = 0123456789abcdef; function rhex(num) { var str = ; for(var j = 0; j = 3; j++) str += hex_chr.charAt((num (j * 8 + 4)) 0x0F) + hex_chr.charAt((num (j * 8)) 0x0F); return str; } /* * Convert a string to a sequence of 16-word blocks, stored as an array. * Append padding bits and the length, as described in the MD5 standard. */ function str2blks_MD5(str) { var nblk = ((str.length + 8) 6) + 1; // number of 16-word blocks var blks = new Array(nblk * 16); for(var i = 0; i nblk * 16; i++) blks[i] = 0; for(var i = 0; i str.length; i++) blks[i 2] |= str.charCodeAt(i) ((i % 4) * 8); blks[i 2] |= 0x80 ((i % 4) * 8); blks[nblk * 16 - 2] = str.length * 8; return blks; } /* * Add integers, wrapping at 2^32. This uses 16-bit operations internally * to work around bugs in some JS interpreters. */ function safe_add(x, y) { var lsw = (x 0x) + (y 0x); var msw = (x 16) + (y 16) + (lsw 16); return (msw 16) | (lsw 0x); } /* * Bitwise rotate a 32-bit number to the left */ function rol(num, cnt) { return (num cnt) | (num (32 - cnt)); } /* * These functions implement the basic operation for each round of the * algorithm. */ function cmn(q, a, b, x, s, t) { return safe_add(rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b); } function ff(a, b, c, d, x, s, t) { return cmn((b c) | ((~b) d), a, b, x, s, t); } function gg(a, b, c, d, x, s, t) { return cmn((b d) | (c (~d)), a, b, x, s, t); } function hh(a, b, c, d, x, s, t) { return cmn(b ^ c ^ d, a, b, x, s, t); } function ii(a, b, c, d, x, s, t) { return cmn(c ^ (b | (~d)), a, b, x, s, t); } /* * Take a string and return the hex representation of its MD5. */ function calcMD5(str) { var x = str2blks_MD5(str); var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; for(i = 0; i x.length; i += 16) { var olda = a; var oldb = b; var oldc = c; var oldd = d; a = ff(a, b, c, d, x[i+ 0], 7 , -680876936); d = ff(d, a, b, c, x[i+ 1], 12, -389564586); c = ff(c, d, a, b, x[i+ 2], 17, 606105819); b = ff(b, c, d, a, x[i+ 3], 22, -1044525330); a = ff(a, b, c, d, x[i+ 4], 7 , -176418897); d = ff(d, a, b, c, x[i+ 5], 12, 1200080426); c = ff(c, d, a, b, x[i+ 6], 17, -1473231341); b = ff(b, c, d, a, x[i+ 7], 22, -45705983); a = ff(a, b, c, d, x[i+ 8], 7 , 1770035416); d = ff(d, a, b, c, x[i+ 9], 12, -1958414417); c = ff(c, d, a, b, x[i+10], 17, -42063); b = ff(b, c, d, a, x[i+11], 22, -1990404162); a = ff(a, b, c, d, x[i+12], 7 , 1804603682); d = ff(d, a, b, c, x[i+13], 12, -40341101); c = ff(c, d, a, b, x[i+14], 17, -1502002290); b = ff(b, c, d, a, x[i+15], 22, 1236535329); a = gg(a, b, c, d, x[i+ 1], 5 , -165796510); d = gg(d, a, b, c, x[i+ 6], 9 , -1069501632); c = gg(c, d, a, b, x[i+11], 14, 643717713); b = gg(b, c, d, a, x[i+ 0], 20, -373897302); a = gg(a, b, c, d, x[i+ 5], 5 , -701558691); d = gg(d, a, b, c, x[i+10], 9 , 38016083); c = gg(c, d, a, b, x[i+15], 14, -660478335); b = gg(b, c, d, a, x[i+ 4], 20, -405537848); a = gg(a, b, c, d, x[i+ 9], 5 , 568446438); d = gg(d, a, b, c, x[i+14], 9 , -1019803690); c = gg(c, d, a, b, x[i+ 3], 14, -187363961); b = gg(b, c, d, a, x[i+ 8], 20, 1163531501); a = gg(a, b, c, d, x[i+13], 5 , -1444681467); d = gg(d, a, b, c, x[i+ 2], 9 , -51403784); c = gg(c, d, a, b, x[i+ 7], 14, 1735328473); b = gg(b, c, d, a, x[i+12], 20, -1926607734); a = hh(a, b, c, d, x[i+ 5], 4 , -378558); d = hh(d, a, b, c, x[i+ 8], 11, -2022574463); c = hh(c, d, a, b, x[i+11], 16, 1839030562); b = hh(b, c, d, a, x[i+14], 23, -35309556); a = hh(a, b, c, d, x[i+ 1], 4 , -1530992060); d = hh(d, a, b, c, x[i+ 4], 11, 1272893353); c = hh(c, d, a, b, x[i+ 7], 16, -155497632); b = hh(b, c, d, a, x[i+10], 23, -1094730640); a = hh(a, b, c, d, x[i+13], 4 , 681279174); d = hh(d, a, b, c, x[i+ 0], 11, -358537222); c = hh(c, d, a, b, x[i+ 3], 16, -722521979); b = hh(b, c, d, a, x[i+ 6], 23, 76029189); a = hh(a, b, c, d, x[i+ 9], 4 , -640364487); d = hh(d, a, b, c, x[i+12], 11, -421815835); c = hh(c, d, a, b, x[i+15], 16, 530742520); b = hh(b, c, d, a, x[i+ 2], 23, -995338651); a = ii(a, b, c, d, x[i+ 0], 6 , -198630844); d = ii(d, a, b, c, x[i+ 7], 10, 1126891415); c = ii(c, d, a, b, x[i+14], 15, -1416354905); b = ii(b, c, d, a, x[i+ 5], 21, -57434055); a = ii(a, b, c, d, x[i+12], 6 , 1700485571); d = ii(d, a, b, c, x[i+ 3], 10, -1894986606); c = ii(c, d, a, b, x[i+10], 15, -1051523); b = ii(b, c, d, a, x[i+ 1], 21, -2054922799); a = ii(a, b, c, d, x[i+ 8], 6 , 1873313359); d = ii(d, a, b, c, x[i+15], 10,
Re: [PHP] How do I import tables into MySQL from web page ...
On Tue, Jul 09, 2002 at 11:41:47PM -0700, Fargo Lee wrote: got it to assign a 0 (success) or 1 (failure) to the return_var argument as you suggested so I am happy. Good! What mixed me up and I still don't understand is the manual entry for system() says ... Returns the last line of the command output on success, and FALSE on failure. When it says it Returns, where does it return this information and how can it be captured for comparison? The thing that's tripping you up is, I believe, executing MySQL programs at a prompt doesn't produce any visible output. But, if you executed a command that returns some output to STDOUT, like ls, you'd see the last line of output therefrom in the Return. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Hiding submitted variable-Solution
Use the POST Method Use MD5 encryption for additional security === MD5.js= /* * Convert a 32-bit number to a hex string with ls-byte first */ var hex_chr = 0123456789abcdef; function rhex(num) { var str = ; for(var j = 0; j = 3; j++) str += hex_chr.charAt((num (j * 8 + 4)) 0x0F) + hex_chr.charAt((num (j * 8)) 0x0F); return str; } /* * Convert a string to a sequence of 16-word blocks, stored as an array. * Append padding bits and the length, as described in the MD5 standard. */ function str2blks_MD5(str) { var nblk = ((str.length + 8) 6) + 1; // number of 16-word blocks var blks = new Array(nblk * 16); for(var i = 0; i nblk * 16; i++) blks[i] = 0; for(var i = 0; i str.length; i++) blks[i 2] |= str.charCodeAt(i) ((i % 4) * 8); blks[i 2] |= 0x80 ((i % 4) * 8); blks[nblk * 16 - 2] = str.length * 8; return blks; } /* * Add integers, wrapping at 2^32. This uses 16-bit operations internally * to work around bugs in some JS interpreters. */ function safe_add(x, y) { var lsw = (x 0x) + (y 0x); var msw = (x 16) + (y 16) + (lsw 16); return (msw 16) | (lsw 0x); } /* * Bitwise rotate a 32-bit number to the left */ function rol(num, cnt) { return (num cnt) | (num (32 - cnt)); } /* * These functions implement the basic operation for each round of the * algorithm. */ function cmn(q, a, b, x, s, t) { return safe_add(rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b); } function ff(a, b, c, d, x, s, t) { return cmn((b c) | ((~b) d), a, b, x, s, t); } function gg(a, b, c, d, x, s, t) { return cmn((b d) | (c (~d)), a, b, x, s, t); } function hh(a, b, c, d, x, s, t) { return cmn(b ^ c ^ d, a, b, x, s, t); } function ii(a, b, c, d, x, s, t) { return cmn(c ^ (b | (~d)), a, b, x, s, t); } /* * Take a string and return the hex representation of its MD5. */ function calcMD5(str) { var x = str2blks_MD5(str); var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; for(i = 0; i x.length; i += 16) { var olda = a; var oldb = b; var oldc = c; var oldd = d; a = ff(a, b, c, d, x[i+ 0], 7 , -680876936); d = ff(d, a, b, c, x[i+ 1], 12, -389564586); c = ff(c, d, a, b, x[i+ 2], 17, 606105819); b = ff(b, c, d, a, x[i+ 3], 22, -1044525330); a = ff(a, b, c, d, x[i+ 4], 7 , -176418897); d = ff(d, a, b, c, x[i+ 5], 12, 1200080426); c = ff(c, d, a, b, x[i+ 6], 17, -1473231341); b = ff(b, c, d, a, x[i+ 7], 22, -45705983); a = ff(a, b, c, d, x[i+ 8], 7 , 1770035416); d = ff(d, a, b, c, x[i+ 9], 12, -1958414417); c = ff(c, d, a, b, x[i+10], 17, -42063); b = ff(b, c, d, a, x[i+11], 22, -1990404162); a = ff(a, b, c, d, x[i+12], 7 , 1804603682); d = ff(d, a, b, c, x[i+13], 12, -40341101); c = ff(c, d, a, b, x[i+14], 17, -1502002290); b = ff(b, c, d, a, x[i+15], 22, 1236535329); a = gg(a, b, c, d, x[i+ 1], 5 , -165796510); d = gg(d, a, b, c, x[i+ 6], 9 , -1069501632); c = gg(c, d, a, b, x[i+11], 14, 643717713); b = gg(b, c, d, a, x[i+ 0], 20, -373897302); a = gg(a, b, c, d, x[i+ 5], 5 , -701558691); d = gg(d, a, b, c, x[i+10], 9 , 38016083); c = gg(c, d, a, b, x[i+15], 14, -660478335); b = gg(b, c, d, a, x[i+ 4], 20, -405537848); a = gg(a, b, c, d, x[i+ 9], 5 , 568446438); d = gg(d, a, b, c, x[i+14], 9 , -1019803690); c = gg(c, d, a, b, x[i+ 3], 14, -187363961); b = gg(b, c, d, a, x[i+ 8], 20, 1163531501); a = gg(a, b, c, d, x[i+13], 5 , -1444681467); d = gg(d, a, b, c, x[i+ 2], 9 , -51403784); c = gg(c, d, a, b, x[i+ 7], 14, 1735328473); b = gg(b, c, d, a, x[i+12], 20, -1926607734); a = hh(a, b, c, d, x[i+ 5], 4 , -378558); d = hh(d, a, b, c, x[i+ 8], 11, -2022574463); c = hh(c, d, a, b, x[i+11], 16, 1839030562); b = hh(b, c, d, a, x[i+14], 23, -35309556); a = hh(a, b, c, d, x[i+ 1], 4 , -1530992060); d = hh(d, a, b, c, x[i+ 4], 11, 1272893353); c = hh(c, d, a, b, x[i+ 7], 16, -155497632); b = hh(b, c, d, a, x[i+10], 23, -1094730640); a = hh(a, b, c, d, x[i+13], 4 , 681279174); d = hh(d, a, b, c, x[i+ 0], 11, -358537222); c = hh(c, d, a, b, x[i+ 3], 16, -722521979); b = hh(b, c, d, a, x[i+ 6], 23, 76029189); a = hh(a, b, c, d, x[i+ 9], 4 , -640364487); d = hh(d, a, b, c, x[i+12], 11, -421815835); c = hh(c, d, a, b, x[i+15], 16, 530742520); b = hh(b, c, d, a, x[i+ 2], 23, -995338651); a = ii(a, b, c, d, x[i+ 0], 6 , -198630844); d = ii(d, a, b, c, x[i+ 7], 10, 1126891415); c = ii(c, d, a, b, x[i+14], 15, -1416354905); b = ii(b, c, d, a, x[i+ 5], 21, -57434055); a = ii(a, b, c, d, x[i+12], 6 , 1700485571); d = ii(d, a, b, c, x[i+ 3], 10, -1894986606); c = ii(c, d, a, b, x[i+10], 15, -1051523); b = ii(b, c, d, a, x[i+ 1], 21, -2054922799); a = ii(a, b, c, d, x[i+ 8], 6 , 1873313359); d = ii(d, a, b, c, x[i+15], 10,
[PHP] Re: Executing Script through image
It is a couple of seconds slow. Treating the file as an image means that the rest of the page can still load while it is doing the reverse DNS lookup and executing the script. Anyway I have got the answer now -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... When the nessicary include file is included it does a reverse-DNS lookup to find the remote host's DNS name. The problem with this is that is seems slow(at least on my test server with a DSL connection). How slow? There's, like, a couple seconds slow, which is just how slow reverse-DNS can be, and *MINUTES* slow... Minutes slow, most likely, indicates that where-ever you are trying to look up the DNS records is trying to do a reverse DNS on *YOU* (or, rather, PHP's web-server) and timing out. If you have any control over that machine where you are doing the reverse-DNS, be sure they have your IP address associated with a name. For DSL, you can use something like http://dyndns.org to give your dynamic IP address a domain name. There are dozens of competitors to http://dyndns.org, and feel free to shop around. I thought the best way to speed things up would be putting the entire script into a file and then using img src=stats.php within the page. The problem is that I don't know how to output the image with PHP. Like, I don't even understand the theory here... How would the script being in a file (and where is it now?) make the DNS lookups any faster? I'm so confused. At any rate, a sample of how to dump out an image was already posted in this thread. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. Java
ðÒÉ×ÅÔ! IMHO java is to be avoided. fullstop. Still, it might be unavoidable from a commercial point of view. In that case, you should avoid being involved in the project and let the marketing dept have their fun on their own. There's a lot of pleasantly paid jobs that won't kill your nerves on this planet. Whatever you say now *you* will be responsible for it. So keep away from suicidal attempts. Java *may* properly work (but it will never work half as fast as PHP will) but you are not going to find an adequate number of skilled resources to make that happen. And when your unproper underpaid resources will turn your java soup into a slw boiling mess, guess who will pay for that? Got a mirror home? :) I saw a project based on IBM San Francisco last ONE YEAR before being thrown out of the window (along with its manager). The best result of the project was in that it could query a table of 500 rows in only... 45 seconds. New olympic record. And no, I was not the manager. My spider sense told me to keep well away from it :) ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Script File Permissions
ðÒÉ×ÅÔ! Chris Earle wrote: Thank you for the reply (I don't speak or read Russian if that's what that other stuff is). It is, but it's nothing more than hello and my signature, so you did not miss any basic content :) I forgot to mention that the server is a Win2k server with IIS 5 running. Obviously I'm not the server admin (otherwise I would be using Apache). Dunno. Never had that running myself. BUt as far as I can remember Ms security should be directory based. So the guy actually *might* allow you writing somewhere if you can convince him that it would show how clever he is ;) I hope that I can get permissions, but I bet you're right. Probably just have to create a database, which I planned on doing (and know how to). I really did want to use XML though, oh well. Besides, sooner or later you might need to just log events out to a flat file, right? ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_REQUEST???
ðÒÉ×ÅÔ! Patrick Teague wrote: Hello, Considering all of this... Would it be better simply to turn register_globals = On if the vast majority of the stuff you have on your site is simple search engine type stuff and/or GET variables? Well, such stuff needs NOT security, nedless to say. But *any* site needs to work properly. Besides, having the register_globals off does not require gigantic mental efforts to get your values. Personally I think that a register_globals off environment is educative, in that it forces you to think about the way data gets passed a bit more than usually. And an aware programmer is better then one who just believes in the fact that his next script is gonna get the stuff it needs. But whether you have your register_globals on or off variable content validation is still up to your own code, and that's where 99% of security lies. Blocking the globals just bloks anyone from poisoning an *internal* variable of your scripts, legally passed values must be validated as they where before. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
ðÒÉ×ÅÔ! Daniel Negron/KBE wrote: Is this retaliation ? People are so stupid they cannot even understand that we will simply filter him out of our mail right to trash bin :) I'm just sorry Mozilla is missing an autoresponder. I would have him mailed back with some HUUGE .doc any time he writes (after automatically putting his stuff right on the trash bin, which I already do). And nothing would be in the doc apart from infinite copies of the instruction for unsubscribing from the list :) Up to a meg or so :) But okay, let the hengy-baby play :) He cannot do any harm LOLOL ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] (OT) Our Spam Friend
we should make a script that constantly emails him single characters and all of us run it in a back ground process ;) -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 12:03 AM To: PHP Subject: [PHP] (OT) Our Spam Friend I just thought this was worth sharing. :-) - The following addresses had permanent fatal errors - [EMAIL PROTECTED] - Transcript of session follows - RECIPIENTS MAILBOX IS FULL 554 [EMAIL PROTECTED]... Service unavailable -- 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] PHP and Apache2?
Hi, Anyone know how long the developers is from a finale release that support Apache 2? Please advice! Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Took the job into my own hands
been trying it for a cuple days now -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: 09 July 2002 9:24 PM To: Liam Gibbs Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Took the job into my own hands On Tue, 9 Jul 2002, Liam Gibbs wrote: Mr. Hegreberg will be getting an unsubscription notice shortly, telling him how to complete his request. I tried that about half an hour ago; I don't think he's smart enough to follow the instructions. miguel -- 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] (OT) Our Spam Friend
ðÒÉ×ÅÔ! Brian McGarvie wrote: we should make a script that constantly emails him single characters and all of us run it in a back ground process ;) He is lucky we have all to much to do in our lives anyway :) But if anyone has got spare time... the guy's mailbox (unlike most russian public mail servers) *will* accept mail from a dial-up SMTP server having f**k.you (or whatever, just take the ** off and replace with proper coding) as an host name. I just happened to check ;) Not that I was willing to. But we are having SMTP problems so I just send the mail from the SMTP rauuning on the box I sit at while the trouble gets solved. Western addresses will get it (including our friend's address and this list) while my own address returns me the mail saying that no, you cannot just login from a dial-up and pretend you were an internet server. Now your server is blacklisted LOL My 2 kopeki (cents). :) ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Generate a file
Okay here is what I want to do. Select the field of a database that I want. Hit submit. Execute a query of a database based on the said form. Gather all the data and rows and plug them into an excel generated file. Display a dialogue box asking the user the save the file. The saved file being an excel file with data generated from a database. Make sense? Would the header calls be something like this? header(Content-type: application/xls); header(Content-Disposition: attachment; filename=downloaded.xls); Now if that is cool, how would I get the data into the downloaded.xls file to have this work? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IIS Bugs???
OK This is a followon from my Browser thread... on [EMAIL PROTECTED]; [EMAIL PROTECTED] I have switched the application to run from Apache, and the Browsers that were having trouble now seem (I think - will be doing more testing later) to have dissapeared. So, is there a problem with IIS or PHP or IIS with PHP? [ http://www.the-local-guide.com :: http://www.mcgarvie.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Generate a file
ðÒÉ×ÅÔ! Phillip S. Baker wrote: Now if that is cool, how would I get the data into the downloaded.xls file to have this work? 1) Save the data as a comma-separated list (pap.data.csv). 2) make an excel macro that will load it into a preexisting sheet and treat it 3) put the macro as the auto starter of the sheet. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] More work for us I Hope!!!
Hi all. I got a little carried away when discussing the past subject called *is http://marc.theaimsgroup.com/?l=php-generalm=102609800510170w=2 their a jobs mailing list?* started by Peter J. mailto:[EMAIL PROTECTED] Schoenster and started building a site like Brian McGarvie mailto:[EMAIL PROTECTED] suggested. I know most of you people are very busy right now, but some of us arent. Is there any of you interested in seeing it and maybe (if lucky I am) collaborate with ideas, thoughts, comments or maybe even be a co-founder while teaming up with me as a group for this. Any one interested can go to http://www.icaam.com.ar/proyects/os-seek/ and see what Ive done so far. Since I started today, the links wont work yet nor the map or the search engine (just the template) in order to make the required adjustments to the look feel of the site before its too late ;) I made it using a sort-of-self kind of template to facilitate later changes. After I get some sleep and heard some news from all of you who are interested, Ill make the code available. Also, I want to make some kind of a mailing list just for this purpose. Maybe also a development forum inside the projects site. I called it os-seek.org because it is available and can change to .com if necessary. Please feel welcome to drop some lines about this and support it. Thanks a lot, mailto:[EMAIL PROTECTED] Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621
Re: [PHP] (OT) Our Spam Friend
Sign up for a free server somewhere and create a page that just sends the request to the server. ?php while($x != $count) { mail(The Creap, $x) $x++; } ? Note there isn't a count variable then the only person that can stop it is the system op on the free server. Brian McGarvie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... we should make a script that constantly emails him single characters and all of us run it in a back ground process ;) -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 12:03 AM To: PHP Subject: [PHP] (OT) Our Spam Friend I just thought this was worth sharing. :-) - The following addresses had permanent fatal errors - [EMAIL PROTECTED] - Transcript of session follows - RECIPIENTS MAILBOX IS FULL 554 [EMAIL PROTECTED]... Service unavailable -- 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] strange php output
I'm trying to do a little trick with my new site. i have one main php script, index.php which includes the header and footer scripts and the page script between them. the page script is determined by $page, which is set to main if it doesnt exist already. $page . .php is then included. I have one other page so far, datetime.php. I wanted to let datatime run itself by including the headers and footers on its own if it wasnt included by index.php. so, i add this to the top and similar code at the bottom (replaced header with footer): ? if (!$page==datetime) // Not using index.php { include(header.php); } ? this code works when datetime.php is included by index.php, but on its own the script just outputs htmlbody/body/html. Even ignoring the xhtml code outside the php code in the file. its like the entire file is ignored. i really have no clue why. anyone else have one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Operator missing?
ðÒÉ×ÅÔ! in PHP we have a set of comparison operators going like $a == $b (has same value) $a === $b (has same value and type) shouldn't we have also something like $a == $b (is same instance)? Maybe we already have it and I just don't know about it. Is that so? Because of the copy/reference mechanism it would really be helpful in order to check one's work in referencing objects. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] (OT) Our Spam Friend
Hi all... If you read the latest post from me you will see that it was my intention when creating a looping mail sender. The post was called mail() function. Although I took it off after sending him like 25.000.000 mails that where called Hi0, Hi1, Hi2, Hi3, etc. The sender and the subject also increased by a number in order to difficult him the task of blocking the sender. I took it off because I guessed I could get into trouble and because I though that he would have killed his account by then. The only problem I see in your scripts, is that the server will time out after a couple of thousand emails. I figure it out when sending 10.000.000 at one ;) -Original Message- From: vins [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 5:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] (OT) Our Spam Friend Sign up for a free server somewhere and create a page that just sends the request to the server. ?php while($x != $count) { mail(The Creap, $x) $x++; } ? Note there isn't a count variable then the only person that can stop it is the system op on the free server. Brian McGarvie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] mckinlay.co.uk... we should make a script that constantly emails him single characters and all of us run it in a back ground process ;) -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 12:03 AM To: PHP Subject: [PHP] (OT) Our Spam Friend I just thought this was worth sharing. :-) - The following addresses had permanent fatal errors - [EMAIL PROTECTED] - Transcript of session follows - RECIPIENTS MAILBOX IS FULL 554 [EMAIL PROTECTED]... Service unavailable -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to dectect if a file exist in specific Folder
Dear all I had a folder which contain some pdf report, the name of the Report will be : xxx.xxx.20020702.pdf. Here is what i want to do : 1. there will be a Form let user to submit the date of reports that he / she wants to view. 2. the php will get the xxx.xxx from a mysql database and add the date at the end of the string as the file name. 3. If the filename exist in that specific folder, then it will show a hyperlink for each exist report, otherwise nothing will shows up! I want to know how i can use php to detect if such file is exist in that specific Folder? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] not parsing vars
hello all, i've install php 4.2.1 with apache 1.3.24 but when i do something like : page.php?var=valuevar1=value1 then it does nothing. does any one have a solution ? or is it something that i have tot change in php.ini ? thanks in advance, Richard Pijnenburg The netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] strange php output
I don't understand quite well your question, but I guess you are trying to include a page inside other pages containing just a script that shows up the actual Date and Time... Well, you could simplify this just by making a finction called i.e. datetime() and call it from wherever you want. It that's the case, do this in other page or inside any of your pages (i.e. main.php): function datetime() { echo date (D, jS F Y \a\t G:i:s); } This code is UNTESTED... I forgot if I have to put a backslash (\) before the : in the time part ;) Hope this helps, C. -Original Message- From: Calvin Spealman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 5:27 AM To: [EMAIL PROTECTED] Subject: [PHP] strange php output I'm trying to do a little trick with my new site. i have one main php script, index.php which includes the header and footer scripts and the page script between them. the page script is determined by $page, which is set to main if it doesnt exist already. $page . .php is then included. I have one other page so far, datetime.php. I wanted to let datatime run itself by including the headers and footers on its own if it wasnt included by index.php. so, i add this to the top and similar code at the bottom (replaced header with footer): ? if (!$page==datetime) // Not using index.php { include(header.php); } ? this code works when datetime.php is included by index.php, but on its own the script just outputs htmlbody/body/html. Even ignoring the xhtml code outside the php code in the file. its like the entire file is ignored. i really have no clue why. anyone else have one? -- 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] not parsing vars
On Wednesday 10 July 2002 16:29, [EMAIL PROTECTED] wrote: hello all, i've install php 4.2.1 with apache 1.3.24 but when i do something like : page.php?var=valuevar1=value1 then it does nothing. does any one have a solution ? or is it something that i have tot change in php.ini ? register_globals -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A transistor protected by a fast-acting fuse will protect the fuse by blowing first. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ????????????????????????? snip
Rodolfo Gonzalez wrote: To the kind moderator of the list: please kick off this guy (Erik Hegreberg [EMAIL PROTECTED] ), he's really annoying. Or at least bounce his e-mails back to him ;) ). Go for the bounce option ;-) -- Mark gallagher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to dectect if a file exist in specific Folder
On Wednesday 10 July 2002 16:26, Jack wrote: Dear all I had a folder which contain some pdf report, the name of the Report will be xxx.xxx.20020702.pdf. Here is what i want to do : 1. there will be a Form let user to submit the date of reports that he / she wants to view. 2. the php will get the xxx.xxx from a mysql database and add the date at the end of the string as the file name. 3. If the filename exist in that specific folder, then it will show a hyperlink for each exist report, otherwise nothing will shows up! I want to know how i can use php to detect if such file is exist in that specific Folder? is_file() -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* One father is more than a hundred schoolmasters. -- George Herbert */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to dectect if a file exist in specific Folder
Read http://www.php.net/manual/en/function.file-exists.php and get surprised ;) C. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 5:27 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] How to dectect if a file exist in specific Folder Dear all I had a folder which contain some pdf report, the name of the Report will be : xxx.xxx.20020702.pdf. Here is what i want to do : 1. there will be a Form let user to submit the date of reports that he / she wants to view. 2. the php will get the xxx.xxx from a mysql database and add the date at the end of the string as the file name. 3. If the filename exist in that specific folder, then it will show a hyperlink for each exist report, otherwise nothing will shows up! I want to know how i can use php to detect if such file is exist in that specific Folder? -- Thx a lot! Jack [EMAIL PROTECTED] -- 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] strange php output
ðÒÉ×ÅÔ! Calvin Spealman wrote: ? if (!$page==datetime) // Not using index.php { include(header.php); } ? this code works when datetime.php is included by index.php, but on its own the script just outputs htmlbody/body/html. Even ignoring the xhtml code outside the php code in the file. its like the entire file is ignored. i really have no clue why. anyone else have one? Before using a variable (in a comparison or wherever) you should make sure it *does* exist. try if (isset($page) !($page==datetime)) // Not using index.php { include(header.php); } ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] not parsing vars
Goto http://www.php.net/manual/en/language.variables.predefined.php where it says: [quote] ...$_GET['id'] from the URL http://www.example.com/test.php?id=3 instead of $id... [/quote] C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 5:29 AM To: [EMAIL PROTECTED] Subject: [PHP] not parsing vars hello all, i've install php 4.2.1 with apache 1.3.24 but when i do something like : page.php?var=valuevar1=value1 then it does nothing. does any one have a solution ? or is it something that i have tot change in php.ini ? thanks in advance, Richard Pijnenburg The netherlands -- 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] Re: strange php output
Calvin, this: (!$page==datetime) (as I interpret it, that means if $page is false, and it's equal to datetime (which should, in this context, also be false)) looks like it should read: ($page!=datetime) James Calvin Spealman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to do a little trick with my new site. i have one main php script, index.php which includes the header and footer scripts and the page script between them. the page script is determined by $page, which is set to main if it doesnt exist already. $page . .php is then included. I have one other page so far, datetime.php. I wanted to let datatime run itself by including the headers and footers on its own if it wasnt included by index.php. so, i add this to the top and similar code at the bottom (replaced header with footer): ? if (!$page==datetime) // Not using index.php { include(header.php); } ? this code works when datetime.php is included by index.php, but on its own the script just outputs htmlbody/body/html. Even ignoring the xhtml code outside the php code in the file. its like the entire file is ignored. i really have no clue why. anyone else have one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: ############
Rick Emery wrote: lets all spam Erik No, not spam (unless you define spam as what everyone else is doing - sending receipts). Send reply receipts all you want ($deity knows I am g /), and setting something up to bounce his messages back to him'd be great, but in both cases he asked for them - he specifically requested the receipts, and he's been spamming the list so it's only fair he receives the bounces. But if we resort to our own, separate spamming campaign we're as bad as him. -- Mark Gallagher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cookie ?
hi all, (yes it's me again) i've got an other problem. i've got an login system, and it has to put an cookie, but it seems he doesn't do it. is it an php.ini problem ?? thnx in advanced. Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ?????????????????????????????????
Lazor, Ed wrote: I wonder if he's using PHP to automate sending the messages. hehe And in the blink of an eye we're back on topic :o) -- Mark Gallagher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP]Erik Hegreberg
Well, he likely never be able to unsubscribe himself, as he needs to reply to the unsubscribe notice, but his account is now full. R'twick Niceorgaw wrote: I just setup a rule in OE to forward his own mail to himself and delete it form my machine - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: R'twick Niceorgaw [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 12:42 PM Subject: Re: [PHP]Erik Hegreberg He is both, he has been emailed how to get off. For now, I keep just sending my read receipts :) - Original Message - From: R'twick Niceorgaw [EMAIL PROTECTED] To: Erik Hegreberg [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 6:30 PM Subject: Re: [PHP] ipoh'%%% %%% are you doped or mentally challenged ? - Original Message - From: Erik Hegreberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 12:26 PM Subject: [PHP] ipoh'%%% %%% -- 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] Re: cookie ?
(yes it's me again) i've got an other problem. i've got an login system, and it has to put an cookie, but it seems he doesn't do it. is it an php.ini problem ?? Dont think it a php.ini file. First of all. Remember to set the cookie before any other headers is sent to the browser. Do you remember to reload the page after the cookie is sent? (some browser cant see the cookie at the page it sent but first after it have been reloaded!). Else? Please post an URL to your source, or post some sources here! Are your sure about your browser settings? Do your denied websites to set cookies? mvh Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] cookie ?
Hi Richard. It is very probable I will not be able to solve this kind of problems with my few knowledge, but in order to save everybody's time (specially yours), I will have to advise you that more advanced writers will ask you for a more accurate description of your problem such as Server's Software and versions, what your code looks like, and what problem you see like errors or such. C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 5:50 AM To: [EMAIL PROTECTED] Subject: [PHP] cookie ? hi all, (yes it's me again) i've got an other problem. i've got an login system, and it has to put an cookie, but it seems he doesn't do it. is it an php.ini problem ?? thnx in advanced. Richard -- 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] Re: cookie ?
Johan Holst Nielsen wrote: (yes it's me again) i've got an other problem. i've got an login system, and it has to put an cookie, but it seems he doesn't do it. is it an php.ini problem ?? Dont think it a php.ini file. First of all. Remember to set the cookie before any other headers is sent to the browser. Do you remember to reload the page after the cookie is sent? (some browser cant see the cookie at the page it sent but first after it have been reloaded!). Actualy this is not browser issue but PHP issue Else? Please post an URL to your source, or post some sources here! Are your sure about your browser settings? Do your denied websites to set cookies? mvh Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cookie ?
ðÒÉ×ÅÔ! [EMAIL PROTECTED] wrote: hi all, (yes it's me again) i've got an other problem. i've got an login system, and it has to put an cookie, but it seems he doesn't do it. 1) users may block your cookie. 2) browsers (they often do) may not respond properly to a setcookie() command when it specifies more than just name and value for the cookie (that is, when you set an expiration date or limit your cookie's visibility scope to a subdirectory) If you have problem 1 there's nothing you can do. Change strategy. No user will be able to log to your system if they don't accept cookies. If that happens to you when debugging and you know your browser *does* accept cookies, then try and send the cookie in the headers instead of using setcookie() Like this: // send/refresh cookie $time = mktime()+ YourCookieLifeTimeInDays*86400; $date = date(l, d-M-y H:i:s, ($time)); header(Set-Cookie: yourCookieName=Y; expires=$date GMT); ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØ
Ben Ramsey wrote: I've just joined this mailing list this afternoon. Does this kind of thing happen often? If so, I'm going to leave the list. I've been on the list for about two months, and it's the first time *I've* seen it happen. Usually the real morons stick to newsgroups :-). The list really can be a valuable resource (I don't know much PHP, so I don't contribute often - but I read a lot of it), so I'd urge you not to unsubscribe. Or, if you do unsubscribe, to wait out until Erik is likely to have finally worked out how to leave, then re-subscribe. If you can't bring yourself to do this, then at least get into contact with Richard Lynch and John Holmes (if they're willing) - they seem to be the most helpful and knowledgeable contributors :o). HTH, HAND -- Mark Gallagher http://cyberfuddle.com/infinitebabble/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache2?
Who knows when they'll officially state that PHP runs on Apache2 - I've been running it for a while now without much trouble (4.2.1 + 2.0.36/2.0.39) - the only problem that I've really seen (though not been affected by) is that multiple cookies seem to break - only the last cookie is set (obviously overwriting the previous cookie headers) but PHP know about this and it should be fixed in the next release (it's probably fixed in CVS already). I've not found any problems with the common compiled extensions. (check http://phpinfo.kyboshed.com [anon/badpassword] for a list of the ones I'm running) If I were running a full scale production server I might think differently and run with Apache 1.3.26 but I'm not, just a pro-development server. HTH Danny. - Original Message - From: Johan Holst Nielsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 8:10 AM Subject: [PHP] PHP and Apache2? Hi, Anyone know how long the developers is from a finale release that support Apache 2? Please advice! Regards, Johan -- 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] ???? etc
- Original Message - From: Mark Gallagher [EMAIL PROTECTED] To: Ben Ramsey [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 10:14 AM Subject: Re: [PHP] ??ØØ The list really can be a valuable resource (I don't know much PHP, so I don't contribute often - but I read a lot of it), so I'd urge you not to unsubscribe. Or, if you do unsubscribe, to wait out until Erik is likely to have finally worked out how to leave, then re-subscribe. Zeev's already banned him from all php.net lists - he can't post now, even if he wanted too! Danny. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: cookie ?
it's not the browser or what so ever, i installed php 4.2.1. with apache 1.3.24 on a Redhat 7.1 server. but becuas for some kind a reason it wont work :( any body got an idea ?? try to get the cookie witgh $_COOKIE[cookiename]; if you have register_globals = off! Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: cookie ?
Do you remember to reload the page after the cookie is sent? (some browser cant see the cookie at the page it sent but first after it have been reloaded!). Actualy this is not browser issue but PHP issue Aah, sorry... but it doesn't matter in this case, it could be one of the errors? :) mvh Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Editing Word Documents
Now I reminded myself of WebDAV (http://www.webdav.org/), it is a filesystem over http. There is an apache module available (http://www.webdav.org/mod_dav/). It should be easier to set up then VPN. Chris Hewitt wrote: Thanks Marek Kilimajer wrote: If you can use virtual private network, it is secure. But I don't know about plain Samba solution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ????????????????????????? snip
how about all of us say *hi* to this erik hegreberg the fact we a a bunch of guys with manner so we all must say HI to erik ;-) On Wednesday 10 July 2002 03:40 pm, Mark Gallagher wrote: Rodolfo Gonzalez wrote: To the kind moderator of the list: please kick off this guy (Erik Hegreberg [EMAIL PROTECTED] ), he's really annoying. Or at least bounce his e-mails back to him ;) ). Go for the bounce option ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.2.1 / Apache
HELLO, I just installed PHP 4.2.1. I am using a Redhat 7.3, installed as server with Apache. My problem is I can t compile it as a module for Apache : ./configure --with-apache=/usr/include/apache configure: error: Invalid Apache directory - unable to find httpd.h under /usr/include/apache But hhtpd.h is really under /usr/inclu/apache [root@localhost php-4.2.1]# slocate httpd.h /usr/include/apache/httpd.h Any idea ? David. The information contained in this e-mail message may be privileged and confidential information and is intended only for the use of the individual and/or entity identified in the alias address of this message. If the reader of this message is not the intended recipient, or an employee or agent responsible to deliver it to the intended recipient, you are hereby requested not to distribute or copy this communication. If you have received this communication in error, please notify us immediately by telephone or return e-mail and delete the original message from your system. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.2.1 / Mysql
Hello, I just installed PHP 4.2.1. I am using a Redhat 7.3, installed as server with Apache. I went to setup a distributed IDS (SNORT/MySQL/PHP/ACID). My second problem is the connection with my MySQL DB. ./configure --with-mysql ./configure --with-mysql --with-gd=../gd-1.8.4 --enable-sockets --with-config-file-path=/etc/httpd/conf --enable-track-vars [root@localhost php-4.2.1]# ./configure --with-mysql | grep mysql checking for MySQL UNIX socket... /var/lib/mysql/mysql.sock fastgen.sh: creating ext/mysql/Makefile fastgen.sh: creating ext/mysql/libmysql/Makefile The compilation with mysql seems fine. But when I check my Web page (Acid) PHP ERROR: PHP build incomplete: the prerequisite MySQL support required to read the alert database was not built into PHP. Please recompile PHP with the necessary library (--with-mysql) What can I do ? Regards, The information contained in this e-mail message may be privileged and confidential information and is intended only for the use of the individual and/or entity identified in the alias address of this message. If the reader of this message is not the intended recipient, or an employee or agent responsible to deliver it to the intended recipient, you are hereby requested not to distribute or copy this communication. If you have received this communication in error, please notify us immediately by telephone or return e-mail and delete the original message from your system. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 4.2.1 / Apache
On Wednesday 10 July 2002 17:25, [EMAIL PROTECTED] wrote: HELLO, I just installed PHP 4.2.1. I am using a Redhat 7.3, installed as server with Apache. My problem is I can t compile it as a module for Apache : ./configure --with-apache=/usr/include/apache configure: error: Invalid Apache directory - unable to find httpd.h under /usr/include/apache But hhtpd.h is really under /usr/inclu/apache [root@localhost php-4.2.1]# slocate httpd.h /usr/include/apache/httpd.h Try: --with-apache=/usr/includeOR --with-apache=/usr But you're better off using apxs instead: --with-apxs=/usr/local/apache/bin/apxs Obviously the path to apxs on your system may differ. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Necessity has no law. -- St. Augustine */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Generate a file
Maybe this will solve your problem This code wil save and excel of word file from an MySql query http://www.pscode.com/xq/ASP/txtCodeId.625/lngWid.8/qx/vb/scripts/ShowCode.h tm Peter - Phillip S. Baker [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Okay here is what I want to do. Select the field of a database that I want. Hit submit. Execute a query of a database based on the said form. Gather all the data and rows and plug them into an excel generated file. Display a dialogue box asking the user the save the file. The saved file being an excel file with data generated from a database. Make sense? Would the header calls be something like this? header(Content-type: application/xls); header(Content-Disposition: attachment; filename=downloaded.xls); Now if that is cool, how would I get the data into the downloaded.xls file to have this work? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] strange stuff in a class
Hi, Do anybody know a work a round for this: ?php class test { function test() { $globals['test2'] = $this; } } $test1 = new test(); ? The problem hier is that $globals['test2'] is a copy of $globals['test1'] not a references. Anybody an idee? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cookie ( still not working )
my cookie problem is still not solved :( my browser settings are correct, and the script has worked. but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :( does any one have an solution ?? thnx in advance, Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: cookie ( still not working )
my cookie problem is still not solved :( my browser settings are correct, and the script has worked. but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :( does any one have an solution ?? thnx in advance, Sure about your register_globals = off? please show us the source, or a link to at phps file... And a link to a phpinfo() file? I cant help you without further information! Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange stuff in a class
ðÒÉ×ÅÔ! ?php class test { function test() { $globals['test2'] = $this; } } $test1 = new test(); ? The problem hier is that $globals['test2'] is a copy of $globals['test1'] not a references. It is, but you are looking in the wrong direction. the copy is in test1, test2 holds the reference. This should work: ?php class test { function test() { $globals['test2'] = $this; } } $test1 = new test(); ? To output a reference instead of a copy a function *must* be declared with an . Not sure whether you might also need it here: $test1 = new test(); check it out ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: cookie ( still not working )
Johan Holst Nielsen writes: my cookie problem is still not solved :( my browser settings are correct, and the script has worked. but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :( does any one have an solution ?? thnx in advance, Sure about your register_globals = off? please show us the source, or a link to at phps file... And a link to a phpinfo() file? I cant help you without further information! Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php the setting in php.ini : register_globals = on i simpley put an cookie with : setcookie(gfo_cms ,$sessid , ''); and i read it with : ? if (isset($HTTP_COOKIE_VARS[gfo_cms])) { $sessid = $HTTP_COOKIE_VARS[gfo_cms]; if (!check_valid_sessid($sessid)) { login_form(); } if (!check_ip($sessid, $REMOTE_ADDR)) { login_form(); } $rights = get_user_rights($sessid); $user_id = get_userid_from_sessid($sessid); } if (!isset($HTTP_COOKIE_VARS[gfo_cms])) { login_form(); } ? the last code looks if the cookie exists ... but it look likes it won't even create the cookie an idea's ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] (OT) Our Spam Friend
What just a slap together of how we could make him crazy... but now that someone has pointed out to us that his mailbox is now full to he can't even unsubscribe from the list LOL WOOPS... We need to find out how to breakup the mailserver calls into 1000 emails sent every second and pause the server request... then the server is sure not to timeout. Brian McGarvie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... we should make a script that constantly emails him single characters and all of us run it in a back ground process ;) -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 12:03 AM To: PHP Subject: [PHP] (OT) Our Spam Friend I just thought this was worth sharing. :-) - The following addresses had permanent fatal errors - [EMAIL PROTECTED] - Transcript of session follows - RECIPIENTS MAILBOX IS FULL 554 [EMAIL PROTECTED]... Service unavailable -- 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] Re: cookie ( still not working )
My experience with cookies is really unhappy. I've once developed a website that needed to store information. I though hey cookies are the quicker option to hell with sessions. Now today after all of my problems with the cookies environment i've turned back to sessions. Sessions can store a much higher amount of data... and that doesn't have to rely on the client browser either. I mean if i visit a site that needs to have cookies enabled... i'm pretty stuffed I can't see nothing but if the site uses sessions dam i'm organized If you feel you have too many problems with cookies refer back to sessions it's the best option... well that i've come down to. Richard Mail [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... my cookie problem is still not solved :( my browser settings are correct, and the script has worked. but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :( does any one have an solution ?? thnx in advance, Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Wildcard
Hi all. Im trying to figure out how to do a search trough a MySQL db using LIKE or = but the thing is that I have 3 select boxes from where to choose the search terms. Can I use something like a wildcard instead of making several IF statements like this? SELECT * FROM table_name WHERE col1 = value1 AND col2 = value2 AND col3 = % % goes for an unselected select box (default value = %) in case the user doesnt want to make an *advanced* search, so it fetches all rows which does contains values 1 2. Thanks, mailto:[EMAIL PROTECTED] Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621
[PHP] (OT) News Reading
2nd attempt LOL Rejected first request coz this message is (ot) What is the best news reader that there is out there on the I-net??? Please submit your votes then we can all seee. I'm sick of outlook express handling this news on php and all the other lists i'm subscribed to... Please Please Please Cheerz Vins ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Wildcard
Shit. Doesn't really make sense Sorry... I probably don't understand do you have an online example. César aracena [EMAIL PROTECTED] wrote in message 000101c227fb$74eed940$68ed0dd1@gateway">news:000101c227fb$74eed940$68ed0dd1@gateway... Hi all. I'm trying to figure out how to do a search trough a MySQL db using LIKE or = but the thing is that I have 3 select boxes from where to choose the search terms. Can I use something like a wildcard instead of making several IF statements like this? SELECT * FROM table_name WHERE col1 = value1 AND col2 = value2 AND col3 = % % goes for an unselected select box (default value = %) in case the user doesn't want to make an *advanced* search, so it fetches all rows which does contains values 1 2. Thanks, mailto:[EMAIL PROTECTED] Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Wildcard
why put in your query you want to look for an value .. if they don't want to look for it ?.. vins writes: Shit. Doesn't really make sense Sorry... I probably don't understand do you have an online example. César aracena [EMAIL PROTECTED] wrote in message 000101c227fb$74eed940$68ed0dd1@gateway">news:000101c227fb$74eed940$68ed0dd1@gateway... Hi all. I'm trying to figure out how to do a search trough a MySQL db using LIKE or = but the thing is that I have 3 select boxes from where to choose the search terms. Can I use something like a wildcard instead of making several IF statements like this? SELECT * FROM table_name WHERE col1 = value1 AND col2 = value2 AND col3 = % % goes for an unselected select box (default value = %) in case the user doesn't want to make an *advanced* search, so it fetches all rows which does contains values 1 2. Thanks, mailto:[EMAIL PROTECTED] Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -- 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] (OT) News Reading
On Wed, 10 Jul 2002, Vincent Kruger wrote: I'm sick of outlook express handling this news on php and all the other lists i'm subscribed to... Ahh, then you mean best for a W32 platform. Options include Free Agent, Agent and Xnews. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ONLY ON VOTE......
Lets get this out the best reader out there. Vincent Kruger [EMAIL PROTECTED] wrote in message 004601c227fb$a9c9e290$017f@localhost">news:004601c227fb$a9c9e290$017f@localhost... 2nd attempt LOL Rejected first request coz this message is (ot) What is the best news reader that there is out there on the I-net??? Please submit your votes then we can all seee. I'm sick of outlook express handling this news on php and all the other lists i'm subscribed to... Please Please Please Cheerz Vins ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Wildcard
Ok. Maybe I didn't express myself well (must be the 3-4 days awake ;) No, I don't have an example on-line 'couse this is something I'll start doing in a few days or hours. Well, just what it will probably be the search options at: http://www.icaam.com.ar/proyects/os-seek/ which I posted a few hours ago. What I want, is to let the visitor search for an OS developer by WORK-AROUND and/or LANGUAGE and/or LOCATION and have just ONE static query to handle all this. The thing is that if I make the query like this: SELECT * FROM table_name WHERE col1 = $elect1 AND col2 = $select2 AND col3 = $select3 I think maybe the script will go nuts if no option was selected (remember the and/or?). So I figured out that maybe by telling HTML that the default value of each SELECT box is % (or any kind of wildcard) the query might run as predicted. Does this makes ant sense now? Please go to the site I've mentioned before and afterwards (if have the time and will) go back a couple of dozens post back and read the post called *MORE WORK FOR US I HOPE* so you have a more clear understanding of what my need will be. Thanks, C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 7:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Wildcard why put in your query you want to look for an value .. if they don't want to look for it ?.. vins writes: Shit. Doesn't really make sense Sorry... I probably don't understand do you have an online example. César aracena [EMAIL PROTECTED] wrote in message 000101c227fb$74eed940$68ed0dd1@gateway">news:000101c227fb$74eed940$68ed0dd1@gateway... Hi all. I'm trying to figure out how to do a search trough a MySQL db using LIKE or = but the thing is that I have 3 select boxes from where to choose the search terms. Can I use something like a wildcard instead of making several IF statements like this? SELECT * FROM table_name WHERE col1 = value1 AND col2 = value2 AND col3 = % % goes for an unselected select box (default value = %) in case the user doesn't want to make an *advanced* search, so it fetches all rows which does contains values 1 2. Thanks, mailto:[EMAIL PROTECTED] Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] rh 7.3
Yamin, You probably chose not to install bison or flex when you installed RedHat. They are on your CDs. HTH Chris Yamin Prabudy wrote: Hi guys,... In configure PHP 4.2.1 on RedHat 7.3 I found this problem checking for ranlib... ranlib checking whether ln -s works... yes checking for gawk... (cached) gawk checking for bison... no checking for byacc... no configure: warning: You will need bison if you want to regenerate the PHP parsers. checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: lex: command not found configure: error: cannot find output from lex; giving up [yamin@dusak php-4.2.1]$ what's wrong with it ??? thanks in advance Yamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Wildcard
?php $separator = WHERE ; $sql_query = SELECT * FROM table_name ; if(isset($_POST['select1'])) // Or maybe if($_POST['select1'] != )) { $sql_query .= $separator; $sql_query .= col1 = '{$_POST['select1']}' ; $separator = AND ; } if(isset($_POST['select2'])) { $sql_query .= $separator; $sql_query .= col2 = '{$_POST['select2']}' ; $separator = AND ; } if(isset($_POST['select3'])) { $sql_query .= $separator; $sql_query .= col3 = '{$_POST['select3']}' ; $separator = AND ; } run_sql_query_here(...) ? Regards Joakim Andersson -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 12:50 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Wildcard Ok. Maybe I didn't express myself well (must be the 3-4 days awake ;) No, I don't have an example on-line 'couse this is something I'll start doing in a few days or hours. Well, just what it will probably be the search options at: http://www.icaam.com.ar/proyects/os-seek/ which I posted a few hours ago. What I want, is to let the visitor search for an OS developer by WORK-AROUND and/or LANGUAGE and/or LOCATION and have just ONE static query to handle all this. The thing is that if I make the query like this: SELECT * FROM table_name WHERE col1 = $elect1 AND col2 = $select2 AND col3 = $select3 I think maybe the script will go nuts if no option was selected (remember the and/or?). So I figured out that maybe by telling HTML that the default value of each SELECT box is % (or any kind of wildcard) the query might run as predicted. Does this makes ant sense now? Please go to the site I've mentioned before and afterwards (if have the time and will) go back a couple of dozens post back and read the post called *MORE WORK FOR US I HOPE* so you have a more clear understanding of what my need will be. Thanks, C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 7:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Wildcard why put in your query you want to look for an value .. if they don't want to look for it ?.. vins writes: Shit. Doesn't really make sense Sorry... I probably don't understand do you have an online example. César aracena [EMAIL PROTECTED] wrote in message 000101c227fb$74eed940$68ed0dd1@gateway">news:000101c227fb$74eed940$68ed0dd1@gateway... Hi all. I'm trying to figure out how to do a search trough a MySQL db using LIKE or = but the thing is that I have 3 select boxes from where to choose the search terms. Can I use something like a wildcard instead of making several IF statements like this? SELECT * FROM table_name WHERE col1 = value1 AND col2 = value2 AND col3 = % % goes for an unselected select box (default value = %) in case the user doesn't want to make an *advanced* search, so it fetches all rows which does contains values 1 2. Thanks, mailto:[EMAIL PROTECTED] Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -- 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 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] Re: Wildcard
Theres no point selecting on a value if they've not specified one. The following code should generate a valid query, assumin that the default value for each value select value is an empty string: $query = SELECT * FROM table_name ; $where_string = WHERE ; $and = ; if ($select1 != ) { $where_string .= $and.col1 = '.addslashes($select1).'; $and = AND ; } if ($select2 != ) { $where_string .= $and.col2 = '.addslashes($select2).'; $and = AND ; } if ($select3 != ) { $where_string .= $and.col3 = '.addslashes($select3).'; $and = AND ; } if ($where_string != WHERE ) { $query .= $where_string; } And then run the query as normal. HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 11:50 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Wildcard Ok. Maybe I didn't express myself well (must be the 3-4 days awake ;) No, I don't have an example on-line 'couse this is something I'll start doing in a few days or hours. Well, just what it will probably be the search options at: http://www.icaam.com.ar/proyects/os-seek/ which I posted a few hours ago. What I want, is to let the visitor search for an OS developer by WORK-AROUND and/or LANGUAGE and/or LOCATION and have just ONE static query to handle all this. The thing is that if I make the query like this: SELECT * FROM table_name WHERE col1 = $elect1 AND col2 = $select2 AND col3 = $select3 I think maybe the script will go nuts if no option was selected (remember the and/or?). So I figured out that maybe by telling HTML that the default value of each SELECT box is % (or any kind of wildcard) the query might run as predicted. Does this makes ant sense now? Please go to the site I've mentioned before and afterwards (if have the time and will) go back a couple of dozens post back and read the post called *MORE WORK FOR US I HOPE* so you have a more clear understanding of what my need will be. Thanks, C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 7:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Wildcard why put in your query you want to look for an value .. if they don't want to look for it ?.. vins writes: Shit. Doesn't really make sense Sorry... I probably don't understand do you have an online example. César aracena [EMAIL PROTECTED] wrote in message 000101c227fb$74eed940$68ed0dd1@gateway">news:000101c227fb$74eed940$68ed0dd1@gateway... Hi all. I'm trying to figure out how to do a search trough a MySQL db using LIKE or = but the thing is that I have 3 select boxes from where to choose the search terms. Can I use something like a wildcard instead of making several IF statements like this? SELECT * FROM table_name WHERE col1 = value1 AND col2 = value2 AND col3 = % % goes for an unselected select box (default value = %) in case the user doesn't want to make an *advanced* search, so it fetches all rows which does contains values 1 2. Thanks, mailto:[EMAIL PROTECTED] Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -- 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 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] not parsing vars
Hmm, why post this here when I already answered your question in PHP-DB (where it shouldn't have been in the first place) almost 40 minutes before this post? Regards Joakim Andersson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 10:29 AM To: [EMAIL PROTECTED] Subject: [PHP] not parsing vars hello all, i've install php 4.2.1 with apache 1.3.24 but when i do something like : page.php?var=valuevar1=value1 then it does nothing. does any one have a solution ? or is it something that i have tot change in php.ini ? thanks in advance, Richard Pijnenburg The netherlands -- 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] Re: Is it so fuckin diffuicult...
Wow the vulgarities... Anywayz, I guess that's how you gotta address people like Erik Hegreberg... Ashley M. Kirchner [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... vins wrote: Is it so fucking difficult to do the fucking unsubscribing yourself. Stop being a fucking baby and click your fucking mouse to the php website and unsubscribe... This fucking spamming business is going to get you into big shit there are a ton of hackers out there on this mailing list so stop being a fucking jerk. Ya, and your 'fucking' e-mail certainly helps him a lot better, eh? -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] shtml php in the same file?
ending in .php and add the same thing for .shtml. Then, both will be parsed by PHP first. But then will it be parsed by SSI second, as we would like? Doesn't seem to... If you're using PHP, you don't need SSI. PHP can do whatever you are doing in SSI. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Is it so fuckin diffuicult...
So sorry about that Didn't mean to affend anyone other than the SPAMMER CREEP Really do appologize. Kindest Regards Vins [EMAIL PROTECTED] Kondwani Spike Mkandawire [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Wow the vulgarities... Anywayz, I guess that's how you gotta address people like Erik Hegreberg... Ashley M. Kirchner [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... vins wrote: Is it so fucking difficult to do the fucking unsubscribing yourself. Stop being a fucking baby and click your fucking mouse to the php website and unsubscribe... This fucking spamming business is going to get you into big shit there are a ton of hackers out there on this mailing list so stop being a fucking jerk. Ya, and your 'fucking' e-mail certainly helps him a lot better, eh? -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do I import tables into MySQL from web page ...
Try using backticks, and you don't need spaces after -u and -p $result = `MySQL -uuser -ppassword databasename filename.sql` Note that if it succeeds, nothing will be returned. Same as when you run the command on the command line. ---John Holmes... -Original Message- From: Fargo Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 1:27 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] How do I import tables into MySQL from web page ... Thanks for pointing out the syntax error. I added the space after the -u but it did not make any difference. It still gives the same result, that is Success, when it actually fails. What I am trying to figure out is how I can tell if it failed (did not create the tables)? The $status variable does not appear to hold the output of the system() function. Anyone know how to get the output of system, passthru or exec into the $status variable to check for success or failure? Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote: $status = system(mysql -umyuserid -pmypassword mydbname You need a space between -u and myuserid --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- 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]Erik Hegreberg (Moderator)
Surely there ought to be some simple code that could check for this joker's e-mail address when it reaches the Server and simply prevent it from being distributed... Isn't every e-mail address verified anywayz before it goes to the mailing list? Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well, he likely never be able to unsubscribe himself, as he needs to reply to the unsubscribe notice, but his account is now full. R'twick Niceorgaw wrote: I just setup a rule in OE to forward his own mail to himself and delete it form my machine - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: R'twick Niceorgaw [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 12:42 PM Subject: Re: [PHP]Erik Hegreberg He is both, he has been emailed how to get off. For now, I keep just sending my read receipts :) - Original Message - From: R'twick Niceorgaw [EMAIL PROTECTED] To: Erik Hegreberg [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 6:30 PM Subject: Re: [PHP] ipoh'%% % %%% are you doped or mentally challenged ? - Original Message - From: Erik Hegreberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 12:26 PM Subject: [PHP] ipoh'%% % %%% -- 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] Re: Wildcard
Thanks everyone for your attention but still at the 1st step. What I want (not need but want) is to keep my code as short as possible for future referencing from others. Looking at some on-line manuals I found this just now: (^|[^a-zA-Z])foo([^a-zA-Z]|$) which Works if you want to find foo in foo bar, bar foo, bar foo bar, or foo but NOT in foobar or barfoo. I guess that just by taking out the *foo* word between them can make it work for quite a useful wildcard. What do you think pals? C. -Original Message- From: Richard Black [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 8:06 AM To: 'César Aracena' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re: Wildcard Theres no point selecting on a value if they've not specified one. The following code should generate a valid query, assumin that the default value for each value select value is an empty string: $query = SELECT * FROM table_name ; $where_string = WHERE ; $and = ; if ($select1 != ) { $where_string .= $and.col1 = '.addslashes($select1).'; $and = AND ; } if ($select2 != ) { $where_string .= $and.col2 = '.addslashes($select2).'; $and = AND ; } if ($select3 != ) { $where_string .= $and.col3 = '.addslashes($select3).'; $and = AND ; } if ($where_string != WHERE ) { $query .= $where_string; } And then run the query as normal. HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 11:50 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Wildcard Ok. Maybe I didn't express myself well (must be the 3-4 days awake ;) No, I don't have an example on-line 'couse this is something I'll start doing in a few days or hours. Well, just what it will probably be the search options at: http://www.icaam.com.ar/proyects/os-seek/ which I posted a few hours ago. What I want, is to let the visitor search for an OS developer by WORK-AROUND and/or LANGUAGE and/or LOCATION and have just ONE static query to handle all this. The thing is that if I make the query like this: SELECT * FROM table_name WHERE col1 = $elect1 AND col2 = $select2 AND col3 = $select3 I think maybe the script will go nuts if no option was selected (remember the and/or?). So I figured out that maybe by telling HTML that the default value of each SELECT box is % (or any kind of wildcard) the query might run as predicted. Does this makes ant sense now? Please go to the site I've mentioned before and afterwards (if have the time and will) go back a couple of dozens post back and read the post called *MORE WORK FOR US I HOPE* so you have a more clear understanding of what my need will be. Thanks, C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 7:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Wildcard why put in your query you want to look for an value .. if they don't want to look for it ?.. vins writes: Shit. Doesn't really make sense Sorry... I probably don't understand do you have an online example. César aracena [EMAIL PROTECTED] wrote in message 000101c227fb$74eed940$68ed0dd1@gateway">news:000101c227fb$74eed940$68ed0dd1@gateway... Hi all. I'm trying to figure out how to do a search trough a MySQL db using LIKE or = but the thing is that I have 3 select boxes from where to choose the search terms. Can I use something like a wildcard instead of making several IF statements like this? SELECT * FROM table_name WHERE col1 = value1 AND col2 = value2 AND col3 = % % goes for an unselected select box (default value = %) in case the user doesn't want to make an *advanced* search, so it fetches all rows which does contains values 1 2. Thanks, mailto:[EMAIL PROTECTED] Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -- 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 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] OOPHP more about copies: new and new
ðÒÉ×ÅÔ! when your instances contain references and you prepare ther references in the constructor, you should remember to call the *new* function with an . Otherwise all you get is a copy, and all the references you prepared are invalid. use *new and all you trouble vanishes away :) ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Is it so fuckin diffuicult...
none taken :) your not the only one that realy hate spammers :) vins writes: So sorry about that Didn't mean to affend anyone other than the SPAMMER CREEP Really do appologize. Kindest Regards Vins [EMAIL PROTECTED] Kondwani Spike Mkandawire [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Wow the vulgarities... Anywayz, I guess that's how you gotta address people like Erik Hegreberg... Ashley M. Kirchner [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... vins wrote: Is it so fucking difficult to do the fucking unsubscribing yourself. Stop being a fucking baby and click your fucking mouse to the php website and unsubscribe... This fucking spamming business is going to get you into big shit there are a ton of hackers out there on this mailing list so stop being a fucking jerk. Ya, and your 'fucking' e-mail certainly helps him a lot better, eh? -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- 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]Erik Hegreberg (Moderator)
Of course not on an open list that's crossed to the newsgroups ... However, there's a deny list on ezmlm that the moderator can add addresses to. As a manager of a number of ezmlm mailing lists I've done that - which really infuriates the spammers - they still get the posts until they unsubscribe (or ask me to help them) but they can't post in the meantime. There are times, especially when someone's changed email addresses but has forwarding, or whose mail system doesn't believe that any email address should be longer than (some number of characters), when it is difficult or impossible for someone to unsubscribe. In that case the list owner gets involved. Isn't every e-mail address verified anywayz before it goes to the mailing list? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: (OT) News Reading
OK.. I've checked out the following TIN Xnews Free Agent They seem to be very popular but don't look good and you have to used them for a while to get to know them. Don't get me wrong I've stuck with outlook just for the look... I mean comon i use windows xp... look is everything on this system atm. LOL Thanx for the posts. Vincent Kruger [EMAIL PROTECTED] wrote in message 004601c227fb$a9c9e290$017f@localhost">news:004601c227fb$a9c9e290$017f@localhost... 2nd attempt LOL Rejected first request coz this message is (ot) What is the best news reader that there is out there on the I-net??? Please submit your votes then we can all seee. I'm sick of outlook express handling this news on php and all the other lists i'm subscribed to... Please Please Please Cheerz Vins ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
AW: [PHP] PHP vs. Java
I agree with the other reply to your question. (Keep in mind that it will be easier to sell Java to the corporate guys. Some executives shy away from open source.) Php vs. Java? Why not work together. copy from manual: There are two possible ways to bridge PHP and Java: you can either integrate PHP into a Java Servlet environment, which is the more stable and efficient solution, or integrate Java support into PHP. The former is provided by a SAPI module that interfaces with the Servlet server, the latter by the Java extension. PHP 4 ext/java provides a simple and effective means for creating and invoking methods on Java objects from PHP. The JVM is created using JNI, and everything runs in-process. Build instructions for ext/java can be found in php4/ext/java/README. Good luck!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Generate a file
[snip] Select the field of a database that I want. Hit submit. Execute a query of a database based on the said form. Gather all the data and rows and plug them into an excel generated file. Display a dialogue box asking the user the save the file. The saved file being an excel file with data generated from a database. Make sense? [/snip] Read this article on PHP and Excel, it may help... http://www.evolt.org/article/Using_MySQL_and_PHP_to_Present_Excel_Spreadshee ts/20/26896/index.html Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dos Paths
I've got an application that requires dos folder names (8.3 standard) as input. I also have PHP, which quite happily can cope with both. Can someone help me write a function to translate full paths to dos paths Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Generate a file
Use BiffWriter, I don't know where it lives, you must find it yourself. Phillip S. Baker wrote: Okay here is what I want to do. Select the field of a database that I want. Hit submit. Execute a query of a database based on the said form. Gather all the data and rows and plug them into an excel generated file. Display a dialogue box asking the user the save the file. The saved file being an excel file with data generated from a database. Make sense? Would the header calls be something like this? header(Content-type: application/xls); header(Content-Disposition: attachment; filename=downloaded.xls); Now if that is cool, how would I get the data into the downloaded.xls file to have this work? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] proba
-- Ðurovski Dejan [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Geting PHP Version
Please, How do I make to get version information of MySql in runtime ? I would like to show the version of MySql in my website. For example: Version PHP : ? echo phpversion(); ? Version MySql : ?? Thanks Skyhawk
Re: [PHP] Geting PHP Version
run this MySQL query SELECT VERSION(); René Skyhawk wrote: Please, How do I make to get version information of MySql in runtime ? I would like to show the version of MySql in my website. For example: Version PHP : ? echo phpversion(); ? Version MySql : ?? Thanks Skyhawk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dos Paths
On Wed, 10 Jul 2002 13:14:44 +0100, you wrote: I've got an application that requires dos folder names (8.3 standard) as input. I also have PHP, which quite happily can cope with both. Can someone help me write a function to translate full paths to dos paths You may have to drop down to C/C++ and ask the OS to lookup the short version of the path for you (GetShortPathName and GetShortPathNameW). But if you want to do it by hand, Knowledge Base article Q142982 might be a place to start. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Now a Question for all you ARRAY Junkies
I have an array $Lang = array('English','German','French','Zulu'); I want it in alphabetical order do i reset the arrray first or usort it first -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dos Paths
It doesn't matter how fast it does it. It matters what language it does it. C and C++ are a big no no as our company doesn't have a compiler (winblows). Thanks for the pointer David Otton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 10 Jul 2002 13:14:44 +0100, you wrote: I've got an application that requires dos folder names (8.3 standard) as input. I also have PHP, which quite happily can cope with both. Can someone help me write a function to translate full paths to dos paths You may have to drop down to C/C++ and ask the OS to lookup the short version of the path for you (GetShortPathName and GetShortPathNameW). But if you want to do it by hand, Knowledge Base article Q142982 might be a place to start. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Display criteria
Hi I want to display data based on the criteria selected by the user eg click on size to display smallest to largest, or by price smallest to highest, location etc etc what is the code I need? Thanks. DC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Now a Question for all you ARRAY Junkies
Since it's not an associative array, you can just use sort($Lang); and that should work just fine. Martin vins [EMAIL PROTECTED] 07/10/02 08:36AM I have an array $Lang = array('English','German','French','Zulu'); I want it in alphabetical order do i reset the arrray first or usort it first -- 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] Now a Question for all you ARRAY Junkies
oh ok... thanx Martin Clifford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Since it's not an associative array, you can just use sort($Lang); and that should work just fine. Martin vins [EMAIL PROTECTED] 07/10/02 08:36AM I have an array $Lang = array('English','German','French','Zulu'); I want it in alphabetical order do i reset the arrray first or usort it first -- 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