[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 t

[PHP] About sessions and subdomains

2012-06-02 Thread Andre Polykanine
header file, I got 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/me

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

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 c

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-g

[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 advanc

Re: [PHP] Help on number matching function

2011-09-16 Thread Andre Polykanine
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] concatenating

2011-08-11 Thread Andre Polykanine
there are no elements returned nothing 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:

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 regard

[PHP] A php bug or?..

2011-08-08 Thread Andre Polykanine
$x{3}; // $y="l" so 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 Twi

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

Re: [PHP] Login with Remember me Feature

2011-08-07 Thread Andre Polykanine
be easily stolen. the username 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: ht

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

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.

Re: [PHP] Studying mcrypt

2011-08-03 Thread Andre Polykanine
> blob Thanks, will try!) -- 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, 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 b

[PHP] Studying mcrypt

2011-08-03 Thread Andre Polykanine
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/) To

Re: [PHP] Best editor?

2011-08-03 Thread Andre Polykanine
hout a bit order 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: ht

Re: [PHP] Session treating

2011-07-31 Thread Andre Polykanine
#x27;m having now 3 separate 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:

[PHP] Session treating

2011-07-31 Thread Andre Polykanine
Hi guys and girls, I'm completely stuck at a really stupid thing. For some reason my session id doesn't pass through the links. Here is the code: index.php: Invalid login or password!"; include "login.php"; } else { // Attention! session_name("PalantirSessId"); session_start(); // Everything goe

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

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

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

[PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
the local 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, v

[PHP] Suggestion needed: Internet store script

2011-06-13 Thread Andre Polykanine
a Swedish 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 Gener

Re: [PHP] iPhone sadness

2011-05-30 Thread Andre Polykanine
n those who work 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 S

Re: [PHP] iPhone sadness

2011-05-30 Thread Andre Polykanine
al message. -- 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 To: php-general@lists.php.net Da

Re: [PHP] phpsadness

2011-05-28 Thread Andre Polykanine
xyz"; // I wish 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 reg

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 Russia

Re: [PHP] phpsadness

2011-05-28 Thread Andre Polykanine
st 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 To: php-general@lists.php.net Date created: , 10:4

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:

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

2011-05-21 Thread Andre Polykanine
r site, one day you might have 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://tw

Re: [PHP] 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:

Re: [PHP] A Review Request

2011-05-20 Thread Andre Polykanine
want to go to a jail!), 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_ele

Re: [PHP] 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

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] 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://oir

Re: [PHP] Warning: session_start()

2011-05-18 Thread Andre Polykanine
Hello Nazish, Try to delete your HTML comments before the http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Nazish To: php-general@lists.php.net Date created: , 9:15:37 P

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

2011-05-17 Thread Andre Polykanine
is documented and ships with examples. -- 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: Eli Orr (Office)

Re: [PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading

2011-05-17 Thread Andre Polykanine
Hello David, Friday, The first of April... Sorry for the off-topic :-) -- 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] Functions/methods aliases in PHp 5.2

2011-05-15 Thread Andre Polykanine
est 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: Richard Quadling To: Andre Polykanine Date created: , 12:48:30

[PHP] Functions/methods aliases in PHp 5.2

2011-05-15 Thread Andre Polykanine
Hi everyone, Is there any possibility to make a method or function alias in PHP? Yes, I know I can do the following: 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] Short tag: why is it bad practice?

2011-05-11 Thread Andre Polykanine
Hello, So, as I've understood, the only issue with is the 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://facebook.com/men

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

2011-05-10 Thread Andre Polykanine
Hi everyone, Many times I heard that the following two peaces of code are written in a bad manner: 1. 2. Your e-mail: ... As for now, I use both quite often. Why is this considered not kosher, I mean, good coding practice? Thanks! -- With best regards from Ukraine, Andre Skype

Re: [PHP] Bold links

2011-05-09 Thread Andre Polykanine
st 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: tedd To: ad...@buskirkgraphics.com Date created: , 12:56:34 AM Sub

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
uot;, 50, false); This is impossible 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

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

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Andre Polykanine
Hello Dave, echo "Copyright © Dave Mehler, 2011 — ".date("Y").""; -- 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] 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/

[PHP] Wiki formatting class or something similar

2011-04-29 Thread Andre Polykanine
replaced by an image 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] 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

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] 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 U

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

Re: [PHP] Last Name extraction in query

2011-04-04 Thread Andre Polykanine
Hello Geoff, As I dislike forums and like mailing lists (yes, an old habbit :-)), so here it is: mysql-subscr...@lists.mysql.com (that's for subscribing, indeed). And sorry for the offtopic. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (m

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

2011-04-03 Thread Andre Polykanine
Hello Peter, Thanks a lot! And is there a way to set (write) custom values in files other than php.ini? Sorry, didn't find such a function. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_ele

[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
to upload 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 Face

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}"]." "; -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly

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] 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 To

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: $login$password$insert"; So we'll see the result. -- 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
t) or die ("Unable to add user to the database: ".mysql_error()); This way you'll know what exactly _MySql_ says for an error if there is any. and third just tiny thing... it's not >? but ?> :-). -- With best regards from Ukraine, Andre Skype: Francophile M

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] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Andre Polykanine
Hello Fotoo, http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: fo...@gmx.de To: php-general@lists.php.net Date created: , 11:12:13 AM Subject: [PHP] errors after u

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 Face

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

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 Russia

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Andre Polykanine
Hello David, As for me, I use K&R 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

[PHP] Simplifying MySql queries

2011-02-12 Thread Andre Polykanine
1"); and here goes the question: is there a way to make these four in one so strictly 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.c

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

[PHP] Common session for all subdomains?

2010-12-20 Thread Andre Polykanine
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] 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://faceboo

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 me

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 -

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

2010-11-19 Thread Andre Polykanine
file. 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 -

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: ?? To: php-general@lists.php.net Date

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 To

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 Wi

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 mes

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

2010-10-14 Thread Andre Polykanine
x27;]); } else { $subject="Re: ".$f['Subject']; } I know there actually exists a way to do the numeral addition ("Re[5]:", not "Re[4+1]:"). How do I manage to do this? 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/unsub.php

Re: [PHP] PHP, Soap, and WDSL

2010-09-02 Thread Andre Polykanine
Hello Gino, Just put at the end the following: echo $response; That will echo it into the browser. -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message

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

2010-08-27 Thread Andre Polykanine
-- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From: Michelle Konzack To: php-general@lists.php.net Date: Friday, August 27, 2010, 3:31:58 AM Subject: [PHP] Re: Making multiple RS

[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.ph

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: -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion - Original message - From: Karl DeSaulniers To: php-general Date: Saturday, August 14, 2010, 9

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

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

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; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Y

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

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; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m

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

Re: [PHP] Login form + User level access

2010-06-29 Thread Andre Polykanine
} I assume you store crypted passwords in your database, and the algorythm is md5 (there are better solutions, but I used it simply for this example). -- With best regards

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; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elen

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

2010-06-02 Thread Andre Polykanine
uld do this instead: Choice 1 Choice 2 So now you have values to insert) Hope I could help you!) -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensul

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

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

2010-05-27 Thread Andre Polykanine
not the only one task to accomplish... Thanks a lot! -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Adam

[PHP] One more time about regexes

2010-05-26 Thread Andre Polykanine
give you 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; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: an

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,

  1   2   3   4   5   >