ql parameter is truncated. Any
help is appreciated!!
If you really care then you need to sniff the traffic. Chances are that
either the browser or server is truncating it.
Oh, and please tell me you're not really doing that
-Stut
--
PHP General Mailing List (http://www.php.net/)
T
and I should go out and plant a tree.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sancar Saran wrote:
Yes you are absolute right.
Session was locked...
Thanks for info :)
No problem, but please include the list in replies especially when
you're confirming a possible explanation. It helps improve the
usefulness of the archives.
-Stut
On Tuesday 06 February 2007
t a jab between posters.
Indeed.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
arate the directories with a colon."
The manual exists for a reason, please use it.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Please include the list in replies.
Tim McGeary wrote:
Stut wrote:
Tim McGeary wrote:
I am new to this list today, so if I should be sending this to another
specific PHP list, please let me know.
I am getting the following error via the PHP web page I am building:
Warning: mysql_connect
Tim McGeary wrote:
Please include the list in replies.
Sorry, I meant to, but hit the wrong button.
And I sent it to the wrong list!! Sorry folks.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
le to read about them
someplace.
Nobody has asked the obvious question yet... why?
If you're just looking for what's new in PHP5, this is probably not the
best way to go about it. If there is another reason, if you tell us what
it is we may be able to help you further.
-Stut
--
PHP
Jim Lucas wrote:
Stut wrote:
Jim Lucas wrote:
So, to my question. Does anybody have a place they can refer me to
to find out about all the available classes in PHP5. Granted that I
don't have all the various extensions loaded, so I don't have access
to the various classes
t to a PHP script, rather than trying to intercept the request
itself.
Alternatively, do an AJAX request in the onsubmit for the form that does
the PHP bit, and if the response is good, then post the form.
-Stut
-Original Message-
From: blackwater dev [mailto:[EMAIL PROTECTED]
Sen
nd the graphics you might want to reconsider.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ds mailing lists specifically for
phpMyAdmin questions. Try the link below, which was found incidentally
by typing "phpmyadmin mailing list" into Google.
http://sourceforge.net/mail/?group_id=23067
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Helder Lopes wrote:
how to transform a block of code in html to php??
HTML to PHP? You having a laugh?
What are you actually trying to achieve?
-Stut
for example this,
P.M.R. Leiria - Produtos para Mec. e
Racionalização Informática, Lda.
Av. Dr. Francisco
?
Sorry if I have posted this question in the past, its been a while since
I last thought of this problem.
__FILE__ will give you the path and filename of the current file.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
clive wrote:
Thanks Vincent,Stut and Olaf. Thats __file___ is exactly what I needed :)
now for another brain teaser for your collective brains, How does a
function know what file it was called from.
a.php includes functions.php
in a.php we call function test(); which is declared in
follow
their rules.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the email address and can control it a lot better.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://ebay.com/
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Marco Sottana wrote:
which is the best framework ? pear or zend framework?
Which is the best fruit? Apple or pear fruit?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Please include the list on replies.
Marco Sottana wrote:
potato
Not really a fruit is it. Still, I'll take that to mean that you got my
point.
-Stut
- Original Message - From: "Stut" <[EMAIL PROTECTED]>
To: "Marco Sottana" <[EMAIL PROTECTED]>
cripts.com/PHP/Scripts_and_Programs/Auctions/index.html
But bear in mind that you'll need to put stuff in place to cover all the
legal issues raised by online auctions. The reason I recommended eBay is
that they're set up to do this, but it's your funeral.
-Stut
es PHP5 (I believe it's 5.2+)
introduces the ability to turn off the ability to prevent this issue,
but it's still badly written code. Stop blaming the tool, start blaming
the mirror image and start learning how to code defensively.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the created date and last modified
all together, if possible..
You want the stat() function: http://php.net/stat
Seriously, how hard did you actually look?
With my best regards
With my limitless best wishes.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
may be a header that gives the last modified date, but there is no
way to get the created date. For FTP you can use the ftp_mdtm() function
to get the last modified date, but again there is no way to get the
created date.
Hope that helps.
-Stut
--
PHP General Mailing List (http://www.ph
plain text using both methods.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lp them by providing
instructions, and validate what they've sent you in case they don't read
them.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
text. Your "encryption"
mechanism is visible to the "bad guys", so all you've done is added an
extra no-brainer hurdle for them to get over.
At the end of the day the best way to secure data being transferred from
client to server is to use SSL.
-Stut
On 3/4/07,
e, are you looking for a
particular username or just want to load the whole list?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nomical and I think you'd
be surprised at how fast PHP can do this.
Another option would be to break the single file in to several files,
maybe one for each first character. That way you would limit the number
of entries you need to check.
Hope that helps.
-Stut
--
PHP General Ma
able to find info to do it,
I'm wondering if any such solution would be worth it. What do you think?
If you can't join the tables together then they're not related, so
you'll need to do separate DB calls. I'm not sure where the problem is here.
-Stut
--
PHP Gene
Mike Shanley wrote:
Stut wrote:
I'm not sure what you mean by "extra indexing memory". The autonumber
feature is simple in that MySQL just keeps track of the last ID used
and increments it to get the next one. However, I don't think there is
any overhead caused by deleted
Please include the list in all replies.
Mike Shanley wrote:
Stut wrote:
There is no "simple" way. But this question comes up fairly often, and
the usual answer is that there's no need to fill the holes. Why do you
think you need to fill the holes? If there is no good reason to
ed in there is no need to store the password.
Simply store the username or other user details (but not the password)
in the session - that's as secure as it's gonna get.
*Never* store a password in a cookie. *Ever*.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
oblems, for example if the user is going through a proxy that might
end up using a different IP from request to request.
-Stut
On 3/4/07, Tijnema ! <[EMAIL PROTECTED]> wrote:
On 3/4/07, Stut <[EMAIL PROTECTED]> wrote:
>
> Alain Roger wrote:
> > I would like to imple
to involve some piece of data being transferred from client to server,
and can therefore be faked/shared by the client. Get over it.
-Stut
On 3/4/07, Alain Roger <[EMAIL PROTECTED]> wrote:
Ok, but i would be very glad to know how can i REALLY authenticate the
user.
for example, user is
Tijnema ! wrote:
On 3/4/07, Stut <[EMAIL PROTECTED]> wrote:
Tijnema ! wrote:
> Give your server a unique ID, and add that to your check string lets
say
> so you store in your cookie the username and the check string.
>
> example
> $user = "tijnema&quo
o sum up, every page that needs the user to have logged in needs to
check that a user has logged in, and redirect to the login page if not.
Hope that makes it clear.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
defining it?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
main script.
This is something known as scope, and you really should know all about
it: http://php.net/variables.scope
In this particular case you can either user the $GLOBALS superglobal, or
the global keyword. Both are covered on that manual page.
-Stut
--
PHP General Mailing List
're not calling session_start.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
real_escape_string($magazine_path[2])."')");
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ttp://dev.stut.net/php/ab.php
I suggest you read up on classes and the syntax thereof in the manual -
you're not getting it at the moment. Remember, PHP is not C++.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lem and is used a lot as
a university project or interview question. If you can't do it, be afraid!!
http://dev.stut.net/php/fizzbuzz.php
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
++
I hope that makes it clearer.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
value of $this->foo.
However, what I really need to have happen is for $this->$name = $val to be
evaluated as $this->foo = 1;
Works fine here: http://dev.stut.net/php/classvar.php
What do you get?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Array keys
must be a scalar value, that is to say a 'normal' value (essentially a
string or a number).
The object in $name probably has some unique value that represents that
particular instance. Use that instead of the object itself.
-Stut
--
PHP General Mailing List (http://ww
ay an array or am I using
this wrong
$array is a string, and array_search is expecting an array, so it's
correct. Where did you get that "array"?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Kurth wrote:
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 11, 2007 2:53 PM
To: Richard Kurth
Cc: php-general@lists.php.net
Subject: Re: [PHP] Using array_search I get error
Richard Kurth wrote:
This array comes from $_REQUEST of all data
see a couple more CPU cycles than have
code I have to think about to figure out what it does, until it's a
proven bottleneck.
Except that you're not displaying the actual number when it's not
divisible between 3 or 5, so that doesn't meet the spec. Sorry.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Todd Cary wrote:
I would like to write a filter that takes the text "smith" or "SMith"
and returns "Smith"; same for "ralph smith". Is the a good source on
using filters this way?
Thank you...
You're welcome.
-Stut
--
PHP General Mail
rn $this->__construct();
}
}
Zend Studio will parse that comment and it will then know what type of
data it contains. This works for function docs too, where you can tell
it what the types of the parameters are and that of the return value.
-Stut
--
PHP General Mailing List (http://
y use the 1st of these
accounts. I am unable to connect remotely using SQLyog. We use SSH, and
I attempted to do this with my firewalls turned off-still did not work.
Any help would be greatly appreciated.
The wildcard for the hostname is not * it's %.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jochem Maas wrote:
Stut wrote:
Jonathan Kahan wrote:
As part of PHP, I have downloaded a windows program called SQLyog which
^^ -> Yeah, but it's not really is it?!!
is supposed to a free web program I can use to run against MYSQL
located in a remote Linux server. My pr
Richard Lynch wrote:
On Tue, March 20, 2007 3:24 pm, Jochem Maas wrote:
Stut wrote:
Jochem Maas wrote:
Stut wrote:
Jonathan Kahan wrote:
...
The wildcard for the hostname is not * it's %.
-Stut
your being friendly today Stut, wassup with that ;-)
New job. Too happy.
anything we c
about doing this?
1) Not even slightly PHP related.
2) Why random? Incrementing not good enough for you?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* threading
mechanism, and nobody can successfully argue that standards are a bad
thing. It has nothing to do with Jim's setup.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
u shouldn't respect it.
If I don't agree with murder being illegal does that make it right that
I do it? Of course not, because people smarter than me decided that it
should be. (Please note that this does not represent my opinion and is
only being used as an extreme example).
-Stut
Jo
[EMAIL PROTECTED] wrote:
Stut writes:
[EMAIL PROTECTED] wrote:
I want to add a random unique ID to a Mysql table. Collisions
are unlikely but possible so to handle those cases I'd like to
regenerate the random ID until there is no collision and only
then add my row. Any suggestions
7;].$VM.$data->legs->leg[$k]['fNo'].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['meals'].$VM.$data->legs->leg[$k]['smoker
SQL client. If it works there but not
through mysqli_query() then you might have a case for asking here.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lternatively try the
same script on the command line.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
trim($_POST['_createcategory']) : '';
if (empty($_POST['_createcategory'])) {
Still not pretty but slightly better in that you can cleanse your data
before you hit logic.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jochem Maas wrote:
'they' never tell anyone, but once in a while one of us drones gets lucky and
figures
out there is 'life beyond the list' ;-)
You want me to do what with who now?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mário Gamito wrote:
$data = readfile($full);
The readfile function does not return the contents of the file. I
suggest you RTFM: http://php.net/readfile
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
delete link uses javascript to ask the
user for confirmation. The accelerator happily goes through these links,
helpfully pre-fetching them for you. This is fine for the edit links,
but the delete links cause the website to delete your entire blog. Oops.
Hope that's made it clear.
Robert Cummings wrote:
On Sat, 2007-04-07 at 11:10 +0100, Stut wrote:
These implied "rules" have existed since HTTP was invented, and when you
think about it they make a lot of sense. They also get emphasized by the
existance of so-called web accelerators that simply pre-fetch UR
every time, but without letting that client know
something is different.
It really really really can't be done. Something needs to be visually
different, therefore something in what the client gets needs to be
different. Do you see why it's not possible now?
-Stut
--
PHP General Mailing
question is... not unless your code
is exploitable to allow the user to arbitratily set session variables.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> and the cracker would use that :)
Yep, like I said to Tedd before... kinda need multiple forms of captcha
tailored to particular special needs audiences. Visual is good for
pretty much all but the blind. Blind people can use audio captcha.
Beyond that... is it worth the cost to target dimini
ed. Sessions live only on the server making them a lot more secure,
but by no means completely secure.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
re HTTP headers, nothing more, nothing less. The minimum "tool"
you need is telnet. If you're writing web applications and don't know
that, please take the time to read the HTTP spec, and then the cookie
spec. Google for them.
-Stut
--
PHP General Mailing List (http://www.ph
how it would be illegal to modify cookies that are in MY computer.
As with most things these days it probably breaches the DMCA. But
frankly speaking, if doing that works then the developers of the
application, and by extension the company, deserve everything they get.
-Stut
--
PHP Gener
that format...
$indate = '10/04/2007';
$outdate = implode('-', array_reverse(explode('/', $indate)));
And back...
$indate = '2007-04-10';
$outdate = implode('/', array_reverse(explode('-', $indate)));
-Stut
--
PHP General Ma
ng to suggest things like that please explain the dangers.
By using $_REQUEST you cannot be sure where a particular variable came
from. This is less important with $_REQUEST than it was with
register_globals, but it's still important to note for new users.
-Stut
--
PHP General Mailing
done?
Zip 'em and ship 'em.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t will be that
much better.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If not, your statement oozes a lack of understanding concerning indexes
and general database optimization. If that's the case, start Googling.
Now. Before you write any more code.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You could probably craft an evil web page that kicks off the
MP3 download in an iframe, polls that frame for completion using
Javascript, and when it's done start the next one. But that's evil, like
I said earlier. From both usability and KISS points of view, zipping 'em
is your be
tedd wrote:
this
ain't the bad old days.
That's debatable!
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tedd wrote:
At 7:41 PM +0100 4/12/07, Stut wrote:
Yes you'll need to put in a bit more work, but the result will be that
much better.
-Stut
Sorry Stut -- I know you know this, but it's more work to NOT use css.
Not when you have a pre-made table-based layout already.
-St
sure hope not. Editors should never be written in scripting-languages
in my opinion.
So you have an issue with every web-based CMS on the planet? IMHO it
doesn't matter what language/tool/technology is used to write software,
as long as it does the job and meets customer requirements.
Richard Lynch wrote:
On Fri, April 13, 2007 1:20 am, Stut wrote:
tedd wrote:
this
ain't the bad old days.
That's debatable!
Damnit!
Now I've got that "These are the good ol' days" song stuck in my head,
and it's your fault!
:-)
Hey, don't forget t
encryption. MD5 is not encryption, it's
a checksum.
By all means use it as an example, but please be aware that it is not
particularly secure and could open your site to attacks.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;" is set
I use this combination a lot:
if ( isset($_GET['something']) && !empty($_GET['something']) ) {
// do something here with $_GET['something']
}
The isset is a pointless waste of cycles.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because
$_REQUEST[
Jim Lucas wrote:
Stut wrote:
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still say
Robert Cummings wrote:
On Mon, 2007-04-16 at 09:27 -0700, Jim Lucas wrote:
Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it
ls" information you all seem to know so much about, it is very
interesting and i'd like to add it to some of my "late night" reading if
possible :)
Just guessing, but I'd say probably the source code. That's where most
of the internals of PHP are documented.
w can i fix this?
Pass. I know you can specify member variables to be saved in __sleep(),
so I guess that would be one possible workaround.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed by having a
php.ini setting to turn the dang things *OFF*?...
I seem to recall the theory behind it is that it saves some pointless
parsing when running a SAPI that won't use them.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ve] )
And isn't "mixed" of any type?
No. The value of a constant must be a scalar, i.e. a string or a number.
So it is "mixed", but does not allow all types.
If you really want to you can serialise your array into the constant,
but that will incur a cost whenever
On Fri, 25 Jun 2004 11:08:26 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote:
> Since the result of the mail() returned is 1, the message should have been
> delivered fine. but I did not get anything. Where can I look for more
> clues of what the problem might be, like possible log, or turn on som
or similar to find them).
> ps.. to you guys who said that the doesn't have a value=''.. it
> does...
Erm, no, it doesn't.
--
Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n it's Apache that's throwing it away.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- it tells you important stuff like that.
-Stut
--
http://stut.net/
Chris wrote:
You probably just have short_open_tags set to Off in your php.ini
file. If so, either turn it On, or change the file to be:
Chris
Rick Knight wrote:
I have just installed PHP-5.2.3 on my Kubuntu Feisty box.
pluginspage="http://www.apple.com/quicktime/download/"; controller="true"
autoplay="true" height="153" width="321">
I'm sure there are lots of tutorials on the web regarding the details -
I just nicked this code from
http://www.apple.com/trailers/fox/thesimpsonsmovie/trailer1_small.html
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tedd wrote:
At 4:32 PM +0100 8/15/07, Stut wrote:
tedd wrote:
Given:
http://www.webbytedd.com/bb/ice/
How can I play the movie inside the page instead of going to another
page?
I know that I could use phpclasses, but that seems an overkill.
I think something like this --
$file_source
Al wrote:
What do you guys use for casual XML editing, besides plain text editors?
Ones that'll error check and allow fixing files with errors?
Thanks...
I tend to use Visual Studio for this sort of thing since I usually have
it open anyway.
-Stut
--
http://stut.net/
--
PHP Ge
I assume this comment was aimed at the list and not just me.
Kelvin Park wrote:
Stut wrote:
Al wrote:
What do you guys use for casual XML editing, besides plain text editors?
Ones that'll error check and allow fixing files with errors?
Thanks...
I tend to use Visual Studio for this
or ($i = 0; $i < 21; $i++)
$faqs[] = 'faq'.$i;
if (in_array($q, $faqs))
echo $faq1;
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
101 - 200 of 1370 matches
Mail list logo