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

[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] Parsing Content

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 04:00 PM, Jonathan Duncan wrote: > That is perfect, thank you Philip and Erik. I forgot what a great > resource > DevShed is. It's awesome. Not very in-depth, but then I'd buy a book on the subject if I wanted in-depth. Just enough so

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] 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
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] 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-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

[PHP] passing large quantities of form data

2002-03-06 Thread Erik Price
aracters and unserialize() -ing the characters to get my array back. Then I can loop through the array and create my SQL statement. Does it make any sense? 2) is this a lot of extra work, and I'd be better served by just taking each variable and putting it into its own hidden form fie

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

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] 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] 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] 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] 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] 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] 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] 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] 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] BIG PROBLEm with headers

2002-03-08 Thread Erik Price
> Thawte or my ISP inadvertently used a 1028 bit key on the certificate > rather than 1024. IE5 has known problems with SSL. Some sites (sourceforge.net) use SSL only to authenticate the user, letting them back out of secure-mode after authentication succeeds, if the useragent is

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] 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] Re: Help needed with speading up a function.

2002-03-08 Thread Erik Price
On Friday, March 8, 2002, at 04:27 PM, George Whiffen wrote: > Hope you are/are not trying to crack ciphers! George, you know way more about math than I do, but I do know that trying to crack them is a good way to make sure they work, or make them stronger! Erik (who thinks his pay r

[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

[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

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

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] 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] Re: Variables within a string

2002-03-12 Thread Erik Price
oted strings there is no need to single-quote the > array > key (in fact it can't be done, gives syntax error). The section of the > manual > you quoted states this :) I thought that it could be done like so: $foo = "Entry for {$HTTP_POST_VARS['name']}"; Sorry

Re: [PHP] re: passing inputs

2002-03-13 Thread Erik Price
evaluates to will become the name within $_POST[' and']. Unless you have defined "$inp" somewhere, that's just a mistake. Don't use the $ symbol within $_POST or $_GET variables until you have a reason to do so. So, in your script, you've called the

Re: [PHP] Opening new browser window.

2002-03-13 Thread Erik Price
use JavaScript for stuff like that, or you could use the frames properties of HTML like this: Click Here Essentially, you're having the new file open up in a new frame, but instead of the frame being defined in the current window, it's in a new window. Not really JavaScript, bu

[PHP] --enable-xslt

2002-03-13 Thread Erik Price
? It seems like it. If anyone has a resource or somewhere I should be looking, please by all means point me in the right direction. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Targetted redirection?

2002-03-13 Thread Erik Price
erence a new window or something like a target="_blank" and THEN call the header() function from there... but that's more of a workaround than a solution. Good luck, sorry I don't have any other ideas. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL

Re: [PHP] --enable-xslt

2002-03-13 Thread Erik Price
le more than minimum wage and he gets no benefits, but he's happy with the work." Plus, it'll look good in the portfolio. Thanks in advance, Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
I get the > string with comma seperate values. Did you try putting brackets at the end of the input names? This tells PHP to put the values into an array, whose key is the name of the input. A B C This might work for you, Erik Erik Price Web Developer Temp Media Lab, H.H.

Re: [PHP] Targetted redirection?

2002-03-14 Thread Erik Price
ays that I can see JS enhancing a web site, as long as you don't require JS to do what you want... but in all honesty I haven't learned much JS so even I don't really take this route. It's just a theory. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAI

Re: [PHP] Re: getting values from multiple select

2002-03-14 Thread Erik Price
her define a default selection or > check for 'none selected' Such as if ($_POST['multi']) { // loop thru the array and extract the values } else { // there were none selected so don't loop thru // the array (or you'll raise an error) } Erik

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
item, then only one item will be passed to the receiving script. Use the above techniques to make sure that you are actually passing more than one value. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/

Re: [PHP] get the greatest key of an array???

2002-03-14 Thread Erik Price
d do it: http://www.php.net/manual/en/function.end.php It sets the internal pointer to the very last element in the array. Python, incidentally, has a neat way of doing this: array[-1] (of course they're called lists, not arrays, in Python). Just a side note. Erik Erik Pric

Re: [PHP] DHTML Trouble please help

2002-03-14 Thread Erik Price
ly a language. It just refers to using scripting languages and plugins like JavaScript, Flash, CSS tricks, and even server-side manipulation to achieve an effect. There's a lot of stuff on this topic at http://dhtmlcentral.com/ if you're interested. Erik Erik Price Web

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
anks, > > -Scott Sure! First go get a cup of coffee! :) Then change the first line to say this: Let me know how that works for 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]

2002-03-14 Thread Erik Price
;I\\\'m Russian". Does the stripslashes() function solve your problem? I'm interested in hearing about 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] session problems

