[PHP] Sending e-mail via socket

2010-02-22 Thread Andre Polykanine
Hello everyone, I've just subscribed to the list, and I already have a question. what I need to do is to send mail using sockets. Actually, the built-in Mail() function is great and I wouldn't have to search for something else if I didn't need more than one message to be sent at a time. Say, I have

Re[2]: [PHP] Sending e-mail via socket

2010-02-23 Thread Andre Polykanine
; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Rene Veerman To: Andre Polykanine Date: Tuesday, February 23, 2010, 2:58:41 AM Subject: [PHP] Sending e-mail via socket have you tried mail() with a large bcc h

Re: [PHP] XML functions

2010-03-06 Thread Andre Polykanine
Hello Ahmad and all, I will expand a little bit your question joining to it: what is the better technique to make an RSS feed on the website? The website is manually written, no CMS. -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jab

[PHP] EHLO error 554: what can it be?

2010-03-08 Thread Andre Polykanine
Hello everyone, I'm writing a class to send mail via an SMTP server with authorization. Everything seems to work but I get an EHLO error: 554 SMTP synchronization error Where should I look to avoid this? Thanks! -- With best regards from Ukraine, Andre Http://oire.org/ - The Fantasy blogs of Oir

Re[2]: [PHP] EHLO error 554: what can it be?

2010-03-09 Thread Andre Polykanine
gards 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: Kevin Kinsey To: Andre Polykanine Date: Tuesday, March 9, 2010, 6:46:24 A

Re: [PHP] PHP Sessions

2010-03-12 Thread Andre Polykanine
Hello Martine, Try to make on the second page a print_r ($_SESSION); -- 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 - F

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Andre Polykanine
Hello Martine, As you have been already told, the is not always supported. However I'd suggest you to do the following (since I love this form of tag): «» Note: I put within the tag only the variable. -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru

Re[2]: [PHP] Re: PHP Sessions

2010-03-13 Thread Andre Polykanine
nge them if possible. -- 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: Ashley Sheridan To: Andre Polykanine

[PHP] bug tracking system

2010-03-28 Thread Andre Polykanine
Hello everyone, Can you recommend a bug tracking system to be installed on the site? Requirements: written in PHP (or maybe Perl); tickets system; e-mail notifications. -- With best regards from Ukraine, Andre Http://oire.org/ - The Fantasy blogs of Oire Skype: Francophile; Wlm&MSN: arthaelon @ y

Re: [PHP] Re: Web Design

2010-03-28 Thread Andre Polykanine
Hello Nathan, Parham and all, Actually, I confirm that you can code if you're blind. Parham, you have probably seen me on the other accessibility-related lists, so no need to say that I'

[PHP] Still searching for a bugtracking system

2010-03-30 Thread Andre Polykanine
Hello everyone, The best of all suggested bugtrackers is JotBug, on my opinion. But it works only with SQLite databases, and I have no access to such one (only MySql). Any solutions? P.S. I'd use Trac, but since I have no own server yet, we have no access to Python, either... Only Php, MySql, Perl.

[PHP] How to redefine a function if it doesn't exist?

