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
; 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
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
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
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
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
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
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
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
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'
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.
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
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.
>
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
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
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:
&
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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&
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
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
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
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
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
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
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
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
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
>
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
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
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:
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
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.).
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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=
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/
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
://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
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:
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
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
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
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
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
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
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/
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
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
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,
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
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
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
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_
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
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
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
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 ---
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
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
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
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
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
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:
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 - 100 of 136 matches
Mail list logo