[PHP] Picture Cache

2002-07-04 Thread Steve Vernon
not cache the picture in the web browser? I don't know how the cache works but my friend says it asks the server for the data the file was generated and the size, so I suppose with this is dosent? Help! Thanks, Steve -- PHP General Mailing List (http://www.php.net

[PHP] preg_match or not?

2002-07-06 Thread Steve Fitzgerald
em to get right. This is what I have at the moment: if (!preg_match("/[\d]+([\.]{1}[\d]{2})?/", $form_data[amount])) // wrong amount but it still allows invalid input. Can anyone help or is there a better way to do it? Thanks Steve

[PHP] Re: preg_match or not?

2002-07-06 Thread Steve Fitzgerald
Thanks, thats hit the nail on the head, and my headache is a whole lot better! Steve Cc Zona wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Steve Fitzgerald) wrote: > > > I have been struggling for a couple of hours now trying to write a > > preg_mat

[PHP] Session variables

2002-07-08 Thread Steve Fitzgerald
value ='' This works fine except if the input type is a drop down box, in which case the default is shown. Is there any way around this? How can I show the user their previous choice in these boxes? Any insights would be appreciated. Steve -- PHP General Mailing List (http://www.ph

Re: [PHP] Session variables

2002-07-08 Thread Steve Fitzgerald
Thanks Justin, your solution is spot-on! Regards Steve Justin French wrote: > > ?>> > > > ?>> > } ?>> > ?>> > > > > > Obviously this is labourios to code... you can do this a lot smarter/quicker > w

Re: [PHP] Odd Request: Image 2 HEX

2002-07-09 Thread Steve Edberg
; substr() or maybe regexps) to do that. For more info, see: http://www.php.net/manual/en/function.fopen.php http://www.php.net/manual/en/function.fread.php http://www.php.net/manual/en/function.bin2hex.php -steve At 9:08 AM -0700 7/9/02, JSheble wrote: >I'm using a Zebra label

Re: [PHP] GD Lib

2002-07-09 Thread Steve Edberg
Are you compiling php with the --with-gd=shared option? Personally (Solaris 8, gcc 2.95.3 , php 4.1.1 and later) I've never been able to get the gd shared object to work (gd.so load errors), so I've always ended up compiling it into PHP. -steve At 1:23 PM -0400 7/9/02,

RE: [PHP] RE: ############

2002-07-09 Thread Steve Bradwell
agreed. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 3:51 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: lets all spam Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help a n00b with Server-to-Server file transfers?

2002-07-12 Thread Steve Keller
way of a pointer to where I can go to read up on how I can accomplish this. Is there a particular tutorial I can read that's relevent? Perhaps a sample script available that I can peruse to see how someone did something similar? Any help would be appreciated. ~Steve-o -- PHP Gener

[PHP] configure failed after autoconf update

2002-07-13 Thread Steve Alberty
fine. Can anyone please help? Thanks in advance, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Multi-Part PostToHost?

2002-07-15 Thread Steve Keller
t;... contents of myFile.xml ...\n"); fputs($fp, "--AaB03x--\n"); And again, I've only been doing PHP a week, so if I'm following a totally wrong track here, feel free to smack me around. As always, any help is greatly appreciated. ~Steve-o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Submit code

