On Aug 16, 2013, at 10:58 AM, Marc Guay marc.g...@gmail.com wrote:
Those Belgacom emails were the only thing keeping me from a crushing
loneliness - undo!
I'll place a forward on my other spam…
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 15 Aug 2013 18:16:40 - Issue 8332
Topics (messages 321843 through 321847):
Re: How to upstream code changes to php community
321843 by: David Robley
filesize() fails on file and works on it's copy (same permissions, same
directory)
321844 by: MichaÅ
SESSIONS?
?php
session_start();
$_SESSION['var1'] = 'test1';
echo 'br / test1 '. $_SESSION['var1'].' ';
session_unset();
session_destroy();
$_SESSION = array();
$_SESSION['var1'] = 'test2';
echo 'br / test2 ' . $_SESSION['var1'];
?
--
Thanks,
Dave - DealTek
deal...@gmail.com
[db-3]
on test2
- however it shows both for me...
how do I UNSET - DESTROY SESSIONS?
?php
session_start();
$_SESSION['var1'] = 'test1';
echo 'br / test1 '. $_SESSION['var1'].' ';
session_unset();
session_destroy();
$_SESSION = array();
$_SESSION['var1'] = 'test2';
echo 'br
/gallery/var/albums/988_Rok-2013/333_Rydzewo-04-06.08.2013/Sobota/DSC_5196_fx-1553725666.JPG:
/home/services/httpd/html.galeria.XXX/gallery/var/albums/988_Rok-2013/333_Rydzewo-04-06.08.2013/Sobota/DSC_5196_fx-1553725666_X.JPG:
1907383
Regards
Michał
--
PHP General Mailing List (http
domain I own), the email literally takes hours (up to 12) to
arrive.
Any idea of why there is a difference of email transit times between the two
domains?
Cheers,
tedd
PS: Note, my receiving email addresses are handled by gmail.com.
___
tedd sperling
t...@sperling.com
--
PHP
a look.
Regards
Ian
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 12 Aug 2013 11:36:06 - Issue 8330
Topics (messages 321837 through 321840):
[PHP-GENERAL] gibberish output when using the loadHTMLFile() function.
321837 by: atar
gibberish output when using the loadHTMLFile() function.
321838 by: atar
321840
php-general Digest 13 Aug 2013 04:38:44 - Issue 8331
Topics (messages 321841 through 321842):
Re: sessions working? not working?
321841 by: Tedd Sperling
How to upstream code changes to php community
321842 by: Shahina Rabbani
Administrivia:
To subscribe to the digest, e
is tested in the
URL my warning comes up 'you need to login to see this page' which is what I
want but, I've tried numerous avenues to reconcile my problem to no avail..
I'm a novice so any help would be appreciated..
?php
session_start();
error_reporting (E_ALL ^ E_NOTICE);
$userid = $_SESSION
encoding is UTF-8 (usually
done using a meta http-equiv=Content-Type content=text/html;
charset=utf8/
If your output conforms to all three of these, it will work. It probably
does not conform to it however.
- Tul
- Tul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
..
?php
session_start();
error_reporting (E_ALL ^ E_NOTICE);
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
print_r($_SESSION);
?
Ok, but when are you populating the SESSION's? Such as:
$_SESSION['userid'] = $userid;
Also, have a look at this:
http
Hi,
I have done some modifications to the php source code and i tested it with
php bench and I observed some improvement.
I wanted to upstream these code changes to PHP community.
I searched the wed but i didnt find proper guide to upstream the code to
php.
Please help me by providing
Shahina Rabbani wrote:
Hi,
I have done some modifications to the php source code and i tested it with
php bench and I observed some improvement.
I wanted to upstream these code changes to PHP community.
I searched the wed but i didnt find proper guide to upstream the code to
php
php-general Digest 11 Aug 2013 22:10:16 - Issue 8329
Topics (messages 321836 through 321836):
[php-general] gibberish output when using the loadHTMLFile() function.
321836 by: atar
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr
to solve
this problem?
NOTE: the document itself is encoded in utf-8 character set.
Thanks in advance!!
atar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 10 Aug 2013 14:42:50 - Issue 8328
Topics (messages 321825 through 321835):
Ambiguous?
321825 by: Karl-Arne Gjersøyen
321826 by: Stuart Dallas
321827 by: Floyd Resler
321828 by: richard gray
fpdf problem?
321829 by: Jim Giner
://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 9 Aug 2013 10:25:32 - Issue 8327
Topics (messages 321817 through 321824):
Re: Operand error...
321817 by: Jim Giner
321818 by: Karl-Arne Gjersøyen
321819 by: Jim Giner
321820 by: Karl-Arne Gjersøyen
321821 by: Jim Giner
In my HTML5/PHP form I have this two rows..
trtd align=left valign=top0082/tdtd align=left
valign=topExan E/tdtd align=left
valign=topLEXE25NO/tdtd align=left valign=top200/td
td align=center valign=topinput type=hidden
name=leverandor value=Oricainput type=hidden
name
1) query
foreach($varenr_inn_pa_lager as $vnr){
include('../../tilkobling.php');
$sql = SELECT * FROM exan,dynamit WHERE varenr = '$vnr' LIMIT
1;
$resultat = mysql_query($sql, $tilkobling) or
die(mysql_error());
2) Result:
Column 'varenr' in where clause is
, it knows the answer to almost everything!
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
which table it should use the field from. So, you need to qualify
it by putting the table name in front of the field. Such as:
SELECT * FROM exan,dynamit WHERE exan.varenr='$vnr' LIMIT 1
Take care,
Floyd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
($varenr_inn_pa_lager as $vnr){
include('../../tilkobling.php');
$sql = SELECT * FROM exan,dynamit WHERE varenr = '$vnr' LIMIT
do you really need to include the file 'tilkobling.php' repeatedly for
each iteration over $varenr_inn_pa_lager??
Rich
--
PHP General Mailing List
I've been using fpdf to create pdf files for my site. All has been well
for over a year. Suddenly I have a problem wherein IE 10 on W7 crashes
when I try to print one of these pdfs created by my php scripts.
The pdf files that I create seem fine. If I bring one up in IE and then
save
On Aug 9, 2013, at 10:50 AM, Jim Giner jim.gi...@albanyhandball.com wrote:
I've been using fpdf to create pdf files for my site. All has been well for
over a year. Suddenly I have a problem wherein IE 10 on W7 crashes when I
try to print one of these pdfs created by my php scripts
of these pdfs created by my php scripts.
The pdf files that I create seem fine. If I bring one up in IE and then save
it to my drive, I can then exit IE and go open the pdf and print it just fine.
I have removed my pdf printer drivers from my system and that hasn't improved
my situation. No luck
on W7
crashes when I try to print one of these pdfs created by my php scripts.
The pdf files that I create seem fine. If I bring one up in IE and
then save it to my drive, I can then exit IE and go open the pdf and
print it just fine.
I have removed my pdf printer drivers from my system
Reader
XI, version 11.0.3.
Jan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
version 10.0.7, W7 Pro 64-bits. Adobe Reader
XI, version 11.0.3.
Jan
I have since my last post discovered that XI does indeed solve the
problem completely. Too bad M$ doesn't post that info on all the many
forum topics complaining about this.
--
PHP General Mailing List (http://www.php.net
php-general Digest 8 Aug 2013 17:32:46 - Issue 8326
Topics (messages 321812 through 321816):
Re: Class Auto-Assigning to Variable
321812 by: Brian Smither
321813 by: Ashley Sheridan
321814 by: Brian Smither
321815 by: Ashley Sheridan
Operand error
$oppdater_lager_med_antall_kg = $kg_pa_lager +
$kg_fra_transportdokument_inn_pa_valgt_lager;
result:
*Fatal error*: Unsupported operand types in *
/Users/karl/Sites/kasen/io/kp/index.php* on line *2970
*I have also tried this:
$kg_pa_lager += $kg_fra_transportdokument_inn_pa_valgt_lager;
Both
defined as.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2013/8/8 Jim Giner jim.gi...@albanyhandball.com
On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote:
$oppdater_lager_med_antall_kg = $kg_pa_lager +
$kg_fra_transportdokument_inn_**pa_valgt_lager;
result:
*Fatal error*: Unsupported operand types in *
/Users/karl/Sites/kasen/io/kp/**index.php*
this time?
Thanks for your good advice!
Karl
You do a var_dump on each variable to see what type they were defined as.
NULL array(2) { [0]= string(3) 100 [1]= string(3) 340 }
That is one var. What is the other var?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
2013/8/8 Jim Giner jim.gi...@albanyhandball.com
On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote:
2013/8/8 Jim Giner jim.gi...@albanyhandball.com
On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote:
$oppdater_lager_med_antall_kg = $kg_pa_lager +
}
That is one var. What is the other var?
Thank you very much!
Now I know the error.. One of those variables are NULL! When I fix it I
think it work!
Karl
actually, the null is ok I think. The array is wrong - you can't 'add'
an array to a scalar variable, which an integer or null is.
--
PHP
2013/8/8 Jim Giner jim.gi...@albanyhandball.com
On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote:
2013/8/8 Jim Giner jim.gi...@albanyhandball.com
On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote:
2013/8/8 Jim Giner jim.gi...@albanyhandball.com
On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen
'],$rad['field_name2'],$rad['field_name3'], .
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 7 Aug 2013 08:47:24 - Issue 8324
Topics (messages 321804 through 321804):
add call_func() syntax instead call_user_func_array()
321804 by: Szopen Xiao
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
php-general Digest 7 Aug 2013 21:15:54 - Issue 8325
Topics (messages 321805 through 321811):
Class Auto-Assigning to Variable
321805 by: Brian Smither
321806 by: Sebastian Krebs
321807 by: Brian Smither
321808 by: Ashley Sheridan
321809 by: Brian
https://bugs.php.net/bug.php?id=65410
above feate bug my implement the syntax think, request master of PHP
internals developer help complete
my submit code learn the foreach
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
variant of the class name.
Would there be a PHP function that would do this as a side-effect?
I am more interested in learning what is happening as opposed to rolling back
to a previous version. (A backup copy functions fine. A file compare does not
reveal any likely suspects.)
PHP5.4.17-NTS-VC9
= 'World'; __construct(){} }
This isn't even valid PHP
$ php -a
Interactive shell
php class Hello { private $_world = 'World'; __construct(){} }
PHP Parse error: syntax error, unexpected '__construct' (T_STRING),
expecting function (T_FUNCTION) in php shell code on line 1
php
$clsHello
an instance of the class
to another variable, the name being a lowercase variant of the class name.
Would there be a PHP function that would do this as a side-effect?
I am more interested in learning what is happening as opposed to rolling back
to a previous version. (A backup copy functions fine
(
[_world:Hello:private] = World
)
There is no statement in my application that assigns an instance of the class
to another variable, the name being a lowercase variant of the class name.
Would there be a PHP function that would do this as a side-effect?
I am more interested in learning what
question:
Would there be a PHP function that would do [what the example describes] as a
side-effect?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
! I've seen that happen before. It's caused by...
Let us focus on the central question:
Would there be a PHP function that would do [what the example describes] as a
side-effect?
Yes:
$hello = $clsHello;
There are only a few variables that get assigned as side effects of functions
likely suspect in causing this behavior.
I am hoping for a, Oh, yeah! I've seen that happen before. It's caused
by...
Let us focus on the central question:
Would there be a PHP function that would do [what the example describes] as
a side-effect?
Yes:
$hello = $clsHello
a statement declaring such)?
This:
http://php.net/manual/en/reserved.variables.globals.php
implies the opposite direction.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
other
ways too.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks,
Ash
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
was never formally declared?
I know that $GLOBALS['hello'] has a universal scope, and $hello (wherever it
comes from) needs to be global-ized inside functions.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2013-08-07 at 19:02 -0600, Brian Smither wrote:
Your example does _not_ show this, it works
as expected and throws a notice, from which can be inferred there is other
code doing this
Or relevant code having a side-effect not currently realized.
No, you just didn't post relevant
php-general Digest 6 Aug 2013 16:10:17 - Issue 8323
Topics (messages 321802 through 321803):
Re: how to see all sessions sets in server
321802 by: Alessandro Pellizzari
Re: Stripe Connect in the UK + PHP Integration.
321803 by: Richard Quadling
Administrivia:
To subscribe
On 19 July 2013 16:22, Richard Quadling rquadl...@gmail.com wrote:
Hi.
Simple question.
Has anyone got Stripe Connect, Stripe.js and Stripe PHP SDK operational in
the UK.
I'm struggling getting the UK Beta to accept a new account/customer set
for a UK business or individual, accepting
javascript. You just need to find out how to connect
to the server. Have a look at socket.io, and find a php library that
supports it. I think it is the easiets way.
Be aware that the load on your server will be huge, growing exponentially
with the number of online users. You can't escape it, except
php-general Digest 4 Aug 2013 10:13:26 - Issue 8321
Topics (messages 321782 through 321783):
how to see all sessions sets in server
321782 by: Farzan Dalaee
321783 by: Alessandro Pellizzari
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest
php-general Digest 5 Aug 2013 03:24:04 - Issue 8322
Topics (messages 321784 through 321801):
Re: how to see all sessions sets in server
321784 by: Matijn Woudt
321785 by: Farzan Dalaee
321786 by: Ashley Sheridan
321791 by: Tim Streater
321792
hi
i want to write online user module for my site and i want to check
$_SESSION['userID'] to find all users id who loged in
but when i echo this code its return only current user detail
how i can see all sessions?
foreach($_SESSION as $k = $v)
{
echo $k.--.$v;
}
or how i handle online
to save all the sessions in the database, and
give access to that table to one user.
Bye.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, Aug 4, 2013 at 11:02 AM, Farzan Dalaee farzan.dal...@gmail.comwrote:
hi
i want to write online user module for my site and i want to check
$_SESSION['userID'] to find all users id who loged in
but when i echo this code its return only current user detail
how i can see all sessions?
You mean when user logged in i add new record to table and when logged out i
delete the row? So if user close the browser without logout how can i find user
is online or not?
Sent from my iPhone
On Aug 4, 2013, at 14:44, Matijn Woudt tijn...@gmail.com wrote:
On Sun, Aug 4, 2013 at
.
You don't have to actually save anything to the DB manually, just
instruct PHP to use the DB for its own sessions, rather than files.
Do you really need to inspect each visitors session in detail, or do you
just need a way to determine how many unique visitors are on the site at
any one time
And why everytime I reply to the list am I getting an automated reply
from this email address
Belgacom Webteam [no-reply] supp...@skynet.be
Thanks,
Ash
http://www.ashleysheridan.co.uk
Ashley Sheridan wrote:
And why everytime I reply to the list am I getting an automated reply
from this email address
Belgacom Webteam [no-reply]supp...@skynet.be
Because of the way the list is set up ...
We all get every bounce message as a result of posting to PHP lists since WE are
set
message as a result of posting to PHP lists since WE
are
set as the reply-to address. This apparently is the right way of doing email
lists ;)
--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http
was getting those emails as well xD
Sent from my iPhone 6 Beta [Confidential use only]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
work correctly on Safari and iOS Safari.
onbeforeunload works fine in Safari; I use it all the time.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. There are Javascript events for exiting a page, but they don't
work correctly on Safari and iOS Safari.
onbeforeunload works fine in Safari; I use it all the time.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and iOS Safari.
You don't have to actually save anything to the DB manually, just instruct
PHP to use the DB for its own sessions, rather than files.
Do you really need to inspect each visitors session in detail, or do you just
need a way to determine how many unique visitors are on the site
Maybe someone can take them off of the list? ;)
(hint, hint)
No one moderates the list so there is little chance :(
On 4 Aug 2013, at 14:36, Farzan Dalaee farzan.dal...@gmail.com wrote:
I need to inspect each visitor to show how online or who offline for chat
Like facebook chat
PHP sessions is a really bad mechanism to use to accomplish this. In the past
I've used memcached or redis for presence indicators
correctly on Safari and iOS Safari.
You don't have to actually save anything to the DB manually, just
instruct PHP to use the DB for its own sessions, rather than files.
Do you really need to inspect each visitors session in detail, or do
you just need a way to determine how many unique visitors
if they've just closed
their browser. There are Javascript events for exiting a page, but they
don't work correctly on Safari and iOS Safari.
You don't have to actually save anything to the DB manually, just
instruct PHP to use the DB for its own sessions, rather than files.
Do you
, you can't know if they've just closed
their browser. There are Javascript events for exiting a page, but they
don't work correctly on Safari and iOS Safari.
You don't have to actually save anything to the DB manually, just
instruct PHP to use the DB for its own sessions, rather than files
to continually poll the server, you can't know if they've just
closed
their browser. There are Javascript events for exiting a page, but
they
don't work correctly on Safari and iOS Safari.
You don't have to actually save anything to the DB manually, just
instruct PHP to use the DB for its own
On Sun, 4 Aug 2013 14:02:07 +0200, Camilo Sperberg wrote:
Sent from my iPhone 6 Beta [Confidential use only]
You need not apologize. :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sorry. Were you saying something? As soon as I saw Ashley Sheridan
in my email client, it closed and my computer rebooted for some strange
reason. ;-}
Paul
--
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
php-general Digest 3 Aug 2013 09:32:30 - Issue 8319
Topics (messages 321772 through 321777):
Re: OT - Internet Troubles?â¦
321772 by: Bastien
321773 by: Daniel
suhosin and 5.4 onwards
321774 by: Nick Edwards
321775 by: Daniel
321776 by: Lester Caine
php-general Digest 3 Aug 2013 21:47:14 - Issue 8320
Topics (messages 321778 through 321781):
Re: Sending headers to server
321778 by: Karim Geiger
321781 by: Matijn Woudt
Session Vars not staying active
321779 by: dealTek
321780 by: Daniel P. Brown
Ok, so I know this might start flame wars, but... here goes ;)
It seems suhosin is dead as far as 5.4 goes, now, some make
allegations that it is no longer needed since php has allegedly
incorporated much of its safe guards, but these claims are from self
proclaimed experts (a term i use very
Well I do not use suhosin as I can lock down PHP with things like
disable_function, disable_classes along with more advance function
such as chroot and mod_security.
On 8/3/13, Nick Edwards nick.z.edwa...@gmail.com wrote:
Ok, so I know this might start flame wars, but... here goes ;)
It seems
Nick Edwards wrote:
So, is the general opinion here, from actual factual experience and
not because you read the same trashy bloggers as I did, in agreeance?
is it genuinely true that suhosin is now irrelevant with 5.4 upwards
and php is now much safer on its own?
Practical experience
taken over by someone else, I think the jury is out on
if it will ever revive, in meantime, php 5.3 works fine. if only php
devs would stop fscking changing everything every time they release a
new version, frustrating to many.
And people who reply on mod_security are no more protected than what
Am 02.08.13 18:03, schrieb Miguel Guedes:
This is strange. I've just found out that the headers are sent
correctly if I access the website outside of localhost. I don't
understand why.
I also don't. I've tried the exactly same code you posted on my
localhost as well and it worked all
Hi all,
I am having trouble with session vars.
I'm trying to implement the credit card direct pay method outlined here...
http://developer.authorize.net/api/dpm/
- Basically, page 1 is my form that goes outside my site to the cc gateway
company then comes back with a result... (PG2)
On Aug 3, 2013 3:03 PM, dealTek deal...@gmail.com wrote:
Hi all,
I am having trouble with session vars.
I'm trying to implement the credit card direct pay method outlined here...
http://developer.authorize.net/api/dpm/
- Basically, page 1 is my form that goes outside my site to the cc
On Sat, Aug 3, 2013 at 11:46 AM, Karim Geiger gei...@b1-systems.de wrote:
Am 02.08.13 18:03, schrieb Miguel Guedes:
This is strange. I've just found out that the headers are sent
correctly if I access the website outside of localhost. I don't
understand why.
I also don't. I've tried the
php-general Digest 2 Aug 2013 09:00:27 - Issue 8317
Topics (messages 321750 through 321756):
Re: Sending headers to server
321750 by: Karim Geiger
321756 by: Miguel Guedes
Re: POST action
321751 by: Larry Garfield
321752 by: Paul M Foster
321755
Hi Karim,
On 01/08/13 15:40, Karim Geiger wrote:
Works for me. What happens exactly? Do you get a 200?
That's exactly right - I always get a 200. How can I diagnose this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello again, folks!
I wish to delete records in my database that is older than 3 months.
$todays_date = date('Y-m-d');
$old_records_to_delete = ???
if($old_records_to_delete){
include(connect.php);
$sql = DELETE FROM table WHERE date = '$old_records_to_delete';
mysql_query($sql, $connect_db) or
$query = DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() -
INTERVAL 3 MONTH AND NOW()
On Fri, Aug 2, 2013 at 12:58 PM, Karl-Arne Gjersøyen karlar...@gmail.comwrote:
Hello again, folks!
I wish to delete records in my database that is older than 3 months.
$todays_date =
());
}
Thank you very much for your help to understand also this question :)
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2013/8/2 Dušan Novaković ndu...@gmail.com
$query = DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() -
INTERVAL 3 MONTH AND NOW()
This delete everything from now and 3months backwards. I want to store 3
months from now and delete OLDER than 3 months old records.
Karl
it should've been DELETE, right?
Bye
Simon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
records.
Karl
Hi, Karl
You're right, but restructuring, to get it the way you want, isn't be
that hard, is it? :)
$query = DELETE FROM `__table_name__` WHERE `__date__` NOW() -
INTERVAL 3 MONTH
@Dusan,
Btw: What is DELECT? I assume it should've been DELETE, right?
Bye
Simon
--
PHP
On Thu, Aug 1, 2013 at 4:04 PM, Miguel Guedes miguel.a.gue...@gmail.comwrote:
Hello List,
I'm running PHP 5.4.9 as CGI (via apache 2.2.22) and can't seem to be
able to send headers to the server.
Both,
header('Status: 500 Internal Server Error');
and,
header('HTTP/1.1 500 Internal
= '$old_records_to_delete';
mysql_query($sql, $connect_db) or die(mysql_error());
}
Thank you very much for your help to understand also this question :)
Karl
So close! BUT - you need to reverse your test.
where date = '$old_records_to_delete'
--
PHP General Mailing List (http://www.php.net
On 02/08/13 14:10, Matijn Woudt wrote:
Did you print some data before using header?
No, not at all. I've PHP configured to complain about notices, warnings
and errors; would've got a warning about headers already sent, which I
don't get.
--
PHP General Mailing List (http://www.php.net
501 - 600 of 269332 matches
Mail list logo