[PHP] Re: How many files can be in one directory?

2002-02-26 Thread Philip Hallstrom
True, but by putting them in multiple directories if you ran out of room you could move one of those directories to a new disk/filesystem thereby making more room... On Tue, 26 Feb 2002, Andy wrote: > So this means, that I can not increas the amount by splitting the files into > more than 1 dire

[PHP] Re: arithmatic operation inconsistant

2002-02-28 Thread Philip Hallstrom
as $ns1 is greater than 1,000,000 it is *always* going to evaluate to 1 in your third line. At least I think so... on my machine if I do this: $x = number_format("1,234 + 5"); $x gets set to "1". Take out all but the last number_format() function and see what happens. -ph

[PHP] Javascript question...

2002-03-01 Thread Philip Jeffs
Hi, I know this is a PHP list but i thought someone might be able to help me out. I was looking at the Levi's website the other day and i noticed a cool script on there for opening pop-ups. They have managed to get rid of the usual window borders altogether and it looks really good. They have

[PHP] Re: Parsing Content

2002-03-04 Thread Philip Hallstrom
You're best bet might be to see if your favorite sites have RDF/RSS files that you can use... See here for more info... http://www.devshed.com/Server_Side/PHP/PHPRDF/page1.html On Mon, 4 Mar 2002, Jonathan Duncan wrote: > I want to make a web site that displays news headlines from my favorite

[PHP] Re: Parsing out attachments in mail.

2002-03-04 Thread Philip Hallstrom
http://www.phpguru.org/pear/contents.html and look at the mimeDecode.php script. Or browse through the PEAR files that come with PHP... Or, if your PHP is compiled with imap support check out some of the imap functions. -philip On Mon, 4 Mar 2002, Seth Northrop wrote: > > Does anyon

[PHP] Re: Reading unusual stdin

2002-03-04 Thread Philip Hallstrom
(not tested) $fd = fopen("php://stdin", "r"); while( !feof($fd) ) { $line = fgets($fd, 8192); } fclose($fd); On Mon, 4 Mar 2002, Ken Tossell wrote: > How would you read a multi-line stdin in php? The scripts I see all break > after one line. > > > > -- > PHP General Mailin

[PHP] Re: OOP .. I just don't get it.

2002-03-05 Thread Philip Hallstrom
get some overhead, but that's the price you pay. Does that help? Search the net for OOP tutorial and I'm sure you'll find some better examples and reasons. -philip On Wed, 6 Mar 2002, mojo jojo wrote: > Hi > > I've been using php for a while now but I have not got

[PHP] Looking for a combo of include() and eval() ????

2002-03-06 Thread Philip Hallstrom
What I really want is a include_string() function. Anyone know if something like this exists? I looked, but couldn't find it. I also looked through the source code and while I found the parts that deal with includes/evals I don't know enough to know how to add it. Any and all

[PHP] Re: Looking for a combo of include() and eval() ????

2002-03-06 Thread Philip Hallstrom
Looking around, I see someone else has submitted a feature request for this exact thing... http://bugs.php.net/bug.php?id=5435 Not that this helps *me*, but there's more than one of us :) On Wed, 6 Mar 2002, Philip Hallstrom wrote: > Hi - > Here's my dilema. > > in

[PHP] Re: Looking for a combo of include() and eval() ????

2002-03-06 Thread Philip Hallstrom
eature request for > this exact thing... > > http://bugs.php.net/bug.php?id=5435 > > Not that this helps *me*, but there's more than one of us :) > > On Wed, 6 Mar 2002, Philip Hallstrom wrote: > > > Hi - > > Here's my dilema. > > > > inclu

[PHP] Re: Crontab

2002-03-06 Thread Philip Hallstrom
Try... lynx -dump -philip On Thu, 7 Mar 2002, Uma Shankari T. wrote: > > > Hello, > > I am facing some problem in the crontab...Can anyone tell me how to > solve this > > Actually i have written the php script to send mail to the users after a > week.I

[PHP] Re: HTML Buffer

