Re: [PHP] Baby's First Regex! (Repost - Please Help)

2001-01-09 Thread Ignacio Vazquez-Abrams
Phone: +61 7 3351 6677 > Global Catalogs Pty Ltd Phone: +61 7 3351 4777 > Proably the only way to do this would be to write a custom parser. REs are amazing for showing you what they found, but are pathetic at showing you what they missed. -- Ignacio Vazquez-Abrams

Re: [PHP] php 4 isn't parsing php.3 files

2001-01-10 Thread Ignacio Vazquez-Abrams
Systems.com > The problem's not in the php.ini file; it's in httpd.conf, srm.conf or access.conf (not sure which one under SuSE). There should be a line that reads "AddType application/x-httpd-php .php" or something to that effect. Add " .php3" to the end of that

Re: [PHP] PHP simulator

2001-01-10 Thread Ignacio Vazquez-Abrams
rt of webserver (Xitami isn't bad if you need something lite), you can use PHP as it was meant to be (no flames please). -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] returning an array

2001-01-11 Thread Ignacio Vazquez-Abrams
ning a generic > sized array? such as 'return array ($var[]);' ? I tried it, and it > yelled at me, so I know that the above syntax is wrong, but is there an > "easier" way? > Thanks! > > -Jim > Have you tried 'return ($var)'? -- Ignacio Vazquez-A

Re: [PHP] Walking Through Array Values, Simple?

2001-01-11 Thread Ignacio Vazquez-Abrams
with the query and display, i just need to know how to get each >instance into a variable in a loop. > > thanks a lot > Try: while (list($prodid, $qty)=each($cart)) { ... }; -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Performance question

2001-01-11 Thread Ignacio Vazquez-Abrams
by RFCs 821 and 1225. > Yes, because that file will be put through the parser regardless of whether or not there's any PHP in it. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] PHP newbie question

2001-01-11 Thread Ignacio Vazquez-Abrams
n PHP 4, it's just that no one's gotten around to fixing the manual. And true and false are constants in the same manner as 5 and "Hello World!". Integers are signed longs (32 bits) in PHP. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (h

Re: [PHP] help database creation....

2001-01-11 Thread Ignacio Vazquez-Abrams
b($db_name, $connect) or die("Couldn't create database."); > > if ($result) > { > $msg = "Database has been created!"; > } > ?> > > > Create a MySQL Database > > > > > > > Does that user have universal create rig

Re: [PHP] serialized respresentations of variables

2001-01-11 Thread Ignacio Vazquez-Abrams
> > Ted > Actually, "i" represents "Integer", "b" represents "Boolean", and "n" represents "Null". Don't ask me about the last one; I only saw it once and I don't know how it got there. -- Ignacio Vazquez-Abrams <[E

RE: [PHP] mixing HTML and PHP code

2001-01-11 Thread Ignacio Vazquez-Abrams
emacs sucks! vi forever! :P -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PDF error with pdf_open_png

2001-01-11 Thread Ignacio Vazquez-Abrams
; > > I get the error: Cannot find server or DNS Error (The page cannot be > displayed), and none of the page displays. > > Does anyone know what's wrong? > Try: $logo = pdf_open_png($pdf, "{$CFG->imagedir}/logo.png"); At least, I assume that's what yo

Re: [PHP] looping

2001-01-15 Thread Ignacio Vazquez-Abrams
> > echo ""; > echo ""; > echo $name; > echo ""; > echo "".$cost.""; > echo ""; > } > echo ""; > > > Jerry Lake > Join the club :) "; echo ""; $i=0; $numrows=mysql_num_row

Re: [PHP] Help with IMAP_open please

2001-01-15 Thread Ignacio Vazquez-Abrams
d line is: > > $connection = IMAP_Open("{localhost:143}", $name, $psw); > > tia > Dezider > Did you activate it in inetd or xinetd? Did you restart inetd or xinetd? -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.ne

Re: [PHP] How to handle multiple lines in PHP?

2001-01-16 Thread Ignacio Vazquez-Abrams
in advance. > The newline char in PHP is '\n'. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Working out the name of the day given a date

2001-01-16 Thread Ignacio Vazquez-Abrams
it doesn't have to be exactly this > date format that is used for the input, but I do need the name of the day on > the output! > > I'm hunting around at the moment but I haven't had any joy so far, I thought > I'd see if anyone's already invented this wheel... &

Re: [PHP] xmltree() function - what PHP version?

2001-01-16 Thread Ignacio Vazquez-Abrams
7; for more info. > > Hrishi > No, you need --with-dom. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Ignacio Vazquez-Abrams
Yes, you're missing the fact that it's a lowercase 'L', and not in fact the numeral '1'. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] Netscape's back button not working like Explorer's...Why?