2002-03-14 Thread Erik Price
1.0 or greater, then there is a much easier way to write this script: session_start(); $_SESSION['login'] = $_POST['user']; // use $_GET if that is the method you're using $_SESSION['pass'] = $_POST['pass']; // use $_GET if you are using that me

Re: [PHP] XSLT parsing causes "passed by reference" error

2002-03-14 Thread Erik Price
to the function. It may be that in your particular build you need to use workarounds. Be sure to post the results of your experimentation for the benefit of the rest of us. 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] repost: appending to text file

2002-03-14 Thread Erik Price
at DevShed, SitePoint, and a dozen other excellent web support sites. Either a database or XML can do what you want, it's really up to you. I think the XML way will get you your results soonest, but learning MySQL will have a long-term value if you ever intend to do any back-end work or ju

Re: [PHP] Online Feedback and Application

2002-03-14 Thread Erik Price
ta to a text file or multiple text files, though if you get a lot of feedback it -could- get out of hand. And email is another option. PHP lets you do all of this. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www

Re: [PHP] include() question

2002-03-14 Thread Erik Price
t about a month ago, and someone said that you can use variables or strings in many cases -- just remember that the variable expands to the string BEFORE being processed by the function. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Maili

Re: [PHP] Use of $_SESSIONS in PHP 4.1.2 with register_globals off

2002-03-14 Thread Erik Price
cho "\$ses_var1 is ".$ses_var1; > echo ""; > > echo ""; > echo ""; > > echo "\$HTTP_SESSION_VARS['ses_var2'] is > ".$HTTP_SESSION_VARS['ses_var2']; > echo ""; > > echo "\$_SESSION['ses var2'] is ".$_SESSION['ses_var2']; > echo ""; > > ?> > Return to Page 1 > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - > - - - - - - - - - - - - - - - - - - - - - - - - > Please Note: The information contained in this message may be privileged > and > confidential and protected from disclosure. If the reader of this > message > is not the intended recipient, you are hereby notified that any > dissemination, distribution or copying of this message is strictly > prohibited. If you have received this in error, please notify us > immediately > by replying to the message and deleting it from your computer. > > Thank you - Tobin & Associates, Inc. > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - > - - - - - - - - - - - - - - - - - - - - - - - - > > > 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] include() question

2002-03-14 Thread Erik Price
that the receiving script can take some action based on where the user was sent from. 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] include() question

2002-03-14 Thread Erik Price
Oh I see. Sorry, i was thinking apples and you guys were talking about oranges. I just ran into this problem a little while ago, that's why I felt the need to butt in. Erik On Thursday, March 14, 2002, at 05:08 PM, Edward van Bilderbeek - Bean IT wrote: > Jep, that was what

Re: [PHP] PHP Is Inserting (the same) Database Record Multiple Times In My HTML Output

2002-03-15 Thread Erik Price
nly suppress possible unexpected error messages from users; that using it to suppress known errors is really not as good a solution as finding out what is causing the error and fixing it... of course, sometimes in a pinch you have to MacGuyver the thing I guess. Just some advice :) Erik

Re: [PHP] Targetted redirection?

2002-03-15 Thread Erik Price
the pages with the header() function do not consider page "A" to be their _top ? Good example. 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] converting html entities outside of tags

2002-03-18 Thread Erik Price
sing strip_tags() ? When I originally thought of doing it, it seemed like a good way of getting around the fact that user-specified JavaScript attributes are still allowed in strip_tags()-parsed text. But now that I think about it, there's no difference Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Driving me nuts, need one second of your time

2002-03-18 Thread Erik Price
erent > perpective will help. > You're declaring your connection parameter as a string "db" and you probably want it to be a variable $db. Make sure this variable contains a database connection pointer. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EM

