Re: [PHP] Re: reset auto_increment field mysql

2002-03-12 Thread Erik Price
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

Re: [PHP] "undefined symbol: compress" during install?

2002-03-12 Thread Erik Price
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

Re: [PHP] "undefined symbol: compress" during install?

2002-03-11 Thread Erik Price
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

[PHP] "undefined symbol: compress" during install?

2002-03-11 Thread Erik Price
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

[PHP] --with-xml set by default?

2002-03-11 Thread Erik Price
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

Re: [PHP] Re: Help needed with speading up a function.

2002-03-08 Thread Erik Price
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

Re: [PHP] session_id database

2002-03-08 Thread Erik Price
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

Re: [PHP] Again Session

2002-03-08 Thread Erik Price
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.

Re: [PHP] BIG PROBLEm with headers

2002-03-08 Thread Erik Price
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

Re: [PHP] A silly question. :P

2002-03-08 Thread Erik Price
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

Re: [PHP] Session_start()

2002-03-07 Thread Erik Price
, 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

Re: [PHP] Rasmus, O'Reilly, "Programming PHP"

2002-03-07 Thread Erik Price
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:/

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Erik Price
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

Re: [PHP] Add associative element to an an array

2002-03-07 Thread Erik Price
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

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-07 Thread Erik Price
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

Re: [PHP] Rasmus, O'Reilly, "Programming PHP"

2002-03-07 Thread Erik Price
;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

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Erik Price
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

Re: [PHP] Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Erik Price
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

Re: [PHP] Re: Value of $_* variables

2002-03-06 Thread Erik Price
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

[PHP] passing large quantities of form data

2002-03-06 Thread Erik Price
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

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Erik Price
"; ?> 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

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Erik Price
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

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Erik Price
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

Re: [PHP] Re: OOP .. I just don't get it.

2002-03-05 Thread Erik Price
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

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Erik Price
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

Re: [PHP] Parsing Content

2002-03-05 Thread Erik Price
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

[PHP] sprintf precision modifiers

2002-03-05 Thread Erik Price
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]

Re: [PHP] Verify script location...

2002-03-05 Thread Erik Price
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

Re: [PHP] REQUEST QUESTION

2002-03-05 Thread Erik Price
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

Re: [PHP] Help about Linux password change script

2002-03-05 Thread Erik Price
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

Re: [PHP] serialize

2002-03-05 Thread Erik Price
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

Re: [PHP] ... another dumb question

2002-03-05 Thread Erik Price
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

Re: [PHP] registering a session variable from a select statment.

2002-03-05 Thread Erik Price
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

Re: [PHP] live Counter

2002-03-05 Thread Erik Price
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

Re: [PHP] Can I authenicate user with the accounts in passwd and shadow??

2002-03-05 Thread Erik Price
, 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

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-05 Thread Erik Price
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

Re: [PHP] Parsing Content

2002-03-05 Thread Erik Price
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

[PHP] mktime() into TIMESTAMP ?

2002-03-04 Thread Erik Price
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

Re: [PHP] MySQL Query

2002-03-04 Thread Erik Price
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

Re: [PHP] MySQL Query

2002-03-04 Thread Erik Price
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

Re: [PHP] keeping the dot

2002-03-04 Thread Erik Price
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

Re: [PHP] CheckBoxes....

2002-03-04 Thread Erik Price
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

Re: [PHP] keeping the dot

