[PHP] Can't use the SNMP class

2012-12-04 Thread Marc-Andre Bergeron
Hi, When I try to use the SNMP class I got the following error: PHP Fatal error: Class 'SNMP' not found. I use the following version: PHP 5.3.3 (cli) and it runs on CentOS release 6.2 (Final). I've also installed net-snmp-5.5-41.el6_3.1.x86_64. According to the documentation In order to use

[PHP] About sessions and subdomains

2012-06-02 Thread Andre Polykanine
an empty $_SESSION array after submitting every single form on my website. For sure, signing out and back in, as well as cookie removing, were tried several times. Thanks in advance! -- With best regards from Ukraine, Andre Skype: Francophile Blog: http://oire.org/menelion Twitter: http

Re: [PHP] Need Part-time Coder

2011-12-27 Thread Andre Polykanine
Hello Paul, PH for($i = 0, $ln = sizeof($a); $i $ln; ++$i) { echo $a[$i]; } foreach ($a as $v) { echo $v; } :P ;-) -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

Re: [PHP] End of session clean-up

2011-12-09 Thread Andre Majorel
On 2011-12-03 18:14 +, Stuart Dallas wrote: Writing a session handler is pretty straightforward. I wrote about how to implement one to use MySQL a while back which I'm sure you could easily adapt to your needs. http://stut.net/2008/07/20/mysql-sessions/ Thank you. That's too much code

[PHP] End of session clean-up

2011-12-03 Thread Andre Majorel
Hello all. I need to purge old records from application tables when a session expires. How do I register a callback with the end-of session-garbage collection system ? session_set_save_handler() lets me override the native garbage collection, not *add* to it, as far as I can tell. Thanks in

Re: [PHP] End of session clean-up

2011-12-03 Thread Andre Majorel
On 2011-12-03 17:41 +, Stuart Dallas wrote: On 3 Dec 2011, at 16:57, Andre Majorel wrote: Hello all. I need to purge old records from application tables when a session expires. How do I register a callback with the end-of session-garbage collection system ? session_set_save_handler

Re: [PHP] Help on number matching function

2011-09-16 Thread Andre Polykanine
Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] concatenating

2011-08-11 Thread Andre Polykanine
will be displayed? if (!empty($posts_row['store_tptest'])) $str=results .$posts_rows['store_tptest']; -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General

[PHP] A php bug or?..

2011-08-08 Thread Andre Polykanine
the variable is treated or can be treated as an array. Well. If strings are treated like arrays, why count($x) doesn't return 5 instead of 1? Just asking. -- With best regards from Ukraine, Andre Skype: Francophile Blog: http://oire.org/menelion Twitter: http://twitter.com/m_elensule Facebook

Re: [PHP] A php bug or?..

2011-08-08 Thread Andre Polykanine
Hello Daniel, DPB does it return the number of characters within a string --- instead, DPB as you likely know, you'd use strlen(). For sure. But I'm asking: why it doesn't return 0 if it is not an array? Logically: no array - no items! -- With best regards from Ukraine, Andre

Re: [PHP] Login with Remember me Feature

2011-08-07 Thread Andre Polykanine
is quite enough: if it is there and it is not empty, then you can verify if such a user exists. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP

Re: [PHP] Re: Login with Remember me Feature

2011-08-07 Thread Andre Polykanine
Hello Richard, RR See ob_start and family. Alekto doesn't use them in that code. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP

Re: [PHP] Best editor?

2011-08-03 Thread Andre Polykanine
mark). -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Studying mcrypt

2011-08-03 Thread Andre Polykanine
in the encrypted string? I'm hosted at http://godaddy.com/, shared hosting, if it does matter. Thanks! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net

Re: [PHP] Studying mcrypt

2011-08-03 Thread Andre Polykanine
Hello Alex, Thanks for the tip. I'm not storing it in the database (you see, it's asdfasdf and the key string is secret key), I'm just studying mcrypt's possibilities :-). -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian

Re: [PHP] Studying mcrypt

2011-08-03 Thread Andre Polykanine
!) -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Studying mcrypt

2011-08-03 Thread Andre Polykanine
Hello Alex, I have a neat class you can play with... Could you give me the link, please?) -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion

Re: [PHP] Best editor?

2011-08-03 Thread Andre Polykanine
Hello Ricardo, RM i was using notepad a lot of years, nowdays i use gedit (@linux ) i think RM that gedit is avaible for windows too. Unfortunately, it isn't accessible for visually impaired users. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org

