Re: [PHP] OT - number of chars in querystring

2002-03-26 Thread Erik Price
ad was a maximum. Thanks for the reply, Darren. 2048 seems like a workable limit to me. But I'm curious about your suggestion -- how would I get the user inputted data into hidden form variables without submitting the form in the first place? Erik Erik Price Web Developer

Re: [PHP] Array in a Loop Question

2002-03-26 Thread Erik Price
lequotes in the second script ($_POST["address{$i}"]) is imperative because with singlequotes the variable $i will not expand to $_POST["address2"] or whatever. 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] OT Re: [PHP] Re: which php book 2 buy ?

2002-03-26 Thread Erik Price
thing. On Tuesday, March 26, 2002, at 01:51 PM, Rasmus Lerdorf wrote: > Or, of course, if you want to be cool like Carl: > > http://lerdorf.com/buy/ > > ;) > Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (

Re: [PHP] Array in a Loop Question

2002-03-26 Thread Erik Price
' and '}'), but I think it's just easier to use the dot do appending from string to variable value to string again. 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]

2002-03-26 Thread Erik Price
you are using PHP 4.1.x and you use the format: $_SESSION['v_s'] = 500; 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]

2002-03-26 Thread Erik Price
f you should ever upgrade. Read it for yourself, http://www.php.net/manual/en/language.variables.predefined.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] xslt_set_sax_handlers

2002-03-27 Thread Erik Price
-with-xslt-sablot as ./configure parameters), why not just use xslt_process() ? This function does just about everything you need done in an XSLT transformation. What are you trying to do? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Maili

[PHP] Re: OT Re: [PHP] Re: which php book 2 buy ?

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 11:35 AM, Rasmus Lerdorf wrote: > Erik, I asked an editor at O'Reilly about this cover issue. Here is the > response: > >> We did switch to wite spines with black letters for a while, but now >> we've switched back to our ori

[PHP] escaping PHP's closing tags

2002-03-27 Thread Erik Price
me an official ruling. There is no reference to escaping the ?> tag on the man page (currently) that I could find, or in the annotations. 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] Re: escaping PHP's closing tags

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 12:03 PM, Julio Nobrega Trabalhando wrote: > Haven't seen it either, but you could use: > > echo '<' . '?'; > > So < is separated from ?. Or ? from > for the matter. That's a good work

Re: [PHP] Query bug

2002-03-27 Thread Erik Price
quot; OR ATAS.nome="de" OR ATAS.nome="parse"; Obviously, I have no idea how you want your query to look, so be sure to customize it for your needs, but this demonstrates what you need to do: Explicitly state the table whose column you want to access. Erik Er

Re: [PHP] while loop: detect next loop?

2002-03-27 Thread Erik Price
x array like a mysql_fetch_assoc() result, I'm not sure how to implode. 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] Query bug

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 04:28 PM, Daniel Ferreira Castro wrote: > This way works, but not the way i would like to. > Because it selects just the fields "nome","id_proj" and "arquivo" from > the > table ALGORITMO, and here my goal is to select those fileds of > ALGORITMO and > ATAS.

Re: [PHP] a CNN headline news grabber

2002-03-28 Thread Erik Price
If so, then I would use that rather than try to grab their HTML page and parse it. 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] XSLT; XML => PHP code

2002-03-28 Thread Erik Price
not seeing it. 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] XSLT; XML => PHP code

2002-03-28 Thread Erik Price
function... be careful. (... of what?) Thanks again Darren, 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] best way to read a file

2002-03-28 Thread Erik Price
use to simply read a file and store the file's contents in a variable (for later actions to be performed on/with this variable). 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] best way to read a file

2002-03-28 Thread Erik Price
(I would not have imagined I would run out of memory b/c I have php.ini set to 16M per script and the XSL file is only 8kB, though the script does do a lot of things.) Anybody know what's going on here? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] --

Re: [PHP] best way to read a file

2002-03-28 Thread Erik Price
unction that I will try now, and see if that works. But it seems that I only get this error when attempting a successful xslt_process(). (I know that it is successful because I am testing its success in the script.) Thanks, bvr. I'll continue to bug test. Erik Erik Price