2002-03-08 Thread Philip Hallstrom
Take a look at flush(). It might help... it might not if the web server doesn't want to send the data until it's buffers are full... at least that's my undertanding. On Fri, 8 Mar 2002, Mario Montoya [iso-8859-1] Martínez wrote: > Well, yes. But I think I may still need to output things to the

[PHP] upload status...

2002-03-11 Thread Philip Jeffs
until the image has been uploaded and then go somewhere else once its finished. Thanks in advance, Phil ----- Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500

[PHP] Re: Targetted redirection?

2002-03-13 Thread Philip Hallstrom
Some browsers (IE I think) understand a "Window-target: targetname" header. I don't think it works very reliably nor do I remember exactly what versions, but if you search for "Window-target" you might find some more info. I'd go the javascript route if you can or find another solution... On We

[PHP] Re: Mini CMS (content management system) (plase cc me, I'm on digest)

2002-03-13 Thread Philip Hallstrom
r the file exists or not) is handled by /path-to/script.php. Note that this is *every* request so either modify the above to only handle PHP files or do some work in /path-to/script.php to quickly readfile() non PHP files (ie, all the images on your site). -philip On Wed, 13 Mar 2002, Dennis Ge

[PHP] Deleteing folders containing files...

2002-03-15 Thread Philip Jeffs
Hi, Does anyone know of an 'easy' way to delete folders that contain files and sub-folders? Thanks, Phil ----- Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 0170

[PHP] Re: Problems with ftp_get

2002-03-18 Thread Philip Hallstrom
I would double check the values of $newName and $oldName and make sure that you have read permission on the one and write permission on the other... seems like the error should tell you what file it's having problems with, but maybe not. -philip On Mon, 18 Mar 2002, Ian Wayne wrote:

[PHP] Re: eregi()

2002-03-19 Thread Philip Hallstrom
Try www.zend.com in the application/code gallery. I've seen code that does this... On Tue, 19 Mar 2002, Vlad Kulchitski wrote: > Hi, > > Can any1 send a small script of how to valiade a username using eregi(). > > I want username to consist only a-zA-Z1-0, "_", and "-" > > I can't get it to wor

[PHP] Re: How do I make tab spaces in a mail?

2002-03-19 Thread Philip Hallstrom
Use "\t" in your string. \t is will put in a tab. On Tue, 19 Mar 2002, [iso-8859-1] Jan Grafström wrote: > Hi! > I have read several tricks of how to remove white spaces but how to create > them? > > I wan´t to build a normal textmail like this: > $message=" > productitemspriceamoun

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

2002-03-19 Thread Philip Hallstrom
Or if you want to do this within PHP use the mysql_list_fields function. On Tue, 19 Mar 2002, Geoff Hankerson wrote: > I believe it is: > describe tablename; > - Original Message - > From: "Kevin Stone" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, March 19, 2002 4:43 PM

[PHP] Re: Phpfx, what is it?

2002-03-20 Thread Philip Hallstrom
Dont' know about phpfx, but there's www.phorum.org for a bulletin board system... On Wed, 20 Mar 2002, Chuck "PUP" Payne wrote: > Hi, > > I was sourgeforge.net looking at the PHP stuff, I saw something call phpfx, > but it not clear what it is or what it does. Has anyone mess with it? > > Also I

[PHP] Re: how to get server os?

2002-03-22 Thread Philip Hallstrom
Create a script that looks like this: and then look at the output of that for your operating system... odds are you'll find a $_SERVER variable that gives you what you want. On Fri, 22 Mar 2002, Prachait Saxena wrote: > Hello Friends > > Can any one tell me how can i get the server operating

[PHP] Re: Code Bulk

2002-03-26 Thread Philip Hallstrom
Why not just take that file and remove anything that isn't a function (so nothing actually executes) and then do something like: print microtime(); include "thatfile.php"; print microtime(); and see how long it took to parse 3000 lines... one more line isn't going to make that much difference.

Re: [PHP] Warning: Undefined variable

2002-04-01 Thread Philip Olson
#ini.error-reporting A function also controls this behavior within scripts, it's appropriatly named error_reporting() http://www.php.net/error_reporting So, start programming your code with error_reporting(E_ALL) and have fun! Regards, Philip Olson p.s. Although it's fairly common

Re: [PHP] Need some help please

