Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-19 Thread Erik Price
Brad Wright wrote: Erik, thanks, are you able to pint me to some good reference sources on tokenizer's... i have never come across them before I have been scouring the web, and am coming up a decided blank. :) The only tokenizers I have used are the StringTokenizer and StreamTokenizer classes

Re: [PHP] complicated but fun, please help.

2003-03-18 Thread Erik Price
Daniel McCullough wrote: Yes sorry for not being clear. I am trying to use exec() and system(). I guess I'm trying to see if there is another way to do it, like write to a file and have acron job run every minute or so, or if there is some way to make it seem like I am doing this with the

Re: [PHP] Question about a text file and foreach

2003-03-18 Thread Erik Price
Jim Greene wrote: Hi All, I have a text file that has entries like the following: user1:mbox1: user1:mbox2: I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2'; I then want to print out the data in the $mboxs variable (array) I am trying to use foreach but it does not work..

Re: [PHP] Authentication

2003-03-18 Thread Erik Price
Beauford.2002 wrote: I am looking for a simple authentication script that uses MySQL. I have downloaded about 10 of them (most with no instructions on it's use), but even at that they are not what I need. The PEAR project has 7 different authentication packages, including Auth which I

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
Vernon wrote: I am calculating distances between to record's zip codes using php and have a need to sort the recordset by that value. How do I do something like this? I mean it's not a value in the table that I can use the SQL ORDER BY statement. I want to be able to have the distances closest

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
Vernon wrote: Use the distance you've calculated as the numeric index of an array, pointing to the record that corresponds to that distance. Can you please expalin this statement? Perhaps a tutorial somewhere? I could explain it better if you could post the code that you have so far which

Re: [PHP] php auth instead of .htaccess

2003-03-18 Thread Erik Price
Bryan Koschmann - GKT wrote: Hello, I have gotten used to using .htaccess to protect files/directories, but now I am looking at a need to authenticate against mysql. I have no problem actually getting it to authenticate, but I'm wondering what the simplest way to prevent someone from hitting

Re: [PHP] PHP Processing Order || Function Calls

2003-03-18 Thread Erik Price
CF High wrote: Hey all. I was under the impression that PHP processes all php code first before handing HTML processing over to the browser. http://www.php.net/manual/en/ref.outcontrol.php Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
vernon wrote: I think that maybe I should explain the fist Zip comes from a session, here I've defined the variable. I use the caluation in the code to get the distance and then loop the recordset so that the distance is created each time the record loops through. I have taken many things

Re: [PHP] nstalling PHP

2003-03-18 Thread Erik Price
Marc Bakker wrote: Hello all, I installed PHP, Apache and MySQL. I read the install.txt file that came with php and changed the default values in php.ini and httpd.conf. When I restart Apache and type my local website (127.0.0.1/index.php) IE comes with a 'Save file As' dialog box. Instead of

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-18 Thread Erik Price
Brad Wright wrote: Thanks for the reply Rene, Any change of a code sample of how u did this?? Im not at all experienced in Java. According to the manual, PHP does have some tokenizer functions: http://www.php.net/manual/en/ref.tokenizer.php However, the documentation appears to be lacking as

Re: [PHP] sorting results in PHP

2003-03-17 Thread Erik Price
bill wrote: Hi André, Sorting like that doesn't get it sorted by date. Each row has a lot of fields. It actually needs to be sorted three times by three fields, Year, Month, and Day. Because the query uses a GROUP BY statement, I can't sort it in the query. MySQL offers a DATE column type.

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Erik Price
Poon, Kelvin (Infomart) wrote: I know this topic was discussed but I deleted my previous mail so I can't go back and review them. STFA: http://marc.theaimsgroup.com/?l=php-general My question is, is there a faster way to redirect html pages other than just using meta HTTP-EQUIV=REFRESH

Re: [PHP] Working with dates

2003-03-17 Thread Erik Price
Brad Harriger wrote: I have two variables, $StartDate and EndDate that contain values read from MySQL Date fields. How can I determine if a value entered by the user is between the two dates? I'm using PHP 4.0.6. if ($user_input $StartDate $user_input $EndDate) { // do

Re: [PHP] Looking at individual chars of string

2003-03-17 Thread Erik Price
Bix wrote: Is it possible to look at individual chars of a string? eg: $str = 12345; print $str_1 // Gives 1 print $str_2 // Gives 2 Try this: print $str{0}; // gives 1 print $str{1}; // gives 2 Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: Fw: [PHP] Looking at individual chars of string

2003-03-17 Thread Erik Price
Kevin Stone wrote: Actually as far as the computer knows strings *are* arrays. Access any character within a string in the same mannor as you would access an element in an array. For example: $str = hello world; echo $str[4]; // prints o echo $str[6]; // prints w That works but is deprecated.

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
Charles Kline wrote: What is the difference as in... why one or the other? include('somefile.php'); include(somefile.php); Just wondering... If you had a constant named somefile or php and you use the second syntax, the constant would be interpolated/evaluated to the value of the constant.

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
Erik Price wrote: If you had a constant named somefile or php and you use the second syntax, the constant would be interpolated/evaluated to the value of the constant. Generally I always use single quoted strings unless there's some need for double-quoted strings (like if I want to embed

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
CPT John W. Holmes wrote: Well, the first part is out your butt... :) Yep. I tested it after making the assumption, sure enough I was WRONG. I've got to keep my butt under control, it's getting a little out of hand. To the OP, sorry 'bout that. Erik -- PHP General Mailing List