[PHP] tough XSLT question

2002-03-28 Thread Erik Price
tags for variables, which is a crude but possibly workable solution, does anyone know how I can use HTML tags in my PHP code in my XSLT document? (sorry, entities doesn't work either) TIA and have a good weekend, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAI

Re: [PHP] Database-Driven Web Site.

2002-03-29 Thread Erik Price
Bulger and Greenspan). It's a big topic, you're best off reading one of these books and then asking here for help on specific questions. 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 and XML/XLST/WDDX etc

2002-03-29 Thread Erik Price
o! Groups and I'm having a bitch of a time getting subscribed (who ever thought that a web-based interface for mailing list management was a good idea?) Anyway, best of luck to you -- let me know if you find a community dedicated to this very topic, since I'd like to focus on it

[PHP] IMPORTANT question for anyone using XSLT

2002-03-29 Thread Erik Price
creating PHP code. And the only way I can think of doing it (which I still haven't tested, but might have to use) is to use variables to represent the HTML tags so that instead of Go Home I could use $astartag = "Go Home"; and then make the style sheet like this:

Re: [PHP] Processing Code created on the fly

2002-04-01 Thread Erik Price
let your variable contain PHP code in addition to simple text or HTML. That's what makes it different from just "echoing back the text". So you could do $print_statement = "print('test');"; eval($print_statement); // the output is "test", not "

Re: [PHP] Sql results

2002-04-01 Thread Erik Price
"Ninguem"; > } > > Is returning False? The query is succeeding, it's just returning an empty set. Try if (!$Sql_Query_Login) { echo "query failed"; } else { if ($sql_Query_Login == "") { echo "empty result set"; } else { // do

Re: [PHP] register_globals

2002-04-01 Thread Erik Price
found it very helpful: > Give this a read first, then come back if you still have questions ;) > > http://www.securereality.com.au/studyinscarlet.txt > > Kirk Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http:

Re: [PHP] ask for suggestion about printing

2002-04-01 Thread Erik Price
because printing report is very important to us. If you use XML instead of HTML, you could perform one XSLT process to create HTML for the online version and another XSLT process to create a file in any other format to create the print version. Erik Erik Price Web Developer

Re: [PHP] IMPORTANT question for anyone using XSLT

2002-04-01 Thread Erik Price
On Friday, March 29, 2002, at 01:56 PM, Erik Price wrote: > My, there have been a lot of questions about XSLT in the past 24 hrs... > admittedly most of them coming from me. In addition to my first > question (repeated below for clarity), I have a second one -- how do I > per

Re: [PHP] Please help with code

2002-04-01 Thread Erik Price
could, and it should still insert as normal. And yes, you can structure your query this way for legibility since whitespace is ignored (if you want). 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] header() question

2002-04-01 Thread Erik Price
to point to http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> Test // and this is your PHP code header('Location: http://www.domain.com/testpage.php#topofpage'); HTH, Erik Erik Price Web Developer Temp Media L

Re: [PHP] return

2002-04-01 Thread Erik Price
you change the value of a variable outside the namespace of the function. Or scope. I forget which it is. Try your above code -- it shouldn't work. 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/MySQL/XML

2002-04-01 Thread Erik Price
r application do? 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] header() question

2002-04-01 Thread Erik Price
y default (which now I remember is not the case). Sorry for the completely inappropriate suggestion. 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/MySQL/XML