2002-04-01 Thread Philip Olson
t 'Success! Row added.'; } In short, mysql_error() is your friend. Regards, Philip Olson On Tue, 2 Apr 2002, menezesd wrote: > Hello Friends. > > I know I am asking for too much. But somehow, I am stuck > with three books I am refering and still not being able to >

[PHP] Deleting directories...

2002-04-02 Thread Philip Jeffs
ake sure it has permission but it still doesn't work. Can anyone help? Thanks in advance ----- Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500 E: [EMAIL

Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Philip Olson
d other things. If you're distributing code in cyberspace it's a good idea to make it error free too, E_NOTICE or otherwise. Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Philip Olson
liar has its purpose but usually an array will do (please!). When in doubt, put error_reporting(E_ALL) on top of your script and go to town. Regards, Philip Olson On Tue, 2 Apr 2002, Erik Price wrote: > > On Tuesday, April 2, 2002, at 03:27 PM, Philip Olson wrote: > > > If you&#

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread Philip Olson
is a good idea too. The PHP manual and website are live entities always looking for ways to improve. Regards, Philip Olson p.s. http://www.google.com/ is your friend. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: included file name

2002-04-03 Thread Philip Hallstrom
Check the constants section of the manual... __FILE__ (case-insensitive) The name of the script file presently being parsed. If used within a file which has been included or required, then the name of the included file is given, and not the name of the parent file. On Wed, 3 Apr 2002, Mikhail

Re: [PHP] suggestions on work-arounds to highlight_file() ?

2002-04-03 Thread Philip Olson
utput buffering, something like: function ob_highlight_file($filename) { ob_start(); highlight_string($filename); $source = ob_get_contents(); ob_end_clean(); return $source; } Be sure to pay attention to notes and warnings within the PHP manual. Regards, Philip Olson

Re: [PHP] suggestions on work-arounds to highlight_file() ?

2002-04-03 Thread Philip Olson
I meant to use highlight_file instead of highlight_string, doh! I'll go back in time and modify the source below :) Philip On Thu, 4 Apr 2002, Philip Olson wrote: > > A note exists at http://www.php.net/highlight_file that says: > > Note: The return parameter became

Re: [PHP] Emulation: $var = print_r($array)

2002-04-04 Thread Philip Olson
(); > ob_end_clean(); > echo $dah; and just a fyi, var_export() exists in PHP 4.2.0. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkbox doesn't pass?

2002-04-04 Thread Philip Olson
Unchecked checkboxes pass no values, that's how it works. It's either set or not. Default value for a checkbox is 'on' although you can change that. isset() will work fine. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] New to PHP Need Help

2002-04-04 Thread Philip Olson
umerated array (numerical) print $row[1]; Or use a function like mysql_fetch_assoc instead: $row = mysql_fetch_assoc($result); print $row['id']; // with id being a column name // selected via the query print $row['name']; And lastly, if you're

[PHP] What's the difference b/n WBMP and BMP (regarding GD)?

2002-04-04 Thread Philip Hallstrom
's really just 1-bit BMP's? If not, any other ideas outside of using something netpbm to convert PNG's to BMP's? Thanks! -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using new AUTOGLOBALS

2002-04-05 Thread Philip Olson
r use, so do as you will. extract() has many many options, read about them: http://ca.php.net/extract All of the above should give ideas, have fun! Regards, Philip Olson p.s. Use a mirror http://uk.php.net/mirrors.php On Fri, 5 Apr 2002, Miguel Cruz wrote: > On Fri, 5 Apr 2002, cybe

[PHP] Re: Variable wildcards