2001-01-16 Thread Ignacio Vazquez-Abrams
h on your confirmation screen (and then write the code for that, of course). It's not pretty, but it can't fail. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Fw: what is wrong with this sniplet? oops! forgot to closetag

2001-01-16 Thread Ignacio Vazquez-Abrams
rt did not >apear on the page, although the source can be seen using view source. > What did I do wrong? > cheers > Jack > [EMAIL PROTECTED] > "There is nothing more rewarding than reaching the goal you set for yourself" > If you're viewing it with Navigator,

Re: [PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread Ignacio Vazquez-Abrams
> Has anyone done this using the two together? > > Kevin Cawthorne > Knowing which web server you're using helps, but if you're using Apache, the way to do it is to turn it off in php.ini and then turn it on in httpd.conf or .htaccess or wherever for the directory/location phpMyA

Re: [PHP] Variables in 'friendly' urls

2001-01-16 Thread Ignacio Vazquez-Abrams
sing the all-powerful mod_rewrite. That way you could request http://www.example.com/team/tigers and it could automagically get converted to http://www.example.com/profile.php3 with $team set to "tigers". -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mai

Re: [PHP] Images ???

2001-01-16 Thread Ignacio Vazquez-Abrams
and the image mimetype when the image is uploaded. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] php'ed mysql query

2001-01-16 Thread Ignacio Vazquez-Abrams
<= CONCAT > (SUBSTRING(zip , '1' , LENGTH (zip) - LENGTH (range) ), range)"; > > > > > Christopher C. M. Allen > Does the MySQL user ID you're connecting as have select permissions on the database? -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>

Re: [PHP] How to escape from a function?

2001-01-16 Thread Ignacio Vazquez-Abrams
ht operand and returns that, otherwise returns the result of the left. The above usage is basically a cheat-type shortcut for: if (!($db=mysql_connect("localhost","root","password"))) die ("could not connect"); -- Ignacio Vazquez-Abrams <[EMAIL PR

Re: [PHP] MySQL - How to transfer a query resault into a variable?

2001-01-16 Thread Ignacio Vazquez-Abrams
54) 4615503 > E-mail: [EMAIL PROTECTED] > Homepage:www.sed.is <- New Homepage! > -- > You have to give the table a key field (autoincrement primary) that you can use as a handle to pass to the next page. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP Gene

Re: [PHP] [PHP-DB] PHP+MySQL charset problem

2001-01-17 Thread Ignacio Vazquez-Abrams
MySQL client library patch gets committed. 3) Grab the recently-submitted internal MySQL client library patch and apply it yourself. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Creating a text file

2001-01-17 Thread Ignacio Vazquez-Abrams
next; > end; > end;//with > CloseFile(TxFile); > end; > > Now I want to create the same sort of thing in Php, could someone please help! > Thanks > Wade > [EMAIL PROTECTED] > -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mail

Re: [PHP] Rounding a number up if the number is anything more thana whole number

2001-01-17 Thread Ignacio Vazquez-Abrams
nt Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > ---- > ceil() -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Mailto: tag, how do I insert line breaks..?