2002-07-16 Thread Steve Bradwell
cking a button. Check this link. http://www.devguru.com/Technologies/ecmascript/quickref/evhan_onsubmit.html Hope this helps, -Steve. -Original Message- From: MindHunter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 2:33 AM To: [EMAIL PROTECTED] Subject: [PHP] Submit code

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Steve Bradwell
e method that does all the work so $db1->setTransactionSwitch("false"); //you don't have to recode it. If it fails roolback. if($db1->getTransactionSwitch()=="false");{ $db1->rollback(); }else{ $db1->commit(); } Classes al

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Steve Bradwell
l Message- From: Chris Crane [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:40 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Classes vs. Functions Wow...this is pretty cool. Do you HAVE to declareall your varibles ahead of time? "Steve Bradwell" <[EMAIL PROTEC

Re: [PHP] Check for Associative Array

2002-07-18 Thread Steve Edberg
k if the $key is just a number or just a string > >C) $key += 1 Lastly, you _could_ just step through the array using each() in a loop, and use only every OTHER array entry...but this is really funky and you shouldn't

[PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1

2002-07-22 Thread Steve Meyers
Can you post this to php.announce as well? Marko Karppinen wrote: > >PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1 > > > Issued on: July 22, 2002 > Software: PHP versions 4.2.0 and 4.2.1 > Platforms: All > > >The PHP Group has learned of a serious security vu

[PHP] IS THIS A BUG?

2003-08-27 Thread Steve Todd
Is it possible to define a variable, such as: $foo = "bar"; and then do as follows to create a totally different variable: $$foo = "text here"; this seems to mean $bar = "text here";. Is this a bug or can we legally use it. Steve

[PHP] evaluating dynamic variable

2003-09-02 Thread Steve Goodman
Hi, I'm having trouble evaluating a dynamic variable. I want to check if the variable $_POST["resolutions$i"] is an empty string, as you'll see from the code. However, every way I've tried to check the variable so far (including empty() and eval()) always returns a null value, even when the variabl

[PHP] multiple select box

2003-09-04 Thread Steve Goodman
Hey all, I'm curious if anyone else has ever come across this problem: I have a multiple select box named 'chosen'. When it is submitted, only the last option selected appears under $_POST['chosen'], when I print_r($_POST). Any ideas? Thanks in advance, Steve -- PHP G

[PHP] php,up2date and mcrypt

2003-09-08 Thread Steve Buehler
I have a new RedHat Linux v.9 server that gets its php through 'up2date'. I want the ability to use mcrypt with php. I thought that I read somewhere a way to do this without having to recompile PHP. Can anybody point me to the right place or explain to me how to do this? Thanks St

[PHP] Protecting a file via PHP.

2003-09-16 Thread Steve Jackson
to which the file is served to (a temp) or what? No matter what I've tried I get no error message and the browser (IE6) just hangs so it appears that PHP is trying to serve the file but failing for some reason. What is that directory I am supposed to define? What am I doing wrong? Steve Ja

FW: [PHP] Protecting a file via PHP.

2003-09-16 Thread Steve Jackson
Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -Original Message- From: Steve Jackson [mailto:[EMAIL PROTECTED] Sent: 16. syyskuuta 2003 12:15 To: '[EMAIL PROTECTED]' Subject

[PHP] Getting part of a string...Was protecting a file via php

2003-09-16 Thread Steve Jackson
// force download dialog if no extension defined. header("Content-type: application/octet-stream\n"); header("Content-disposition: attachment; filename=\"$file\"\n"); break; } Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting part of a string...Was protecting a file via php

2003-09-17 Thread Steve Jackson
t;r"); fpassthru($fp); */ ?> Echoing the vars produces this. The exploded file ($extension) is what I need to pass to the switch but if I send the headers as is again I get a blank and corrupted explorer window. Test and pdf Test and EventNotification_01.pdf Test and Array Test and $file Any ideas how to proceed? Cheers, Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting part of a string...Was protecting a file via php

2003-09-17 Thread Steve Jackson
27;get.php?file=','','$file'); $p = explode('.', $pfile); $extension = $p[sizeof($p)-1]; $pfile when echoed is $file $file when echoed is the correct name of the file which is even more confusing. I figured that $file would include the URL which might be why it ha

[PHP] This is my fourth day of hitting this brick wall! Anyone...Purleeeeese help!

2003-09-18 Thread Steve Jackson
esource is #1 Has anyone got any clue what the problem is? Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] This is my fourth day of hitting this brick wall! Anyone...Purleeeeese help!

2003-09-18 Thread Steve Jackson
e but not the name of the file itself. Finally a step in the right direction but how do I go about solving this? Kind regards Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] This is my fourth day of hitting this brick wall! Anyone...Purleeeeese help!

2003-09-18 Thread Steve Jackson
y can help someone else! Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Steve Jackson [mailto:[EMAIL PROTECTED] > Sent: 18. syyskuuta 2003 12:19 >

[PHP] if statement

2003-09-30 Thread Steve Buehler
t look at all like this: $array=("/etc/bind/options.conf.wp","/etc/bind/rndc.conf.wp","/etc/bind/keys.conf.wp"); if($k2b==$array){ do this1 }else{ do this2 } I think that might make enough since to see if someone can help me on this. This would be real nice f

Re: [PHP] if statement

2003-09-30 Thread Steve Buehler
To Brad, Marek and Curt (and anybody who responds after this) Thank you so much for your help. This is going to help me out so much in a lot of my scripts. It will sure make them a little.Noa LOT more portable now. Thanks Steve At 11:26 AM 9/30/2003, you wrote: Steve Buehler

Re: [PHP] attach file with mail() function??

2003-10-06 Thread Steve Buehler
At 06:34 PM 10/5/2003, Roy W wrote: Is there a way to attach a file with the mail() function? Thanks! Yes. Take a look at http://www.php.net/mail Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] File upload meter

2003-10-08 Thread Steve Murphy
David Enderson also developed an upload meter and contacted PHP about including it. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02155.html Long and short, PHP never included it. This functionality is requested and can be included easily. I'm in the process of developing documentation and rpm p

[PHP] duplicating databases

2003-10-08 Thread Steve Buehler
e the change to the other databases. Does anybody know if there is all ready a program out there that would do this? Can anybody point me in the right direction? Or if it is only a few lines of script that somebody all ready has to do this, can you share it? Thank You Steve -- PHP Genera

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
s NOT give a new line in the output unless you use an html tag that would give the new line. Steve At 06:39 AM 10/13/2003, you wrote: > They do work but you will not see that in the rendered html page (in a > browser). Have a look at the source of the produced page and you will see >

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
Do what I do, use both the \n and the tags. I am not worried about anybody else thinking the source is nice looking, I do it for debugging so that I can see how the source comes out in a readable format. Steve At 06:48 AM 10/13/2003, you wrote: Ok, Now I see what happen (maybe). So, the &qu

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
To give tabs in html, you might want to try using       instead of \t Steve At 06:57 AM 10/13/2003, you wrote: Wang Feng wrote: The page source shows: The problem might be right here --+ (closing html tag

[PHP] Session within a session lock?

2003-10-21 Thread Steve Wardell
st to the web server to utilize the same PHP session). However, if I use the same session ID things seem to lock and the fread's from the socket just don't return any data. Why would there be a lock in doing a request within a request to the same PHP session? Thanks, Steve -- PHP Gener

Re: [PHP] Session within a session lock?

2003-10-21 Thread Steve Wardell
Thanks guys. Makes sense. This is a conversion from ColdFusion and was not an issue in ColdFusion, thou in CF you could do read or write locking to allow for such situations. I'll rework things. Steve John W. Holmes wrote: Steve Wardell wrote: I have a page on my PHP site that nee

[PHP] German Date - GMDATE Function

2003-10-22 Thread Steve Vernon
h PHP. THANKS! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Globals set to off - Sessions

2003-10-27 Thread Steve Jackson
Do admin functions } Else { //Do login form } How do I adapt the check_admin_user() function and the pages to work in 4.33? Thanks, Steve Jackson Web Development and Marketing Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mail

[PHP] MP3 Ripping

2003-10-27 Thread Steve Vernon
any good mp3 modules etc for PHP. Any help would be appreciated! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MP3 Ripping

2003-10-27 Thread Steve Vernon
the ideas I have which I haven't even listed!!! So is there ANY way from PHP to read a CD, rip the tracks and place them in BLOB fields in MySQL? Or do I have to write something in C++ or Java? Just would be nice if there was something in PHP. Thanks, Steve -- PHP General Mailing List

[PHP] Color / Colour on the command line

2003-10-29 Thread Steve Vernon
it as well. So basically, I can't find anything about how to change colours using a command line script. Just getting very boored of white text on a black background- very booring! THANKS! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Object Undefinded index

2003-10-29 Thread Steve Turner
variables outside an object. It acts like the variable is undefined. Thanks for the help. Steve Turner //-- class Cart { var $items; // Items in shopping cart // Add $quantity articles of $product_id to the cart function add_item

[PHP] Error 1148 and 1045

2003-10-28 Thread Steve Buehler
--- Can anybody shed some light on how to fix this? I presume the first is a permission problem that is from the new way that MySQL handles things. The second is just a mystery to me. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] scalar value as array problem

2003-11-02 Thread Steve Turner
no idea what a scalar value even is. I did verify that my form was passing the values by using echo $_GET['product_id'] . $_GET['quantity']; Your help is much appreciated, as I am still a beginner. Steve Turner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] COM and PHP.ini

2003-11-07 Thread Steve Vernon
(PHP 4.3.0, Windows XP Pro, Office 2000 Pro) Hello, Just playing around with COM, and I got the error below. Searching on google it mentions something about a DLL error. Iv'e enabled dcom in php.ini. What have I missed! Line 2 says $excel = new COM("Excel.Application") or die("Excel could not

[PHP] Re: PHP developers

2003-11-07 Thread Steve Magruder
nal US cities with low costs of living. :) -- Steve Magruder www.webcommons.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with session_id() in Windows?