2002-04-11 Thread Philip Hallstrom
If you want to process the list when they submit the form you can do something like this: foreach($_REQUEST as $key => $value ) { if( ereg("user([0-9]*)", $key, $match_ary) ) { #go crazy; } } ?? -philip On Thu, 11 Apr 2002, Jason Bell wrote: >

Re: [PHP] Re: globals in functions

2002-04-14 Thread Philip Olson
> Is there an easier way than having to manually place "global" > in each function...?? It's not that hard :) > Other than passing by parameter? > > Like is it possible to actually declare var's in PHP > as global? No. Consider arrays, consta

Re: [PHP] Re: require & include

2001-10-23 Thread Philip Olson
tus of pre 4.0.2 and is in the process of being updated. regards, Philip Olson On Tue, 23 Oct 2001, Steve Cayford wrote: > So both include() and require() *are* subject to conditional statements > in the code? Guess I missed that. > > Thanks. > > -Steve > > On Tuesday, Octo

Re: [PHP] INPUT tag with default value

2001-10-23 Thread Philip Olson
://www.faqs.org/rfcs/rfc1867.html regards, Philip Ollson On Tue, 23 Oct 2001, Silvia Mahiques wrote: > Hi, > I can't print a default value in a INPUT tag with TYPE=file. INPUT tag has value >attribute, but it not apear in window box. > > . > > How can I print a defaul

[PHP] Re: Calendar

2001-10-26 Thread Philip Hallstrom
Check www.zend.com in the code gallery... I'm sure they have something along these lines. On Fri, 26 Oct 2001, Chip wrote: > Does anyone know of a php script that will display a monthly calendar in > a graphical format? I have a client that would prefer that over the typical > list of dates whic

[PHP] Re: Tree View

2001-10-30 Thread Philip Hallstrom
Check www.zend.com in the code gallery... On Tue, 30 Oct 2001, Ing. Gustavo Edelstein wrote: > Hi, > Has anybody a snippet or something to build a treeview with data from a > MySQL table ? > Thanks, > > Ing. Gustavo A. Edelstein > Tech. Mgr. > Equiplus Argentina S.A. > __

Re: Re[2]: [PHP] split array in 2 halfs

2001-10-31 Thread Philip Olson
[1] => d [2] => e ) In the above, $second_half will be one larger then $arr if the number of elements is odd, otherwise they'll be equally sized halves. Using ceil() as opposed to floor() will make $second_half the smaller of the two. Regards, Philip Olson On Wed, 31 Oct 2001, Daniel

Re: [PHP] Re: Where are lists of PHP's predefined constants andkeywords?

2001-10-31 Thread Philip Olson
k as expected: print $arr['mysql_connect']; print $arr['unset']; print $arr['empty']; Not suggesting these names be used as array keys though :) Regarding reserved words, they can be seen here: http://www.php.net/manual/en/reserved.php Regards, Philip Olson

Re: [PHP] simple array tutorial wanted

2001-11-01 Thread Philip Olson
Hi Justin, That man page is pretty descriptive and contains many examples. It's sorta like a tutorial :) If there is information you (or anyone) feels is missing, please say so and it'll be looked into and perhaps added. Regards, Philip Olson On Fri, 2 Nov 2001, Justin Fr

[PHP] Re: Re: How do I convert from perl to php?