2001-01-17 Thread Ignacio Vazquez-Abrams
g > to get breaks in my source, or what you see on the screen, but line breaks > in the email text.. > > Thanks. > Bye Bye > David > RFC 2368 says that you use "%0D%0A" for newlines and "%20" for spaces (Section 5: Encoding). Remember: the RFCs are you

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Ignacio Vazquez-Abrams
); Um, no. $relationsresult isn't an array, it's a MySQL result resource. Use mysql_data_seek() instead. > Thanks again for your help so far! > Maurice > -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Register globals when option is turned on

2001-01-17 Thread Ignacio Vazquez-Abrams
;On" therefore, I > thought of making a check in the "config.inc.php" if the option is set, and > if not, set it. > > Is there a function that I can call? > > - Carsten > Ugh. Don't do it that way. Instead use , , or .htaccess to turn it on for phpMyAdm

Re: [PHP] < Levels of Access >

2001-01-17 Thread Ignacio Vazquez-Abrams
ndividual users specified at certain points, why don't you say that a user has to be a member of a certain group? That way in order to open an access lock for a user, all you have to do is add them to the group. You could even make the security levels groups themselves. -- Ignacio Vazquez-

Re: [PHP] LDAP access to MS Exchange server

2001-01-17 Thread Ignacio Vazquez-Abrams
$result = ldap_search($linkID,$dn,$filter); <<<<<<< AT THIS LINE > > > > As I said, I am new to LDAP but I was assuming I could perform some kind of > search to determine the schema and then access information based on that. > Is this true, or do I need t

Re: [PHP] mysql_fetch_row() and mysql_fetch_array()?

2001-01-17 Thread Ignacio Vazquez-Abrams
row[] does not contain any data, but when I changed it to: > $row = mysql_fetch_array($result) ... it worked just fine. > > So what is the difference? > /Jimmy > mysql_fetch_row() uses numeric indices, whereas mysql_fetch_array() can also provide string indices. -- Ignacio Vazquez

Re: [PHP] String to Variable converstion

2001-01-17 Thread Ignacio Vazquez-Abrams
a formula into my > "solution for r" loop, it inserts a constant for $form. > > I think my solution is to build the formula as a string and then insert it > into my "solution for r" loop, convert it back to a real formula and then > iterate for the solution. Is thi

Re: [PHP] PHP Editors

2001-01-18 Thread Ignacio Vazquez-Abrams
hlighting problems, but no big deal. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] AW: [PHP-WIN] best user authentication method?

2001-01-18 Thread Ignacio Vazquez-Abrams
use their domain logon password as their e-mail password, and we always get rave reviews over this feature :) -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: [PHP] quick question on the passed variables between scripts

2001-01-18 Thread Ignacio Vazquez-Abrams
(isset($cb04)) $sum = $sum + $cb04; > if (isset($cb05)) $sum = $sum + $cb05; > if (isset($cb06)) $sum = $sum + $cb06; > if (isset($cb07)) $sum = $sum + $cb07; > if (isset($cb08)) $sum = $sum + $cb08; > if (isset($cb09)) $sum = $sum + $cb09; > if (isset($cb10)) $sum = $sum + $cb10; >

Re: [PHP] preg_replace problem

2001-01-18 Thread Ignacio Vazquez-Abrams
finds the first match (if it needs to match at all). > > In perl: > + <- means match 1 or many times > * <- means match 0 or many times > ? <- means match 0 or 1 time > > Could someone help me see my error... i'm driving myself bananas trying to > find it. Perhaps

Re: [PHP] isset inside echo?

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > it is possible to use isset inside a echo? > > like this: > $checked = "CHECKED"; > $nothing = ""; > echo "".isset(cb[0])?$checked:$nothing.">"; > > Rom > isset() is a p

Re: [PHP] find out if a number is a multiple of three

2001-01-18 Thread Ignacio Vazquez-Abrams
nks, > Brett > if (!($number%3)) print("$number is divisible by 3!"); -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] Can a PHP program recieve an e-mail and write it to afile???