2003-11-08 Thread Steve Lane
ected. Has anyone seen or heard of this? The notes in the docs didn't tell me anything special about this. -- steve lane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with session_id() in Windows?

2003-11-09 Thread Steve Buehler
atever Web Server you are running after making this change. Steve At 12:10 AM 11/9/2003, you wrote: Hello all: We recently ported an application from Linux to Windows and had a few sessions-handling issues (we were going from PHP 4.1.2 Linxu to PHP 4.3.3 Windows). We traced this to PHP&#x

[PHP] single quotes in database

2003-11-07 Thread Steve Buehler
ng things into the database? I am hoping on being able to fix this when going in and when coming out of the database so that I don't have to go back and redo all the ones that are already in the database. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random Character Generator

2003-11-10 Thread Steve Edberg
http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing -steve At 04:32 PM 11/10/03, Jason Williard wrote: I would like to have a script that randomly generates alpha-numeric characters. Does anyone know of any scripts that can do this or perhaps the basic code to generate

[PHP] Calendar

2003-11-12 Thread Steve Marquez
Hi, I am looking for a simple easy to edit php calendar program. Does anyone know where I can find one? Thanks for your help. -- Steve Marquez [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Looking for Spam free php form

2003-11-17 Thread Steve Murphy
Is this what your looking for? http://www.pfohlsolutions.com/projects/mailer/ -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 1:08 PM To: Chris Boget Cc: David Buchmueller; PHP General Subject: Re: [PHP] Looking for Spam free php form > > I

[PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
I could just create a link for each letter, but I would like to learn to do this so that I can make code shorter. Putting each letter into an array and steping through the array will work, but can it be done by telling a loop to start at A and end at Z? Thanks Steve -- PHP General Mailing List

RE: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
e like this now: $letter='A'; for($i=0;$i<=25;$i++){ echo $letter++." "; } Thank You So Much Steve At 08:24 AM 11/19/2003, you wrote: [snip] for ($letter = 'A'; $letter++; $letter <= 'Z') echo "$letter\n"; [/sni

Re: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
7;, $i = 0; $i <= 25; $letter++, $i++ ){ echo "$letter "; } Thank You So Much Steve At 08:27 AM 11/19/2003, you wrote: Sophie Mattoug wrote: Maybe you can try this for ($letter = 'A'; $letter++; $letter <= 'Z') echo "$letter\n&q

RE: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
} Amazing what I learned today. :) I love this list and its people. Thanks for your help Steve At 08:15 AM 11/19/2003, you wrote: Create a $letters array and the loop through it like this: $letters=array('A','B','C','D','E','F','G

[PHP] function array problems

2003-12-01 Thread Steve Turner
Hi, Having some problems with multi-dimentional arrays. I am creatng an array using some database data, and adding stuff like an image tag, and hyperlink. Then passing this to another function that creates an Html table from an array. Here is the function to create the table from an a

[PHP] Re: Variables scope question

2003-12-04 Thread Steve Fulleylove
site) variable, you should use a session variable. Regards, Steve "Mike D" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I have recently noticed something that I wasn't aware of until now. I have > index.php which contains include1.txt a

