Re: [PHP] Working with designers...

2001-12-19 Thread Erik Price
Hmm... can you point out to them that there's a similarity between using an external style sheet and using header/footer includes? And that as a coder, it would be your responsibility to maintain these include files, not theirs? Personally, I think .css external style sheets are awesome --

[PHP] question regarding cookies

2001-12-26 Thread Erik Price
Hello, I am having a problem testing out the use of cookies. I'm using a tutorial from Wrox's Beginning PHP4. It seems that I'm doing everything correctly, but when I try to access the page in my browser, I am not prompted as to whether or not I'd like to accept a cookie (which is

Re: [PHP] question regarding cookies

2001-12-26 Thread Erik Price
Good advice -- I hadn't thought of that (echoing right beneath the setcookie() function). But then i thought of something else... how can I echo text before the html tag? So I put a third setcookie() function above the html tag setcookie(foo, echobar) hoping that this would be very simple

Re: [PHP] question regarding cookies

2001-12-26 Thread Erik Price
pm, Erik Price wrote: I used code ?php // cookie_test.php if ($type_sel) setcookie(font[type], $type_sel, time()+3600) ; if ($size_sel) setcookie(font[size], $size_sel, time()+3600) ; /code (without the code / tags) This is a page which calls itself ($PHP_SELF) (is there a name

[PHP] quick question

2002-01-09 Thread Erik Price
Just a quick question -- I'm temporarily unsubbed so if anyone could CC me directly that would be great. I'm trying to write my code in accordance with the PHP 4.1.0 security advisory -- that is, I want to use the $_GET and $_POST arrays when grabbing variables passed with GET and POST forms.

Re: [PHP] quick question

2002-01-10 Thread Erik Price
: -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 09 January 2002 19:22 I'm trying to write my code in accordance with the PHP 4.1.0 security advisory -- that is, I want to use the $_GET and $_POST arrays when grabbing variables passed with GET and POST forms. But how

Re: [PHP] quick question

2002-01-10 Thread Erik Price
, Ford, Mike [LSS] wrote: -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 09 January 2002 19:22 I'm trying to write my code in accordance with the PHP 4.1.0 security advisory -- that is, I want to use the $_GET and $_POST arrays when grabbing variables passed

[PHP] does this work?

2002-01-10 Thread Erik Price
It seems that I have a parse error somewhere in the following code (since that's the only code in my script, it's a test script): // arraytest.php $tempsql = SELECT COUNT(*) AS count FROM divisions; $tempresult = mysql_query($tempsql, $db); $temprow =

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
I tried that... I get the same error (same line and everything). As a side note, I haven't ever had to quote the first argument in mysql_query() before... This is quite a conundrum, eh? Erik On Friday, January 11, 2002, at 04:25 AM, Kevin Stone wrote: Hmm I believe that the mysql_query()

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
On Thursday, January 10, 2002, at 04:39 PM, Rick Emery wrote: Show all your code. Did you open a connection to the MYSQL server? If so, show the code. Okay, but I changed some personal info (that I know is definitely correct): ?php // arraytest.php $db = mysql_connect(hostname,

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
Wait, my bad. Typo... all my fault. I feel like an ass. Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
and divisions.div_id) on each step. This is to populate a select box (listbox). Any advice, anybody? Thank you, Erik On Thursday, January 10, 2002, at 05:00 PM, Erik Price wrote: Wait, my bad. Typo... all my fault. I feel like an ass. Erik -- PHP General Mailing List (http://www.php.net

Re: [PHP] Passing Variables

2002-01-10 Thread Erik Price
One way to pass a variable by clicking on a hyperlink is to make the HREF attribute of the anchor tag into a querystring with the variable that you want to pass. If you want to pass the variable $user_id to the next page, with a value of 289, here is how you could do it: a

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
On Thursday, January 10, 2002, at 05:16 PM, Martin Towell wrote: is this valid in PHP?? (haven't tried it myself yet...) $tempsql = SELECT COUNT(*) AS count FROM divisions; maybe it needs to be on one line??? It turns out that my problem was a typo. I apologize

[PHP] removing an array element

2002-01-11 Thread Erik Price
A quick question: what function is used to remove an array element from an array? Like array_pop(), except one by which I can refer to the element by its associative index rather than just the last element of the array. For more detail with what I'm doing, I have two versions of a select

[PHP] both work? (was Re: [PHP] quick question)

2002-01-11 Thread Erik Price
On Friday, January 11, 2002, at 06:05 AM, Ford, Mike [LSS] wrote: Incidentally, I've occasionally had problems including a variable name containing an underscore in a double-quoted string (e.g. $num_recs records retrieved), where PHP tries to insert the value of $num followed by the

[PHP] using mysql_query() twice?

2002-01-11 Thread Erik Price
I am curious if using the same mysql_query() function twice causes some kind of problem. It seems that if I use $result = mysql_query($sql, $db); if (mysql_fetch_array($result)) { while ($row = mysql_fetch_array($result) or die(You lose. No data fetched.)) { // print some data

Re: [PHP] quick question

2002-01-11 Thread Erik Price
It seems that you are saying that not using quotes is bad (first), but then later you show that omitting the quotes does not result in an error. Or are you saying that the quotes can be omitted if the array element is being used in a string (between quotes), but generally the quotes around the

Re: [PHP] using mysql_query() twice?

2002-01-11 Thread Erik Price
EXCELLENT! It worked perfect. So $result can't be used twice -- I wonder if it somehow is altered by the mysql_fetch_array() that is performed upon it. Thanks Nick. On Friday, January 11, 2002, at 05:23 PM, Nick Wilson wrote: I'll most likely be corrected (I just joined the list to brush

Re: [PHP] removing an array element

2002-01-11 Thread Erik Price
Because, as a dope, I forget that you can invert IF statements like that -- you're right, I'd rather do that than mess with the array. Although the feedback on unset($arrayname['index']) was extremely useful knowledge! Thank you everyone. Erik On Friday, January 11, 2002, at 12:31 PM,

Re: [PHP] using mysql_query() twice?

2002-01-11 Thread Erik Price
On Friday, January 11, 2002, at 05:42 PM, Nick Wilson wrote: That's not it. Your first $result is a resource indicator (container for results) so if you re-assign it (put another value into it) it becomes useless as your while statement depends on it. (This may be redundant, but I'm hoping

[PHP] help using ereg_replace()

2002-01-14 Thread Erik Price
Hello everyone, I am trying to learn how to use ereg_replace(), but I don't seem to be doing it correctly. $phone is a 10-digit string. I want to perform the following: $phone = ereg_replace(.{10}, [part where I am confused], $phone); I would like the output to be $phone = (555) 555-;

Re: [PHP] CSS Editors

2002-01-14 Thread Erik Price
That looks cool -- is there anything like it that uses Tk or GTK? On Monday, January 14, 2002, at 09:52 AM, Geoff Caplan wrote: Hi TopStyle - http://www.bradsoft.com I endorse that - it is an excellent product. And for casual use, they have a free version with nags. Geoff Caplan

Re: [PHP] Re: help using ereg_replace()

2002-01-14 Thread Erik Price
liljim, Thanks for the advice (and especially the explanation!) -- I note that you chose the Perl regexp engine rather than the e regexp engine (POSIX?). Quite a few people recommended O'Reilly's Mastering Regular Expressions over the weekend. Does anyone know if it covers the Perl

Re: [PHP] querying results already queryed once before

2002-01-15 Thread Erik Price
On Tuesday, January 15, 2002, at 02:18 PM, Phil Schwarzmann wrote: Dumb question: How do I query results from a MySQL that I've already queried once before in the same page? Look, buddy, *I* ask the dumb questions around here! Here is my code: // querying the database for the first

[PHP] security benefits of predefined variables

2002-01-15 Thread Erik Price
Hi, I was hoping that someone could point me to a page or resource where I can find more information about using the predefined variables introduced in PHP 4.1.0. I read the release announcement (http://www.php.net/release_4_1_0.php), which is what called my attention to the potential

[PHP] Re: Another question - not exactly what i was looking for

2002-01-15 Thread Erik Price
I'm not sure if I understand... first of all, I could be wrong, but I thought that you had to use the LIKE operator rather than = (equals sign) when trying to match text strings. But like I said, I could be wrong. if you did $query = SELECT * FROM tabe WHERE lastname LIKE '$lastname' OR

Re: [PHP] security benefits of predefined variables

2002-01-16 Thread Erik Price
you all, Erik On Tuesday, January 15, 2002, at 03:55 PM, Johnson, Kirk wrote: Give this a read first, then come back if you still have questions ;) http://www.securereality.com.au/studyinscarlet.txt Kirk -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-16 Thread Erik Price
Take notes. On Tuesday, January 15, 2002, at 10:22 PM, Floyd Baker wrote: I'm stuck here too. Don't know that much in the first place except that I did get it together once. Apache/php4/mysql on win32... Now to upgrade it's all new again. I'm sure php config files are ok to the

Re: [PHP] dynamic module or static?

2002-01-16 Thread Erik Price
I'm no guru on the topic, but I found that when configuring the DSO with MySQL (--with-mysql=/usr/local/mysql), it would always garble the PHP module. Eventually I got it all set up by not specifying a directory (in other words, just using --with-mysql) in that configure argument. But this

Re: [PHP] security benefits of predefined variables

2002-01-16 Thread Erik Price
Kirk, Okay, I now understand why the $_GET and $HTTP_GET_VARS variables are useful. I had made the mistaken assumption that if I leave register_globals on, but write code that works with register_globals off, my code would somehow be safer simply for having been written this way. But this

Re: [PHP] security benefits of predefined variables

2002-01-16 Thread Erik Price
Okay, all of that discussion of predefined variables was well and good. I'm going through my code and changing everything over to use $_*['variablename']. The problem is that a good deal of my code consists of MySQL query statements with variables inside those statements. An example: $sql

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Erik Price
The entire page, PHP with HTML, is sent to the PHP engine. It follows the instructions of the PHP code, outputting only HTML and error messages, and then hands the data to the web server which sends it to your browser. Unless something damages the PHP engine, causing the webserver to serve

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Erik Price
You mispelled the closing /body tag. On Wednesday, January 16, 2002, at 04:33 PM, Nick Wilson wrote: * On 16-01-02 at 22:29 * Richard said Hi there I just signed up for an account at Spaceports so I can play with PHP ­ I placed some PHP code in an HTML page and uploaded it to

[PHP] Re: security benefits of predefined variables

2002-01-16 Thread Erik Price
the $_* arrays is only part of the solution. You still have to validate/check that data before you rely on it. On Wed, 16 Jan 2002, Erik Price wrote: Okay, all of that discussion of predefined variables was well and good. I'm going through my code and changing everything over to use

Re: [PHP] Remove value from array

2002-01-16 Thread Erik Price
This is a good one I just learned last week -- unset the variable. That is, unset($Arr[2]); or unset($Arr['cyanide']); from what I understand, the discovery of this easy way to do this was accidental. See the second annotation of array_splice() in the PHP manual here for the details:

Re: [PHP] PHP Security - view source code

2002-01-17 Thread Erik Price
On Wednesday, January 16, 2002, at 07:22 PM, Christopher William Wesley wrote: If you are the server's admin, or know the person well, you can tighten the file permissions down more with a little administrative work ... adding a new group of which your user and the web server are a member,

Re: [PHP] PHP Security - view source code

2002-01-17 Thread Erik Price
On Wednesday, January 16, 2002, at 08:04 PM, Rasmus Lerdorf wrote: No, it is safer to block access to .inc files with an httpd.conf rule. Allowing people to execute files that were meant to be included out of context could end up being much more dangerous than simply having people see the

Re: [PHP] Changing form look without reloading

2002-01-17 Thread Erik Price
On Thursday, January 17, 2002, at 03:33 AM, Nick Wilson wrote: Hello... I am wondering: Would it be possible to: 1) Select an option in a selectbox 2) Have a list of checkboxes pop up underneath the selectbox, based on what you selected 3) Without reloading the page... Show/hide

Re: [PHP] string to array??

2002-01-17 Thread Erik Price
$TF_string = Starscream, Megatron, Jetfire, Optimus Prime; $TF_array = explode(, , $TF_string); print_r($TF_array); (note the space after the comma in the first argument to explode(), this necessary to avoid the space being include in each element of the array) Hope that helps, Erik On

Re: [PHP] string to array??

2002-01-17 Thread Erik Price
I didn't know that either. Does this apply only when accessing strings by character? Or are all conventional uses of brackets deprecated for the purposes of arrays? It doesn't say on that page (http://www.php.net/manual/en/language.types.string.php , a bit more than halfway down). Erik

Re: [PHP] PHP MySQL problems, updating database..

2002-01-17 Thread Erik Price
The reason you aren't seeing any errors is because you used or die() -- to the best of my knowledge, this replaces any standard errors that PHP would normally generate. It appears that you have omitted the second argument to mysql_query(). A common mistake that I've made many times myself.

Re: [PHP] string to array??

2002-01-17 Thread Erik Price
it up, but it doesn't affect me right now, and I'm feeling lazy ;) Hope that clears up my statement... -steve At 12:11 PM -0500 1/17/02, Erik Price wrote: I didn't know that either. Does this apply only when accessing strings by character? Or are all conventional uses of brackets

Re: [PHP] Mac OSX !?!?!?

2002-01-17 Thread Erik Price
There is a utility called daemonic which is designed to deal with this as well, but works for more than just MySQL -- it's intended to be used for all server daemons. http://daemonic.sourceforge.net/ It is Mac OS X-specific at this time, but according to the web site is designed for future

Re: [PHP] Computer Science and PHP

2002-01-18 Thread Erik Price
Where I went to school (UMass Amherst), they primarily use Java and C/C++. The reason has been cited that the skills learned in programming with these languages are scalable to many other languages, including PHP, and thus form a solid foundation from which other programming skills can

Re: [PHP] Does any have the 'edit_member.php' script ....

2002-01-18 Thread Erik Price
I thought that all of the source code for that book was available at http://mysql.he.net/Downloads/Contrib/Examples according to page 497. Erik On Thursday, January 17, 2002, at 08:48 PM, Mike C wrote: In electronic format that I can have? It is included in the book 'MySQL' by Paul

Re: [PHP] strange problem

2002-01-18 Thread Erik Price
On Friday, January 18, 2002, at 09:52 AM, Nick Wilson wrote: my PHP (PHP Version 4.1.1) suddenly does not take this anymore: $a['color'] = 'red'; I get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' when I remove the quotes around the key, it

Re: [PHP] Re: Programming a state controller for page transitions

2002-01-21 Thread Erik Price
Check out phorum's source, I find it very well-documented and educational. I can't imagine how a collaborative effort can work with obfuscated source... On Saturday, January 19, 2002, at 05:03 AM, Geoff Caplan wrote: Some authors compound the problem by using cryptic variable names,

Re: [PHP] 2d array help

2002-01-21 Thread Erik Price
I'm not sure exactly what you need help with, but if you're getting any errors, I'd recommend adding the resource identifier to your mysql_* functions (usually ($db = mysql_connect(), but YMMV). But I wonder if you were trying to do something else? Erik On Monday, January 21, 2002, at

Re: [PHP] what vars should go in session vars?

2002-01-23 Thread Erik Price
Nick, thanks for taking a moment to respond -- What I'm wondering is, what should I store in session variables? Whatever you need to. Thanks. for the user, to influence the way the site behaves. But I was thinking of adding ten pre-set style sheets (diff't colors, fonts, etc), and the

Re: [PHP] Re: [Kopia] [PHP] Re: Sessions problem with FreeBSD 4.3

2002-01-24 Thread Erik Price
From my understanding, as long as you have a session_start() function above the html tag, you can work with variables in the form $_SESSION['variableName'] rather than having to use session_register(). In fact, using session_register() is no longer needed at all. Use

Re: [PHP] Increment help..please

2002-01-24 Thread Erik Price
I just learned about a cool function -- mysql_insert_id(). You can read about it in the manual, but it sounds like it could be used to get the AUTO_INCREMENT number from the database and you can then append that number to your uploaded image file name. Erik On Thursday, January 24, 2002, at

Re: [PHP] Re: [PHP-DEV] Re: [PHP] RFE: $HTTP_POST_VARS = $_POST;

2002-01-24 Thread Erik Price
On Thursday, January 24, 2002, at 05:01 PM, Lars Torben Wilson wrote: Robert, the $HTTP_*_VARS have, indeed, been deprecated, and this is noted in the manual. Then it is safe to say that using $_* variables and -never- using $HTTP_*_VARS variables is safe practice for

Re: [PHP] directory structure list

2002-01-24 Thread Erik Price
Hmm... I'm not familiar with the directory functions yet. But perhaps you can use `ls -F` somehow -- this prints the name of each file in the directory with a special character to denote its type. For directories, this is a forwardslash. I.e: localhost:~/Documents/Media Lab$ ls -F

Re: [PHP] getting a LAMP job in this economy

2002-01-24 Thread Erik Price
In the face of tough economics, it's difficult to hold onto one's ethics... Not to start a flame war, but I really hope that the day doesn't come that I'm forced to use a non-Unix platform for my development. For now I have this luxury. Erik On Thursday, January 24, 2002, at 04:51 PM,

Re: [PHP] Arrays as pointers?

2002-01-24 Thread Erik Price
I could be wrong about this, but here goes: Strings are in fact arrays. An array of characters. The code your friend gave you manipulates this array in the same way that it would any normal array. The only problem (not really a problem even) is that when dealing with character-based

Re: [PHP] MySQL query question

2002-01-24 Thread Erik Price
If you are using a table with AUTO_INCREMENT set for one of the fields, the default is for MySQL to assign any new row an AUTO_INCREMENT value that is one higher than the currently highest value in that column. In other words, MySQL by default does exactly what you say you are trying to do.

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-25 Thread Erik Price
On Thursday, January 24, 2002, at 09:32 PM, Michael Kimsal wrote: Being able to positively improve an employer's bottom line is always a plus you can bring to any 'job' - you're there to do work and make them money too. If you can help by furthering the use of Linux/PHP/etc due to the

Re: [PHP] A link

2002-01-25 Thread Erik Price
Stupid. Animates a window that says You should not have come here! to dance around the screen, then locks up the browser by having two new windows call each other in a loop... gotta love 'Force Quit' on Mac OS X. Or 'kill' in any other Unix. Or 'turn JS off' in your browser. Erik On

[PHP] break statement usage

2002-01-25 Thread Erik Price
Hello, all I have a quick question about using the break statement from within a switch() statement. After accepting user input from a form, I want to run this input through some error checking via PHP code (not Javascript error checking). So the first thing is the code puts the input

Re: [PHP] break statement usage

2002-01-25 Thread Erik Price
On Friday, January 25, 2002, at 04:24 PM, Nick Wilson wrote: tip Try to keep your posts a little shorter if only for the sake of the dialup users ;) /tip Thanks for the tip, but I find that a more verbose message makes explicit what I am asking. How many times have you seen I