2002-04-01 Thread Erik Price
ction to pull the data from the $sql_result. So, add to your code: while ($xml_data_row = mysql_fetch_assoc($sql_result)) { $xml_document = ' ' . $xml_data_row['name'] . ' ' . $xml_data_row['address'] . ' ' . $xml_data_ro

Re: [PHP] PHP/MySQL/XML

2002-04-01 Thread Erik Price
Shoot, kind of an important error I made in the code I gave you earlier -- the closing quote for $xml_document should be a single-quote, not a double-quote as I wrote. Sorry, Erik On Monday, April 1, 2002, at 04:26 PM, Erik Price wrote: > Still, you want some advice? First, your

Re: [PHP] RE: PHP/MySQL/XML

2002-04-01 Thread Erik Price
e_list, "\t\t\t"); fwrite($phone_list, "$ext"); fwrite($phone_list, "\n"); } The empty() "function" (actually a language construct, but the difference isn't important) tests to see if there is actually any

Re: [PHP] class instance name

2002-04-01 Thread Erik Price
On Monday, April 1, 2002, at 06:24 PM, Nate wrote: > How do you determine the class instance name from within the class? Isn't it $this ? ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Erik Price
that they do not require declaration of variables. At least that's what people say when they praise PHP or Python or whichever language allows this. Is this "feature" not as desirable as what I had first heard? Erik Erik Price Web Developer Temp Media Lab, H.H. Br

Re: [PHP] date expressions

2002-04-02 Thread Erik Price
cing date usage in PHP. http://www.devshed.com/Server_Side/PHP/DateTime 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: preventing "back" button usage?

2002-04-02 Thread Erik Price
ed to an error page if they hit the "back" button. (The session variable idea won't work until they refresh a page or submit a form, because they will be returning to a page in their history.) 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: preventing "back" button usage?

2002-04-02 Thread Erik Price
om being resubmit, and JavaScript to "disable" the back button (unethical as it may be). 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: SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Erik Price
n mind is really applicable to what you want to do. 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: SV: SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Erik Price
buttons or make a little listbox and a submit button, like: Increase Size Decrease Size This would keep your querystring/URL free of extra data like "page.php?change=inc". Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] Connecting to a DB using PHP and mysql...

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 10:40 AM, Rick Emery wrote: > have permissions been granted to contacts in mysql using that > combination of > username and password? And from that host? Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PH

Re: [PHP] April fools day - did anyone notice Thies's fangs on rc1???

2002-04-02 Thread Erik Price
ing, > especially when I found that he was gone again today! Try setting your > server's system date back to yesterday, as in Pencils, I thought? I didn't know who that was. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP Gener

[PHP] global vars within 2-level functions

2002-04-02 Thread Erik Price
xist to make the function legitimate. 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] global vars within 2-level functions

2002-04-02 Thread Erik Price
{ > } Thanks for the pointer. I didn't realize that passing a blank argument would achieve this effect. 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] Warning: Undefined variable

2002-04-02 Thread Erik Price
re... The short of it is that, as a novice programmer, I'd like to make sure I'm writing the most legitimate code that I can. Thanks for any input on this thread, past or future. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mai

Re: [PHP] session

2002-04-02 Thread Erik Price
r sessions -- it is easier and may work better. If you're using PHP 4.0.x or lower, then nevermind, this won't help 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] syntax for date math expressions

2002-04-03 Thread Erik Price
tin date formats, but I like the timestamp that PHP uses (and I like what I can do with a timestamp in the date() function) so I have been using VARCHAR(20) to hold the date as a string. MySQL's TIMESTAMP is not the same thing as PHP's. Erik Erik Price Web Developer Temp

Re: [PHP] syntax for date math expressions

2002-04-03 Thread Erik Price
w date? I transform all of my dates into Unix timestamps so that I can pass them around in form fields etc, but MySQL's timestamp format is different. Is there some way to call something like UNIX_TO_MYSQL_TIMESTAMP() in MySQL (or PHP)? Erik Erik Price Web Developer Temp Media

[PHP] clarification on magic quotes

2002-04-04 Thread Erik Price
or not I should stripslash() the data before entering it into the DB. This would defeat the purpose, but otherwise I end up with columns with values like "Mike\'s Pleasure Hut" or "Jean D\'Arc", and this will make queries tricky in the future. Thank you for your ad

Re: [PHP] clarification on magic quotes

2002-04-04 Thread Erik Price
nserted. I think I'll go through and put addslashes() around any database insert scripts I have and turn it off. 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] Reliability of sessions

2002-04-04 Thread Erik Price
On Thursday, April 4, 2002, at 04:40 PM, Thomas Deliduka wrote: > I have a quick question for a veteren of sessions out there. I'd trust sessions with my life. ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www

[PHP] objects handling objects

