Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 2.94 seconds.
Search: Posts Made By: mlse
Forum: PHP 01-07-2010, 05:06 PM
Replies: 0
Views: 366
Posted By mlse
How can I test to see if the ticks directive has been declared?

The ticks directive is declared as shown here: http://uk2.php.net/manual/en/control-structures.declare.php

I thought perhaps that register_tick_function...
Forum: MySQL 11-03-2009, 02:59 PM
Replies: 3
Views: 3,718
Posted By mlse
Excellent, that's a great starting point.

Excellent, that's a great starting point.
Forum: MySQL 11-01-2009, 05:58 PM
Replies: 3
Views: 3,718
Posted By mlse
How to clear MySQL "memory"?

Hi all,

I'm using version 5.1 on Debian Etch.

I am currently fiddling with my DB architecture and queries on my development machine and I am trying to find the fastest way to do what I want to...
Forum: PHP 10-28-2009, 03:16 PM
Replies: 3
Resolved GD lib with png
Views: 7,908
Posted By mlse
This is the problem: Where you have...

This is the problem:



Where you have 100, use an integer from 0 to 9 instead.

Look at the "quality" argument of imagepng in the PHP manual: http://uk.php.net/manual/en/function.imagepng.php
Forum: PHP 10-27-2009, 10:41 AM
Replies: 6
Views: 579
Posted By mlse
Ah! But eval is great for lazy people like me!...

Ah! But eval is great for lazy people like me! :D

Seriously though, I do hardly ever use it because I do think it's ugly and potentially dangerous (e.g. code injection).

I tend to use...
Forum: PHP 10-26-2009, 05:46 PM
Replies: 4
Views: 506
Posted By mlse
I think it's because mail clients don't like HTML...

I think it's because mail clients don't like HTML emails because of the potential security risks. It's much easier to deal with plain-text.

I am a really big fan of KISS - keep it simple and...
Forum: PHP 10-26-2009, 05:38 PM
Replies: 6
Views: 579
Posted By mlse
Ah! I'm still using 5.2.0-8 (because I'm too...

Ah! I'm still using 5.2.0-8 (because I'm too lazy to DL 5.3!).

Why do you say avoid eval?
Forum: PHP 10-26-2009, 03:41 PM
Replies: 4
Views: 506
Posted By mlse
Are you trying to send plain text or HTML emails?

Are you trying to send plain text or HTML emails?
Forum: PHP 10-26-2009, 01:50 PM
Replies: 6
Views: 579
Posted By mlse
Genuine PHP bug or intentional behaviour?

Consider the following little class:

class myclass
{
public static function foo()
{
echo "bar\n";
}
}
Forum: PHP 10-04-2009, 05:48 PM
Replies: 2
Views: 771
Posted By mlse
Hi, Please forgive my puzzlement here, but I...

Hi,

Please forgive my puzzlement here, but I don't really understand what the problem is or what you're trying to do - you haven't explained it at all clearly.
Forum: Ruby & Ruby On Rails 09-17-2009, 10:45 AM
Replies: 29
Views: 42,597
Posted By mlse
PHP ist die Übersprache von dem Internet!

PHP ist die Übersprache von dem Internet!
Forum: MySQL 09-15-2009, 10:34 AM
Replies: 4
Views: 725
Posted By mlse
Good solution, thanks!

Good solution, thanks!
Forum: MySQL 09-14-2009, 12:57 PM
Replies: 4
Views: 725
Posted By mlse
Yep, there are various ways I can avoid this, but...

Yep, there are various ways I can avoid this, but if there's a built in way it would be more convenient (i.e. lazy :p).
Forum: MySQL 09-14-2009, 12:00 PM
Replies: 4
Views: 725
Posted By mlse
How can I make an entry unique across tables?

Let's say I have two tables, defined as follows:

create table foo (foo_id int(32) not null auto_increment primary key, ...);

and

create table bar (bar_id int(32) not null auto_increment...
Forum: Computer/PC discussions 09-02-2009, 12:46 PM
Replies: 1
Views: 615
Posted By mlse
Mouse-triggered PC selector?

I have two PCs, two monitors, one keyboard and one mouse.

I swap between PCs using one of those one-into-many selectors that you put your mouse and keyboard into, with a push-button on the top to...
Forum: PHP 08-28-2009, 08:48 AM
Replies: 2
Views: 906
Posted By mlse
I'm not sure what you mean by a "session wrapper...

I'm not sure what you mean by a "session wrapper class".

Certainly though, I use wrapper classes to hide all the superglobals.

Strictly speaking, it is bad coding practice to use $_SESSION...
Forum: PHP 08-26-2009, 10:44 AM
Replies: 0
Views: 455
Posted By mlse
Prevalence of Hardened PHP?

I am running PHP 5.2.0-8 on Debian Etch.

I notice that all PHP releases for Debian (i.e. the ones that come via the automatic updater using apt-get) include the Hardened PHP "suhosin" patch.
...
Forum: PHP 08-07-2009, 01:10 PM
Replies: 9
Views: 921
Posted By mlse
have you checked that the png paths are absolute...

have you checked that the png paths are absolute rather than relative?
Forum: PHP 08-07-2009, 11:56 AM
Replies: 9
Views: 921
Posted By mlse
It could be that the base64 bit is screwing it up...

It could be that the base64 bit is screwing it up - the incoming mail server would then be expecting base64 octets and might just give up if those aren't present in the body data. You could try...
Forum: PHP 08-07-2009, 11:29 AM
Replies: 9
Views: 921
Posted By mlse
Are you sure that $value contains a valid...

Are you sure that $value contains a valid recipient in each case?

Is it failing for all cases?

Does it work if you send a simple email? (i.e. non HTML).

You say the notification comes though...
Forum: PHP 08-07-2009, 09:56 AM
Replies: 5
Views: 891
Posted By mlse
Can you tell us more about what you are trying to...

Can you tell us more about what you are trying to do? E.g., what is the contents of $buf taht you are interested in (i.e. can you post an example of the relevant part of $buf), what are you adding...
Forum: PHP 08-07-2009, 09:41 AM
Replies: 9
Views: 921
Posted By mlse
Hi, 1. When you say "the mail never...

Hi,

1. When you say "the mail never arrives", which one are you referring to? (Your code sends a number of emails to various recipients).

2. If the webmaster email is failing, have a look at...
Forum: PHP 08-05-2009, 01:34 PM
Replies: 1
Views: 997
Posted By mlse
Why not ask the webmaster if they provide an RSS...

Why not ask the webmaster if they provide an RSS or Atom feed?
Forum: PHP 08-05-2009, 01:29 PM
Replies: 3
Views: 435
Posted By mlse
"Oh yes, our code is supposed to crash, with the...

"Oh yes, our code is supposed to crash, with the potential for leaving crap all over the place!". Wouldn't be the first time I've heard that little wheeze! :rolleyes:
Forum: PHP 08-05-2009, 12:23 PM
Replies: 5
Views: 425
Posted By mlse
It's because you're submitting a different form...

It's because you're submitting a different form to the one that contains the fruit - they both need to be in the same form.

Try this:


<form action="" method="post">
Fruit 1: <input...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 11:55 PM.