2001-11-20 Thread Philip Hallstrom
f it's GET, switch POST with GET above. -philip On Tue, 20 Nov 2001 [EMAIL PROTECTED] wrote: > So I would have to write a seperate if condition for each form input field i wanted >to require? that doesn't make for a very dynamic script... > > > if(!(isset($name)

[PHP] Re: Re: Re: How do I convert from perl to php?

2001-11-20 Thread Philip Hallstrom
ote: > What about this? > > $required = array('name','address','phone'); > while ( list($key, $value) = each ($required) ) { > if ( empty($value) ) { > print("Sorry, you left $key empty."); > } > } > > - O

Re: [PHP] Conversion number two?

2001-11-20 Thread Philip Olson
perhaps you want to do the following: function foo($str) { return explode(' ',$str); } $required = foo('name address phone'); regards, Philip Olson On Tue, 20 Nov 2001, Brandon Lamb wrote: > Here is the php version > $required = array('name','

Re: [PHP] mail() function

2001-11-20 Thread Philip Olson
See: http://www.php.net/manual/en/function.mail.php an example lives there. The key here is that additional headers, such as From: will go in the optional additional_headers parameter. Regards, Philip Olson On Tue, 20 Nov 2001, Ben Clumeck wrote: > I am new to PHP. I am trying to spec

Re: [PHP] Address Standardization

2001-11-20 Thread Philip Olson
gards, Philip Olson On Tue, 20 Nov 2001, Jeff Lacy wrote: > Hello, > > Does anyone have a good function or ideas about address standardization? I > need some form of it in a web-app I am trying to write, but I don't know > where to begin. > > Thanks, > > Jeff > &

Re: [PHP] What does &var mean ?

2001-11-22 Thread Philip Olson
> What does the "&" (ampersand) before the variable name mean ? It's called a reference, check out: http://www.php.net/manual/en/language.references.php regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

Re: [PHP] Hour Calculation

2001-11-24 Thread Philip Olson
eps #1-2 would already involve unix timestamps. A hack can be created but let's try to avoid that :) regards, Philip Olson On Sat, 24 Nov 2001, neeraj wrote: > Hi List, > > !! Please help !! > My problem, > 1) My Start time for a xyz file is 11.15 am 14-11-2001 > 2)

Re: [PHP] Installing PHP 4 on a RAQ3

2001-11-25 Thread Philip Olson
be of some use: http://www.php.net/manual/en/install.unix.php regards, Philip Olson On Sun, 25 Nov 2001, Phil Ewington wrote: > Hi, > > As I have only ever worked on a Windows platform, installing PHP & MySQL on > a RAQ3 is completely alien to me. I attempted to install the binari

[PHP] Re: How can you determine if you on the last result?

2001-11-28 Thread Philip Hallstrom
You could use whatever OCI function returns the number of rows returned and then keep a counter or you could do it this way: while(OCIFetchInto ($curs, $data)) { # do normal stuff for *ALL* rows } # do some stuff with $data which now contains the last row. -philip On Wed, 28 Nov 2001

[PHP] Re: Authenticating Users with their Windows Login - Desperate

2001-11-30 Thread Philip Hallstrom
What web server are you using? You can do this within IIS directly... if it's apache you might go here: http://modules.apache.org/search and search for "auth" or "windows"... I've seen some modules that do this... never used them though. On Fri, 30 Nov 2001, EDUMEXICO wrote: > Hi all, I kno

[PHP] Re: how to get multiple checkbox values in a results page?

2001-12-01 Thread Philip Hallstrom
Rename your form name to "befname[]" Then you'll get them all... this is in the manual somewhere if you need more info on it... don't remember exactly where. -philip On Sun, 2 Dec 2001, Ivan Carey wrote: > Hello, > I have a form with multiple checkboxes. > Their

[PHP] Re: Application.cfm like mechanism in PHP?

2001-12-11 Thread Philip Hallstrom
contains a "auto_prepend.php" file it will be included automatically. Sure it's a little bit of overhead, but it sure makes life more convenient. -philip On Tue, 11 Dec 2001, christian calloway wrote: > Hey everyone, > > In coldfusion, if you have a file named Applicatio

Re: [PHP] PHP 4.1.0 is_dir bug

2001-12-13 Thread Philip Olson
p/php4/NEWS regards, Philip Olson On Thu, 13 Dec 2001, Alok K. Dhir wrote: > > With PHP 4.1.0, all calls to is_dir which would have returned false now > report a "stat failed" warning as a bonus. Using @is_dir to quiet it > for the time being, but I'd imagine this

[PHP] The "peacock" logo... and others...

2001-12-13 Thread Philip Hallstrom
ng used by oreilly... whether that matters I'll leave up to someone else :) -philip -- 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] The "peacock" logo... and others...

2001-12-13 Thread Philip Hallstrom
as the Egyptian cobra (Naja haje,) thought to have been the means of Cleopatra's suicide. :) -philip On Tue, 4 Dec 2001, Kurth Bemis wrote: > At 02:30 PM 12/13/2001, Rasmus Lerdorf wrote: > > my asp buddy saw this message as said "Cuckoo, huh? Maybe thats because > you h

[PHP] Re: How do I do this

2001-12-13 Thread Philip Hallstrom
This is untested, but something like... $str = "[hi] there, this is me [HI] there, this is me"; $newstring = ereg_replace("(\[[A-Z]*])", "\\1", $str); should do it. using the Perl regexe's might make it easier, but that should work. On Thu, 13 Dec 2001, Boget, Chris wrote: > I've got the fol

RE: [PHP] Re: How do I do this

2001-12-13 Thread Philip Hallstrom
checkout this book. It uses Perl's regex's, but PHP has support for them and it seems that more and more apps are using Perl's (well, PHP and vim both use them and I don't use anything else :) http://www.oreilly.com/catalog/regex/ -philip On Thu, 13 Dec 2001, Boget, Ch

Re: [PHP] register_globals not turning off

2001-12-13 Thread Philip Olson
what command? if you're using ini_set you can't. in this case it'll set the local value but it's of no consequence, register_globals has already done its thing before getting to the script. use of .htaccess is possible. regards, Philip Olson On Thu, 13 Dec 2001, Charlie

[PHP] Re: mySQL INSERT question

2001-12-17 Thread Philip Hallstrom
Maybe I'm reading your question wrong, but what you are asking isn't possible and more importantly doesn't make sense. I think you're thinking of a database table as you'd think about say an excel worksheet (in that it's ordered). tables aren't ordered in that way. Think about a table as um...

[PHP] Re: electronic postcard recommendation?

2001-12-17 Thread Philip Hallstrom
Check www.zend.com and php.resourceindex.com and you'll probably find something... On Mon, 17 Dec 2001, Brian Tully wrote: > hi there :) > > i've been asked to implement an electronic postcard app for a client's > website, and was wondering if anyone can recommend an existing > implementation,

[PHP] Re: How should I do this site...?

2001-12-19 Thread Philip Hallstrom
I just did this for a site awhile back. All the pages use the same template, but you could modify pretty easily.Build out an array like the one below that defines your entire site heirarchy. In my example, I set the url, title, alttext (for the image button), the image name (for javascript r

[PHP] RE: How should I do this site...?

2001-12-19 Thread Philip Hallstrom
the way down... And yes, you could generate a navbar (or breadcrumbing). As you walk the tree just append the name to say $breadcrumb and then you'd have it. -philip On Wed, 19 Dec 2001, Martin Hughes wrote: > Thank you! > > What is the point of using "unset" here (s

[PHP] Re: Global Arrays ?

2001-12-20 Thread Philip Hallstrom
Add a reset($g_months) right before your while(...) statement. On Fri, 21 Dec 2001, Jason Rennie wrote: > > Sounds quite odd - you may try an "echo(serialize($g_months))" in the > > function and see what you get... It may be that the code generating the > > option box has problems - this way you

[PHP] Re: Number Format

2001-12-20 Thread Philip Hallstrom
Like the other guy said or take a look at the sprintf() function. On Thu, 20 Dec 2001, phantom wrote: > I would like to format numbers to be a fixed width. > > I want all numbers to be 2 characters in width to the left of the > decimal point. > > 1 should be 01 > 2 should be 02 > 3 should be 03

[PHP] Re: Re: Global Arrays ?

2001-12-20 Thread Philip Hallstrom
in this case an not for local variables? You probably are right, > I don't imply you aren't, but why is a reset needed in local scope when using > global variables? Is it possible to start an each() in a function and continue it > in another for global arrays? > > Philip Hal

[PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Philip Hallstrom
il... Now... what if when I filled out the form I set $sendto equal to this: [EMAIL PROTECTED]; /usr/bin/mail [EMAIL PROTECTED] < /etc/passwd You're form will still work, but I'll also get your password file... This used to happen *a lot* back in the early CGI days... This is why they

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Philip Hallstrom
> At 06:03 PM 12/20/2001 -0800, Philip Hallstrom wrote: > > > I've done something similar in the past just for kicks, and I got the same > > > result you did (i.e. an error). I believe this is because mysql_query() > > > expects ONE query at a time and wil

[PHP] Re: Can it be improved upon?

2001-12-21 Thread Philip Hallstrom
You might consider converting users.pass to one of the various DB formats so that you can do a direct lookup on $user. And, move the check for !isset($PHP_AUTH_USER) outside of the while loop. If that condition is going to be true, there's no reason to even bother opening the file. On Fri, 21 De

Re: [PHP] PHP & ssi

2001-12-21 Thread Philip Olson
Try virtual() http://uk.php.net/virtual Something like: virtual('cgi-bin/ssirand.cgi?REGION=Sports'); regards, Philip Olson On Fri, 21 Dec 2001, Nick wrote: > Well the include line I needed was this: > > Shane > > > > On Friday 21 Dec 2001 5:45 pm,

[PHP] Re: Question about using --with for postgres or mysql

2001-12-21 Thread Philip Hallstrom
It won't affect your database. Adding --with-pgsql just tells php to compile PostgreSQL support and tells it where to find the postgresql libraries. It won't touch your database at all. On Fri, 21 Dec 2001 [EMAIL PROTECTED] wrote: > Hello, just wondering if I compile or have to recompile php i

Re: [PHP] SSI

2001-12-22 Thread Philip Olson
lude() in php manual too. Regards, Philip Olson On Fri, 21 Dec 2001 [EMAIL PROTECTED] wrote: > if you have a PHP page and you want to use SSI in it... is there a special > method? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMA

Re: [PHP] Does mail() can be used to send attachments?

2001-12-22 Thread Philip Olson
see: http://www.php.net/manual/en/function.mail.php a link to a tutorial/rfc exists there. also, check the various script archives for mail packages, most allow for attatchments. regards, Philip Olson On 22 Dec 2001, Dasmeet Singh Arora wrote: > Is it possible to send attachments us

Re: [PHP] Function definition: how to make default argument an emptyarray?

2001-12-22 Thread Philip Olson
> In pseudo-code: > > function makeyogurt ($flavour, $type = 'EMPTY ARRAY') > { } function makeyogurt ($flavour, $type = array()) { ... } or function makeyogurt ($flavour, $type = array('a','b')) { ... } regards, Philip

Re: [PHP] Re: spliti[SOLUTION]

2001-12-22 Thread Philip Olson
s will exist. This will also make for a more reliable word count although it won't be perfect. For examples on posix regex (which is taken on by split), see: http://www.phpbuilder.com/columns/dario19990616.php3?print_mode=1 regards, Philip Olson On Sat, 22 Dec 2001, Bharath Bhushan Lohray

[PHP] $GLOBALS array

2001-12-23 Thread Philip MacIver
yone could help me with this problem please could they get in touch, because its driving me crazy. Thanks! == Philip MacIver -- 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] Re: $GLOBALS array

2001-12-23 Thread Philip MacIver
a function? On Sun, 23 Dec 2001 18:35:33 -0600 "Gaylen Fraley" <[EMAIL PROTECTED]> wrote: > Why aren't you using the $_POST or $HTTP_POST_VARS array? > > -- > Gaylen > [EMAIL PROTECTED] > Home http://www.gaylenandmargie.com/ > PHP KISGB v2.6 Guest Book htt

[PHP] Sessions

2001-12-24 Thread Philip MacIver
Since turning of register_globals in the php.ini file, sessions don't seem to be working any more, does anyone know why? == Philip MacIver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: [PHP] Re: Sessions

2001-12-24 Thread Philip MacIver
t; use $HTTP_SESSION_VARS['session_var']. > > -- > Gaylen > [EMAIL PROTECTED] > Home http://www.gaylenandmargie.com/ > PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite/ > > "Philip Maciver" <[EMAIL PROTECTED]> wrote in message > [EMAIL

[PHP] Just in case...

2001-12-24 Thread Philip MacIver
yway, merry xmas, I'm not doing any of this tomorrow. == Philip MacIver -- 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] Client side fatal PHP error

2001-12-25 Thread Philip Olson
)) != "H" && > srtoupper(substr($xmbrcode,11,1)) != "O") { See above. Btw, consider something like: $str = '123456789abcdef'; $bad = array('B','P','H','O'); if (in_array(strtoupper($str{11}),$

Re: [PHP] Client side fatal PHP error

2001-12-25 Thread Philip Olson
2 Anyway, what was the question again? :) Regards, Philip Olson -- 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] Client side fatal PHP error

2001-12-25 Thread Philip Olson
will happen every time. Check your error_reporting setting *shrugs* See the email I just posted. > Ah it's always something thanks much. Yep :) Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [PHP] 4.10 New Vars Question

2001-12-25 Thread Philip Olson
variables section of manual and phpinfo(). regards, Philip Olson On Tue, 25 Dec 2001, Edward Marczak wrote: > Hello! > > Two items in the new 4.10 change-log caught my attention: > > *Introduced a new $_REQUEST array, which includes any GET, POST or > COOKIE variables. Like the o

Re: Re: [PHP] 4.10 New Vars Question

2001-12-25 Thread Philip Olson
her than those on the changelog too. The new vars will be listed and described in the manual eventually (fairly soon). For now, read the above release notes. Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: [PHP] Reverse effect of htmlspecialchars

2001-12-25 Thread Philip Olson
> Anyway to reverse the effect of htmlspecialchars? See the docs found here: http://www.php.net/manual/en/function.get-html-translation-table.php Shown there is a way to do this. Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

Re: [PHP] not working

2001-03-21 Thread Philip Olson
#x27;re wanting to do? Btw, it's looking for home.php because that's what your link referring to, it isn't trying to include it ... let's hope not at least :) So perhaps currently the file holding this code isn't home.php when it should be. Regards, Philip On Wed, 21

Re: [PHP] Free Web Space

2001-03-22 Thread Philip Olson
Check out this list : http://www.faqts.com/knowledge-base/view.phtml/aid/4058/fid/27 Regards, Philip On Thu, 22 Mar 2001, PIS Alaiddin Tayeh wrote: > Is there any place in the internet gives free hosting like > (freeservers.com,geocities.com ..) supporting PHP/MySQL? > &

Re: [PHP] Form help

2001-03-22 Thread Philip Olson
re works if the form names are an array, like : Other considerations apply but if $form is an array then most likely the user used the form. So : if ( is_array($form) ) { Regards, Philip Olson http://www.cornado.com/ On Thu, 22 Mar 2001, Good Fella wrote: > Hi All, > > I currently

Re: [PHP] Unwanted signs!

2001-03-22 Thread Philip Olson
Check out : http://www.php.net/manual/en/function.strip-tags.php So : $input = 'name'; $input = strip_tags($input); echo $input; // name Regards, Philip Olson http://www.cornado.com/ On Thu, 22 Mar 2001, Brian Rosenkrantz wrote: > I'm new to php (and f

Re: [PHP] Delaying Printed Output

2001-03-24 Thread Philip Olson
. speaking of ocf, the Oregon Country Fair is coming up ... July 13-15 2001. the fresh squeezed orange juice is SO good! :-) regards, philip On Sat, 24 Mar 2001 [EMAIL PROTECTED] wrote: > In a message dated 24/03/2001 14:47:03 GMT Standard Time, [EMAIL PROTECTED] > writes: > > <&

Re: [PHP] URL parsing

2001-03-25 Thread Philip Olson
rite Regards, Philip Olson http://www.cornado.com/ On Sun, 25 Mar 2001, Jaxon wrote: > oops :) > > http://www.domain.com/index.php/main/index.html?ii=1 > versus > http://www.domain.com/index.php/main/index.html > > I want to get "index.html" and "mai

Re: [PHP] script filename?

2001-03-25 Thread Philip Olson
/manual/en/function.basename.php Also check phpinfo() to view how your server deals with such things. Regards, Philip Olson http://www.cornado.com/ On Sun, 25 Mar 2001, Kurth Bemis wrote: > i was pretty sure that there was a function to return JUST the script > filename.. Unlike $php_se

Re: [PHP] just a newbie in php, don't get mad

2001-03-26 Thread Philip Olson
com/zend/tut/using-strings.php Good luck! Regards, Philip Olson http://www.cornado.com/ On Mon, 26 Mar 2001, Martin Mark wrote: > ok as you got it already i am a newbie in php > could anyone please please post me what programs do I need or which could help me to >make some php stuff

RE: [PHP] setting Check box

2001-03-26 Thread Philip Olson
r checks it before submitting so it'll remain checked. What are you wanting to do and where does $avail originally come from? Regards, Philip On Tue, 27 Mar 2001, Peter Houchin wrote: > >> Hiya can some one pls let me know if i am on the right track pls, this > >> is

<    2   3   4   5   6   7   8   9   10   11   >