[PHP] Max Upload FIle Size

2003-12-05 Thread Steve Vernon
Hello, I have search google, and PHP but I cannot find properly how to set the maximum post upload size as 200Kb? Do I use 200K or 200KB for post_max_size? THANKS Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Uploaded Picture Name

2003-12-06 Thread Steve Turner
I am having a slight problem with a picture upload script. I seems to work just fine except when the picture name has an apostrphe in the name. How do all of you deal with this problem. Do you just rename the file to something else when you upload it. Here is the script that I am using. It is calle

[PHP] PHP to HTML

2003-12-08 Thread Steve Marquez
Greetings! Is there a way to have PHP write an HTML file? What I would like to do is have a user fill out a form, then have the information write an HTML file and then save the file either for the first time, or overwrite the existing one. I hope this makes sense. Can anyone help? -- Steve

[PHP] Session Link Problems

2003-12-11 Thread Steve Turner
Take a look if you are confused. The link to the site is http://www.designoriginalsbykim.com. Thanks for any help you may be able to give. Steve Turner Fort Collins, CO http://www.SteveOnWeb.com The session part of phpinfo() is session Session Support enabled Registered save h

RE: [PHP] Working pop-up progress window

2003-12-22 Thread Steve Murphy
recompile PHP but its a very convenient tool that many of my clients ask for, enjoy. Steve -Original Message- From: Ed Curtis [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 12:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Working pop-up progress window I've read throug

RE: [PHP] Re: progress in php (was "Re: [PHP] Working pop-up progress window")

2003-12-22 Thread Steve Murphy
David, A window will popup with the progress meter. Obviously don't block popups and try using a larger file if you have a high speed line, it takes a second for the meter to start and if the upload is done it won't popup properly. Steve -Original Message- From: David T

RE: [PHP] Re: progress in PHP

2003-12-22 Thread Steve Murphy
Well its actually a pure PHP upload meter it just uses JS to open the window. You could make PHP open the window as well with a little tweaking. -Original Message- From: David T-G [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 3:16 PM To: [EMAIL PROTECTED] Cc: Steve Murphy

RE: [PHP] Re: progress in PHP

2003-12-23 Thread Steve Murphy
site which gives an example php.ini file. I've tested the meter with a 160MB file on 128MB RAM 500Mhz K6 system. The download also includes sample HTML code. I'm working on adding CSS to customize the look a little more. Hope this will answer some questions. Steve -Original Me

[PHP] Cannot Access Includes Above Current Directory if using SSL

2003-12-24 Thread Steve Benson
;t reference a file up one level. If I'm three levels deep I can't reference files back on level two, bummer! I appreciate any suggestions. Thanks, Steve

[PHP] Cannot Access Includes Above Current Directory if using SSL

2003-12-24 Thread Steve Benson
;t reference a file up one level. If I'm three levels deep I can't reference files back on level two, bummer! I appreciate any suggestions. Thanks, Steve

[PHP] Can't Access PHP Includes Above Current Directory if using SSL

2003-12-29 Thread Steve Benson
27;ve been unable to find it and would ask for anyone who may be able to help to please give suggestions on what directive(s) are causing this. I'd really appreciate a point in the right direction on a resolution. Thanks for your help, .. Steve

Re: [PHP] Display syslog file?

2004-01-09 Thread Steve Edberg
..although there might be socket_blocking or page flush() issues to experiment with - steve At 8:28 AM -0600 1/9/04, Carlton L. Whitmore wrote: I didn't make my last request very clear. I used lastlog as an example, but what I really want to do is open a syslog file (text file), that is coming

Re: [PHP] Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Steve Edberg
subdirectory level. Of course, if you need to include() in the middle of a page, or conditionally include files, these won't work - steve At 5:16 AM -0800 1/14/04, Freedomware wrote: Wow, that is a lot simpler than I imagined. Thanks for the tip! Jay Blanchard wrote: [snip] I thought this would b

Re: [PHP] case ?

2001-01-10 Thread Steve Edberg
>do something >break; > 'require' ALWAYS includes the file; 'include' is what you want here. The tradeoff is that include is slightly slower. For more info, see http://www.php.net/manual/function.include.php and http://www.php.net/manual/function.

RE: [PHP] case ?

2001-01-10 Thread Steve Edberg
g new today :) My production systems are still PHP3; PHP4.0.4 is still on my test system. - steve >-Original Message- >From: Maxim Maletsky >Sent: Thursday, January 11, 2001 2:26 PM >To: 'Steve Edberg'; Jon Rosenberg; PHP List . >Subject: RE: [PHP] case ? > >

Re: [PHP] how to track haeder trouble???

2001-01-11 Thread Steve Edberg
ge.php, including the HTTP headers. For more info on HTTP 1.1 (which most web servers should support by now), you can check out ftp://ftp.isi.edu/in-notes/rfc2616.txt (it's a ~412KB text doc). For a list of references to all HTTP protocols, extensions, proposals, etc. see

Re: [PHP] Performance question

2001-01-11 Thread Steve Edberg
tml pages through php (as opposed to just statically serving the html pages). This person had set his server to php-parse the .html extension. - steve >-- >Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > +--- "They've got a cherry pie there, that'll kill y

Re: [PHP] regex

2001-01-12 Thread Steve Edberg
http://www.php.net/str_replace http://www.php.net/preg_replace -steve (The usual off-the-top-of-my-head-untested-code-snippet caveats apply) +----+ | Steve Edberg University of California,

[PHP] cookies

2001-01-13 Thread Steve Lawson
You have to call setcookie() before anything is outputtedthat was it sounds like. SL.

[PHP] User/Group for PHP

2001-01-13 Thread Steve Lawson
Yo, Anyone know of a cfg option that would make files written by php be a different user/group than the apache server user/group? With my current setup, the only way to give php write access also allows any surfer write access to that same folder...which is "not a good thing". Thanks,

Re: [PHP] changing strings to float vars

2001-01-15 Thread Steve Edberg
$Number = (float)$SanitizedNumber; although in most cases PHP handles type conversion correctly on-the-fly. - steve +--- "They've got a cherry pie there, that'll kill ya" --+ | Steve Edberg University of California, Davis | |

Re: [PHP] Variable method

2001-01-18 Thread Steve Edberg
oIt($Answer) { echo "Noodles are happy? $Answer"; } } It's been awhile, but I believe that should work. If not, give us more info: What version of PHP? What, exactly, DID you try? - steve -- +--- "They've got a cherry pie there, that'll kill y

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