2002-04-04 Thread Erik Price
nto arrays etc? 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] Warning: Undefined variable

2002-04-04 Thread Erik Price
any other) format, so why not just use the columns designed for keeping track of the time? Then I disabled magic_quotes_gpc and added addslashes() all over my code, at Miguel Cruz's suggestion, which also seems like a move toward better control. Why not just go through my scripts and chan

Re: [PHP] Read and Escape file

2002-04-05 Thread Erik Price
ramming constructs? The PHP manual mentions string literals but assumes that the reader already knows what they are (i.e., doesn't define them opposed to other types of inputs -- http://us4.php.net/manual/ro/html/language.types.string.html). Erik Erik Price Web Developer Tem

Re: [PHP] using new AUTOGLOBALS

2002-04-05 Thread Erik Price
submitted POST data, and you have // checked it for errors in your script $_SESSION['variablename'] = $_POST['variablename']; // put POST variable in a session How easy is that! Note that doing this assignment with any other superglobal doesn't work and in most cases would

Re: [PHP] how to process URL parameers

2002-04-05 Thread Erik Price
, I have a copy of it. I CC'd this back to the list, because there are probably others who can benefit from this conversation -- in general, try to keep discussion on the list unless there is some reason for privacy. Feel free to ask if you have more questions! Erik Erik Price

Re: [PHP] conditionaly including classes/functions

2002-04-05 Thread Erik Price
ot it will be processed. 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: using new AUTOGLOBALS

2002-04-05 Thread Erik Price
a topic for > discussion. > > Can anyone offer advice? Post your exact code, I'll look at it. 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 books

2002-04-05 Thread Erik Price
I wouldn't rely on it. Rasmus Lerdorf wrote a book on PHP for O'Reilly, it apparently just came out a few days ago although I haven't read it. I believe it covers many advanced topics as well (not just a tutorial). Erik Erik Price Web Developer Temp Media Lab, H.H. B

Re: [PHP] Making sure a post request came from your site

2002-04-05 Thread Erik Price
ion: http://www.devshed.com/Server_Side/PHP/FormValidatorClass/page1.html And remember, unless your server is unplugged in a locked room, it's never really safe from intrusion. 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 - UPDATE & INSERT

2002-04-05 Thread Erik Price
> WHERE username='$username'"; If you have shell access to your database server, you can always CREATE TEMPORARY TABLE and test things out on a small scale, then DROP TABLE when you're done playing. 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] Arrays within classes

2002-04-05 Thread Erik Price
e trying to do with this class, like Person() or something -- it helps. I can't figure out what this class is even supposed to do. Erik On Friday, April 5, 2002, at 01:21 PM, Brian McLaughlin wrote: > This is driving me crazy! I've created a class to hold data so I can > ju

Re: [PHP] MAC file upload

2002-04-08 Thread Erik Price
edge there is nothing you can do about this via PHP, but there are probably tricks (like AppleScript) that you could use as a workaround, such as encoding the files in some transport-friendly format before uploading and decoding them upon download. Erik Erik Price Web Developer Temp M

Re: [PHP] Disabling bars on Browser

2002-04-08 Thread Erik Price
one of voice doesn't carry very well via email. There's plenty of other groups which will answer JavaScript-related questions, but it is your responsibility to find them. Erik On Sunday, April 7, 2002, at 10:09 PM, <[EMAIL PROTECTED]> wrote: > Wow, you really feel lik

Re: [PHP] newbie configuration question

2002-04-08 Thread Erik Price
of a PHP upgrade that will show you how I went about it. But you've probably solved your problem by now. Needless to say, the source install is highly configurable and not very difficult, I recommend it over the RPM in almost any situation. Erik Erik Price Web Developer Temp M

Re: [PHP] Appending url to file name...

2002-04-08 Thread Erik Price
onent of a URI and not a part of the file's path (and will not be automatically generated by dirname() or any other function that I know of). 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] SSL needed for socket communication?

2002-04-08 Thread Erik Price
ting to my server), but if someone could confirm this and/or point me in the direction of the functions that allow me to use SSL that would be greatly appreciated. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

Re: [PHP] Appending url to file name...

