php-general Digest 19 Feb 2007 15:39:06 - Issue 4634
Topics (messages 249005 through 249021):
Re: What is $this-
249005 by: André Medeiros
249014 by: Leonard Burton
249015 by: Sancar Saran
249016 by: M.Sokolewicz
249017 by: Dick Richard
Re: needed
Spontaneously, my suggestion would to pipe the STDERR output from
your command to a file. I have to admit that this doesn't feel like
the most efficient solution since you would involve some reading /
writing to your filesystem.
Regards.
//frank
17 feb 2007 kl. 21.49 skrev Peter Lauri:
Paul Novitski wrote:
Unless your site is insanely popular or huge, does the method really
Sure I hope to once have an insanely popular or huge site, albeit that
probably won't happen.
O. Wyss
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Jochem Maas wrote:
don't go down the define('LANG_KEY', 'lang string value'); route - defines
are comparatively SLOW to create. IF you go down the road of loading in text
from 'per lang' files I would suggest using an array as the storage mechanism:
$Lang = array(
'LANG_KEY' = 'lang
you could instead use the proc_* functions to do this. However, seen as
those are pretty complicated and were not available in most php versions
ran by most hosts, a lot of people had to come up with other ways
around it. The most used way is indeed what you described. A simple:
$t =
oops, typo.
Should have been $this-message.
Leonard
On 2/18/07, André Medeiros [EMAIL PROTECTED] wrote:
Actually, $this-$message would be wrong, but the concept is right.
On 2/19/07, Leonard Burton [EMAIL PROTECTED] wrote:
HI,
$this-SetFont('Arial','B',15);
what you include is a
Hi,
I believe there are more offical answes available at around the web.
This is what I understand $this-
This is a base OO programming thing.
IN oo world you have to create new object to do someting.
like
$db = new adodb;
so after the generate object you will modify this object via
Ok, I'm pretty sure you have a point there, but I can't really see it to
be honest.
First of all, let's start out with the usual: RTFM! This page:
http://www.php.net/oop should explain basic class/object/method/member
terminology required to understand what's going on here.
In short you
Thanks for the responses. Searching the web for $this- provided no help at
all. Your explainations got me on track and now I can find the right manual
to read!
Dick
Dick Richard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can someone explain what $this- does and means. For example
-Message d'origine-
De : Haydar Tuna [mailto:[EMAIL PROTECTED]
Envoyé : lundi 19 février 2007 08:12
À : php-general@lists.php.net
Objet : [PHP] Re: Securing user table with sha function
Hello,
1) If you protect your site from SQL Injection, you must
replace all quote and
Hi all,
I'm just curious to find out if I'm the only person to have bumped into
this kind of issue with serialize/unserialize.
When I try and serialize an array containing a string value with the ±
character (alt+241 ASCII) such as :
120GB 2X512MB 15.4IN DVD±RW VHP FR
The
how can i use css with mail()?
thank u
Danial Rahmanzadeh wrote:
how can i use css with mail()?
this kind of question is really annoying [today] - it shows that you are
a f***ing lazy b'std who can't even be bothered to formulate a question
properly let alone type something like 'CSS mail php' into the nearest
search engine.
we are
# [EMAIL PROTECTED] / 2007-02-19 15:56:15 +0100:
I'm just curious to find out if I'm the only person to have bumped into
this kind of issue with serialize/unserialize.
When I try and serialize an array containing a string value with the ?
character (alt+241 ASCII) such as :
120GB
On 2/15/07, alex handle [EMAIL PROTECTED] wrote:
Hi all,
i recently upgraded a server from
freebsd 5.x to 6.2
php 4.4.2 - php 4.4.4
apache 1.3 - apache 2.2.4.
It worked all great till i noticed that the remote fopen()/file() did not
work.
allow_url_fopen is set to On and the httpd-error.log
There seems to be a behavior change introduced in 5.2.1 and I would like
to know if it was deliberate.
A couple of years ago, PHP introduced functionality that made it
possible to use a certain trick. I don't know how to describe this
trick in words, so I will illustrate with an example.
Lewis Kapell wrote:
There seems to be a behavior change introduced in 5.2.1 and I would like
to know if it was deliberate.
A couple of years ago, PHP introduced functionality that made it
possible to use a certain trick. I don't know how to describe this
trick in words, so I will
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-02-19 15:56:15 +0100:
I'm just curious to find out if I'm the only person to have bumped into
this kind of issue with serialize/unserialize.
When I try and serialize an array containing a string value with the ?
character (alt+241 ASCII) such
If this has nothing to do with PHP, maybe you can explain why the
behavior was broken when I upgraded from 5.2.0 to 5.2.1, and started
working again the instant I reverted back to 5.2.0. No other
configuration changes were made on the web server.
??
Thank you,
Lewis Kapell
Computer
On Monday 19 February 2007 17:03, Danial Rahmanzadeh wrote:
how can i use css with mail()?
thank u
?php
$data ='';
$fp = fopen (site/themes/.$arrStat['theme']./css/main.css,r);
while (!feof($fp)) { $data.= fgets($fp, 16384); }
$mail=
html
head
titleTitle/title
At 4:38 PM +0100 2/19/07, Jochem Maas wrote:
Danial Rahmanzadeh wrote:
how can i use css with mail()?
this kind of question is really annoying [today] - it shows that you are
a f***ing lazy b'std who can't even be bothered to formulate a question
properly let alone type something like 'CSS
# [EMAIL PROTECTED] / 2007-02-19 17:29:53 +0100:
Roman Neuhauser wrote:
class serializeASCII241 extends Tence_TestCase
{
function testTruncates()
{
return $this-assertEquals(
120GB 2X512MB 15.4IN DVD,
serialize(120GB 2X512MB 15.4IN DVD . chr(241) .
Greetings,
I have the following code which populates a dropdown box so a user can
select a month. They see the month name and the SELECTED value is the
corresponding numeric value 1-12 for the month. However, the selected
value for January would be 1. I need the selected value fro January
[snip]
I have the following code which populates a dropdown box so a user can
select a month. They see the month name and the SELECTED value is the
corresponding numeric value 1-12 for the month. However, the selected
value for January would be 1. I need the selected value fro January to
be
Dan Shirah wrote:
Greetings,
I have the following code which populates a dropdown box so a user can
select a month. They see the month name and the SELECTED value is the
corresponding numeric value 1-12 for the month. However, the selected
value for January would be 1. I need the selected
If I change my date value to m instead of M, that would only affect the
visual month representation that they see, and not the selected value that
I want to input into my database thoughright?
On 2/19/07, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
I have the following code which
-Original Message-
From: Dan Shirah [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 1:27 PM
To: php-general
Subject: [PHP] Month
Greetings,
I have the following code which populates a dropdown box so a user can
select a month. They see the month name and the SELECTED
[snip]
If I change my date value to m instead of M, that would only affect the
visual month representation that they see, and not the selected value
that I want to input into my database thoughright?
[/snip]
Do a combination.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Okay, so sprintf(%02s, $m) means that the value of $m would be checked for
the amount of digits returned. If less than two digits a zero would be
added to the front, correct?
On 2/19/07, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
If I change my date value to m instead of M, that would only
-Original Message-
From: Dan Shirah [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 1:44 PM
To: Jay Blanchard
Cc: php-general
Subject: Re: [PHP] Month
Okay, so sprintf(%02s, $m) means that the value of $m would be checked
for
the amount of digits returned. If less
Okay, when I try the sprintf I get the following error when I try to save my
form
Incorrect syntax near 's'.
select name=month
?PHP
for ($m=1;$m=12;$m++) {
$months=date('M', mktime(0, 0, 0, $m, 2));
echo option value=\sprintf('%02s', $m)\$months/option;
}
?
/select
On
-Original Message-
From: Dan Shirah [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 2:08 PM
To: Brad Fuller
Cc: Jay Blanchard; php-general
Subject: Re: [PHP] Month
Okay, when I try the sprintf I get the following error when I try to save
my
form
Incorrect syntax
Brad Bonkoski wrote:
Dan Shirah wrote:
Okay, when I try the sprintf I get the following error when I try to
save my
form
Incorrect syntax near 's'.
select name=month
?PHP
for ($m=1;$m=12;$m++) {
$months=date('M', mktime(0, 0, 0, $m, 2));
echo option value=\sprintf('%02s',
Dan Shirah wrote:
Okay, when I try the sprintf I get the following error when I try to
save my
form
Incorrect syntax near 's'.
select name=month
?PHP
for ($m=1;$m=12;$m++) {
$months=date('M', mktime(0, 0, 0, $m, 2));
echo option value=\sprintf('%02s', $m)\$months/option;
try:
Just when I think I'm getting the hang of PHP, I get confused beyond belief
:|
Is this working for you guys? When I test my page only 1/2 of the months
show up now. scratching head
select name=month
?PHP
for ($m=1;$m=12;$m++) {
$months=date('M', mktime(0, 0, 0, $m, 1));
echo
Dan Shirah wrote:
Just when I think I'm getting the hang of PHP, I get confused beyond
belief
:|
Is this working for you guys? When I test my page only 1/2 of the months
show up now. scratching head
select name=month
?PHP
for ($m=1;$m=12;$m++) {
$months=date('M', mktime(0, 0, 0,
GAH! Sorry. rubs eyes
On 2/19/07, Brad Bonkoski [EMAIL PROTECTED] wrote:
Dan Shirah wrote:
Just when I think I'm getting the hang of PHP, I get confused beyond
belief
:|
Is this working for you guys? When I test my page only 1/2 of the
months
show up now. scratching head
select
It looks like that will be the situation. Sad that exec() don't have that
feature as an option. Maybe in the future :)
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
From:
I'd like to think I understood code a little better than this, but I've
got a problem with my WHERE...
I know it's the WHERE because I get a good result when I leave it out.
And the random function is also working... I honestly can't figure it
out. Thanks in advance for help with this
Are you getting an error or just nothing returned? The first thing I'd check
is if index is a numeric field and if it is, remove the single quotes from
around $randi in the where clause.
Regards,
Bruce
Mike Shanley [EMAIL PROTECTED] 20/02/2007 9:23:08 a.m.
I'd like to think I understood
Without the single-quotes, I still get nothing returned.
Bruce Cowin wrote:
Are you getting an error or just nothing returned? The first thing I'd check
is if index is a numeric field and if it is, remove the single quotes from
around $randi in the where clause.
Regards,
Bruce
Mike
-Original Message-
From: Mike Shanley [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 3:50 PM
Cc: php-general@lists.php.net
Subject: Re: [PHP] WHERE problem
Without the single-quotes, I still get nothing returned.
Bruce Cowin wrote:
Are you getting an error or just
[snip]
// Get randomized!... the moderated way...
$randi = mt_rand(1, $max-1);
$q = SELECT text FROM fortunes WHERE index = '$randi';
$choose = mysql_query($q);
$chosen1 = mysql_fetch_array($choose);
[/snip]
Put the random statement in the query
SELECT foo FROM bar ORDER BY RAND() LIMIT 1
--
This was the problem. Thanks very much!
Brad Fuller wrote:
2) INDEX is a mysql keyword. Try putting backticks around it.
... WHERE `index` = $randi
--
Mike Shanley
~you are almost there~
A new eye opens on March 5. -Omniversalism.com
--
PHP General Mailing List
Hi , I am having problem with log in and log out . I have a main
login page where one can login with the username and password
stored in mysql database.
PHP Code:
?php
session_start();
//ob_start();
require_once 'functions.php';
$UserName = $_POST['UserName'];
$Password = $_POST['Password'];
Read my original email for the example string, I have referred to this in
every one of my emails. It's even at the bottom of this one.
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: February 18, 2007 10:35 AM
To: php-general@lists.php.net
Subject: [PHP] Re: LOL, preg_match
Hello everyone,
I'm planning to put up a local classified ads website and I'm looking
for an open-source script for this.
I've already had some links from Google and Sourceforge but I'd like
to get some opinions on people who've already run a classifieds
website as to what they're using and
I pasted this right from my PHP file, so it is correct. Just to elaborate. I
have tested this until my eyes are bleeding.
Sometimes this works sometimes it doesn't.
One minute !!!##$$ This is a test %% will work the way it is supposed to,
the next minute it does not.
It seems that the first
Beauford wrote:
I pasted this right from my PHP file, so it is correct. Just to elaborate. I
have tested this until my eyes are bleeding.
Sometimes this works sometimes it doesn't.
One minute !!!##$$ This is a test %% will work the way it is supposed to,
the next minute it does not.
It
hai
I am doing MCA in India ,now i am doing final year project in php
language,my project title is importing contact from gmail any one know the
coding in php language help me.
my id:[EMAIL PROTECTED]
--
View this message in context:
Have you tried to print_r($_SESSION) on all the pages so that you can see
what the $_SESSION is containing and how it is changing?
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original
Hello,
You can access your gmail account with libgmailer PHP library.
libgmailer (class GMailer) is a PHP library that allow you to write PHP
program to access Google's free webmail. You can download this library from
below links
52 matches
Mail list logo