Re: [PHP] copy ...

2003-03-17 Thread Erik Price
John Taylor-Johnston wrote: Captn John, What the difference? I recognise the code from my attempts at Perl. What's the diff between ^ and *? Is there a doc I can read up more on? ;) Swabbie John Cpt John W. Holmes wrote: What about eregi(TI(.*)¶,$line,$m) might want to use

Re: [PHP] Loop Problem

2003-03-17 Thread Erik Price
[EMAIL PROTECTED] wrote: Ok, here's what I got. I'm trying to create an entire site that grabs all it's information (Page content, titles, link info, etc.) from a MySQL database. In this site I would like to have sub pages of master pages. For instance, Page 1 is a master page, Page 2 is a

Re: [PHP] complicated but fun, please help.

2003-03-17 Thread Erik Price
Daniel McCullough wrote: Where I am having problems at is when they need to update the poppasswd, which is a IMAP or QMAIL file. Plesk has files that will update the system, but it seems that I using the exec() and system() I can access those pl files. From the command prompt it works

Re: [PHP] How to break out of nested loops

2003-03-17 Thread Erik Price
Bix wrote: I have a for loop within a for loop, and need to break out of both together... for ( blah ) { for ( blah ) { if ( true ) { break; } // only breaks out of this loop, how can I break it out of both loops. } } break accepts an optional numeric argument which tells it how many nested

[PHP] function getting redeclared

2003-02-18 Thread Erik Price
; 376 } 377 } I am using PHP 4.3.0 on a RedHat machine with Apache 1.3.x. Thanks for your help, it's been a while since I've used PHP! Erik -- Erik Price email: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] function getting redeclared

2003-02-18 Thread Erik Price
this with methods? Just curious so I don't depend on anything I'm used to from other languages thanks! Erik -- Erik Price email: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: recursion?????

2003-02-18 Thread Erik Price
(knowingly) and therefore can be considered the most dangerous segment of users. (Knowledge being power and all.) Erik -- Erik Price email: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL DB Schema

2003-02-18 Thread Erik Price
--password Erik -- Erik Price email: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL DB Schema

2003-02-18 Thread Erik Price
to describe your table's relationship to other tables. (In a table named registrants, you could have the comment registrants.user_id = users.user_id ) http://www.mysql.com/doc/en/CREATE_TABLE.html Erik -- Erik Price email: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] -- PHP General Mailing

[PHP] escaping quotes for redisplay

2003-02-18 Thread Erik Price
, but it doesn't apply to singlequotes. I suppose I could str_replace it, but I'm wondering how other people handle this situation -- Erik Price email: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] does a form submit from a http page to a https ensure secure data?

2002-07-03 Thread Erik Price
but I'm curious. 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] Setting a cookie and redirecting

