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 loo
O'Reilly has a free download, apparently through a company called SAVVIS. No
affiliation, just passing this along…
http://go.savvis.net/paas
You give them some contact info, and you get a download link. Nothing is
actually checked to see if the info you fill in is real or not.
(cross-posted: r
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Miguel,
On 08/02/2013 04:34 PM, Miguel Guedes wrote:
>
> Here's my output:
>
> $ curl -v http://localhost/header-test.php
> * About to connect() to localhost port 80 (#0)
> * Trying 127.0.0.1...
> * Connected to localhost (127.0.0.1) port 80 (#0)
>> GET /header-test.php HTTP/1.1
>> User-Age
Great tip, Karim!
On 02/08/13 15:29, Karim Geiger wrote:
Try getting the complete header by using curl -v http://url.com and
paste it here.
What is your output?
Here's my output:
$ curl -v http://localhost/header-test.php
* About to connect() to localhost port 80 (#0)
* Trying 127.0.0.1.
Hi Miguel,
On 08/02/2013 10:50 AM, Miguel Guedes wrote:
> 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?
>
Try getting the complete header by using curl
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/)
T
On 8/2/2013 6:58 AM, Karl-Arne Gjersøyen wrote:
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_re
On Thu, Aug 1, 2013 at 4:04 PM, Miguel Guedes wrote:
> 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 Server Error',
Yeah, just spelling mistake :-)
And yes, it should be:
$query = "DELETE FROM `__table_name__` WHERE `__date__` <= NOW() - INTERVAL
3 MONTH"
Cheers ;-)
On Fri, Aug 2, 2013 at 2:35 PM, Simon Schick wrote:
> On Fri, Aug 2, 2013 at 2:02 PM, Karl-Arne Gjersøyen
> wrote:
> >
> > 2013/8/2 Dušan No
On Fri, Aug 2, 2013 at 2:02 PM, Karl-Arne Gjersøyen wrote:
>
> 2013/8/2 Dušan Novaković
>
> > $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
2013/8/2 Dušan Novaković
> $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
Hello,
Try something like:
$oldDate = new DateTime();
$oldDate->sub(new DateInterval('P3M'));
$old_records_to_delete = $oldDate->format('Y-m-d');
Hope this helps,
Si
Sent from my iPhone
On 2 Aug 2013, at 11:58, Karl-Arne Gjersøyen wrote:
> Hello again, folks!
> I wish to delete records in
$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 wrote:
> Hello again, folks!
> I wish to delete records in my database that is older than 3 months.
>
> $todays_date = date('Y-m-d');
> $old_re
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)
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
16 matches
Mail list logo