2001-01-18 Thread Ignacio Vazquez-Abrams
x27;s standard input whenever the message is sent to an arbitrary address. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Clear an array

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Brandon Orther wrote: > How can I clear an array of all it's values. > > Thank you, > > > Brandon Orther > $array=Array(); -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Maili

Re: [PHP] Clearing a variable

2001-01-18 Thread Ignacio Vazquez-Abrams
-994-6364 > www.webintellects.com > ------------ > unset($var); -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] srtoring user selection on the database...

2001-01-18 Thread Ignacio Vazquez-Abrams
gt; } > > } > Even shorter: $acc=implode(",", array_flip($cb)); > // by the way this: $acc=.$key would be a valid command? like the c++ $a =+ > $b > Other way: $acc.=$key, $a+=b > Rom > -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP Genera

Re: [PHP] srtoring user selection on the database...

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > Even shorter: > > $acc=implode(",", array_flip($cb)); > Assuming, of course, that the original values are unique (oops!). -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www

Re: [PHP] srtoring user selection on the database...

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > > > Even shorter: > > > > $acc=implode(",", array_flip($cb)); > > > > Assuming, of course, that the original values are unique (oops!). &

Re: [PHP] Where is information about Forms?

2001-01-18 Thread Ignacio Vazquez-Abrams
ge.variables.external.html -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] How to get userID/password from the browser session

2001-01-18 Thread Ignacio Vazquez-Abrams
browser session, > especially in PHP? > > Thank you very much in advance. > > David > $HTTP_SERVER_VARS["PHP_AUTH_USER"] and $HTTP_SERVER_VARS["PHP_AUTH_PASSWD"], IIRC. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://

Re: [PHP] Where is information about Forms?

2001-01-18 Thread Ignacio Vazquez-Abrams
in php.ini. > Gfunk - http://www.gfunk007.com/ > > I sense much beer in you. Beer leads to intoxication, intoxication to > hangovers, and hangovers to... suffering. > -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Can a PHP program recieve an e-mail and write it to afile???

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Chris Hayes wrote: > > > Date sent:Thu, 18 Jan 2001 15:20:24 -0500 (EST) > From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > To: Jeremy Bowen <[EMAIL PROTECTED]> > Copies to:

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-18 Thread Ignacio Vazquez-Abrams
nfortunately EditPlus is not a WYSIWYG editor. FrontPage is still better for tables and fluff like that. Mind you, the two do work together somewhat well (for an MS product), all things considered... -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http

Re: [PHP] (PHP+Linux+Apache+MySQL)+(Windows+Explorer)

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Andrés de la Varga wrote: > Can I have (PHP+Linux+Apache+MySQL)+(Windows+Explorer) in the same machine > to develope stand alone? > > Andrés de la Varga > http://www.vmware.com/ -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP Gener

RE: [PHP] Ultimate Editor

2001-01-18 Thread Ignacio Vazquez-Abrams
ss-platform. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Database Connections - permanent or something else?

2001-01-16 Thread Ignacio Vazquez-Abrams
connections are more efficient in that they don't need to open the connection each time. Unless you have an overwhelming need to limit concurrent connections to your MySQL server, you should probably be using persistent connections. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]

Re: [PHP] ENC: Datasets

2001-01-19 Thread Ignacio Vazquez-Abrams
g around arbitrarily like that, should you? ;) -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Date/Time Formatting

2001-01-19 Thread Ignacio Vazquez-Abrams
hey're MySQL questions :) For the future date, add "live_date<=NOW()" to your WHERE clause in your select queries. As for the date format, MySQL only supports ANSI format (-MM-DD) for input, but you can use the DATE_FORMAT() function to change the output. You'll have to u

Re: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Ignacio Vazquez-Abrams
x27;ll just echo out > > > LoggedIn() as part of the string. > > > > Yeah, I didn't think so. But I knew that '' behaves differently > > than "". I just wasn't sure of the exact details of the differences. > > > > Chris > Singl