2001-01-16 Thread Steve Ruby
PHP handles persistent connections by leaving them open for some other identical connection request. The next request will check for a free connection. see http://www.php.net/manual/en/features.persistent-connections.php In other words, you don't need to worry about when they are closed php wil

[PHP] XOR data encryption

2001-01-20 Thread Steve Quezadas
ou convert the letters in the passphrase and the credit card number into 0 1 binary and then XOR that? What commands are there iN PHP that converts from alphanumeric to binary? If someone could post an example, that would be great. - Steve

Re: RV: [PHP] Does PHP works with Netscape Web Server orIPlanet???

2001-01-22 Thread Steve Edberg
ebsite that explained how to compile PHP to run as a NSAPI module; unfortunately, that URL disappeared. I could dig up that info for you anyway, if you're interested. Lastly, I believe that PHP4 comes with experimental NSAPI support; check www.php.net or www.php4win.de - steve &

[PHP] PHP && UltraEidt

2001-01-22 Thread Steve Haemelinck
Sometime ago I read that it is possible to configure UltraEdit to interprete PHP Code. Is this correct? Which configuration settings do I have to make in UltraEdit? Steve Haemelinck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Getting warning using split

2001-01-23 Thread Steve Edberg
time to time on this list; also, I think there are a few references mentioned in the online docs for the ereg_ and preg_ functions. You can also get the O'Reilly book 'Mastering regular expressions.' That being said, though, explode() is probably a better function to use here. If