Re: [PHP] XSLT parsing causes "passed by reference" error

2002-03-18 Thread Erik Price
otron (both of which are required for these XSLT functions). Good luck, and btw by annotations I meant the user-input at the bottom of every PHP man page. 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] new_xmldoc won't work?

2002-03-18 Thread Erik Price
seem like that's what you're using here. I didn't find any reference to a function called "new_xmldoc()", though I did see a big disclaimer that the DOM-using XML functions in PHP are subject to change and are somewhat unstable. 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] Appropriate headers for Forcing download on IE/Mac and open with stuffit?

2002-03-18 Thread Erik Price
to the Mac IE 5.1 and have no experience with IE on Windows. 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] object reflection in php?

2002-03-18 Thread Erik Price
$this->field; } } then in your code you would do something like: return_field_name(); ?> This might not work, I don't know much about OO. 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 and enable-trans-sid

2002-03-18 Thread Erik Price
d on other pages > > nor is there a file in the /tmp file > > nor does my URI change with a session id Are you forgetting to put the buck ($) in front of _SESSION['varname'] ? Looks like it from the example you give above, unless that's a typo. Erik Eri

Re: [PHP] unscriber please

2002-03-18 Thread Erik Price
2 What embarrassing information to attach to an unsuccessful UNSUBSCRIBE request! :) If you still wish to unsubscribe, see the very last line of this email. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] PHP CGI

2002-03-18 Thread Erik Price
t;server-side scripting language". It's easier to say "CGI", but you refer to something very specific when you 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] Sablotron and LINUX trouble

2002-03-18 Thread Erik Price
and Sablotron (I think they automatically install into /usr/local/lib), PHP knows where to find them and will take care of it. Mike, if you want I have a log of the exact commands I used to do this, and can send them to you if you want. Let me know how this works for you -- it'll take

Re: [PHP] printing in HTML or PHP

2002-03-18 Thread Erik Price
On Monday, March 18, 2002, at 02:57 PM, Daniel Ferreira Castro wrote: > I would like to print the line bellow on my HTML generated by a PHP > file. > How can I do it? > > The line is: > "; ?> E Erik Price Web Developer Temp Media Lab, H.H. Brown [

Re: [PHP] U.S. Section 508 Guidelines

2002-03-18 Thread Erik Price
aids, then you're not really meeting the requirements of 508. Unless there's a problem with the parser at www.cast.org/bobby, the best (and most ethical, IMO) thing you can do is conform to 508 as required and not subvert the parser. Erik Erik Price Web Developer Temp

Re: [PHP] MySQL and indexes

2002-03-18 Thread Erik Price
pear to be normalized, which means that while it may be functional, you're not making the most of what your RDBMS gives you to work with. Strongly recommended book: "MySQL" by Paul DuBois (New Riders). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECT

Re: [PHP] printing in HTML or PHP

2002-03-18 Thread Erik Price
On Monday, March 18, 2002, at 03:49 PM, Daniel Ferreira Castro wrote: > I need to use it with fwrite not print :-) > > "Erik Price" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> >> On Monday, March 18,

Re: [PHP] Working with IP addresses

2002-03-18 Thread Erik Price
net numbers are the same as the database domain + subnet numbers. 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] Mac Classic and PHP...

2002-03-18 Thread Erik Price
gt; talking to the wall. Also I need to know where I can find free ODBC > drivers > that will let them contact to MYSQL or Filemaker pro. Yeah, I need to run PHP from my Atari 800 too. Can someone send me a binary? :) Good luck, Chuck! Erik Erik Price Web Developer Temp

Re: [PHP] Mac Classic and PHP...

2002-03-18 Thread Erik Price
Fleece, Jungle Hunt, Pitfall, Haunted House, man... I wish I still had them. Then again, it might be like those movies that you remember so fondly as a kid but then you see again fifteen years later and you're like "what was I thinking?" The memory ends up being better t

Re: [PHP] Mac Classic and PHP...

2002-03-19 Thread Erik Price
to a Land Rover Defender, then the $150 offer you made them seems like the best thing they could 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] Making a simple borderless pop up window with a "Close" button