Re: [PHP] RE: unserialize() unexpectedly returns a boolean

2001-01-19 Thread Ignacio Vazquez-Abrams
8 AA Avenue\";s:4:\"city\";s:11:\"Los > Angeles\";s:5:\"state\";s:1:\"5\";s:7:\"zipcode\";s:5:\"0\";s:7:\"countr > y\";s:13:\"United States\";s:5:\"phone\";s:14:\"(000) > 000-\";s:3:\

Re: [PHP] session_start problem

2001-01-19 Thread Ignacio Vazquez-Abrams
ID=ba606b5a90dbb4410417b4c612aaf1c9"">Contact LOGOUT > > do i do something wrong ? can i put this message somehow off ? > > everything else work fine.. sessions and so.. just this two lines are a > bit disturbing me... > > markus > Are you using quotes in your

Re: [PHP] problem with file upload

2001-01-19 Thread Ignacio Vazquez-Abrams
Night: > Don't miss the Zend Web Store's| There's not enough room here... > Grand Opening on January 23, 2001! | Start here: > http://www.zend.com| http://l-i-e.com/artists.htm > Actually, the patch went in today. Pick up the CVS tomo

Re: [PHP] question on time-based function

2001-01-19 Thread Ignacio Vazquez-Abrams
WinAt or the Task Scheduler. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
quot; > > And if $Name was sent through as "moron pratt" would it still pick it up?? > > TIA for any help > > Ade > Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name') LIKE '%'+word+'%'" and count how

Re: [PHP] multidemention array question(s)

2001-01-19 Thread Ignacio Vazquez-Abrams
ff", "Off", ""), > "s22" => array("Off", "Off", ""), > "s23" => array("Off", "Off", ""), > "s24" => array("Off", "Off", ""), > "s25" => array("Off", "Off", ""), > "s26" => array("Off", "Off", ""), > "s27" => array("Off", "Off", ""), > "s28" => array("Off", "Off", ""), > "s29" => array("Off", "Off", ""), > "s30" => array("Off", "Off", ""), > "s31" => array("Off", "Off", ""), > "s32" => array("Off", "Off", ""), > "s33" => array("Off", "Off", ""), > "s34" => array("Off", "Off", ""), > "s35" => array("Off", "Off", ""), > "s36" => array("Off", "Off", ""), > "s37" => array("Off", "Off", ""), > "s38" => array("Off", "Off", ""), > "s39" => array("Off", "Off", ""), > "s40" => array("Off", "Off", "") > ); > > ?> > > Now I am creating forms and tables and need to retrieve this info I'd > like to say something like: > > if switch s23 is availbe to the admin pages do this, else do that. if ($departments["s23"][1]=="On") { ... } else { ... }; > > and > > echo switch 34's name echo $departments["s34"][2]; > > Little help? > > Mike > -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
quot; and count how many rows are returned. No need to re-invent the > wheel. > > -- > Ignacio Vazquez-Abrams >> > > > Yeah problem is he has no database support from his host > > Ade > Ouch. All is not lost, however: $words=Array( "f***", "

RE: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, DanO wrote: > > why use a DB? > > just create an array of dirty words then loop your input thru it with a > regex. > > DanO > Because a DB would probably be faster than creating an array and looping through it with a regex. -- Ignacio Vazquez-A

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
o the OTHER way :) -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Egan wrote: > On Fri, 19 Jan 2001 14:21:50 -0500 (EST), Ignacio Vazquez-Abrams > <[EMAIL PROTECTED]> wrote: > > >>> Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name') > > >> Yeah problem is he has no

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
"BAD WORD"; > echo "BAD WORD"; > echo "I'M TELLING"; > } > } > > -Sterling > That method suffers from the dictionary problem that Egan brought up. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing Li

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Ignacio Vazquez-Abrams wrote: > On Fri, 19 Jan 2001, Sterling Hughes wrote: > > > I'm saying use the same method, but use an array and avoid the strpos() > > function: > > > > $words = preg_split("//", $data); > > for

