On 4/23/07, Don Don <[EMAIL PROTECTED]> wrote:
Hi all how can i make my phpmyadmin run fast on windows ? I installed
phpmyadmin on a linux and windows machines, but the windows version runs
(executes) too slow, i.e. it takes to long for a page to be loaded, while it
take less that 3 secs for
[snip]
I don't really want to do a isset check for every index I have.
[/snip]
Premature optimization is the root of all evil. Checks like this will
take nanoseconds to check. Find another way to optimize, like writing
better SQL queries.
--
PHP General Mailing List (http://www.php.net/)
To un
You are misunderstanding what timestamp means. The value of a timestamp
is from UNIX epoch http://en.wikipedia.org/wiki/Unix_time. It is
calculated by the number of seconds after January 1st, 1970. Also note,
that you are overflowing the integer, which is giving you a
http://en.wikipedia.org/wik
There are many good resources out there, and one of my favorites for this type
of information is from Chris Shiflett.
http://shiflett.org/articles/sql-injection
http://shiflett.org/articles/foiling-cross-site-attacks
http://shiflett.org/blog/2007/mar/allowing-html-and-preventing-xss
Those are a
Em Domingo 22 Abril 2007 18:54, [EMAIL PROTECTED] escreveu:
> Hi
>
> I'm would like to avoid PHP usages that are deprecated with
> regard to PHP 6. I would also like to code according to
> what is regarded as best practice. Are there any web
> resources that I can read to keep up to date?
>
Have
Could you also send the code? Maybe 5 lines before and 5 lines after the
line it is pointing to?
It also means it tried to allocate 2KB of memory, which put you over
your 8MB in whatever script you are running. You can set the maximum
amount of memory a PHP script can use in your PHP.ini file.
-
I get this error message when i try to check my site on localhost running
IIS and PHP 5.1.2 :
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 24576 bytes) in ...
and it points to the line which is pure html code!
What could be the cause of this problem?
--
PHP Gen
I get this error message when i try to check my site on localhost running
IIS and PHP 5.1.2 :
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 24576 bytes) in ...
and it points to the line which is pure html code!
What could be the cause of this problem?
--
PHP
Hi
I'm would like to avoid PHP usages that are deprecated with
regard to PHP 6. I would also like to code according to
what is regarded as best practice. Are there any web
resources that I can read to keep up to date?
For instance:
1) safe_mode is deprecated. (The PHP manual gives me the a
You say they both have the same config, so do you mean that they both
have the same version of PHP, same computer setup (Memory, CPU speed,
HDD speed), both running the same version of Apache, and that both are
running as either CGI or an apache module?
-Logan
-Original Message-
From: Don
On Sunday 22 April 2007 22:33, Don Don wrote:
> Hi all how can i make my phpmyadmin run fast on windows ?
Why would you when you got linux up and running?
> I installed
> phpmyadmin on a linux and windows machines, but the windows version runs
> (executes) too slow, i.e. it takes to long for a p
Al wrote:
The proper way to handle special control PCRE characters like "\" is to
use the hex [e.g., \x5C] value. Then you won't have a problem. The
engine knows you want the the object treated as a character and an a
control.
That works nicely, thank you.
--
PHP General Mailing List (http
Hi all how can i make my phpmyadmin run fast on windows ? I installed
phpmyadmin on a linux and windows machines, but the windows version runs
(executes) too slow, i.e. it takes to long for a page to be loaded, while it
take less that 3 secs for the linux version. Both however run on the same
On 4/22/07, Myron Turner <[EMAIL PROTECTED]> wrote:
Jonathan wrote:
> Alain Roger wrote:
>> Hi,
>>
>> In my web application, end user is able to load images (png, jpeg,
>> gif,..)
>> into database.
>> I would like to know how can i detect automatically the type of image
>> (pnd,
>> jpeg,...) ?
>>
On Sunday 22 April 2007 17:35, Jonathan wrote:
> Alain Roger wrote:
> > Hi,
> >
> > In my web application, end user is able to load images (png, jpeg,
> > gif,..) into database.
> > I would like to know how can i detect automatically the type of image
> > (pnd, jpeg,...) ?
> > i do not want to chec
Alain Roger wrote:
Hi,
In my web application, end user is able to load images (png, jpeg, gif,..)
into database.
I would like to know how can i detect automatically the type of image (pnd,
jpeg,...) ?
i do not want to check the extension because this is easily faked...
just by
renaming it.
Do
Jonathan wrote:
Alain Roger wrote:
Hi,
In my web application, end user is able to load images (png, jpeg,
gif,..)
into database.
I would like to know how can i detect automatically the type of image
(pnd,
jpeg,...) ?
i do not want to check the extension because this is easily faked...
just
The proper way to handle special control PCRE characters like "\" is to use the hex [e.g., \x5C] value. Then you won't
have a problem. The engine knows you want the the object treated as a character and an a control.
[EMAIL PROTECTED] wrote:
-- or maybe it's just the PCRE extension
-- or quit
Richard Lynch wrote:
> On Sat, April 21, 2007 1:18 pm, [EMAIL PROTECTED] wrote:
>> Hi sorry not really a php question.. but using it in a php script :)
>>
>> I want to list the date and time a file was created so I want someting
>> like..
>>
>> Apr 21 18:57 monkey.txt
>>
>> Ive been playing around
At 7:18 PM +0100 4/21/07, <[EMAIL PROTECTED]> wrote:
Hi sorry not really a php question.. but using it in a php script :)
I want to list the date and time a file was created so I want someting like..
Apr 21 18:57 monkey.txt
Ive been playing around with the LS options but I dont know what flags
John Taylor-Johnston wrote:
>
> It is actually a generated timestamp in MySQL.
> timestamp(14)
> Now what? I was hoping to avoid:
> |echo substr(|$mydata->timestamp|, 0, 8);
the simplest answer is actually yto make mySQL give you
the data in unix timestamp format in the first place:
SELECT UNIX_
Richard Lynch wrote:
On Sat, April 21, 2007 10:56 pm, Myron Turner wrote:
trick for you.You use the Perl script in the action attribute of
your form. The Perl script saves the entire posted output to a file,
then it sends back a page which uses Javascript to redirect back to
the
php scri
On Sunday 22 April 2007 08:33, John Taylor-Johnston wrote:
> It is actually a generated timestamp in MySQL.
> timestamp(14)
Well, then just use the query to decide how it should look like.
Mysql timestamp is amazingly easy to work with.
whatevertable,date_format(timestamp_table, 'what should it lo
Richard Lynch wrote:
warning
This seemed strange:
warnings with 2 and 6 backlashes
For 2 backslashes, PHP "ate" the 2 backslashes, and handed PCRE #\#,
and PCRE does not like that at all.
Yet preg_match('#\\#','any-string'); does *not* throw a
warning when I run the 2nd script - the on
On 4/22/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Sat, April 21, 2007 10:56 pm, Myron Turner wrote:
> trick for you.You use the Perl script in the action attribute of
> your form. The Perl script saves the entire posted output to a file,
> then it sends back a page which uses Javascrip
25 matches
Mail list logo