Re: [PHP] non-php related question.

2001-01-23 Thread Steve Edberg
but I want to move it to my server at work. Does >anyone know of a script of some sort that will go to my site, copy all the >files to a specified folder, and follow my internal links? Thanks for the >info. > -- +--- "They've got a cherry pie there, that'll ki

Re: [PHP] Help w/ quotes/html and data from MySQL

2001-01-23 Thread Steve Edberg
the value of a textarea tag is not put in a 'value' attribute within the tag as with the INPUT tag; it is put in the textarea 'container' - that is, between the and tags. - steve -- +--- "They've got a cherry pie there, that'll kill ya&q

Re: [PHP] Form data is not "remembered"

2001-01-24 Thread Steve Edberg
h any existing data (from HTTP_POST_VARS, etc.) filled in and error messages, if any, displayed. Basically, the FORM tag action attribute refers to the same program as displayed the form - that is, $PHP_SELF. Hope this is clear...I getting tired, and I don't even think an intr

[PHP] Editors, again (was Re: [PHP] Beginner in php!)

2001-01-24 Thread Steve Edberg
bit out of date - for instance, BBEdit 6.0 (Macintosh) now has PHP syntax highlighting - but it's a got starting point. - steve > >- Original Message - >From: kaab kaoutar <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, January 24, 2001 4:2