2002-03-19 Thread Erik Price
t;. As has been mentioned on this list five times over the past 24 hours, JavaScript is code that is executed by the user's browser (as opposed to PHP which is code executed by the server), which provides the ability to manipulate browser objects like windows. I don't know much J

Re: [PHP] Making a simple borderless pop up window with a "Close" button

2002-03-19 Thread Erik Price
it to appear (playing with the menu settings and clicking the "Toolbar" button that appears in every Aqua window). Also, the window is resizeable. So it looks like you can "suggest" to Mozilla that it not display the nav bar, but you can't "force" it like you

Re: [PHP] mysql - php help

2002-03-19 Thread Erik Price
b); // $db is your database connection pointer In the above examples, I've made the assumption that the form is being sent via POST and that you are using PHP 4.1.x with register_globals off, adjust accordingly if this is not the case. Also note that the singlequotes used to surroun

Re: [PHP] SESSION PROBLEM

2002-03-19 Thread Erik Price
On Tuesday, March 19, 2002, at 02:56 PM, karthikeyan wrote: > What does this error means > > - > Warning: Cannot send session cookie - headers already sent by (output > started at /home/web/public_html/karthik1.php:7) in > /home/web/public_html/karthik1.php on line 35 > > Warnin

Re: [PHP] HTML (to XML?) to PDF

2002-03-19 Thread Erik Price
initial document has to be some kind of XML, but XHTML should work in theory. What I just said came out somewhat confusing -- If your initial document is in XHTML form, you should be able to use XSLT, since XHTML is a form of XML. HTH, Erik Erik Price Web Developer Temp Media Lab, H

Re: [PHP] Return the column names of MySQL table?

2002-03-19 Thread Erik Price
On Tuesday, March 19, 2002, at 05:43 PM, Kevin Stone wrote: > I simply need to return a list of column names of a MySQL table. What's > the syntax to do that? SHOW COLUMNS FROM tablename; Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] --

Re: [PHP] HTMLnetscape issue

2002-03-20 Thread Erik Price
is code works EVERYWHERE (in all browsers) but Netscape Navigator 4.xx > versions. You're fighting an unwinnable battle. Give up on Crapscape 4.x, it is full of bugs. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (ht

Re: [PHP] Multipage form

2002-03-20 Thread Erik Price
ecting it to reset all of their work, then they won't be surprised when they try to fill out the same form later and see all of their old values from their session. Good luck 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] cvs data & PHP

2002-03-20 Thread Erik Price
r the latest version of the file, and reads its contents. (This is because I actually want the PHP script to parse the XML and do later things with this info.) Does anyone know how this is done? Rather, can anyone point me to a tutorial or resource on this topic? Thank you, Erik

Re: [PHP] Fwd: html form select list "selected"

2002-03-20 Thread Erik Price
($_POST['display'] == 'true') { $select_if_true = "selected=\"yes\""; $select_if_false = "selected=\"no\""; } elseif ($_POST['display'] == 'false') { $select_if_true = "selected=\"no\""; $select_if_f

Re: [PHP] Apache

2002-03-21 Thread Erik Price
Isn't it just a matter of setting the permissions? apache can't have read access to this directory, that's all. Erik On Thursday, March 21, 2002, at 03:28 AM, jtjohnston wrote: > I'm also looking at this in my .conf. I know putting something here is &

Re: [PHP] Session Varaible Problem

2002-03-21 Thread Erik Price
Have you made sure that the correct values are even being loaded into the session variable containers? IOW, try echo $id; echo $first_name; to make sure that there is actually any value in those variables. Erik On Thursday, March 21, 2002, at 12:22 PM, Randy Phillips wrote: >

Re: [PHP] Apache

2002-03-21 Thread Erik Price
On Thursday, March 21, 2002, at 12:22 PM, Jason Wong wrote: > On Friday 22 March 2002 00:54, Erik Price wrote: >> Isn't it just a matter of setting the permissions? apache can't have >> read access to this directory, that's all. > > > No, he does

Re: [PHP] Storing variables

2002-03-21 Thread Erik Price
d be a lot of overhead for a multi-part form. I wonder how often this technique is actually done? 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] echo and Session Variables

2002-03-21 Thread Erik Price
able in your associative index. $_POST["filename{$i}"] Again, not really an issue for numeric indices. $input[$c] 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] Database Development Price Inquiry?