Re: [PHP] Classes for PUP MySQL in Southern California

2002-01-25 Thread Erik Price
There's a whole section on training in MySQL at their web site. MySQL AB, a company which provides a great deal of support to the MySQL community, offers training and other support for MySQL (it is their only form of revenue, except for commercial Microsoft-based MySQL licensing). The

Re: [PHP] PHP and XHTML

2002-01-28 Thread Erik Price
On Saturday, January 26, 2002, at 05:49 PM, ,,, wrote: When I have an ? xml version=1.0 ? inside my php script it wont work since php parses it as php code. Will short_open_tag = Off solve it? I would really like to use ? ? for the rest of my php code...there must be a better solution

Re: [PHP] Session updates ok first time only.

2002-01-28 Thread Erik Price
On Sunday, January 27, 2002, at 10:39 PM, Jason Wong wrote: On Monday 28 January 2002 04:37, Floyd Baker wrote: I have 4.1, register globals off, on Windows 98. //pull value from session file: $page_views = $_SESSION['page_views']; No need for this, in fact this is what is preventing it

[PHP] session data vs cookie data

2002-01-30 Thread Erik Price
I have read elsewhere that depending on Cookie data for site authentication is false economy, because Cookie data can be spoofed. I'm designing a login that auto-fills a person's name into a field for authentication (based on their $user_id, which is stored in the cookie), then they enter a

