[PHP] About sessions and subdomains

2012-06-02 Thread Andre Polykanine
Hi everyone, Sorry, this might be a stupid question, but still. Once upon a time I had done so my sessions were handled on all subdomains of my website (shame on me for doing so!). Now, when I comment out the line session_set_cookie_params(0, "/", ".oire.org"); in my header file, I got

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] Help on number matching function

2011-09-16 Thread Andre Polykanine
Hello Dare, DW> I need a Function of any category in  either PHP or MySQL RDBMS DW> customize Function, Class, Methods or anything that could help me DW> compare a particular set of number and return their matching DW> result. consider using array_intersect(). -- With best regards fro

Re: [PHP] concatenating

2011-08-11 Thread Andre Polykanine
Hello Chris, CS> Is it possible to concatenate a string and an element from a CS> mysql_fetch_assoc array? I haven't had much luck searching google. CS> Such as concatenating "results" with ' . $posts_row['store_tptest'] . CS> ' so that if there are no elements returned nothing will be d

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 Sk

[PHP] A php bug or?..

2011-08-08 Thread Andre Polykanine
Hi everyone, As we all know, count() returns 1 if the variable is not an array. Question is: why in the world does it this? If a variable is *notA* an array, it contains *zero* array elements. You can answer: "but no, man, you can say $x="world"; $y=$x{3}; // $y="l"

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 Gen

Re: [PHP] Login with Remember me Feature

2011-08-07 Thread Andre Polykanine
Hello alekto, I've got several notes to point out: 1. You can't do neither a header(), nor a SetCookie() after any echo on the page. The out-of-php pieces of the page included. 2. Don't, please please don't store raw passwords in the database! Hash them, better even adding a salt. Th

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/me

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] Studying mcrypt

2011-08-03 Thread Andre Polykanine
Hi Ash, > Please don't top-post :) *Huge sigh* OK, OK! But still it's too uncomfortable to read bottom-posting! :P > You can use base64_encode() on it to convert it into something that's > printable and storable in the DB without having to resort to a binary > blob Thanks, will try!) -- Wi

Re: [PHP] Studying mcrypt

2011-08-03 Thread Andre Polykanine
log: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message ---- From: Alex Nikitin To: Andre Polykanine Date created: , 9:27:42 PM Subject: [PHP] Studying mcrypt Yes, since it's

[PHP] Studying mcrypt

2011-08-03 Thread Andre Polykanine
Hello Php, It's my first time I use mcrypt. I've done everything like it's written in the php manuals, here is the code: And here's what I get: Original password: asdfasdfasdf Encrypted password: Q�j�* Question: Is it normal to have such strange characters in the encrypted string? I'm

Re: [PHP] Best editor?