2002-03-21 Thread Erik Price
rging close to what I should be charging. ... > Any feedback would be greatly appreciated. 40 hrs at $11/hr, no overtime, no benefits. But I get to learn PHP. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php

Re: [PHP] Trap CR or "Enter" possible?

2002-03-22 Thread Erik Price
his value is not present, then the user has not clicked the Submit button. I know that the "value" of a submit input is usually just used to label the button in some way (such as value="Click Here for Free Porn!"), but you can actually test for this value if you have g

Re: [PHP] Trap CR or "Enter" possible?

2002-03-22 Thread Erik Price
t unexpected results. Right, but I was trying to come up with a way for the original poster to test to see if the user had simply hit "enter" or if they had actually hit the "submit" button (not as a test to see if the form was being viewed for the first time). IIRC he was ha

Re: [PHP] cron with php as apache module

2002-03-22 Thread Erik Price
or something? I don't believe it has to be admin-installed, does 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] looking for tutorial on XML parsing of attributes...

2002-03-22 Thread Erik Price
I'm no expert on the XML functions, but post your code and maybe we can figure out what's wrong. Erik On Thursday, March 21, 2002, at 09:24 PM, Scott Brown wrote: > Ok - first off, I've found a few... phpbuilder has a nice number of > references. But every one I

Re: [PHP] Why using this? When....

2002-03-25 Thread Erik Price
But the lesson is the same -- variables can be passed in this fashion for any purpose, not just database access. (It's called "passing a variable in the querystring".) HTH, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP Genera

Re: [PHP] Why using this? When....

2002-03-25 Thread Erik Price
On Monday, March 25, 2002, at 09:49 AM, ...::: Rober2.com :::... wrote: > Ok, I get it. > > Exepet passing information there isn't other meaning right? > Hm? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General M

[PHP] HTTP, Sockets, and CRLF

2002-03-25 Thread Erik Price
HTTP just flexible like that? 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] Echo Informative Text will Script Runs - how ?

2002-03-25 Thread Erik Price
imulate the "page loading" effect) sits in front. When the PHP page has finally loaded, a new JavaScript command to close the "page loading" window executes, or you could have it close automatically after a certain number of seconds. Erik Erik Price Web Develope

Re: [PHP] HTTP_REFERER

2002-03-25 Thread Erik Price
at it requires a ton of code to "wrap" your content in the 'protective' index.html layer, and also you would have to use form buttons rather than hyperlinks (unless you used post_to_host(), see archives if you're not sure what I mean). Erik Erik Price Web Developer

[PHP] using a counter in a foreach loop

2002-03-26 Thread Erik Price
next higher number. The following does not work: foreach ($months) { $i = 1; // do some things $i++; } because in each new iteration of the loop, $i is reset to 1. Is there a way that I can achieve this effect? Thanks for any advice, Erik Erik Price Web Developer Temp

Re: [PHP] using a counter in a foreach loop

2002-03-26 Thread Erik Price
What an embarrassing oversight. I'm sorry, I figured this one out. You don't define the $i counter variable in the loop (DUH). $i = 1; foreach ($months) { // do some things $i++; } Thanks to all those who may respond before reading this.... Erik On Tuesday, March 26, 2002

[PHP] OT - number of chars in querystring

2002-03-26 Thread Erik Price
ome will get cut off. Does anyone know the actual limit? If not, is there a generally-accepted maximum that is used (to assure compatibility with most user agents and servers)? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] cookie problem. Not possible to set and read a cookie on the same page?

2002-03-26 Thread Erik Price
've gotten around this in one of my scripts was to set the cookie, and then use header(location: samepage.php) to refresh the page -- worked fine, and if all you do is set the cookie before calling header() it should be practically unnoticeable. Erik Erik Price Web Developer Temp

Re: [PHP] which php book 2 buy ?

2002-03-26 Thread Erik Price
n you will have no problem noticing the errors, and can use the book as a guide to writing complex web applications. In my case, though, I started learning PHP with this book, and the frustration with code errors drove me to return it to the store. Erik Erik Price Web Developer Temp Me

<    1   2   3   4   5   6   7   8   9   >