Re: [PHP] question (as if anything else would be in an email to thelist...)

2001-01-19 Thread Ignacio Vazquez-Abrams
> } > file://--> > > > echo " Select which location you want this to > apply to. onChange=\"changeValue(this.options[this.selectedIndex].value);\">"; > > $i=0; > > while ($locidval = mysql_fetch_object($locinfo)){ > echo "Lo

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
sion... > > _Sterling > It still suffers from failing on "goodf***" and "eats***anddie" because of the lack of spaces. That's why I had to use strpos(). -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
earches... > > -Sterling > Huh? Whu? Okay, now I'm confused. What do you mean by "take em away"? BTW, I dug through the PHP source, and strpos() with any length search is as efficient as the underlying system's memcmp() implementation. It doesn't do any special cas

Re: [PHP] Question about new features of PHP4!

2001-01-19 Thread Ignacio Vazquez-Abrams
orry first. > > 1. What is "Referer" in a HTTP header, what does it mean? It's the web page that the browser was just at. > > 2. If I have question about mySQL, where can I raise question? > Is there any newsgroup which is specially for mysql? Try http://www.m

Re: [PHP] Question about new features of PHP4!

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Andrew Rush wrote: > > On Friday, January 19, 2001, at 04:20 PM, Ignacio Vazquez-Abrams wrote: > > > > 1. What is "Referer" in a HTTP header, what does it mean? > > > > It's the web page that the browser was just at. > > my

Re: [PHP] does chdir() change include_path on the fly? HELP

2001-01-19 Thread Ignacio Vazquez-Abrams
also located in > www.blah.com > the problem is blah2.php looks for blah3.php and blah4.php in > www.blah.com/blahdir > > will chdir() fix this? or is there another way? > > Thanks!! > > - Noah > Two solutions come to mind: 1) Use a variable to store the directory you

Re: [PHP] Profanity Filter

2001-01-22 Thread Ignacio Vazquez-Abrams
quot;Okay, valid name."; > }; > It may have to do with the fact that you're using == in the while instead of === to also include type checking. If you're using PHP 3 you should say !strlen($done), otherwise the while clause will be true if the profane word starts at the beginning

Re: [PHP] Newbie: array help....

2001-01-22 Thread Ignacio Vazquez-Abrams
URL" > ) > ); > > and am trying to list only a portion of it. > E.g., how can I reference only $bikes["Road"] > in the snippet below? > > while ( list($type, $subarray) = each($bikes) ) { > while ( list($key, $val) = each($subarray) ) { >

Re: [PHP] serve local file but remote url

2001-01-22 Thread Ignacio Vazquez-Abrams
ample)? > > i'm looking at mod_rewrite, but it what i describe above doesn't seem > possible. is it? > > thx - eric > Have you looked at the [P] flag? It allows Apache to act as a proxy for external pages. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP

Re: [PHP] file storage/downloader...

2001-01-22 Thread Ignacio Vazquez-Abrams
o file/directory permissions problems, unlimited flexibility for authentication... what more could you want? -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Newbie: array help....

2001-01-22 Thread Ignacio Vazquez-Abrams
"Schwinn Powermatic Pro" => "url" ), "Kids" => array( "Schwinn Tiger" => "put URL here", "Schwinn Bumblebee" => "URL" ) ); while (list($val, $key)=each($bikes["Road"])) { ?> Works perfectly. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] <- functions returning multiple values: ->

2001-01-22 Thread Ignacio Vazquez-Abrams
; function somefunc() { return Array(10, 20); }; -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] imap_createmailbox

2001-01-22 Thread Ignacio Vazquez-Abrams
gen * > * www.wa-p.de - mailto:[EMAIL PROTECTED] * > ** > You don't, because the function call you're using doesn't actually create any new accounts; it just creates new folders under the account it's logge