Re: [PHP] Book database (slightly OT)

2002-01-30 Thread Erik Price
On Tuesday, January 29, 2002, at 11:38 PM, Boaz Yahav wrote: Why not simply look the ISBN up in one of the big online shops and take the data from there? Amazon? BN? It all depends on what you will do with the data I guess... A good idea, but if you're running a commercial site of some

Re: [PHP] session data vs cookie data

2002-01-30 Thread Erik Price
remember algorithm for what the user was doing at that point in their session? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Content Management

2002-01-30 Thread Erik Price
On Wednesday, January 30, 2002, at 02:19 PM, [EMAIL PROTECTED] wrote: Does anyone know of an organization who has built and maintains a web content management application for a large site? Zope. Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP

Re: [PHP] PHP and listbox multiple selections

2002-01-31 Thread Erik Price
a listbox with results returned from a SQL query, I use the primary key of the record as the value attribute in option. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] where is PHP_SELF?

2002-01-31 Thread Erik Price
the include file, where $PHP_SELF is echoed? Thanks for any insight you can give, Erik PS: I have an Apache directive that prevents any *.inc files from being served, but that doesn't stop them from being parsed as PHP. I'm running PHP 4.1.0 on LAMP w/register_globals=off Erik

[PHP] sorry, your input was invalid. please re-enter the asterisked fields