2002-07-03 Thread Erik Price
their POST data accidentally, since you've got that GET flag which basically says do not process this form! It's not -secure-, since anyone can remove this flag (even if you used POST), but it will work for Joe User to stop him from accidentally resubmitting. Erik Erik Price Web Developer

Re: [PHP] Re: synchronizing php functions

2002-07-03 Thread Erik Price
the overhead). 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] $_POST into a formatted string, help!

2002-07-03 Thread Erik Price
(); foreach ($_POST as $key = $val) { $arr[] = $key . '=' . $val; } $str = implode('', $arr); 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] addslahes and magic quote woes

2002-07-03 Thread Erik Price
you do a database insert. Then make sure you always stripslash() data returned from a database query. magic_quotes is convenient for newbies, but after a while you'll find it only trips you up, as you've discovered. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL

Re: [PHP] V basic newbie problem

2002-07-03 Thread Erik Price
)) { echo $row_RsSingStanDailybb['DailyBB']; } 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 apache path...

2002-07-03 Thread Erik Price
. (This is assuming you are using Apache.) Go to www.apache.org and read the httpd documentation there for more information about setting up the document root in httpd.conf. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Another Regex Question (General)

2002-07-03 Thread Erik Price
. It represents any *one* of the contained characters. But not more than one. So there is no following at all, since for all intents and purposes the character class matches a single character (unless you use a qualifier like +, ?, or *). Erik Erik Price Web Developer Temp Media Lab

Re: [PHP] Other than substr

2002-07-03 Thread Erik Price
untested. 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] Unable to restart httpd after upgrading PHP

2002-07-02 Thread Erik Price
as a guide 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] Re: Beginner Sessions Question

2002-07-02 Thread Erik Price
everything into smaller scopes, it's not such a big deal. IMHO. This applies to a lot of variable names, in fact. But I agree, in the main body of the script (global scope) it is best to be descriptive. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED

Re: [PHP] Help: Constants

2002-07-02 Thread Erik Price
setting your php.ini to E_NONE and then putting error_reporting(E_ALL) at the top of each of your scripts, and then when the file is migrated to production, comment or remove the line. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Erik Price
. =/ IMHO you're better off, but yes, if you set register_globals = on then you shouldn't need to have retooled your scripts. Did you restart your webserver after you adjusted php.ini? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] Help: Constants

2002-07-02 Thread Erik Price
on it. I'm also kind of an amateur.) 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: Executing a php script periodically using crond

2002-07-02 Thread Erik Price
. But all is not lost. You can have the cron job execute a shell script that executes lynx or links or wget, or even just executes the command directly from the cron job, and have that lynx/links/wget request a PHP script that does what you want done. Erik Erik Price Web Developer Temp Media

Re: [PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Erik Price
it is that needs to be done and have cron execute that, this saves you from a whole window of exploit (the web server). But if you don't have Perl or don't know Perl, that's a problem. Good luck, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General

Re: [PHP] Regular Expression Problem

2002-07-02 Thread Erik Price
/b, $var); because \w is the same as [A-Za-z0-9_] (though perhaps it is in POSIX regexes too). 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] find and replace in php

2002-07-02 Thread Erik Price
. ']'; $this-finalOutput = str_replace($template_name, $value, $this-finalOutput); } return $this-finalOutput; } } Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] Have you seen this host?

2002-07-02 Thread Erik Price
don't know about Shoutcast, but Pair.com is supposed to be good. If you can get DSL or some service that doesn't block port 80, you may as well just host your own server (unless you want this for commercial use, in which case why not pay an ISP to host your own server?). Erik Erik

Re: [PHP] Re: Beginner Sessions Question

2002-07-02 Thread Erik Price
to writing code, and objects may not be your thing -- that's okay. 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] Populate Popup Menu from Database

2002-07-01 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] Keeping Secrets in PHP Files

2002-07-01 Thread Erik Price
all those files. 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] Javascript to PHP?

2002-07-01 Thread Erik Price
. If not, let me know. 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] strip_tags

2002-07-01 Thread Erik Price
On Monday, July 1, 2002, at 11:09 AM, BB wrote: OK, this is a 3x3 table pasted in from word! It is against the rules to post HTML code generated by Microsoft Word. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Register globals off

