osted to the mysql-users mailing
list. Within a few hours, I got the solution from a couple of people,
including the author of this book himself.
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
x27;s
> actually helped me out on 2-3 occasions...
Thank you, I didn't even know that virtual host existed. I'll
definitely check there too next time I'm having problems.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP Gen
On Monday, March 11, 2002, at 05:21 PM, Erik Price wrote:
> I just finished doing my re-install of PHP, updated to 4.1.2. Or so I
> thought... everything went smoothly, I got all the right success
> messages during the ./configure and make processes, and thought I was
> ready
gratefully appreciated!
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
[root@media /]# /usr/local/apache/bin/apachectl stop
[root@media /]# /usr/local/mysql/bin/mysqladmin -u root -p shutdown
[root@media /]# pushd /usr/local/src
/usr/local/src /usr/local/src
4.0.6. Was I
just mistaken in the first place by using this option?
Thanks,
Erik
(PS: talking about a source install on Linux)
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ate should be a more rational number)
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there
> any
> example of anyone using a mysql database to manage session_id's?
No.
http://google.com/search?hl=en&q=session+management+php+mysql
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.n
On Friday, March 8, 2002, at 01:15 PM, Sven Jacobs wrote:
> Hey
>
> I have 2 values stored in my session, how do I pull them back out ?
>
$_SESSION['name_of_first_value']
$_SESSION['name_of_second_value']
in PHP 4.1 or greater.
And hay is for horses.
IE5. It reduces the
potential for problems.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is no variable called var";
} else {
echo "You cannot reach this part of the if statement.
Either var exists or it doesn't";
}
(!(Hope that doesn't help)),
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, I just googled that (but I think I will read it
later).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot; set up yet.
That's a feature I don't usually use (there's a Barnes and Noble and a
Borders near me if I want to read), but in this case would be nice.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http:/
tem to store the data and then
use the database to create a sort of "directory" for quickly locating
those files in the filesystem, remembering the path to the file or
something. I think this is how a lot of web sites incorporate graphic
content in with their database (text) content (in
ing the element,
> merging arrays, etc with no luck (it either increments the key or
> doesn't
> work at all).
Have you tried just directly setting this array element? You don't say
what your array is named, so I'll call it $array.
$array[8] = 6;
Is that what you are tal
I'm not sure I understand what this means. I'm guessing that you're
suggesting that an INT or a VARCHAR column can both have mathematical
operations performed on their values, but perhaps I'm completely
off-base. My SQL skills are miserable... I need to brush up. (Too much
time spen
;Reilly
that there's a demand for more books on PHP. To date, their PHP
selection is pathetic.
David, did you hear anything more about this?
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It seems like in the first question you want to have
contents without a file, and in the second you want a file without
contents! :)
Unless someone else figures out what you want and helps you, ask again
but describe what you want a little bit more. PHP can do a lot of
things.
Erik
ot; and "capitals" while others
don't.
If it's consistent, a Perl guru could probably help you with little
trouble -- check out www.perlmonks.org. (Sorry, but I am far from a
Perl guru.)
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECT
ariable name, and thus you can't use the curly
braces around the entire variable.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ld?
Thanks!
"And remember, your answer is for posterity, so please try to be honest."
-- the Six-Fingered Man
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
";
?>
But when you see this in a web page, it is nicely formatted. Don't
forget to customize the way the table looks by declaring borders and
cell spacing in a style sheet.
Also, as an exercise, come up with a clever way to put this code into a
function.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday, March 6, 2002, at 01:10 AM, hugh danaher wrote:
> My wife knows I spend too much time in here.
What's a wife?
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
same function accessible from each page/script you are
writing, so that you don't have to waste your time. Later, when you
learn how to check for errors in your user's input (such as if the user
entered a bunch of numbers instead of a name), this will come in handy
so that you c
e I am
developing. Unfortunately, my complete inexperience with this resulted
in frustration and I gave up, going back to functions. I'm also not
very intelligent, and working with classes and objects requires the
programmer to be able to abstract their data in a way that I haven't yet
lea
your style and use switch() statements or if statements to keep it all
in one page. (Right now I'm working on a 700-line monster that doesn't
even include any HTML!)
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that you can get a grasp of how
something works and maybe try it out.
Good luck with your RDF stuff,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
utput like this
is old hat, but for those of us who are just getting our feet wet in
programming, there should be a more exhaustive reference as to what can
be done... is there any such reference?
Thanks,
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
gt; set $PHP_SELF (of the main script) to a temporary variable for checking
> in the included script. -Kevin
Or set an Apache directive (in httpd.conf or .htaccess) that prevents
any .inc files from being served by the server.
I'm assuming you're using apache.
Erik
Erik
e orders in the next page say somename.php.
> How do i do that.
First tell us how you can tell the two variables apart.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
invoked by the
> php script. I hope someone can help me. Thanks.
Try system()
http://www.php.net/manual/en/function.system.php
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I did the exact same code just last week. Try this:
for ($i = 0; $i < $_GET['num']; $i++) {
echo "felnummer ";
}
It is very important that you use the doublequotes in the
'fellnummer["$i"]' and not use single quotes, or your variable will not
ex
t;decision" logic of my scripts now. It's conceptually cleaner.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you want to register a session variable for the field 'user_level'
in the select statement, you should probably add it to the list of
things you are SELECTing from your query, and do the same thing with
this as you did with the other two session variables.
Erik
Erik Pri
ld you do otherwise, unless you can come up
with a really clever JavaScript code chunk that sends a message to the
server when the user closes a browser window or quits or whatever. Even
that would not be very reliable.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL
, then I don't know.
http://www.onlamp.com/pub/a/php/2001/07/26/encrypt.html
HTH,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ormat the Unix timestamp
(mktime()) for that later, and I plan to do searches based on date at
times.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not do it the way the pros do
it? This topic is a current front page headline at Developer Shed
(www.devshed.com). Here is the link to the tutorial on this very topic:
http://www.devshed.com/Server_Side/PHP/PHPRDF/page1.html
You get to teach yourself a bit about XML along the way.
Erik
ue.
Any suggestions?
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rom the perspective
of using register_globals off, which I think is pretty important
(personal opinion). It's not that hard to pick up, though, once you've
gotten started. Still, I think it makes alot more sense to do so since
it helps the new user remember that variable $x is actually i
e concept, but you can find this
information in a hundred other places:
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html
After you have it figured out, you can use the PHP manual pages
function-hunter to learn all of the many mysql functions that PHP offers.
Erik
On Monday, March 4, 2002, at 10:50 AM, Erik Price wrote:
> I thought that in this example (in this thread) the dot was being used
> inside of a character class -- and that it does not need to be escaped
> when it is inside of a character class (wouldn't make sense for "mat
omething
> that's worth bringing up in case it makes it into the next version.
Too many mailing lists already! :) I will look into making a
suggestion to the W3, however. Thanks for your reply (just curious if
this had already been dealt with yet).
Erik
Erik Price
Web Deve
(in this thread) the dot was being used
inside of a character class -- and that it does not need to be escaped
when it is inside of a character class (wouldn't make sense for "match
any character" to exist inside a character class).
[^A-Za-z0-9\.]
Erik
Erik Price
W
technically I could just open up the
browser's prefs and look at them this way, but I could format the cookie
list/contents better with a script, and it wouldn't require me clicking
all over my preferences (I have a lot of cookies too).
Just a thought.
Erik
Erik Price
Web Develo
ML Strict to
allow brackets? IMO it's not something that cause problems if it were
to be supported. Kind of lame that it's not, actually.
Until then, I'll keep using them (brackets) b/c there's some things that
it seems I can't do without this technique, but it would
all
they want, but your script doesn't globalize them -- and your script is
also specifically programmed to only check the $_SESSION array for the
presence of "true=1" (i.e. : if ($_SESSION['true'] == 1) etc). Thus
any extraneous GET variables just bounce off your script, ha
en rsorted and flipped.
Crazy!
Erik
PS: can anyone see a flaw in this scheme? Can anyone even tell what I'm
talking about?
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
{
// then you know they have entered a new value, so you can
// perform whatever code you need to on that
}
HTH
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pretty bad at math -- I could
enter all the values into an array and run some kind of averaging code
on them, but the problem is that I don't want an "average", I need the
"most-chosen" value.
Thanks if you have any advice.
Erik
Erik Price
Web Developer
On Friday, March 1, 2002, at 10:34 AM, Erik Price wrote:
>
> On Thursday, February 28, 2002, at 10:33 PM, Monty wrote:
>
>> Is preg_replace() the best PHP command to use for parsing custom codes
>> in
>> text retrieved from a database (e.g., turning "[link= ]&
y a further level of difficulty and not an
impossibility for a clever attacker. (Obviously a clever attacker would
have considered this and would be sending values for any hidden form
fields on previous instances of the script, etc, to bypass the supposed
security lent by the 'switch' statement.)
Hope that helps, please discuss if I am off base in any of this.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gexes. If you are just looking
to replace certain predefined strings with other strings, then you
should use substr() it's faster.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
even properly
work or be efficient.
Thanks
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a;
} elseif (different bad user input) {
$error = true;
$error_message = $b;
} elseif (still different bad user input) {
$error = true;
$error_message = $c;
}
if ($error) {
do some things
and then
echo $error_message;
} else {
present confirmation dialog
}
Erik Pr
On Thursday, February 28, 2002, at 07:56 PM, Dennis Moore wrote:
> Perfectly legitimate... it is much like having a switch statement
> without a
> default clause.
>
Oh, I didn't know that that was legitimate either. :) Thanks Dennis
Erik
Erik Price
Web Develop
#x27;);
> ?>
>
> it returns 's:4:"blah";'
>
> now, consider
>
> encode('blah');
>
> it returns '098108097104'
>
> now consider which of the two output strings you end up having to escape
> special characters for...
>
&
y if statements check for conditions and then set a
variable, and later in the script if that variable exists then something
else happens. Is this "sloppy"?
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the variables in the session, they do not change to the
> new
> input.
>
> I hope someone out there can make sence of what i have said... because i
> think i confused even myself.... ;)
>
> Thanks for any help!
>
> //Nick Richardson
>
>
> --
> PHP General
ery messy as a page must be created for every entry into the
> database...
The secret to this is at phpbuilder -- you need access to your server I
think
http://www.phpbuilder.com/columns/tim2526.php3
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PH
hem to be very careful
about how they refer to the filename. Likewise, spaces need to be
escaped, so they're a bad idea.
This is just my opinion, but I'm sure others will agree.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
see more detail, I am trying to execute code that is very
similar to the following:
{$row['name']}";
} else {
echo "{$row['name']}";
}
$c++; // bump up the counter for the next iteration of the fetched $row
}
?>
ond method, but I want to make sure that doing
so won't expose me to any risks that I haven't considered. Please give
me your thoughts on this.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.ph
idea shooting the moon, the truth is that it would
probably be fine either way. A matter of personal preference.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to access quotes - any pointers?
>
> Thanks
> Paul
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP Gener
_POST['password'] once it gets to the script, because
anyone can submit the same intercepted string to the script via POST and
it will be md5()ed when it gets there, thus defeating the purpose.
Maybe I haven't quite wrapped my brain around a decent authentication
scheme yet.
Erik
. HOwever I wanted to get some feedback from somone who
> has
> used any of the ones I'm looking at before I take the time to set it up
> and
> it turns out to be a bust.
>
> Here are the ones I've downloaded. All of which require PHP and
> MySQL. Let
> me know if t
g_replace("/(\()\d{3,3} Test(\))/", "\1\2", $string);
That will leave your string looking like "This is a () and ()".
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
called XML-RPC. There's a nice
O'Reilly introduction to the topic, at xml.com, and I'm sure that after
reading this you'll be better-prepared to search for scripts that do
this for you.
http://www.xml.com/pub/a/1999/08/rpc/
Erik
Erik Price
Web Developer Tem
ssign session variables, just use (2) from above.
Erik
PS: 5) when you have specific questions ask the list
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i-dist to /usr/local/lib/php.ini
HTH, this has worked for many people (and I didn't write em so I don't
deserve any credit).
Thank you Nathan for helping me when I had this prob.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General M
he
page will not display.
Ummm... well, there's probably more security-conscious people on this
list than me who can come up with more. Just think about the logical
HTTP exchange and where data might accidentally leak out, and you'll
probably cover most of your bases.
Erik
PS: I
6 => "true"
> ),
> "Mozilla" => array (
> 0 => "true"
> ),
> );
> if ($uaarray[$name][$major]) {
> return "1";
> }
> }
> ?>
>
>
>
> --
> Robert J. Miller
> Internet Support Specialist
> Department of Government Services and Lands
> P.O. Box 8700, St. John's, NF., A1B-4J6
> (709) 729-4520 (phone)
> (709) 729-4151 (facsimile)
> (709) 778-8746 (pager)
>
> http://www.gov.nf.ca/gsl/
> mailto:[EMAIL PROTECTED]
> --
> Simple things should be simple and hard things
> should be possible.
> --
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
version. Ironic, because IIRC it is
the answer to one of the first questions I posted on this list. (I was
trying to include mysql_fetch_array elements in print statements and
didn't want to transfer the value to a scalar beforehand, or
something! :)
Erik
Erik Price
Web Developer Te
ated. So don't change anything. :)
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
f the string and concatenate it to the
variable, because PHP doesn't let you just use $_* variables in the
middle of a string. I also made sure to "jump back into" the string to
finish the HTML form tag.
If you don't like doing it this way, do something like
$PHP_SELF = $
k that this is
described in the 4.1.0 release announcement.
http://www.php.net/release_4_1_0.php
In the 4.1.1 release announcement, it doesn't say that anything about
this has changed. I'm not trying to contradict you Torben, but if this
is true then it is not documented in th
t, but I accept no liability. (Also, this regex has not been optimized
for speed -- sorry, I don't have time to play with it.)
$text = "http://www.domain.com/directory/images/image.jpg";
preg_replace("(http://[^<>\s]+[-a-zA-Z0-9_/.]+\.(gif|jpg|jpeg)$)", ""
er to your question, but keep in mind
that this kind of information depends on the user-agent -- you're not
guaranteed to get any information, as some user-agents handle headers in
nonconformant ways.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
In PHP4.1 or later, try:
echo $_SERVER['HTTP_REFERER'];
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
te what are the affects of this kind of redirection as far
> as
> search engines
> go.I've heard that doing this kind of thing on a 404 page is a bad idea.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday, February 18, 2002, at 07:01 AM, Ford, Mike [LSS] wrote:
>> -Original Message-
>> From: Erik Price [mailto:[EMAIL PROTECTED]]
>> Sent: 15 February 2002 19:52
>>
>> Not only can I hardly find a place with Tetley's on tap, I can hardly
>&g
ng SGML documents and whatnot. I'm also pretty sure that it's
somewhere between $800 and $1100 for a one-license desktop copy!
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can either run a password authentication to make sure that they are who
their cookie says they are, or skip that and deal with the fact that
some people may change their cookie to be the name of their opponent so
that they can play as another character.
Sounds like a cool site, good luck
Eri
that. NB this code is definitely untested, so it
probably won't work, but the theory is there. Also, be sure to take
into account the security issues of having a file writeable by your web
server -- I'm assuming you already have experience with this.
Erik
Erik Price
Web D
e or a GET variable is being sent along with the
HTTP headers. Keeping a session going for more time than needed means
that the variable representing the session ID is leaving footprints all
over the place.
Erik <-- who has become overcautious lately upon learning how HTTP works
Er
on tap, I can hardly
find it in stores!
LOVE Tetley's.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cripting language, I didn't have
much to justify why I chose PHP (the real reason is a matter of
ethics ;).
I would love to have had your explanation of ASP's application object vs
PHP's lack of an "application object" when I wrote that. I'm saving
this post.
E
ix-and-Internet-Fundamentals-HOWTO/
HTH,
Erik
>> -Original Message-
>> From: Erik Price [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, February 15, 2002 8:41 AM
>> To: Kevin Stone
>> Subject: Re: [PHP] Anyway to open a PHP file and view its code in the
>>
over the limit of 31457280 bytes.
>
> Automated Postmaster
>
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n't use them), and to tackle
the second problem, we don't add '.inc' to our list of file types that
should be parsed in the "AddType" line.
Here's the directive:
Order allow,deny
Deny from all
If you look under the archives, you will find the thread
ot;.php"
> extensions.
Maybe I don't understand the security implications of .inc -- I thought
that it was perfectly safe. Since my php.ini is not configured to parse
files with '.inc' extensions, I thought that I was better off using a
separate extension than '.ph
ile is still
present in the directory specified in tempname().
Erik <-- doesn't know much about working with files in PHP
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
te directory.
Not to mention I have a directive in my server's conf file that
specifically prevents it from serving any file with the extension '.inc'.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t have you tried this?
$text = "/* ";
$text .= readfile($fp);
$text .= " */";
To comment the code?
Just a guess. (And it would result in nested comments, not sure if that
is a no-no for the parser or not).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAI
s
# ===
function get_current_page_name()
{
$current_page = $_SERVER['PHP_SELF'];
$current_page_name = explode("/", $current_page);
$pagename = array_slice($current_page_name, -1, 1);
return $
On Thursday, February 14, 2002, at 10:46 AM, Alastair Battrick wrote:
> Do you not have to make $_SERVER a global variable in the function ?
$_SERVER is global AFAIK, but good thinking. All $_* variables are
global (unlike the $HTTP_*_VARS arrays).
Erik
----
Erik Price
Web Develo
On Thursday, February 14, 2002, at 09:39 AM, [EMAIL PROTECTED]
wrote:
> and the I am not giving the user any indication as to what is going on.
>
Distract the user with a flash animation (say, a status bar or
something) stored in cache on prior page.
;)
Erik
Erik Pri
it works very
similar to yours. I think you should turn register_globals off if you
really want security. PHP 4.1.0 has some neat shortcuts to make your
life easier if you do this.
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing L
On Wednesday, February 13, 2002, at 05:18 PM, Rick Emery wrote:
> Next time you go to the PHP Manual (dated 19-09-2001) for answers, go
> to the
> title page and count down 5 names...
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP Genera
e, just use something like:
>
> return $current_page_name[-1]
>
> to return the last element in the array.
>
>
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
401 - 500 of 637 matches
Mail list logo