[PHP] Session treating

2011-07-31 Thread Andre Polykanine
Id: %s, session_name(), session_id()); And here (!) the session name is correct, but the session id is changed. My question is: why? Thanks! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General

Re: [PHP] Session treating

2011-07-31 Thread Andre Polykanine
session IDs: 1. Before the login form is processed, 2. After the login form is processed, 3. When clicking the Articles link, on the articles.php page. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Andre Polykanine
Hello Chris, Maybe I'm off topic, but wouldn't you consider JavaScript form validation? That will make your task easier and the user will see his/her error much earlier, before he/she submits the form. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http

[PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
filepath if a user browses to the file from his/her PC? Thanks! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
Hi Richard, Thanks a lot! So can I let them upload, say, a 700 Mb file via POST or should I consider connecting to FTP? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

Re: [PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
Hi Richard, So, say, they make audiobooks or movies and they want them to be available as (paid) download. How should they upload it so they would be in the catalog? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian

[PHP] Suggestion needed: Internet store script

2011-06-13 Thread Andre Polykanine
company. 4. It should be freeware (or, if it's really impossible, not expensive). 5. It should be Php+MySql. Thanks! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List

Re: [PHP] iPhone sadness

2011-05-30 Thread Andre Polykanine
. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Lester Caine les...@lsces.co.uk To: php-general

Re: [PHP] iPhone sadness

2011-05-30 Thread Andre Polykanine
for companies making the accessibility solutions. And, BTW, this bottom posting has started just two or three years ago when Thunderbird came in place. But I'll make a template that inserts the text below the quotes if you want :-). -- With best regards from Ukraine, Andre Skype: Francophile My blog

Re: [PHP] phpsadness

2011-05-28 Thread Andre Polykanine
Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Lester Caine les...@lsces.co.uk To: php-general@lists.php.net Date created: , 10:49

Re: [PHP] phpsadness

2011-05-28 Thread Andre Polykanine
Hello Peter, It's not unicode... :-(( Yepp, I saw this thing in notes with array_map, array_chunk and array_something_else but it's still too slow, on my opinion. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter

Re: [PHP] phpsadness

2011-05-28 Thread Andre Polykanine
that worked $alphabet_array=explode('', $alphabet); $letter_numbers=array_flip($alphabet_array); this is just one case I encountered some time ago. Yes, I made this by separating letters with commas... but it's not the unique case when I need it. -- With best regards from Ukraine, Andre Skype

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Andre Polykanine
Hello Negin, $query1=select * from patient where id=.$_POST['txt']; $result1=mysql_query($query1); $rows=mysql_num_rows($result1); Note: you *didn't* execute the query by calling mysql_query on it. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion

Re: [PHP] PHPCaptcha / Securimage 2.0.2 - Authentication Bypass - SOS-11-007

2011-05-21 Thread Andre Polykanine
deep problems and maybe even lawsuits from people. Sorry again, it's been just a really painful thing for us for years. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

Re: [PHP] img src ..... problem in onclick

2011-05-20 Thread Andre Polykanine
();?is *completely* formed and sent to the user's browser. What you can do is changing your PHP variables by using AJAX. Consider reading about jQuery in general and $.ajax in particular. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian

Re: [PHP] A Review Request

2011-05-20 Thread Andre Polykanine
!), but as a web developer, I would like to know how a really bad guy can break my sites and prevent him to do this :-). Thanks! -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

Re: [PHP] img src ..... problem in onclick

2011-05-20 Thread Andre Polykanine
Hi Richard, Tedd, Hey guys, you did understand what I meant. I meant you can't just go and write a session variable by onclicking it in JavaScript. You need AJAX for that, don't you? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org

Re: [PHP] Filtering data not with mysql...

2011-05-19 Thread Andre Polykanine
Hi Richard, Oh my... I hate those pdf's :-(( Could someone tell me in some words what do I need to do beside mysql_real_escape_string() and Html input sanitizing? Thanks and sorry for the inconvenience) -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org

Re: [PHP] A Review Request

2011-05-19 Thread Andre Polykanine
Hello Alex, Two (stupid?) questions: 1. Why PHP_SELF is better than SCRIPT_NAME? 2. Why strcmp() is better than just comparing? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

Re: [PHP] Warning: session_start()

2011-05-18 Thread Andre Polykanine
Hello Nazish, Try to delete your HTML comments before the ?php starting tag. So remove *anything* before ?php. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

Re: [PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Andre Polykanine
))); return $res; } } $result='=?utf-8?Q?'.quoted_printable_encode($str).'?='; return $result; } If you want to send mail through an SMTP server, consider using a class written by myself :-): http://hkc.im/Y The class is documented and ships with examples. -- With best regards from Ukraine, Andre