2002-01-31 Thread Erik Price
and was wondering if there is a neat, encapsulated algorithm that a lot of people use because its effectiveness has been proven time and again. If not, no worries, I look forward to writing it as best I can. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED

Re: [PHP] where is PHP_SELF?

2002-01-31 Thread Erik Price
On Thursday, January 31, 2002, at 06:12 PM, Lars Torben Wilson wrote: On Thu, 2002-01-31 at 14:57, Erik Price wrote: I'm running PHP 4.1.0 on LAMP w/register_globals=off Since register_globals is off, the $_SERVER array

Re: [PHP] Making your include files invisible (header() in if loop)

2002-02-01 Thread Erik Price
) to deny any file serve request with the following line: Files ~ \.inc$ Order allow,deny Deny from all /Files Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Erik Price
the entire document. You can't have one entity with double quotes and another one using singles. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] adding hidden form values to array

2002-02-01 Thread Erik Price
better way, is to store the many-to-many relationship into a foreign key table, but I'm still pondering whether or not to go this route...) Thanks! Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Need eregi() help

2002-02-01 Thread Erik Price
, filesize ($file)); Looks like you forgot the opening braces for your first 'if' statement. Does that help? If not, your error message will help others come up with suggestions. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Erik Price
tags, I forgot that we were talking about XHTML, where tags do indeed exist. Thanks for the correction. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Check Boxes and updating records. (HELP ME....)