2002-07-01 Thread Erik Price
will end up with the string 'contents' in a variable called $_GET['data'] . Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with regex in preg_match();

2002-07-01 Thread Erik Price
this: preg_match('/siteUserList.cgi\?group=site177(\d\d+)?/', $QUERY_STRING) 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] Populate Popup Menu from Database

2002-07-01 Thread Erik Price
you're doing a lot of work with a lot of data. 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] extracting data from text file

2002-07-01 Thread Erik Price
line breaks which are not \n but rather \r\n and \r respectively IIRC. 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] securing an 'includes' dir

2002-06-28 Thread Erik Price
(SUID) that allows a user to change the group association of the file to that of the web server? Yet without making the user a part of the group itself, otherwise all users would be able to see all of these files... Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL

Re: [PHP] checking

2002-06-28 Thread Erik Price
is false. I tried with $lastname= but no change. how can I check if a varible is empty or not? http://www.php.net/empty 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

Re: [PHP] Keeping Secrets in PHP Files

2002-06-28 Thread Erik Price
provided some kind of script that does this on your behalf. Which means that anyone else who has this ability can read the file too (since they are a member of websecret). It's tough. Shared hosting security is a difficult issue. Erik Erik Price Web Developer Temp Media Lab, H.H

Re: [PHP] Another Pop-Up problem..

2002-06-27 Thread Erik Price
the threadID GET value is different in each one, the same data is coming up. So you need to check your back end code. 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

Re: [PHP] Display Records in Multiple Pages

2002-06-27 Thread Erik Price
. Justin, Out of curiosity, why is it only expandable to 1000 records? What happens after that? I thought that (in theory) you can keep going with this kind of scheme. Or is there a limitation in MySQL that I'm not aware of... ? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown

Re: [PHP] Compiling PHP with XML????

2002-06-27 Thread Erik Price
(start Apache) Then test to make sure that MySQL and Apache are working by requesting a phpinfo() page or MySQL-generated page. Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] MySQL fetch data

2002-06-27 Thread Erik Price
mysql_fetch_object(). http://www.php.net/manual/en/function.mysql-fetch-object.php Or maybe not. It's a matter of preference and performance (I think the object version is a bit more expensive). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General

Re: [PHP] OOP assistance request

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 04:44 AM, Andrew White wrote: On Wednesday, June 26, 2002, at 04:48 pm, Erik Price wrote: My problem is that I have no way to know which type of object to instantiate in advance -- all I have is this primary key. Using the primary key to instantiate

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread Erik Price
not implement every single detail, but get the bulk of it. Life is one big learning exercise anyway 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] Detecting Browser Type/OS from HTTP_USER_AGENT

2002-06-27 Thread Erik Price
Mozilla as its internal browser engine comes along and changes the whole paradigm. Boom, you now have to change your entire site because now most people aren't using IE. Coding to the standards is your best option. In my opinion. Good luck. Erik Erik Price Web Developer Temp Media

[PHP] performance, memory objects

2002-06-27 Thread Erik Price
.= $photo_obj-display(); $photo_obj = null; unset($photo_obj); } // do something with $photos_string Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Erik Price
; break; default: // you can also call this one case 'intro' if you want // display the instructions for this page } HTH, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] HTTP1.1

2002-06-27 Thread Erik Price
shouldn't be formatted like the first example above... I think it is okay as long as you are staying within the same virtual host. 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

Re: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Erik Price
the tarballs, totally. Not just for the modules but for Apache too. It's just easier unless you have customized code in your Apache source tree. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: One more 'Headers Already Sent' error. :-(

2002-06-26 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] Passing Form Values

2002-06-26 Thread Erik Price
new script you can access these GET vars from PHP or from JS! 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] Security problem?

2002-06-26 Thread Erik Price
to be in the docroot). But mod_php is faster than CGI PHP and can handle more simultaneous requests. Right? 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] appending to XML file before closing tag

2002-06-26 Thread Erik Price
writing special code to handle these kinds of exceptions. 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: MySQL Problem with PHP

2002-06-26 Thread Erik Price
faster anyway. 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] Seperating presentation from logic