[PHP] Functions/methods aliases in PHp 5.2

2011-05-15 Thread Andre Polykanine
regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Functions/methods aliases in PHp 5.2

2011-05-15 Thread Andre Polykanine
Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Richard Quadling rquadl...@gmail.com To: Andre Polykanine Date created: , 12:48:30 AM

Re: [PHP] Short tag: why is it bad practice?

2011-05-11 Thread Andre Polykanine
Hello, So, as I've understood, the only issue with ? // blah-blah ? is the ?xml version 1.0? thing? Thanks! -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

[PHP] Short tag: why is it bad practice?

2011-05-10 Thread Andre Polykanine
. Why is this considered not kosher, I mean, good coding practice? Thanks! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Bold links

2011-05-09 Thread Andre Polykanine
from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: tedd tedd.sperl...@gmail.com To: ad...@buskirkgraphics.com Date created: , 12:56

Re: [PHP] mysql error

2011-05-05 Thread Andre Polykanine
Hello Grega, What do you mean by uniqueid(idlog)? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From

Re: [PHP] Custom function

2011-05-03 Thread Andre Polykanine
in PHP, isn't it? Thanks! -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Ashley Sheridan

Re: [PHP] Why Constants could Not be Array?

2011-04-30 Thread Andre Polykanine
Hello Walkinraven, I use serialize for that. define(MY_CONSTANT, serialize(array(1, 2, hello))); -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Andre Polykanine
Hello Dave, echo pCopyright © Dave Mehler, 2011 — .date(Y)./p; -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message

Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Andre Polykanine
Hello Peter, And what would you recommend as an Html sanitizing tool? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message

[PHP] Wiki formatting class or something similar

2011-04-29 Thread Andre Polykanine
in my directory. Thanks in advance! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's faster using if else or arrays?

2011-04-28 Thread Andre Polykanine
Hello Dholmes1031, I would write it like this: switch($foo) { case 5: $dothis; break; case 3: $dothat; break; default: $donothing; break; } -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com

Re: [PHP] Re: What's faster using if else or arrays?

2011-04-28 Thread Andre Polykanine
Hello Jim, I heard of arrays in the following context: if (($foo==5) || ($foo==orange) || ($foo==88) .. So *that* would be done much better and cleaner with arrays. $FoosArray=array(5, orange, 88); if (in_array($foo, $FoosArray)) { ... } -- With best regards from Ukraine, Andre Skype

Re: [PHP] Destroying cookies... not working

2011-04-27 Thread Andre Polykanine
Hello Rick, Pay attention how you did set the cookie. When I tried to unset the cookie using only three parameters, I got no luck because I had set it using five: setCookie (mycookie, , time()-32557600, '/', '.oire.org'); -- With best regards from Ukraine, Andre Skype: Francophile My blog: http

Re: [PHP] the best 1 book for php

2011-04-07 Thread Andre Polykanine
Hello Kirk, Php manual from php.net :-). -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Kirk Bailey

[PHP] Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-03 Thread Andre Polykanine
Hello Peter, Just because you mentioned config files. What would you suggest me as better format for them? Database is not available yet since I need to make a config file before creating a database. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org

[PHP] PHP 5.2.x with MySQL 5.5.x

2011-03-31 Thread Andre Matos
, specially on Mac OS X? Thanks, Andre -- Andre Matos andrema...@mineirinho.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Resizing an image

2011-03-28 Thread Andre Polykanine
it as a file (replacing the uploaded larger file). Could I make it with fwrite and then copy it to the server? All of the examples give header(image/jpeg)... Thanks! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion

Re: [PHP] mysql_num_rows()

2011-02-22 Thread Andre Polykanine
Hello Gary, Please wrap $i in braces in your variable variable: if ( isset($_POST[county{$i}] ) ) { echo You have chosen . $_POST[county{$i}]. br/; -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
Hello Nazish, Try to do the following in your login.php: ?php print_r($_POST); // assign your variables echo br$loginbr$passwordbr$insertbr; So we'll see the result. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
Hello Nazish, Echo the $insert variable. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Nazish naz

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
Hello Tamara, :-)) I assume that was a testcase... -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From