2011-08-03 Thread Andre Polykanine
Hi, > Notepad!!! LOL.. I use netbeans but eclipse is nice. A lot of it is > personal opinion. I have been using Notepad since... oh, since 2007, I believe). And it's my editor of choice :-). Actually now I'm using AkelPad because of the unicode issues (I need to save without a bit order m

Re: [PHP] Session treating

2011-07-31 Thread Andre Polykanine
Hello Ashley, > One thing sticks out a little bit to me. In your index.php file, you're > accessing an element of the $_SESSION array, but without calling > session_start() first. I believe this may be causing the issue you are seeing. I tried using it without success. I'm having now 3 separat

[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 blog: http://oire.

Re: [PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: ad...@buskirkgraphics.com To: 'Andre Polykanine' Date created: , 5:46:00 PM Subject: [PHP] Ftp upload Andre, Anything over 7 MB to me should be

Re: [PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
://facebook.com/menelion Original message From: ad...@buskirkgraphics.com To: 'Andre Polykanine' Date created: , 3:41:59 PM Subject: [PHP] Ftp upload Andre, I have checked the $_POST, and THE $_FILES. I am pretty sure the actual path is not passed. Now yo

[PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
Hi everyone, I would like to have a possibility to upload really large files to the website. As we all know, the post_max_size parameter is set to 8Mb by default. However, I see that the ftp_put() function has a "local filepath" parameter. And the question is: how can I retrieve the local fi

[PHP] Suggestion needed: Internet store script

2011-06-13 Thread Andre Polykanine
Hi everyone, I'm making a website for a small company. The site itself is quite easy to accomplish, but there are two problems: i18n and the store. So I would like to have your suggestions about the store. Here are the requirements: 1. Basic functionality (possibility to purchase without author

Re: [PHP] iPhone sadness

2011-05-30 Thread Andre Polykanine
kype: 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: , 4:15:12 PM Subject: [PHP] iPhone sadness

Re: [PHP] iPhone sadness

2011-05-30 Thread Andre Polykanine
Hello Lester, Sorry, I don't get what you mean by bottom posting but here is my complains: most of you post your messages *after* the quotes. It's really not comfortable: I use screenreading software here and I need to scroll with my down arrow key before I see the actual message. --

Re: [PHP] phpsadness

2011-05-28 Thread Andre Polykanine
phpsadness On Sat, May 28, 2011 at 4:33 AM, Robert Cummings wrote: > On 11-05-28 05:26 AM, Andre Polykanine wrote: > >> Hello Lester, >> >> Actually, many of the points are not important for me so far, however >> this one really drives me mad: >> http

Re: [PHP] phpsadness

2011-05-28 Thread Andre Polykanine
n) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Peter Lind To: Andre Polykanine Date created: , 12:37:18 PM Subject: [PHP] phpsadness On May 28, 2011 11:27 AM, "Andre Polykanine" wrote: > >

Re: [PHP] phpsadness

2011-05-28 Thread Andre Polykanine
Hello Lester, Actually, many of the points are not important for me so far, however this one really drives me mad: http://phpsadness.com/?page=sad/35 (can't explode() by an empty string) Besides that, he says nothing about unicode issues. I love PHP (I really do, it's a neat language,

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 (mo

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

2011-05-21 Thread Andre Polykanine
Hello Lists, Sorry for my rude words but... there are already too many websites that either don't give us a possibility to get an audio file instead of those damned captcha images; there are lots of others (such as Msn) where the audio is too distorted to be heard. It's not my f

Re: [PHP] problem in onclick

2011-05-20 Thread Andre Polykanine
: tedd [mailto:tedd.sperl...@gmail.com] Sent: Friday, May 20, 2011 2:10 PM To: php-general@lists.php.net Subject: Re: [PHP] problem in onclick At 6:41 PM +0300 5/20/11, Andre Polykanine wrote: >that is completely wrong. You're mixing up two things: PHP is a >server-side l

Re: [PHP] A Review Request

2011-05-20 Thread Andre Polykanine
Hello tedd, Oh, I liked what you've said about a website like a house. May I translate this into Russian and quote you in my blog? I'll place the copyright :-). Actually, what I would like to learn is how to break things. No, I don't gonna be a hacker (I don't want to go to a jail!),

Re: [PHP] problem in onclick

2011-05-20 Thread Andre Polykanine
Hello Negin, that is completely wrong. You're mixing up two things: PHP is a server-side language, JavaScript is a client-side language. onClickis client-side, so you can't say onClick="" because onclick is performed *after* the PHP script something();"?>is *completely* fo

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://oire.org/m

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
Hello Eli, I'm using this code: private function HeaderEncode ($str) { // For the compatibility with PHP versions lower than 5.3.0 if (!function_exists ('quoted_printable_encode')) { function quoted_printable_encode ($str) { $res=str_replace ("+", "_", str_replace ("%", "=", urlencode($str)

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
elion Original message From: Daevid Vincent To: php-general@lists.php.net Date created: , 9:55:23 PM Subject: [PHP] Short tag: why is it bad practice? > -Original Message- > From: Joshua Kehn [mailto:josh.k...@gmail.com] > Sent: Tuesday, May 10, 2011 8:19 AM > To:

[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: Franco

Re: [PHP] Bold links

2011-05-09 Thread Andre Polykanine
Hello tedd, I'm standing up and applauding you. Really, I'm... quite touched. There are too few people that care about us, I mean, JAWS users. Of course, we, my wife and I, develop accessible websites ourselves but... there is lots of inaccessible stuff out there. -- With best regards from

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: Greg

Re: [PHP] Custom function

2011-05-03 Thread Andre Polykanine
Hello Ashley, By the way, the non-last optional parameter can't be missed, am I right? In some languages we could write something like: function test ($a, $foo=50, $bar=true) { // ... } Then call it like this: $m=test("blah", , false); meaning $m=test("blah", 50, false); This is impossibl

Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Andre Polykanine
From: Peter Lind To: Stuart Dallas Date created: , 4:26:41 PM Subject: [PHP] Wiki formatting class or something similar On 30 April 2011 15:13, Stuart Dallas wrote: > On Friday, 29 April 2011 at 22:04, Andre Polykanine wrote: > Hi everyone, >> I allow my users to p

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 Original message ---

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

[PHP] Wiki formatting class or something similar

2011-04-29 Thread Andre Polykanine
Hi everyone, I allow my users to put some Html into their blogs. I filter it using a great tool called HtmLawed and written by Dr. Santosh Patnaik (if you're reading this, many thanks to you!). However, I would like to give them a possibility to mark-up their text in a more convenient way

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: Fr

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/m_

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: h

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 (mostly i

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

2011-04-03 Thread Andre Polykanine
nsule Facebook: http://facebook.com/menelion Original message From: Peter Lind To: Andre Polykanine Date created: , 10:44:31 PM Subject: [PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?) On 3 April 2011 21:41,

[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/menel

[PHP] Resizing an image

2011-03-28 Thread Andre Polykanine
Hi everyone, Image processing is a part of Php language completely unknown to me :-(. So there is my task: I need to process an uploaded image. We allow uploading of gif, jpeg, and png images. If an image is wider than 600px, it should be proportionally resized to the width of 600px. Ye

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 in Russian) Twitter: http://twitter.com/

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: Tam

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: p

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/m_elensule F

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

2011-02-20 Thread Andre Polykanine
Hello Nazish, first of all, I'd suggest you to remove all of the quotes around the variables: mysql_connect($host, $user, $password) or die("could not connect!"); the same is to be done with the query itself. Second, add an "or die" to the query: mysql_query($insert) or die ("Unable to a

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 From

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 Facebook: http:

Re: [PHP] Custom function

2011-02-15 Thread Andre Polykanine
://facebook.com/menelion Original message From: Mark Kelly To: php-general@lists.php.net Date created: , 2:21:36 AM Subject: [PHP] Custom function Hi. On Tuesday 15 Feb 2011 at 23:41 Andre Polykanine wrote: > Give it a default (possible empty) value: > > function M

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: htt

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.com/

[PHP] Simplifying MySql queries

2011-02-12 Thread Andre Polykanine
Hi all, I'm using in my PHP script the following four MySql queries: $q1=mysql_query("SELECT *FROM`CandidateQuestions`WHERE `Category`='1' ORDER BY RAND() LIMIT 1"); $q2=mysql_query("SELECT *FROM`CandidateQuestions`WHERE `Category`='2' ORDER BY RAND() LIMIT 1"); $q3=

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: Ni

[PHP] Common session for all subdomains?

2010-12-20 Thread Andre Polykanine
Hello php-general, I've got a question: I have a site http://oire.org/. Then we started developing some applications at http://apps.oire.org/. How can I manage it in the way so the session valid at http://oire.org/ would be also valid at http://apps.oire.org/? Thanks! -- With best regards from Ukr

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 messa

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

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: Yer

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

2010-11-19 Thread Andre Polykanine
Hello Gary, Actually, what I do here is the following: I create a subdomain called beta.mysite.com (for me it's http://beta.oire.org/ and http://beta.gviragon.org/ :-)). There I have a copy of my database and all of my files. The only difference is the mysql_select_db in the connect.php file. Ther

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: Don Wiel

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: [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: Ben

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

2010-10-14 Thread Andre Polykanine
Hi everyone, I hope you're doing well (haven't written here for a long time :-)). The question is as follows: I have a regexp that would do the following. If the string begins with "Re:", it will change the beginning to "Re[2]:"; if it doesn't, then it would add "Re:" at the beginning. But (attenti

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
S feeds for the blog website Hello Andre Polykanine, Am 2010-08-27 02:52:48, hacktest Du folgendes herunter: > Hi everyone, > We are developing a blog service website. Very interesting ;-) > Question: how do we do that with PHP? By reading the Documentation... :-D Blubber

[PHP] Making multiple RSS feeds for the blog website

2010-08-26 Thread Andre Polykanine
Hi everyone, We are developing a blog service website. What we need now is the ability to make multiple RSS feeds from several pages (an RSS of each user's blog, a feed from each timeline - timelines are our representation of users' favorites; a feed filled with comments to a separate entry, etc.).

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/m

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
Hello viraj, As for classes, it's suggested to start a class name with a capital: class MyBestClass { ... } As for functions and class methods, there are lots of people who name them like this: function the_greatest_function_in_the_world () { ... } Maybe it's readable and great, but I have a li

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 Yahoo! me

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

2010-06-29 Thread Andre Polykanine
rds 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: Andre Polykanine > To: Carlos Sura >

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

2010-06-29 Thread Andre Polykanine
Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message ----- From: Andre Polykanine To: Carlos Sura Date: Tuesday, June 29, 2010, 11:04:53 PM Subject: [PHP] Login form + User lev

Re: [PHP] Login form + User level access

2010-06-29 Thread Andre Polykanine
Hello Carlos, Something like this (assuming that the field with the type of the user - admin, sales, etc. - is called `Status`, and the table is called `Users`): $f=mysql_fetch_assoc(mysql_query("SELECT `Status`, COUNT(*) AS `UserExists` FROM `Users` WHERE `Name`='".$_POST['name']."' AND `Password

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_elensule - Origin

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

2010-06-02 Thread Andre Polykanine
Hi Dave, Let's look and see) 1. You can re-format your date so that it will fit the needed format for MySql: $_POST['EndDate']=date("Y-m-d", $_POST['EndDate']); 2. There's a PHP function called

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
Richardson To: php-general@lists.php.net Date: Thursday, May 27, 2010, 7:56:28 AM Subject: [PHP] One more time about regexes On Wed, May 26, 2010 at 11:10 PM, Nilesh Govindarajan wrote: > -- Forwarded message -- > From: Nilesh Govindarajan > Date: Thu, May 27, 2010 at 8:40

[PHP] One more time about regexes

2010-05-26 Thread Andre Polykanine
Hello everyone, Sorry, but I'm asking one more time (since it's really annoying me and I need to apply some really dirty hacks): Is there a way making preg_replace() pass through the regex one single time searching from left to right and not to erase what it has already done? I can give you a real

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

2010-05-19 Thread Andre Polykanine
avoiding double replacements On Tue, 2010-05-18 at 13:09 +0200, Peter Lind wrote: > On 18 May 2010 12:35, Andre Polykanine wrote: > > Hello Peter, > > > > Hm... I see I need to specify what I'm really doing. Actually, I need > > to change the letters in the

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

2010-05-18 Thread Andre Polykanine
Lind wrote: > > On 18 May 2010 13:32, Ashley Sheridan wrote: > > > > On Tue, 2010-05-18 at 13:09 +0200, Peter Lind wrote: > > > > On 18 May 2010 12:35, Andre Polykanine wrote: > > > Hello Peter, > > > > > > Hm... I see I need to specify what I&

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

2010-05-18 Thread Andre Polykanine
ex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Peter Lind To: Andre Polykanine Date: Tuesday, May 18, 2010, 10:19:51 AM Subject: [PHP] preg_replace: avoiding double replacements On 18 May 2010 09:04,

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

2010-05-18 Thread Andre Polykanine
elon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Jim Lucas To: Andre Polykanine Date: Tuesday, May 18, 2010, 3:33:09 AM Subject: [PHP] preg_replace: avoiding double replacements Andre Polykanine wrote: > Hello e

[PHP] preg_replace: avoiding double replacements

2010-05-17 Thread Andre Polykanine
Hello everyone, Sorry for bothering you again. Today I met a problem exactly described by a developer in users' notes that follow the preg_replace description in the manual: info at gratisrijden dot nl 02-Oct-2009 02:48 if you are using the preg_replace with arrays, the replacements will apply as

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

2010-05-17 Thread Andre Polykanine
sule - Original message - From: Ashley Sheridan To: Andre Polykanine Date: Monday, May 17, 2010, 3:34:07 PM Subject: [PHP] A simple question, however it's urgent On Mon, 2010-05-17 at 15:36 +0300, Andre Polykanine wrote: > Hey Ash, > > I do a print_r($_POST) and see there the \r

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

2010-05-17 Thread Andre Polykanine
ards 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: Ashley Sheridan To: Andre Polykanine Date: Monday, May 17, 2010, 3:24:37 PM Subje

  1   2   >