2002-06-26 Thread Erik Price
available from the Sun web site). That's why server side stuff like PHP will probably always be invaluable. 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] Web Services

2002-06-26 Thread Erik Price
); while(!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } 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] OOP assistance request

2002-06-26 Thread Erik Price
to be able to figure out which type of project it is (say, from the DB) and then use this to determine which object type to instantiate? Thanks very much, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] Compiling PHP with XML????

2002-06-26 Thread Erik Price
in php supported automatically? Yes. Since 4.1.x at least. But for XSLT you need to get expat and Sablotron and link them into the compile (with the appropriate ./configure options). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General

Re: [PHP] dynamically creating variable names

2002-06-26 Thread Erik Price
; $i 10; $i++) { $var{$i} = $i + 6; echo \$var$i == . $var$i . \n; } $var0 = 6 $var1 = 7 $var2 = 8 $var3 = 9 $var4 = 10 $var5 = 11 $var6 = 12 $var7 = 13 $var8 = 14 $var9 = 15 Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General

Re: [PHP] PHP does not work??

2002-06-26 Thread Erik Price
4.1.x release notes if you want to read them for yourself. 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] server security

2002-06-26 Thread Erik Price
to make yours system more secure. http://www.w3.org/Security/Faq/ 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: PHP does not work??

2002-06-26 Thread Erik Price
configuration directives are decided... ? 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] passing variable arguments from select

2002-06-26 Thread Erik Price
/select /form\n; In the test.php page, the selected value will be found in the $_POST['example'] 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

Re: [PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread Erik Price
at www.domain.com/image.gif. 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: PHP does not work??

2002-06-26 Thread Erik Price
, is data that they can see. 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: PHP does not work??

2002-06-26 Thread Erik Price
this be affected and what is the work around to this one. You now refer to a session variable as $_SESSION['variablename']. 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

Re: [PHP] Java Pop UP...

2002-06-26 Thread Erik Price
/a; 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] casting user-defined objects

2002-06-26 Thread Erik Price
purpose the object type reference has. 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] appending to XML file before closing tag

2002-06-25 Thread Erik Price
, then you'll have to come up with a creative method for capturing them and storing them, then dynamically determining their length and do the same thing, then append the ending tag (whatever it may be). I would use regexes to do this part. Erik Erik Price Web Developer Temp Media

Re: [PHP] char function

2002-06-25 Thread Erik Price
)) { print $str does contain the '@' symbol.\n; } 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] How to get request url string and server hostname

2002-06-25 Thread Erik Price
[] = $getVarName . = . $getVarVal; } $getVarsStr = implode(, $getVars); $request = http://; . $_SERVER['HTTP_HOST'] . / . $_SERVER['PHP_SELF'] . ? . $getVarsStr; Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] [php] How to get request url string and server hostname

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 03:22 PM, Erik Price wrote: However, I don't like using $_SERVER['QUERY_STRING'] because if there are empty GET variables, it grabs them. So, if you prefer, you can do this: $getVarsArr = array(); foreach ($_GET as $getVarName = $getVarVal

Re: [PHP] I changed my root password and now can't connect to MySQL

2002-06-25 Thread Erik Price
. You need to grant privileges to log in as root remotely, which is probably not recommended. Basically a GRANT statement that lets people access MySQL as root from your IP address. Better to create a new user (such as phpuser or something) and enable that one instead. Erik Erik

Re: [PHP] Security problem?

2002-06-25 Thread Erik Price
of the apache group then you can see all of the protected files in that group). Also I have a directive that prevents Apache from serving any file with .inc suffix, and this file does, so Apache (hopefully) won't serve this data to the world via port 80. Erik Erik Price Web Developer Temp

Re: [PHP] Menu Selections Dynamic from a Database

2002-06-25 Thread Erik Price
event handlers in the first listbox HTH, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More on removing item from cart

2002-06-25 Thread Erik Price
to unset() the unchecked boxes, or determine the unchecked values based on what is NOT checked, etc. 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

Re: [PHP] PHP 4.2

2002-06-24 Thread Erik Price
://www.php.net/manual/en/function.ini-set.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] Whos online at the moment in PHP

2002-06-24 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

  1   2   3   4   5   6   7   >