2010-03-30 Thread Andre Polykanine
Hello everyone, Sorry, I've forgotten how to do this... I need a quoted_printable_encode function but it's available only since PHP 5.3. How do I redefine that function only if PHP version is lower than 5.3? Would it be valid: function quoted_printable_encode ($str) { $x=quoted_printable_encode ($s

Re[2]: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Andre Polykanine
nd to you. > Runs using PHP and MySQL, it's flexible for public or private projects, > multiple projects etc. > > I do agree with you that Bugzilla seems heavy, I know it has its supporters > but I've always found it to be overkill for the projects I've worked on. >

Re: [PHP] MySQL query not working!

2010-03-31 Thread Andre Polykanine
Hello Parham, Adding to Ash's question, why to use the @ operator before mysql_query? -- 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

Re[2]: [PHP] MySQL query not working!

2010-03-31 Thread Andre Polykanine
arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Parham Doustdar To: Andre Polykanine Date: Wednesday, March 31, 2010, 3:20:54 PM Subject: [PHP] MySQL query not working! Andre, The @ op

Re[2]: [PHP] Still searching for a bugtracking system

2010-03-31 Thread Andre Polykanine
of their software (obviously): http://bugs.flyspray.org/ They have bad documentation but I tested the software and seems to be fine. They are slowly working in the final 1.0 version. Rewards ___ Jorge Gomes 2010/3/30 Shawn McKenzie > Andre Polykanine wrote: &

[PHP] convert a string into an array

2010-04-02 Thread Andre Polykanine
Hello everyone, It's quite simple but I'm still stuck. What I need is the following: I have an array as a parameter of my custom function. However, I'd like to allow users to enter a string instead of an array. In this case (if the parameter is a string), it must be replaced with an array containi

Re: [PHP] About the php mail function and imap_mail function

2010-04-04 Thread Andre Polykanine
Hello ttplayer, If GMail does allow sending through socket, wait a bit, I'll upload a class written on my own for sending mail through a custom SMTP via socket. -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! mess

[PHP] Who uses Mantis, please help!

2010-04-07 Thread Andre Polykanine
Hello everyone, I decided to use Mantis before I'll be able to use something like Trac :-). The problem is: I'm not getting mail about issues reported by my testers, only by myself. The preferences are set correctly (all the checkboxes are checked). Could you help me please? Thanks! -- With best

Re: [PHP] contant /

2010-04-08 Thread Andre Polykanine
Hello Jack, I have tons of errors like this and now I'm eliminating them, so I'll tell what to do: 1. Put apostrophes (single quotes) around the array item: $auth['company_name'] instead of $auth[company_name]; 2. (Just a suggestion) It's better to put the SQL tables and fields between grave accen

Re: [PHP] No notices for undefined index

2010-04-08 Thread Andre Polykanine
Hello Shawn, Hm... isn't it expected behavior? Since you haven't defined a $a['test'] item, PHP throws a notice... or I'm wrong? -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 19

[PHP] Sending e-mail through an SMTP with authentification

2010-04-09 Thread Andre Polykanine
Hello everyone, Sorry, don't remember who exactly needed this functionality. My class is finally ready and approved by the site admins) http://www.phpclasses.org/package/6128 -- With best regards from Ukraine, Andre Http://oire.org/ - The Fantasy blogs of Oire Skype: Francophile; Wlm&MSN: arthael

[PHP] How to do i18n better?

2010-04-18 Thread Andre Polykanine
Hi everyone, I posted this in the PHP-i18n list, however got no answer so trying here). We are making a blog platform (http://oire.org/) which is provided in several languages (currently they are Russian, Ukrainian, and English). Now the i18n process is made as follows: we set a cookie on the site

Re[2]: [PHP] How to do i18n better?

2010-04-19 Thread Andre Polykanine
ginal message - From: Peter Lind To: Andre Polykanine Date: Monday, April 19, 2010, 11:10:59 AM Subject: [PHP] How to do i18n better? Consider checking out http://php.net/gettext - it's the set of functions in PHP for i18n. With regards to language switching, you should consider using a

Re[2]: [PHP] How to do i18n better?

2010-04-20 Thread Andre Polykanine
nine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Ashley Sheridan To: Jason Pruim Date: Tuesday, April 20, 2010, 2:17:47 AM Subject: [PHP] How to do i18n better? On Mon, 2010-04-19 at 19:17 -0400, Jason Pruim wrote: > On Apr 18, 2010, at 6:55 PM, Andre Polykanine wrot

Re[2]: [PHP] replying to list

2010-04-21 Thread Andre Polykanine
Hello David, I agree with you, David. I'm subscribed to twenty mailing lists or so, and it's the only one that is set in a such weird way. I have a template that works if replying to the list, but here it obviously doesn't work. -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN

Re: [PHP] Security/Development Question

2010-04-28 Thread Andre Polykanine
Hello David, I'm not a PHP god but I would never ever do such things.I can't even imagine what can be the reason of passing an SQL query through a form... -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger:

Re: [PHP] How to Force IE to download text file?

2010-04-30 Thread Andre Polykanine
Hello Ali, It's attachment, not attachement. Maybe here's the reason? Just a thought. -- 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

[PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
Hello everyone, Just a basic question. I have my class starting like this: Class OireMail { // these are required public $smtp_server=""; public $domain=""; public $from=""; public $login=""; public $pass=""; And then go the function themselves. I was told that it's better to put the initial vari

Re[2]: [PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
bber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Nilesh Govindarajan To: php-general@lists.php.net Date: Saturday, May 1, 2010, 8:16:37 PM Subject: [PHP] A stupid question about classes On 05/01/2010 10:23 PM, A

Re[4]: [PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
ndre Polykanine Date: Saturday, May 1, 2010, 10:49:49 PM Subject: [PHP] A stupid question about classes On 1 May 2010 20:38, Andre Polykanine wrote: > Hello Nilesh, > > So could you illustrate a bit the __construct() function, please? > Should I pass those variables as parameters of that fu

Re: [PHP] Joomla FrameWork ::

2010-05-02 Thread Andre Polykanine
Hello Nick, That means that the function SetVar is situated in the jRequest class. So if you want to modify the function, for example, you need to know where the class jRequest is situated. -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthae

[PHP] Inserting rows with missing IDs

2010-05-03 Thread Andre Polykanine
Hello everyone, It's not a strictly PHP question, however since I use that with PHP, I'm asking it there. How can I accomplish the task of inserting rows into MySql database with missing IDs? Say, I have rows with IDs 1, 2, 3, 5, 9, 12, 17, and 195. How do I make the check that allows to insert fir

Re[2]: [PHP] Inserting rows with missing IDs

2010-05-03 Thread Andre Polykanine
dex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Bob McConnell To: Andre Polykanine Date: Monday, May 3, 2010, 4:40:18 PM Subject: [PHP] Inserting rows with missing IDs From: Andre Polykanine > It

Re[2]: [PHP] Inserting rows with missing IDs

2010-05-04 Thread Andre Polykanine
To: Andre Polykanine Date: Tuesday, May 4, 2010, 6:08:28 PM Subject: [PHP] Inserting rows with missing IDs On 3 May 2010 14:34, Andre Polykanine wrote: > Hello everyone, > It's not a strictly PHP question, however since I use that with PHP, > I'm asking it there. > How ca

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

2010-05-17 Thread Andre Polykanine
Hello everyone, Just can't imagine what happens. There is the simplest function in the world: function LineBreaks ($str) { $what=array("\r\n", "\n", "\r"); $with=array(""); $str=str_replace($what, $with, $str); return $str; } And... it does work on one site and doesn't on another. Same hosting pr

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

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

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

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

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

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

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

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

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

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

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

[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

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

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] 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] 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, 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] 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] 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] 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, 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 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] 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/

[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

[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

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,

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

[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] 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 "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] 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] 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] 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] 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

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

  1   2   >