Re: [PHP] Howdy (new in here)

2011-02-16 Thread Andre Polykanine
Hello Micky, And I prefer this: if ($foo==$baz) :-). I don't know if it's kosher not to put spaces around the == but still... -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Andre Polykanine
Hello Fotoo, ? error_reporting(0); -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: fo

Re: [PHP] Custom function

2011-02-16 Thread Andre Polykanine
Hello Peter, So is func_get_args() the unique way? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Andre Polykanine
Hello David, As for me, I use KR style, also. I find it the most readable, accessible and maintainable. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com

Re: [PHP] Custom function

2011-02-15 Thread Andre Polykanine
Hello Ron, Give it a default (possible empty) value: function MyFunction($x, $y, $z=) { // function goes here if (!empty($z)) { // The optional parameter is given } } -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http

Re: [PHP] Custom function

2011-02-15 Thread Andre Polykanine
Hello Mark, Hm... will if ($z) evaluate to true if $z==0? I thought no... Actually, we can use if (isset($z)) -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http

[PHP] Simplifying MySql queries

2011-02-12 Thread Andre Polykanine
one random question is selected from all of the four categories? Thanks! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] email address syntax checker

2011-01-20 Thread Andre Polykanine
Hej Nisse, Me thinks it isn't a valid address :-). -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From

Re: [PHP] empty() in email message

2010-12-13 Thread Andre Polykanine
Hello Gary, Try using this: if (!empty($beefolives)) $msg.=Order: beef olives; or: $msg.=empty($beefolives)? : Order: beef olives; -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message

Re[2]: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Andre Polykanine
Hello Steve, Btw, the built-in mail() function is to slow to send such amount of mail. Consider using SMTP (if you don't). -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message

Re: [PHP] rewriteTextLinks.php - make URLs in plain text clickable

2010-11-22 Thread Andre Polykanine
Hello Yermo, thanks a lot! I will try this on my project (http://oire.org/) and I'll inform you if I modify it somehow. -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From

Re: [PHP] mysql help (sorry, a bit OT)

2010-11-19 Thread Andre Polykanine
. There I can easily test everything I need (including PHP files and MySql queries) without any danger to crash the main release). -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From

Re: [PHP] question about preventing polling for more than once

2010-11-12 Thread Andre Polykanine
Hello ??, Try to clean up your cookies. Maybe they set a cookie on your computer. -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From: ?? xiaohan2...@gmail.com To: php-general

Re: [PHP] Open Source PHP/ mySQL Project Management

2010-11-11 Thread Andre Polykanine
Hello Don, I would suggest Trac. It is written in Python, however I haven't seen anything better for a while. -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From: Don Wieland

Re[2]: [PHP] Open Source PHP/ mySQL Project Management

2010-11-11 Thread Andre Polykanine
Hello Jonathan, I tried to use Mantis, however it didn't send e-mails properly so I gave up. -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From: Jonathan Tapicer tapi

Re: [PHP] questions about if statements regarding a checkbox

2010-10-31 Thread Andre Polykanine
Hello Ben, You should use isset: if (isset($_POST['check'])) { // The checkbox is checked } else { // It's unchecked } -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From

[PHP] RegExp question: how to add a number?

2010-10-14 Thread Andre Polykanine
, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Making multiple RSS feeds for the blog website

2010-08-27 Thread Andre Polykanine
regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From: Michelle Konzack linux4miche...@tamay-dogan.net To: php-general@lists.php.net php-general@lists.php.net Date: Friday, August 27, 2010, 3:31:58 AM

[PHP] Making multiple RSS feeds for the blog website

2010-08-26 Thread Andre Polykanine
to it. The feeds have usually file extensions of .rss or .xml. Question: how do we do that with PHP? Thanks! -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-19 Thread Andre Polykanine
Hello Nathan, Sorry, could you provide any links to read for a security noob?) Actually, I know that the md5 is decryptable (there are bases with words encrypted in md5), but I thought the SHA1 was secure... -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com

Re: [PHP] PHP Reference

2010-08-14 Thread Andre Polykanine
Hello Karl, If I understood you properly, try this: ?SomeFunction();? -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From: Karl DeSaulniers k...@designdrumm.com To: php

Re[2]: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread Andre Polykanine
software for developing. -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule - Original message - From: viraj kali...@gmail.com To: a...@ashleysheridan.co.uk a...@ashleysheridan.co.uk Date: Tuesday, July 27, 2010, 12:42:36 PM Subject: [PHP] Do you

Re[2]: [PHP] opening link in new window

2010-07-24 Thread Andre Polykanine
Hi Rob and all, Btw, is there a way to do window.close without any questions of a browser? I know the only one: the window is generated via window.open. -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo

Re: [PHP] HTML in emails

2010-07-06 Thread Andre Majorel
On 2010-07-04 11:43 -0400, Al wrote: Seems like, from my preliminary Google searching, I should not waste time with the standard's way and just go straight to sending simple html pages since all modern browsers handle it well. And, it appears to be the way web is going. Browsers ? The web ?

Re: [PHP] Login form + User level access

2010-06-29 Thread Andre Polykanine
(there are better solutions, but I used it simply for this example). -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter

Re[2]: [PHP] Login form + User level access

2010-06-29 Thread Andre Polykanine
Hello Carlos, What I forgot to add is the following: I'd suggest you to put in the integers and not the strings (1 instead of PURCHASER, 2 instead of SALES etc.). It will quicken the process. -- With best regards from Ukraine, Andre Skype

Re[4]: [PHP] Login form + User level access

2010-06-29 Thread Andre Polykanine
Hello Carlos, Yes, it would be the same. You'll have some double info in your DB, though. -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule

Re: [PHP] Inserting, storing, outputting dates and selections

2010-06-02 Thread Andre Polykanine
1/option option value=2Choice 2/option So now you have values to insert) Hope I could help you!) -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule

