On Sat, 2008-01-19 at 23:17 -0500, Nathan Nobbe wrote:
> thanks for the great responses guys.
> i guess what im really getting at though is, if crypt() will embed
> a salt in the value it returns automatically, is there any benefit to
> creating a salt to pass to the second argument and storing tha
On Mon, 2008-01-21 at 02:43 +0100, Jochem Maas wrote:
> use simple code, optimize your db and go and read up on everything you can
> find
> about optimizing [download] connections on your webserver ... these spring to
> mind
>
In addition to optimizing code and db (I presume that includes using
One solution I can think of is:
$showCode = highlight_file($fileWithPath, true);
echo str_replace('', "\n", $showCode);
It may not be the best one. But it's not recommanded to use
echo wordwrap($showCode, 70);
Because you may break into something like
Regards,
Shelley
-
On Jan 20, 2008 10:15 PM, nihilism machine <[EMAIL PROTECTED]>
wrote:
> im trying to keep this php4 OOP. im just trying to clean the post/gets
> and then make them all into variables with their names being the keys
> to the get/post, and their values as the variables values.
then all you have to
here is a complete, working example; hope it helps.
http://nathan.moxune.com/exampleDynamicSelect.php
-nathan
im trying to keep this php4 OOP. im just trying to clean the post/gets
and then make them all into variables with their names being the keys
to the get/post, and their values as the variables values.
ie: $_POST['someFormInputName'] = "somevalue" ... turns into
$someFormInputName = "somevalue"
Hello
I have a MSSql 2000 database that have stored data with the follow special
characters: ó, í, Ñ, á, é, ú.
When I see the data through any MsSql Client I see exactly those characters.
The Collation of database is: SQL_Latin1_General_CP1_CI_AS
I cant change the method of insert data in
On Jan 20, 2008 9:47 PM, nihilism machine <[EMAIL PROTECTED]> wrote:
> how does this look? should this by me calling ... myforms = new
> forms(); work by turning all key/value pairs for both get and post
> into variable names of the same name as the get/post key, and the
> variable values as the v
this may be common knowledge, but a simple thing for databases that
decreased my query time was making sure that you have indices on those
fields you use in your SQL. made a world of difference for me.
On Jan 20, 2008 2:57 PM, dg <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I'd appreciate an
thx for the reply but i am a bit confused (i am new to php and even to
javascript)
Where would I put the javascript portion (the window.onLoad part), then?
Here is the relevant portion of the code. My test page can be seen at
http://valueinvestingplanet.com/test. The idea is to have the rss f
how does this look? should this by me calling ... myforms = new
forms(); work by turning all key/value pairs for both get and post
into variable names of the same name as the get/post key, and the
variable values as the values from the post/get?
class forms {
// Some stuff
On Jan 20, 2008 9:22 PM, nihilism machine <[EMAIL PROTECTED]> wrote:
> I'm trying to create a function that will first take an array of
> $_POSTs and give them key/value pairs like variables. For instance, if
> i had $_POST['whatever'] = "whatever", that would be made into
> $whatever = "whatever"
I'm trying to create a function that will first take an array of
$_POSTs and give them key/value pairs like variables. For instance, if
i had $_POST['whatever'] = "whatever", that would be made into
$whatever = "whatever", then i can clean for sql injection and xss.
any ideas here?
- e
-
On Jan 20, 2008 8:43 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> get a book? I happen to be rereading "building scalable websites" by Carl
> Henderson ... something like that might help you to get a better idea of
> what you might be facing.
wow, you read books too? i though i was the only one
On Jan 20, 2008 8:51 PM, PHP-General <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've looked everywhere on the web (except of course the place that has the
> answer ;) ) but can't seem to find a solution.
>
> I'm trying to build an rss reader on a webpage. The idea is simple:
> there's
> a dropdown box w
Hi,
I've looked everywhere on the web (except of course the place that has the
answer ;) ) but can't seem to find a solution.
I'm trying to build an rss reader on a webpage. The idea is simple: there's
a dropdown box where you select the name of the blog and when you select the
blog you want
Regards,
Shelley
-Original Message-
From: Eric Butera [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 19, 2008 12:03 AM
To: Jochem Maas
Cc: php-general@lists.php.net
Subject: Re: [PHP] A stupid question?
On Jan 18, 2008 10:49 AM, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
> Eric Butera
dg schreef:
Hello everyone,
I'd appreciate any insights, or source suggestions regarding site
traffic and necessary adjustments.
For example, I'm using a simple digital download page for an indie
artist. Not a ton of traffic, not a ton of concurrent requests.
Was thinking about introducin
jekillen schreef:
Hello again;
I am developing an application that uses php with Apache.
A user requests a script file from a web site and the server
takes such things as $_SERVER['REMOTE_ADDRESS']
$_SERVER['REMOTE_ADDRESS'] is a pretty useless value for the
age old reason that, for instance, A
Børge Holen wrote:
You really don't get it yet? You distributed it, I knew your email long before
Dan did squat, didn't take any programming to acomplish that.
Obviously, you don't get it either. It's now common practice to remove
email addresses from public forums. Instead of justifying Dan'
[snip]
Sending to the LIST this time... I personally replied, how dumb was *I*
this morning... And top posted... Twice...
Dang Jay, you feeling OK? You've been quiet the last week... Or did
Richard just tie you up so you couldn't post and he could get top honors
this week? :)
[/snip]
Ri
dg wrote:
Hello everyone,
I'd appreciate any insights, or source suggestions regarding site
traffic and necessary adjustments.
For example, I'm using a simple digital download page for an indie
artist. Not a ton of traffic, not a ton of concurrent requests.
Was thinking about introducing
Hello again;
I am developing an application that uses php with Apache.
A user requests a script file from a web site and the server
takes such things as $_SERVER['REMOTE_ADDRESS']
and uses php's time() function to record the time in utc
code (which would be the server's system time)
and other bit
On Sunday 20 January 2008 22:38:24 Robert Cummings wrote:
> On Sun, 2008-01-20 at 16:13 -0500, Nathan Nobbe wrote:
> > On Jan 20, 2008 4:09 PM, Børge Holen <[EMAIL PROTECTED]> wrote:
> > > MAN don't expose it like that. Now he'll get tons upon tons of spam :D
> >
> > damn, did i, like, just publish
On Jan 20, 2008 4:38 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> On Sun, 2008-01-20 at 16:13 -0500, Nathan Nobbe wrote:
> > On Jan 20, 2008 4:09 PM, Børge Holen <[EMAIL PROTECTED]> wrote:
> > >
> > > MAN don't expose it like that. Now he'll get tons upon tons of spam :D
> > >
> >
> > damn,
On Sun, 2008-01-20 at 16:13 -0500, Nathan Nobbe wrote:
> On Jan 20, 2008 4:09 PM, Børge Holen <[EMAIL PROTECTED]> wrote:
> >
> > MAN don't expose it like that. Now he'll get tons upon tons of spam :D
> >
>
> damn, did i, like, just publish it again :-O
Is this going to turn into one of those thi
On Jan 20, 2008 4:09 PM, Børge Holen <[EMAIL PROTECTED]> wrote:
>
> MAN don't expose it like that. Now he'll get tons upon tons of spam :D
>
damn, did i, like, just publish it again :-O
-nathan
On Sunday 20 January 2008 22:06:54 Nathan Nobbe wrote:
> have you ever googled for [EMAIL PROTECTED] ?
> looks like it brings up some thread from around
> september of 07... oh wait; isnt that before dan
> started up the stat program ..
>
> -nathan
MAN don't expose it like that. Now he'll get ton
have you ever googled for [EMAIL PROTECTED] ?
looks like it brings up some thread from around
september of 07... oh wait; isnt that before dan
started up the stat program ..
-nathan
On Sunday 20 January 2008 19:58:03 David Powers wrote:
> Robert Cummings wrote:
> > I understand what you are thinking, but the fact
> > remains your address is already public for having posted to the list. It
> > seems you are getting bent out of shape because you aren't grasping this
> > fact. Da
Hello everyone,
I'd appreciate any insights, or source suggestions regarding site
traffic and necessary adjustments.
For example, I'm using a simple digital download page for an indie
artist. Not a ton of traffic, not a ton of concurrent requests.
Was thinking about introducing something
Robert Cummings wrote:
I understand what you are thinking, but the fact
remains your address is already public for having posted to the list. It
seems you are getting bent out of shape because you aren't grasping this
fact. Dan hasn't done anything wrong nor does he owe any apologies or
concessio
On Sun, 2008-01-20 at 18:02 +, David Powers wrote:
> Stut wrote:
> > You seem unable to accept that you are the one that put your email
> > address out there for anyone to collect. If you can't understand that
> > then there is indeed no point in continuing the conversation.
>
> I do unders
On 20 Jan 2008, at 18:02, David Powers wrote:
Stut wrote:
You seem unable to accept that you are the one that put your email
address out there for anyone to collect. If you can't understand
that then there is indeed no point in continuing the conversation.
I do understand it. What I object
Stut wrote:
You seem unable to accept that you are the one that put your email
address out there for anyone to collect. If you can't understand that
then there is indeed no point in continuing the conversation.
I do understand it. What I object to is a supposedly responsible member
of this li
On 20 Jan 2008, at 17:49, David Powers wrote:
Andrés Robinet wrote:
3 - I don't like the attitude of both Dan and David. IMHO, David
thinks the issue is more severe than it is, and Dan just won't
recognize that mangling email addresses is kind of a (arguably
also) "standard practice". No pu
On Sun, 2008-01-20 at 10:04 -0500, Daniel Brown wrote:
> That would actually be pretty interesting. Since we've all been
> known to beat a thread to death, it certainly wouldn't be difficult to
> collect the data.
FWIW, I would like to continue to see these postings, as mailing list
metrics
Andrés Robinet wrote:
3 - I don't like the attitude of both Dan and David. IMHO, David thinks the issue is more severe
than it is, and Dan just won't recognize that mangling email addresses is kind of a (arguably also)
"standard practice". No public apologize is needed, but maybe "Yeah, I just
On Jan 20, 2008, at 10:04 AM, Daniel Brown wrote:
On Jan 19, 2008 9:39 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
On Jan 19, 2008 9:25 PM, Ashley M. Kirchner <[EMAIL PROTECTED]>
wrote:
Well, at least we know which subject will make it to the top next
week
nice; say, dan, here comes
On Jan 19, 2008 9:39 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Jan 19, 2008 9:25 PM, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote:
>
> >
> >Well, at least we know which subject will make it to the top next
> > week
>
> nice; say, dan, here comes another feature request; can we see th
Hi everyone. Please excuse me for cross posting to four
lists, but I'm aware that not everyone subscribes to all of
the lists, so I don't want anyone to miss this announcement.
I have written a new website that is dedicated to debugging
PHP applications.
From the about page:
http://www.php
Will that not result in an infinite redirection loop?
Or am i missing something very obvious !
If it's placed in the root folder of the website, yes. But why do that?
If, however, that's what is required just put an empty index.html file
there.
--
Richard Heyes
http://www.websupportsolutions
Richard Heyes wrote:
I would like to know how to avoid (using PHP code) any user to read the
content of my website folder ?
as my website is hosted by and external company, i do not have access to
apache conf file.
If your server's default file is index.php, you could use the following
in an i
I would like to know how to avoid (using PHP code) any user to read the
content of my website folder ?
as my website is hosted by and external company, i do not have access to
apache conf file.
If your server's default file is index.php, you could use the following
in an index.php file:
If
this is what i already did before asking :-)
On Jan 19, 2008 7:53 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Jan 19, 2008 1:46 PM, Alain Roger <[EMAIL PROTECTED]> wrote:
>
> > Sorry if my post was not clear...
> > in fact i would like to hide the contant of my webfolders and avoid user
> >
Nathan Nobbe wrote:
> i didnt see the option in gmail; but if you know where it is or how to
> set it up in gmail, i will happily take the 2 seconds to enable it.
Sorry, I don't use gmail.
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
46 matches
Mail list logo