2002-03-04 Thread Erik Price
(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

Re: [PHP] ID variable alsways set

2002-03-04 Thread Erik Price
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

Re: [PHP] CheckBoxes....

2002-03-04 Thread Erik Price
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

Re: [PHP] Variables that can't be set by query string

2002-03-01 Thread Erik Price
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

Re: [PHP] Re: get the median from an array of integers

2002-03-01 Thread Erik Price
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

Re: [PHP] empty() & texarea

2002-03-01 Thread Erik Price
{ // 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

[PHP] get the median from an array of integers

2002-03-01 Thread Erik Price
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

Re: [PHP] preg_replace() ??

2002-03-01 Thread Erik Price
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= ]&

Re: [PHP] Pros/Cons over PHP_SELF vs script

2002-03-01 Thread Erik Price
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

Re: [PHP] preg_replace() ??

2002-03-01 Thread Erik Price
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

[PHP] user input in HTML

2002-03-01 Thread Erik Price
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

Re: [PHP] elseif without else

2002-02-28 Thread Erik Price
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

Re: [PHP] elseif without else

2002-02-28 Thread Erik Price
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

Re: [PHP] Variables containing HTML?

2002-02-28 Thread Erik Price
#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... > &

[PHP] elseif without else

2002-02-28 Thread Erik Price
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

Re: [PHP] Variables containing HTML?

2002-02-28 Thread Erik Price
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

Re: [PHP] changing the http status from file not found to....

2002-02-26 Thread Erik Price
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

Re: [PHP] Valid characters for filenames. List available?

2002-02-26 Thread Erik Price
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

[PHP] is there an "in" qualifier in PHP?

2002-02-26 Thread Erik Price
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 } ?>

[PHP] when to use htmlspecialchars()

2002-02-25 Thread Erik Price
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

Re: [PHP] adding 'vote' mechanism

2002-02-23 Thread Erik Price
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

Re: [PHP] using PHP to access another site - stock quotes ??

2002-02-23 Thread Erik Price
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

[PHP] encryption and HTTP

2002-02-23 Thread Erik Price
_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

Re: [PHP] Which Portal System?

2002-02-20 Thread Erik Price
. 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

Re: [PHP] Removing every thing between ( )

2002-02-20 Thread Erik Price
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

Re: [PHP] Weather Scripts

2002-02-20 Thread Erik Price
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

Re: [PHP] Looking for good tutorial on Sessions

2002-02-19 Thread Erik Price
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

Re: [PHP] Apache+PHP+DSO: maybe trivial (?): apxs doesn't create libphp4.so under AIX 4.3.3

2002-02-19 Thread Erik Price
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

Re: [PHP] Logging Users In - What is the Best Way

2002-02-18 Thread Erik Price
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

Re: [PHP] Browser Sniff (Code Review Encouraged)

2002-02-18 Thread Erik Price
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

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Erik Price
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

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Erik Price
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

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Erik Price
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 = $

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Erik Price
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

Re: [PHP] ereg_replace

2002-02-18 Thread Erik Price
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)$)", ""

Re: [PHP] get_browser();

2002-02-18 Thread Erik Price
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] --

Re: [PHP] http_referer

2002-02-18 Thread Erik Price
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

Re: [PHP] Unsubscribe s.osborne

2002-02-18 Thread Erik Price
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

Re: [PHP] What Do You Think?

2002-02-18 Thread Erik Price
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

Re: [PHP] Re: building dynamic pdf files?

2002-02-18 Thread Erik Price
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

Re: [PHP] Sessions that last for ever

2002-02-18 Thread Erik Price
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

Re: [PHP] scheduled tasks

2002-02-16 Thread Erik Price
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

Re: [PHP] Sessions that last for ever

2002-02-16 Thread Erik Price
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

Re: [PHP] What Do You Think?

2002-02-15 Thread Erik Price
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

Re: [PHP] Re: The ASP "application" object in PHP?

2002-02-15 Thread Erik Price
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

Re: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-15 Thread Erik Price
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 >>

[PHP] s.osborne, are you out there?

2002-02-15 Thread Erik Price
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

Re: [PHP] good practice

2002-02-15 Thread Erik Price
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

Re: [PHP] good practice

2002-02-15 Thread Erik Price
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

Re: [PHP] fopen

2002-02-15 Thread Erik Price
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

Re: [PHP] good practice

2002-02-15 Thread Erik Price
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

Re: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-14 Thread Erik Price
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

Re: [PHP] how a function 'return' statement works

2002-02-14 Thread Erik Price
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 $

Re: [PHP] how a function 'return' statement works

2002-02-14 Thread Erik Price
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

Re: [PHP] What are you using for please wait?

2002-02-14 Thread Erik Price
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

Re: [PHP] Authentication with sessions - Recommendation and suggestions?

2002-02-14 Thread Erik Price
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

Re: [PHP] trouble with headers

2002-02-14 Thread Erik Price
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

Re: [PHP] how a function 'return' statement works

2002-02-14 Thread Erik Price
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

<    1   2   3   4   5   6   7   >