Re: [PHP] Parse info from 1,000 files to file

2010-06-02 Thread Andre Polykanine
Hello Sam, Consider using opendir(), readdir(), fopen(), file_get_contents(), fwrite(). -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule

Re[2]: [PHP] One more time about regexes

2010-05-27 Thread Andre Polykanine
, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Adam Richardson simples...@gmail.com To: php-general@lists.php.net php-general@lists.php.net Date

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Andre Polykanine
Hello Guus, Actually, we are using the same method here on http://oire.org/. We have all of the language files in UTF8 format and everything seems to be OK. Yes, unicode support in PHp laisse à désirer, like the French say, but it does support UTF8 files. -- With best regards from Ukraine, Andre

[PHP] One more time about regexes

2010-05-26 Thread Andre Polykanine
a real task I'm accomplishing but the tasks requiring that tend to multiply... Thanks a lot! -- With best regards from Ukraine, Andre Http://oire.org/ - The Fantasy blogs of Oire Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ

Re[6]: [PHP] preg_replace: avoiding double replacements

2010-05-19 Thread Andre Polykanine
Ash, Actually it's not the Caesar cypher itself (see http://en.wikipedia.org/wiki/Temurah_(Kabbalah), third method), but your way of transformation seems to me the best for a while) Thanks! -- With best regards from Ukraine, Andre

Re[2]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Andre Polykanine
Hello Jim, That might work for that particular example, but I have utf-8 strings containing different characters of different alphabets, so neither str_replace nor strtr work... Thanks! -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon

Re[4]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Andre Polykanine
the string and sees an N... what does it do? Surely, it changes it back to A! I hoped (in vain) that there exists a modifier preventing this behavior... but it seems that it's false( Thanks! -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon

Re[6]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Andre Polykanine
Hello Peter, Good point. And more than that, I make a decrypting script, also... so gibberish defenitely is an issue) -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952

[PHP] A simple question, however it's urgent

2010-05-17 Thread Andre Polykanine
provider, same settings, all the same. When I call $_POST['uwork']=LineBreaks($_POST['uwork']); Nothing happens. Yes, it does see \r\n's but it doesn't replace them with br's. Tried built-in nl2br(), but no result... Thank you!.. -- With best regards from Ukraine, Andre Http://oire.org/ - The Fantasy

Re[2]: [PHP] A simple question, however it's urgent

2010-05-17 Thread Andre Polykanine
[Add] = ? ?? ) Modified POST: Array ( [uwork] = asdfsadf\r\nasdfasdf\r\nasdfasdf\r\nasdfasdf\r\nasdfasdf\r\nasdf [lid] = 23 [stud] = 1587 [sfac] = 3 [stid] = 9 [report] = 0 [Add] = ? ?? ) -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon

Re[4]: [PHP] A simple question, however it's urgent

2010-05-17 Thread Andre Polykanine
Ash, Magic quotes are disabled: http://gviragon.org/study/php.php Any ideas? Thanks a lot! -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule

  1   2   3   4   5   >