2002-02-04 Thread Erik Price
this question in the abstract. 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: Sending an e-mail to 1,000 people

2002-02-04 Thread Erik Price
. 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] can't fint php.ini on OS X

2002-02-04 Thread Erik Price
-- 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] can't fint php.ini on OS X

2002-02-04 Thread Erik Price
recompiled my own. Sorry, php.ini may not be at /usr/local/lib/php.ini after all! 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: help - config setting directives in Apache config files not working

2002-02-04 Thread Erik Price
this frustration, I took consolation with others who had been there, and we all found salvation in installing the static mod_php (and Apache is still welcome to accept any other DSO). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] general question...

2002-02-04 Thread Erik Price
in the default section. Unless they break your page somehow. Note that I've used PHP 4.1.0-style variable names, in case you're using register_globals=0. You don't need to use them if you have register_globals=1. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED

[PHP] breaking out of two loops

2002-02-04 Thread Erik Price
Short and sweet: If I have an if statement inside a switch statement, how can I break out of both blocks that I am in? Will one break end everything? Or should I use one for each level deep that I am? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED

Re: [PHP] OS X cersion coming soon...(was Re: [PHP] Zend Studio)

2002-02-04 Thread Erik Price
. It certainly looks powerful. But you'd have to pry BBEdit out of my lifeless fingers. 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] Books on PHP