2002-04-08 Thread Erik Price
7;t want a trailing slash in that CONCAT function?). If you want to just test this out, or don't want to apply this change to EVERY row, you can add a WHERE clause to choose certain rows to update. Keep in mind that test_column must be able to accommodate the new string (so you might need t

Re: [PHP] Adding Querystrings to links

2002-04-08 Thread Erik Price
n = 12; $item = 12; // later in the script print("http://domain.com/index.php?dest=$destination&item=$item\";>Link "); 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] Assigning unique form names...

2002-04-08 Thread Erik Price
{ > if (($file_name != ".") && ($file_name !="..")) { > $file_list .= " NAME=\"$file_name\">$file_name"; > } > } > $file_list .= " VALUE=\"select\">"; > closedir($dir); > ?> > Thanks i

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Erik Price
hnique? If this is the case, then please let me know, I'll try to come up with another solution. As for the use of an array to do it, I don't see why not -- but try to be a bit more illustrative of what you want, since there are an infinite number of ways to use an array in this

Re: [PHP] Sub groups ? - Programming structure...

2002-04-09 Thread Erik Price
wasn't by doing if (!display_login()) { die("Could not display login form"); } Note that some might consider this a perversion of functions, since functions are intended to operate on input and return a value -- but this is a convenient way of modularizing your display code,

[PHP] order of evaluation

2002-04-09 Thread Erik Price
will be processed if the first test, !empty(), fails. I certainly don't want to set the password to an empty string! (Actually the method requires at least 8 characters or it fails, but I was wondering for the sake of curiosity what would happen.) Thank you, Erik Erik Pri

[PHP] need help with your code?

2002-04-09 Thread Erik Price
y it's not). I'm not directing this toward anyone in particular, just a general suggestion to everyone who uses this list to make sure that the code is easy to read -- this burden should be on the help-requester, not the helper. Yes, this means that some 200 character-long lines will nee

Re: [PHP] Sub groups ? - Programming structure...

2002-04-09 Thread Erik Price
- most of my display code is wrapped up in functions. I'll have to adjust if I ever learn one of those other, tightly typed languages. 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] mailing address regexp

2002-04-09 Thread Erik Price
$/ do it? If you need numbers too, you could add 0-9 and change the max from 8 to 13 and probably be pretty safe. 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] order of evaluation

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 12:24 PM, Analysis & Solutions wrote: > Yo Erik: > > On Tue, Apr 09, 2002 at 11:39:31AM -0400, Erik Price wrote: >> >> elseif (!empty($_POST['newpassword']) && >> !$user->set_password($_POST['newp

Re: [PHP] order of evaluation

2002-04-09 Thread Erik Price
Hey I'm sorry Dan and everyone, I realize my mistake -- if you're curious it's in my if/elseif/else chain, I explain the problem below (scroll down): Erik On Tuesday, April 9, 2002, at 03:00 PM, Erik Price wrote: > > Hm. I threw in a test echo statement in the class

[PHP] skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Erik Price
x27;t- in a loop of some sort. But it works fine the way I do it, immediately above. 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] Manipulate the address field in the browser?

2002-04-09 Thread Erik Price
27;t work for scripts), and (b) the URL never changes -- the domain name registrar is hosting the frameset, not the site, so all the URL bar ever shows is the name of the master frameset -- http://shinynewdomainname.com. My registrar is easyDNS, maybe they have information about how it's don

Re: [PHP] Re: mysql

2002-04-10 Thread Erik Price
($result); echo $row[0]; And of course the above can be modified for multiple columns/array elements. Someone did suggest that you use an if statement, however, in the event that no records are retrieved -- if (!$result = mysql_query($sql, $db)) { echo "No records found."; }

[PHP] formatting a numeric string

2002-04-10 Thread Erik Price
phone_array[6], $phone_array[7], $phone_array[8]); Is this really the best way to achieve $phone_number = "(800) 555-1212" ? Or am I taking the long way around, and there's a function that can do this better? Thanks, Erik Erik Price Web Developer Temp Media Lab, H.H. Brow

[PHP] unsetting an instance from within its class