Re: AW: [PHP] eval() to string???

2001-01-24 Thread Steve Edberg
was of type void and did never return anything." So, if you're using PHP4, just ensure that there is a return in$php_code that returns the desired value: $thing = eval($php_code); It's helpful to read the notes at the above URL - escaping things correctly for eval() can be

Re: [PHP] Loop Through all Querystring Variables

2001-01-24 Thread Steve Edberg
th _POST_ or _COOKIE_, respectively. The reset(), by the way, resets the array pointer to the beginning of the array. It's not always needed, but I tend to do it anyway. It IS necessary, however, ig you use the above snippet within an enclosing loop. - steve -- +--- "Th

Re: [PHP] multiple function returns

2001-01-25 Thread Steve Edberg
: $Stuff = PrefChange($language, $currency, $state); if (is_array($Stuff)) { # ...do stuff with $Stuff ! } else { # ...show error message } - steve >Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EM

Re: [PHP] finding the difference

2001-01-25 Thread Steve Edberg
6400)) % 3600; $NMinutes = round(($R - ($NHours * 3600))/60); Why you would _want_ to do this, I don't know. I suppose if you're an ex-FORTRAN programmer frustrated by the lack of assigned and computed GOTOs and want to take it out on others, maybe. OK, now I'm ra

Re: [PHP] How do I see the data in list()?

2001-01-25 Thread Steve Edberg
est1 = array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot'); $foo = array($test, $test1); way of declaring the $foo array, you could also say $foo = array( array('bean', 'noodle', &

Re: [PHP] VAR and variables

2001-01-25 Thread Steve Edberg
allowed? > >$test = new Simple(); >echo $test->a; > > Yep. You can also _set_ $a this way: $test = new simple; $test->a = 77; echo $test->first(); will display 77. See http://www.php.net/manual/en/language.oop.php for more info.

Re: [PHP] Using a variable to select what variable to use...???

2001-01-26 Thread Steve Edberg
e of the digit to 2. If so, you could do for ($i=1; $i<$SomeNumber; $i++) { $VarName = 'run'.max($i, 2); $SomeValue = some_function($$VarName); } -Steve > >Brandon Orthe

[PHP] PHP.INI

2001-01-26 Thread Steve Haemelinck
Should I place the error_log dir between quotes? "/var/log/php4/error.log" Or not? -- 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] isset()

2001-02-22 Thread Steve Edberg
type-casting issues here, depending on: whether $AgeChild is numeric or string; the fact that the STRING "false" isn't equivalent to the CONSTANT false, the use of == vs. ===. Time to check out the docs - specifically the types and variables sections (also the functions->

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