2002-02-06 Thread Erik Price
the PHP Bible. The Wrox Beginning PHP (by Choi, et al) got me started quite comfortably with the basic syntax and theory, and the www.php.net + this list helps me expand on that knowledge. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Erik Price
the $email_name as a session 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

Re: [PHP] Is this possible?

2002-02-06 Thread Erik Price
the data you want and assign it to different variables, then echo those variables surrounded by whatever HTML tags you want. Standard procedure, unless you're asking something different. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Erik Price
... is this the standard procedure for passing variables form JS to PHP? Is there a way that will work on browsers with cookies disabled? 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

[PHP] !isset ??

2002-02-06 Thread Erik Price
. Can anyone shed some light on whether or not there is a final definite way to do this? I've used (!($_POST['var'])) with no problems in the past, but does good coding style suggest that I use (!isset($_POST['var'])) now? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown

Re: [PHP] Re: !isset ??

2002-02-06 Thread Erik Price
wondering if there was a definite method for doing these tests. Thanks to all who've responded on this thread. 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] !isset ??

2002-02-06 Thread Erik Price
. That's the meat of it, then. I wasn't aware of the different types of evaluation that could be done on a variable (boolean, etc). Okay, I'm reading that link as I write this. Thanks again. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General

Re: [PHP] Manual input, to form, to array, to session register...

