This is the error I get.
MySQL Query Failed. Error 1030: Got error -1 from table handler
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
From: "Johannes Janson" <[EMAIL PROTECTED]>
Date: Thu, 23 Aug 2001 12:40:21 +0200
Subject: Re: numrows
Hi,
>$query = "SELECT * FROM question WHERE an
il" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Re: [PHP] numrows
Hello,
Chris, with all due respect, DESC is a reserved word for
SQL. is english ORDER BY ID DESC meand sort by id in
descending order.
Martin,
your SQL seems to
PDQ
machine. How can I use a Public Private key system to do this from PHP. I
know Java can support RSA (although never investigated it), and that PHP can
use standard Java classes (is this true?).
Please any help would be great
Martin Gunther
--
PHP General Mailing List (http://www.php.net
PDQ
machine. How can I use a Public Private key system to do this from PHP. I
know Java can support RSA (although never investigated it), and that PHP can
use standard Java classes (is this true?).
Please any help would be great
Martin Gunther
--
PHP General Mailing List (http://www.php.net
: Undefined offset: 1 in E:\inetpub\wwwroot\index.php on line 103
>
Warning: Undefined offset: 2 in E:\inetpub\wwwroot\index.php on line 103
>
Warning: Undefined offset: 3 in E:\inetpub\wwwroot\index.php on line 103
>
etc... down to "10"
the rest of the script is:
".$in
l"
explanation, maybe even a better solution.
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I still get this error. Can someone help me to solve this?
MySQL Query Failed. Error 1030: Got error -1 from table handler
$query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER BY id";
$result = mysql_query($query) or die('MySQL Query Failed. Error
'.mysql_errno().':
'.mysql_error
This is what I get:
allach.question repair error The handler for the table doesn't support
check/repair
- Original Message -
From: Don Read <[EMAIL PROTECTED]>
To: Martin Kampherbeek <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, August 25, 2
?
I don't have MySQL installed yet - do I need to have that first ???
Thanks,
Martin Stephenson.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hmmm. Manuel what's that you're smoking? Where can I get some?
M
-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: 24 August 2001 20:30
To: [EMAIL PROTECTED]
Subject: Re: [PHP] The future of PHP
Hello,
Egan wrote:
>
> On Fri, 24 Aug 2001 15:34:04 -0300, Manu
ECTED]]
Sent: Tuesday, August 28, 2001 04:07
To: Martin Helie
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] zlib1.1.3 and ob_gzhandler
Were you using output compression with previous versions of PHP? Did it
work with images in these versions?
Also, are you seeing any errors in your Web server's error
nning PHP 4.0.6 on Apache 1.3.20.
I've looked at both PHP and Apache documentation about this, but
i havent found any information or examples on how this could be solved,
so I'm asking the question here in hope for help.
Thanks!
/Martin Lindhe
--
PHP General Mailing List (http://www.ph
execute.
> That's all You need I hope. Sorry but Your question is not
> good explained.
Please read my mail again, I tried to described my problem as good
as possible.
> Martin Lindhe wrote:
>
> > I need to solve the following problem, but I can't figure out how:
>
> Hi Martin,
>
> Take a look at the Apache mod_rewrite docs.
>
> http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
Thanks alot!
I made a similar solution which works
RewriteEngine on
RewriteRule "^/x/(.*)" "http://www.server2.com/users/$1";
.*)" http://www.test.com/y/test.php?val=$1";
seems to work somewhat equal to the RewriteRule, it also visibly show
the redirect url. Thanks anyway
/Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
>useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html
>
>RewriteEngine on
>RewriteRule ^/x/(.*)http://www.server2.com/users/$1 [P]
Hm, what does the [P] do? I played around a bit and figured that
a [T] does the trick for me, thanks!
/Martin
--
PHP Gen
case 1: $b.=chr(rand(65, 90)); break; //A-Z
case 2: $b.=chr(rand(48, 57)); break; //0-9
}
}
} while (mysql_query("SELECT * FROM ".$table." WHERE
ID='$b'",$db)===TRUE);
return
oh, i forgot to mention, i create new session id on
each login, and pass it on in the url, something like
/page.php?sess=$sess_id
If you want, you could also assign the user's ip with the current session
for a little higher security, i havent bothered as i feel this is safe
enough.
/M
you could load all nessecary data once and put in a javascript
array or something, not sure i understand what you have done here
and what's so special about it tho
/Martin
> I used a Microsoft Object Control to get data from the
> database and display
> it on the page
> witho
ension from the $file
with code looking something like this:
$ext = substr($file,strrpos($file,"."));
if $file contains "test.php", then $ext now
contains ".php". so change your code to something like:
--snip--
$ext = substr($file,strrpos($file,"."));
if (
th about 33% more space it doesn't seem to me to be the very best
>solution :(
Base64 works fine. And I think it is the only best solution now :-)))
--
Martin Pavlas
ParsCom IS s.r.o.
http://www.parscom.cz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi,
I have problem with GD lib in PHP. I try compile PHP with Gdlib on OpenBSD
2.9. I download gd-1.8.4, freetype-2.0.4, libpng-1.2.0 and jpeg-6b. With
compile gd i have some problems, but I thought it was OK. But during
compilation php-4.0.6 has happened mistake. This:
/bin/sh /home/darius/insta
Hello!
How can I make the session-id ONLY be stored in the url, even if the
user has cookies enabled? I have no access to the php.ini-file.
Any ideas?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
These worked. Thanks
- Original Message -
From: Kurt Lieber <[EMAIL PROTECTED]>
To: 'Martin Kampherbeek' <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 2:34 AM
Subject: RE: [PHP] Get current date and time
> How about o
he configuration.
Is there any easy way of doing this? Anyone have previous experience?
Software versions and OS'es is of no concern, we'll use what's required.
/Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
> Hi all,
>
> I have just rename the php.ini-dist to php.ini from the
> installation directoy but am not sure where to place it in
> order for php to
> rea,, any help??
> thanks
What OS are you running PHP on?
/Martin
--
PHP General Mailing List (http://www.php.net/)
T
variable number of classes (Such as a CObject class in MFC for
Visual C++) - i.e. is there soem other collection class/type I don't know
of ?
Thanks,
Martin.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Use the date-function. See help for details.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
, I have an English translation of
this article available at:
http://www.chriscodes.com/articles/Connecting_to_MSSQL_from_PHP_under_Linux/
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
too.
Also you might try system(), shell_exec(), or passthru() if you're
trying to get output back.
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Justin Patrin wrote:
On Mon, 26 Jul 2004 11:27:32 +0300, EE <[EMAIL PROTECTED]> wrote:
What is this? I got this message few times from php.net...
Well, that's weirdI've never seen that one.
Apparently they're from an annoying spam service that someone on this
list has subscribed to and not ac
7;s" while searching google.
http://user.cs.tu-berlin.de/~ccorn/software/rpm/build-rpm.html
http://www3.sympatico.ca/sarrazip/dev/rpm-building-crash-course.html
http://www-106.ibm.com/developerworks/library/l-rpm2/
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http
: http://www.php.net/unsub.php
Not in the URL.
Read the PayPal docs, they post back a form to the return page. Most of
what you're looking for will be there, otherwise there are a few custom
fields you can use (for say an invoice number).
--
Chris Martin
Web Developer
Open S
http://www.easysw.com/htmldoc/
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, but you're wrong. Dreamweaver DOES have MySQL support and can
connect to MySQL databases to help coding your scripts.
Yes. PHP and MySQL is supported in DWMX, no extensions required.
FTPEdit and HTMLKit are both free editors for Windows
Quanta and Bluefish are excellent on GNU/Linux
--
Chris
(although it generates some ridiculous code)
Is there any GPL alternative for this kind of stuff?
What kind of stuff? Editing PHP? Quanta, or Bluefish.
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/
min.php on line 1
This error tells you that the output was started at line 1 of your
admin.php file. (maybe a blank line at the top of the script?)
As Miles suggested:
"You have to call session_start() before any output to the page, even a
single space."
--
Chris Martin
Web Develop
tes, but I could've just overlooked it.
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
just go to
http://localhost/your_script.php in your browser to test them out, no
need to use the command line to pass to a browser.
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Curt Zirzow wrote:
* Thus wrote Ed Lazor:
Gawd this stuff sucks.
Nothing like a spammer posing as the list itself and farming email addresses
from members.
Its odd, i've yet to get one of those. Either the spammers dns
doesn't resolve proper (cause my server rejects those) or if its
due to the fac
Hello!
I made a class which should represent a tree-like structure (PHP 4.3.8).
I made a root-nore and added 2 childs. The problem is that the childs
are not added to the parent. Why?
Martin
class TreeItem
{ var $m_pParent;
var $m_sName;
var $m_arrChilds = array
Ah, i forgott to pass the paramter as a reference...
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ply either!
At least they're not on PDXLUG!!!
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've been using func "imagecreatefromstring" for
creating JPEGs obtained from MySQL database.
The function sometimes fails terminating script
with no error message.
Has somebody reached such problem?
I don't want to save images to temp files.
Linux 2.4.26, PHP 4.3.8, gd 2.0 or higher
--
PHP Gen
mooth'
ext/gd/gd.lo(.text+0xf231): In function `zif_imageantialias':
/usr/local/php5/ext/gd/gd.c:4216: undefined reference to `gdImageAntialias'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
I tried to compile PHP with only --with-gd (without --with-jpeg-dir etc)
and
Curt Zirzow wrote:
* Thus wrote Martin Visser:
PHP5, with GD on Linux (Slackware 10.0)
./configure goes just fine, but when I try 'make', there's an error.
this is how I configured it:
./configure --prefix=/usr/local/php5 --with-zlib
--with-pear=/usr/share/pear --with-mysql=/
gs
In particular, for all uppercase, you'll probably find 'strtolower()'
helpful. And, as Jim mentioned, ucfirst() will capitalize the first letter.
There's a bunch more that can help you control what they're sending you.
(Isn't it amazing what people will enter in a f
sizes that
you're opening in a pop up, and you want each window to fit the image
perfectly. You could then use PHP to get the size of the image, to then
dynamically insert into the JavaScript.
Congrats on RTFM!! It seems daunting at first, but as you learn more, it
will become your friend.
t said, you could give Quanta Plus or Bluefish a shot, both are great
free linux apps. My personal favorite is Quanta Plus, it contains most
of what you mentioned (even auto-completes your variables)
On the non-free side, Dreamweaver MX has some decent PHP features,
although it's a pricey so
dll) in the Apache
root, or Apache/modules directory
If all else fails you could uninstall and try the WAMP bundle.
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ce I never confirmed them, they never made it. I
don't want to be considered one of the spammers that I'd like to knock
the F* out.
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n off buffering in the input stream but I can't find
any way to do it.
Been looking everywhere on php.net but can't find any hints.
// Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greg Donald wrote:
On Thu, 2004-09-09 at 15:25, Jim Grill wrote:
exec("stty -icanon min 0 time 0");
Nice.
I suspect 'phpSnake' will appear on freshmeat in a couple days.
:)
thats more or less what we are trying to do. =)
pong as a start at least.
doing it all over again, this time php-st
;]);\r\n";
}
--
Seigo
www.geocities.com/seigo_ua/
Just a note to help the learning process. Either mysql_fetch_assoc() and
mysql_fetch_array() will return your result in an array, so you don't
need to actually create one.
--
Chris Martin
Web Developer
Open Source & Web Standards Ad
Michael Mao wrote:
Thanks John.
Found what I'm looking for:
Function str_split()
to make it php4 compatible you can use this function:
|
if (!function_exists('str_split')) {
function str_split ($str, $size = 1) {
$arr = array();
for ($i = 0 ; $i < strlen($str) ; $i += $size) {
$
Daniel Schierbeck wrote:
I've been looking at php.net, but i couldn't find what i'm searching for.
I have a numeric array, and i'd like to get the highest key. E.g.
$arr = array(3 => "foo", 7 => "bar", 43 => "foobar");
What i want is a function that, in this case, returns 43.
Daniel Schierbeck
I tried fopen() and anything like that but it didn't work.
Any solution ?
Thanks.
Martin Justra
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ps://tto.deutschepost.de/nexttonline/jsp/direct_access.do?v_benutzer=xxx&v_passwort=xxx&v_ic=xxx&v_spr=deu):
failed to open stream: No such file or directory in
/var/www/catalog/blubb.php on line 2
It seems that fopen is not able to open it, because it is not redirected to
a file..
Hello Robert,
yes that works. But the problem is that I don't want that the one who opens
the site can see the whole link in the navigation line of the browser (where
you type your adress in).
In your solution I get the whole link
Martin
--
PHP General Mailing List (http://www.php.net
nutzer=aaa&passwort=bbb&ic=tracking";);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$test = curl_exec($ch);
$teil = explode("", $test);
echo $teil[0];
curl_close($ch);
What did I do wrong ?
Martin
?>
--
PHP General Mailing List
blackwater dev wrote:
How can I take a string and create an array?
Example,
A12B05C45D34
I need to split this into chunks of three A12,B05,C45..etc?
Thanks!
|
use str_split()
if you dont have php5, you can use the following code:
|
if (!function_exists('str_split')) {
function str_split ($s
Am Sa, den 09.10.2004 schrieb Dave Carrera um 8:46:
> Hi List,
>
> Is there a GUI tool that can help make relationships between MySQL tables ?
>
Look at: http://www.fabforce.net/dbdesigner4/
--
Martin Rozmus <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.ne
Joe napsal(a):
Is it possible to use a PHP operator as a callback? Suppose I want to add two
arrays elementwise, I want to be able to do something like this:
array_map('+', $array1, $array2)
but this doesn't work as "+" is an operator and not a function.
I can use the BC library's math function
dr() = Internet host name for?
When IP changes the hostname does too and vice-versa?
What's the difference between these two values?
And why do I need both of them?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pos() each one?
The basic browsers for Win, Mac, and Linux - others would be unknown.
And then only to check for OS.
I tryed get_browser() but that thing is way too slow for my needs: 0.09 sec.
Thanks in advance,
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
Martin Zvarík napsal(a):
Hello,
anyone has a good function for getting a user's browser, OS and crawler
detection ?
I have looked at google etc, but I ran only into long list of
ineffective ereg()s functions or not checking if it's crawler...
Is it possible to make an array lis
It works as expected on my PHP 5.2.4
LKSunny napsal(a):
";
}
//i don't know why, when run this code, on 91.3 after expect is 91.2,
however..91.2001
//who can help me ? and tell me why ?
//Thank You.
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
e! Hey,
the chance of getting me hit by bus is higher than someone cracking my
15 letter password with numbers! Thank you powweb for keeping me secure.
Thanks for reading my story,
now, does someone know a better hosting alternative?
Martin
--
PHP General Mailing List (http://www.php.net
That's an awful looking website, but thanks for reply.
I am looking for rather a US hosting company.
Andrew Williams napsal(a):
go to www.willandy.co.uk <http://www.willandy.co.uk> best value for money
On Sat, Jan 24, 2009 at 3:03 PM, Martin Zvarík <mailto:mzva...@gmail.com>
I should have said in the beginning it's a small website and I am not
looking for a dedicated server.
Howewer, I decided to move to Lypha.com
Thanks for all your fruitful* comments :)
Martin
PS: PHP mailgroup rulz
*) that was in dictionary
--
PHP General Mailing List (http://www.ph
Ashley Sheridan napsal(a):
On Sat, 2009-01-24 at 10:14 +0200, Dora Elless wrote:
That's why I am sending this email only to people I know and care
about.
And they send to a mailing list. Come again?
Ash
www.ashleysheridan.co.uk
The sad thing though is that there will be always people who b
Thodoris napsal(a):
Y
In cgi i can use perl ,c etc
suppose i use perl
now how efficiency differs?
How cgi written in perl and php is differ in working in context of web
service?
other difference?.
but their differ.
On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard
wrote:
[snip]
can any
Nathan Rixham napsal(a):
Ashley Sheridan wrote:
On Thu, 2009-02-05 at 09:44 +1100, Chris wrote:
PHP wrote:
Hi all,
I am seeking some knowledge, hopefully I explain this right.
I am wondering what you think is faster.
Say you have 1000 records from 2 different tables that you need to
get fro
path
which it should request, am I right?
If so, than it's not really secure, since the user will be able to test
and try all other filenames and get somewhere I don't want him to go - I
know I might be too careful,
BUT I am interested how PROs do this.
Your comments will be app
Martin Zvarík napsal(a):
Hi,
there are two choices (example):
1) file_redirect.php?src=file/root.jpg --- shows an image
2) .htaccess --- if is requested file/root.jpg than redirect to
"xyzfile/root.jpg"
In both cases I can restrict the access to some files only.
If we talk abou
;,
$ipaddr)) {
return $clientIP = $ipaddr;
}
}
}
return $clientIP = $_SERVER['REMOTE_ADDR'];
}
I doubt you find better solution than what you use now, but let me know
if so,
Martin
Ian napsal(a):
Hi,
I am busy buil
ning on the same session. If NOT
than it would call (could be HTTP request also) a PHP script on the
windows server.
What's the deal?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Guys, I have not seen a poll where you need to input your email address
- and if I would I would not vote - because it's a waste of my time...
if you want me to vote you do everything you can to make it as pleasant
as possible -- certainly that isn't requirement of an email validation.
Andre
tedd napsal(a):
At 1:49 AM +0100 2/19/09, Martin Zvarík wrote:
Guys, I have not seen a poll where you need to input your email
address - and if I would I would not vote - because it's a waste of
my time... if you want me to vote you do everything you can to make
it as pleasant as pos
tedd napsal(a):
At 5:10 PM +0100 2/19/09, Martin Zvarík wrote:
tedd napsal(a):
At 1:49 AM +0100 2/19/09, Martin Zvarík wrote:
Guys, I have not seen a poll where you need to input your email
address - and if I would I would not vote - because it's a waste of
my time... if you want me to
tedd napsal(a):
At 5:28 PM +0100 2/19/09, Martin Zvarík wrote:
tedd napsal(a):
At 5:10 PM +0100 2/19/09, Martin Zvarík wrote:
tedd napsal(a):
At 1:49 AM +0100 2/19/09, Martin Zvarík wrote:
Guys, I have not seen a poll where you need to input your email
address - and if I would I would not
Chris napsal(a):
Martin Zvarík wrote:
tedd napsal(a):
At 5:28 PM +0100 2/19/09, Martin Zvarík wrote:
tedd napsal(a):
At 5:10 PM +0100 2/19/09, Martin Zvarík wrote:
tedd napsal(a):
At 1:49 AM +0100 2/19/09, Martin Zvarík wrote:
Guys, I have not seen a poll where you need to input your email
Chris napsal(a):
Martin Zvarík wrote:
Chris napsal(a):
Martin Zvarík wrote:
tedd napsal(a):
At 5:28 PM +0100 2/19/09, Martin Zvarík wrote:
tedd napsal(a):
At 5:10 PM +0100 2/19/09, Martin Zvarík wrote:
tedd napsal(a):
At 1:49 AM +0100 2/19/09, Martin Zvarík wrote:
Guys, I have not seen a
Ashley Sheridan napsal(a):
On Thu, 2009-02-19 at 23:34 +0100, Martin Zvarík wrote:
Chris napsal(a):
Martin Zvarík wrote:
Chris napsal(a):
Martin Zvarík wrote:
tedd napsal(a):
At 5:28 PM +0100 2/19/09, Martin Zvarík wrote:
tedd
Chris napsal(a):
Terion Miller wrote:
Need syntax help when it comes to using a timestamp.
What I'm trying to say in my query WHERE clause is to select records
if the
timestamp on the record is in the past 7 days from NOW()
$query .= " WHERE stamp < NOW()-7 "; I have no clue here on this ...
Micah Gersten napsal(a):
Martin Zvarík wrote:
Chris napsal(a):
Terion Miller wrote:
Need syntax help when it comes to using a timestamp.
What I'm trying to say in my query WHERE clause is to select records
if the
timestamp on the record is in the past 7 days from NOW()
$
nly true
template system.
Martin
Thanks for any help you can provide :)
Matt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;m trying to achieve was not clear!
Why it works on your local server is probably caused by different
versions/settings, but I bet there's an error somewhere in your script.
Consider sending it here, I'll take a look.
Cheers,
Marc.
Martin
--
PHP General Mailing List (htt
t to mention the XSS on MySQL or inside comments right? Isn't
mysql_real_escape_string(), strip_tags() enough?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jochem Maas napsal(a):
Martin Zvarík schreef:
What's the point?
If user puts in a search input something like alert('I am super
hacker');
And the website outputs:
You are searching for:
then what? it shows an alert(), who cares?
replace the alert() with some c
Michael A. Peters napsal(a):
Martin Zvarík wrote:
What's the point?
The point is detailed on the (not fully complete) description page I
just put up -
http://www.clfsrpm.net/xss/
Yeah, I just had a quick look...
"The browser will only execute script in source files from the
wh
Jan G.B. napsal(a):
2009/3/15 Martin Zvarík :
"The browser will only execute script in source files from the white-listed
domains and will disregard everything else, including embedded and inline
scripts. "
wtf, can't you just take care of the INPUT and type
strip_tags
I want to store the file's hash to the database, so I can check next
time to see if that file was already uploaded (even if it was renamed).
What would be the best (= fastest + small chance of collision) algorithm
in this case?
Is crc32 a good choice?
Thank you in advance,
Martin
-
"Fastest" depends mostly on the size of the file, not the algorithm
used. A 2gig file will take a while using md5 as it will using sha1.
Using md5 will be slightly quicker than sha1 because generates a
shorter hash so the trade-off is up to you.
$ ls -lh file.gz
724M 2008-07-28 10:02 file.
Chris napsal(a):
Martin Zvarík wrote:
Is it smart to use all of this on one page?
Or should I rather do one SQL and let PHP count it?
$q = $DB->q("SELECT COUNT(*) FROM comments");
$int_total = $DB->frow($q);
$q = $DB->q("SELECT COUNT(*) FROM comments WHERE approved
c/php-5.2.9/main (downloaded directly from
PHP.net, unchanged, no make or install commands)
And checked: printenv PATH
OK.
Ran again, but it shows still the same error: php.h not found.
I appreciate your help,
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Martin Zvarík napsal(a):
Per Jessen napsal(a):
Martin Zvarík wrote:
Hi,
I am totally new in compiling under cygwin.
I need to compile an PHP extension, and this is what I figured so far:
I wouldn't expect cygwin to be that different to a real Linux
environment - how about:
unta
Per Jessen napsal(a):
Martin Zvarík wrote:
Hi,
I am totally new in compiling under cygwin.
I need to compile an PHP extension, and this is what I figured so far:
I wouldn't expect cygwin to be that different to a real Linux
environment - how about:
untar the extension
cd dir
p
.
I probably need to write a script that would lock the first file and if
this file is already locked it would just die('already working...')
Is this a good approach?
I know I can use javascript to disable second click, but I want it
server side.
Thanks for your suggestions,
Mart
kranthi napsal(a):
yeh. if u want it to be on server side that is a good approach. but i
feel it'll be very easy to do it with javascript...
but what i did not understand is: what should happen if the user
clicks ROTATE second time(when the script completed rotating say 5
images)?
Well, few i
1201 - 1300 of 1967 matches
Mail list logo