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
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:/
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
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
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
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"
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
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
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
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
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
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
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
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
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
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
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.
)
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
://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
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
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
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
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.
--
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
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:
>
>
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,
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
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
: 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
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!),
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
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:
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
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
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)
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 --
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
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
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,
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
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
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 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
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 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 ---
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
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 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
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 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 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 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
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 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
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 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/
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 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 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,
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 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 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 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:
://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 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
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/
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=
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
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
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 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 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 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 ??,
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 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 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 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
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 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
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
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.).
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
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 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
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
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
>
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
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
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
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 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
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 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
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
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&
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,
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
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
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
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 - 100 of 136 matches
Mail list logo