2002-02-06 Thread Erik Price
='5' /; IOW, concatenation. 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] if variable is equal to 2 through 4

2002-02-06 Thread Erik Price
, at 04:25 PM, Erik Price wrote: On Wednesday, February 6, 2002, at 04:10 PM, Jay Fitzgerald wrote: i am currently using this code: if ($variable == 2) || ($variable == 3) || ($variable == 4) { echo hello; } how would I write it if I wanted to say this: if $variable == 2 through 4

Re: [PHP] if variable is equal to 2 through 4

2002-02-06 Thread Erik Price
= 4) 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] Differences between PHP, ASP, JSP

2002-02-07 Thread Erik Price
be used for online banking? Usually banks use JSP or ASP, why don't banks use PHP? Is there security issues? Because they're fools. I admit to being biased. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] function to post data

2002-02-07 Thread Erik Price
) but I didn't see the purpose behind this process. What is it for? 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] mysql_insert_id() vs LAST_INSERT_ID()

2002-02-07 Thread Erik Price
lump them all together? Thank you, 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] Need XML info for PHP -- XML Newbie

2002-02-07 Thread Erik Price
. 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] Quote in input tag value?

2002-02-07 Thread Erik Price
mean when you use them. To the end user it won't matter, but for another reader of your code, it may help. But again, it's probably more opinion (and if you -are- using the quotes for some obscure code, then nevermind what I just wrote). Erik Erik Price Web Developer Temp Media Lab

  1   2   3   4   5   6   7   >