2002-04-10 Thread Erik Price
Is there a way to unset or destroy an object instance from a method within its class? I'm trying to write a method that destroys its instance but I'm not sure how to refer to the object itself from within the class. Erik Erik Price Web Developer Temp Media Lab, H.H. Br

Re: [PHP] newbie html forms primer help

2002-04-10 Thread Erik Price
another language I'm familiar with, this looks like: > > [formvariables name=thevarname][name]=[value][/formvariables] > > For passed checkbox input var doh, where values were blah and bleck, > the above code would display: > > doh=blah > doh=bleck > > How do I do th

[PHP] preg_match doesn't seem to work!

2002-04-10 Thread Erik Price
instance->show_name(); unset($ff_instance); } So, I'm passing the constructor a value of "folderfile1", but that doesn't seem to work with my preg_match() (above). Yet it seems like it should work fine. Can anyone see what I'm doing wrong here

Re: [PHP] String?

2002-04-10 Thread Erik Price
would be great. preg_match(/^_[0-9]{4,4}\.jpg$/, $file_name) should match any string that starts with an underscore, is followed by exactly four digits, and then a ".jpg". It will not match anything but this exact string. Erik Erik Price Web Developer Temp Media

Re: [PHP] Arrays within classes

2002-04-11 Thread Erik Price
ave an explanation. or if you have already solved it, can you let me know what it was? I'm starting to do some object stuff in PHP and need to know about strange behavior like this. Regards, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] --

Re: [PHP] newbie html forms primer help

2002-04-11 Thread Erik Price
$post_variable) { if ($post_variable == "doh") { $post_array[] = $post_variable; } } You don't need an else statement, since the loop will just continue if the value of the variable is not "doh". Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMA

Re: [PHP] IE & $HTTP_REFERER...

2002-04-11 Thread Erik Price
it as an argument to your JavaScript function, or what have 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] Tutorial on proper code formating

2002-04-11 Thread Erik Price
On Thursday, April 11, 2002, at 01:25 PM, Jennifer Downey wrote: > Hi all, > > Could someone point me to a tutorial on the proper way to format code. > To > make it more readable. http://utvikler.start.no/code/php_coding_standard.html Erik Price Web Developer Temp

[PHP] constructors in derived classes

2002-04-11 Thread Erik Price
I have another question about OO in PHP -- The manual (http://www.php.net/manual/en/language.oop.constructor.php) does an excellent job of explaining how constructors in extended classes work when there are constructors in base classes. I understand that no problem. But at the bottom of the

Re: [PHP] string...

2002-04-11 Thread Erik Price
ur directory? If you don't, then nothing will be displayed. Are you sure that your "/path/to/directory" is a real path to a real directory? etc etc > $file_lost .= " NAME=\"$file_names\">$file_names"; > } > } > $file_lost .= " VA

Re: [PHP] Tutorial on proper code formating

2002-04-11 Thread Erik Price
wn style. But as I've learned more and more about programming over the past few months, my style has definitely changed -- even within this same project! I try to keep it consistent but I learn all kinds of new code-organizing techniques (like OOP), so it's not that easy. Erik

Re: [PHP] constructors in derived classes

2002-04-11 Thread Erik Price
$arg2); and it seems to work. But this is really just shortchanging yourself the value of having a constructor in Base, since you are calling it as a method and not using its "automaticness" feature. Thanks again, Erik Erik Price Web Developer Temp Media Lab, H.H.

[PHP] send both POST and GET data

2002-04-11 Thread Erik Price
controlled by POST data -- because after the search engine step of the form, I want the rest of the data to be sent by POST. Any good ideas? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] send both POST and GET data

2002-04-11 Thread Erik Price
On Thursday, April 11, 2002, at 04:09 PM, Erik Price wrote: > I'm trying to think of a clever way to send both POST and GET data in > the same form. I want to use GET data so that the variables appear in > the querystring (so that users can bookmark or save the URL, it's

Re: [PHP] Posting with script tags, or a plea not to

2002-04-12 Thread Erik Price
h your time. http://www.php.net/manual/en/function.htmlspecialchars.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

<    2   3   4   5   6   7   8   9   >