Re: [PHP] Re: get the median from an array of integers

2002-03-01 Thread Erik Price
On Friday, March 1, 2002, at 02:28 PM, Jason Wong wrote: > On Saturday 02 March 2002 02:03, Daniel Grace wrote: >> As for the median value, there's a relatively easy way to do this in >> PHP: > > I think Erik has gotten his terms mixed. He wants the "most-chosen" > value, > which is the "mode

Re: [PHP] Non printable page

2002-03-01 Thread Scott St. John
Black background, white text used to work :) On Fri, 1 Mar 2002, Diana Castillo wrote: > Is there any way tomake a page that cannot be printed?? > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Non printable page

2002-03-01 Thread Lars Torben Wilson
Diana Castillo writes: > Is there any way tomake a page that cannot be printed?? No. If you display data on my machine I can do anything with it, since it must exist on my machine in some form in order to be displayed. -- Torben Wilson <[EMAIL PROTECTED]> http://www.thebuttlesschaps.com htt

Re: [PHP] passing array of variables in a query string

2002-03-01 Thread Richard Baskett
If you have control over the query string, just name your variable 'state[]' and then when it is passed through the query string as: http://www.archipro.com/test.php?state[]=AB&state[]=BC PHP will see that it is an array and will parse it as such and you can access the variables as an array. Ch

RE: [PHP] Unable to display images on browser

2002-03-01 Thread Narvaez, Teresa
Hello, Thanks for your responses; however, I do not think I have the gd libraries installed because ImageCreateFromString() was not found. I will install it. I have a question: I can display the PNG or GIF image using the browser. So Why do I need the GD library? Since I stor

Re: [PHP] empty() & texarea

2002-03-01 Thread Richard Baskett
This is a simple solution and it should work and you'll probably kick yourself when you hear it *grin* Use: Put it all on one line, because the way you have it currently there are white spaces in the textarea and a newline so it's always going to be FALSE when testing to see if it's empty. Ch

Re: [PHP] Non printable page

2002-03-01 Thread Scott St. John
Seriously, another option that works in IE would be to use the link tag in the of the document. Put an alternate document in the tag so when they print the page you can control the content. Here is the tag: -Scott On Fri, 1 Mar 2002, Diana Castillo wrote: > Is there any way tomake a page

[PHP] how to use PHP on command line in windows

2002-03-01 Thread Peter J. Schoenster
Hi, I use NT for development and I like to write snippets of code and test them on my local box. I can do this in Perl. How can I do that in PHP without installing a webserver etc. etc. I guess I can install a version of PHP and just make sure I've got the path in my env. Thanks, Peter http:

Re: [PHP] how to use PHP on command line in windows

2002-03-01 Thread Scott St. John
Just download the CGI version and call it from the command line. I am doing a project now based entirely on the command line using PHP as a file parser on Win 2K. You can add it to your path or just call it: c:\php\php.exe -q nameOfScript.php Make sure you write it like a normal PHP script wi

[PHP] safe mode and file handling

2002-03-01 Thread Mika Lindqvist
I and my www space provider have fought with a problem. All files/directories created by PHP are owned by nobody/nobody and we want them to be created by my own uid/guid. How this would be solved by least amount of modification in the scripts. The problem is in that safe mode requires that the s

Re: [PHP] safe mode and file handling

2002-03-01 Thread Rasmus Lerdorf
The easiest way to make this work is to use open_basedir settings instead of safe_mode. Safe_mode is specifically created to prevent you from doing what you are trying to do. -Rasmus On Fri, 1 Mar 2002, Mika Lindqvist wrote: > I and my www space provider have fought with a problem. All > files

[PHP] Announcement: Smarty template engine 2.0 available

2002-03-01 Thread Monte Ohrt
Smarty 2.0 is out! The most notable new things: *) Smarty has been rewritten with an underlying plugin architecture, so adding functions, modifiers, compiler functions, prefilters, postfilters, resources, and insert functions is as easy as dropping a file into the plugin directory. *)

[PHP] RE: mysql and telnet.

2002-03-01 Thread Andrew Chase
Hmm, I'm assuming you're paying someone to host your site? Can't you give the hosting company a quick call or e-mail re: whether or not they offer MySQL? They would probably know better than we would. ;) -Andy > Thanks for the advice... But now I need to know what all this means: > > /home/chi

[PHP] Andy...

2002-03-01 Thread Sean Kennedy
hi, no, i'm not paying for my host. its from my isp. they didn't know. i'm not asking if you know if i have it. i'm asking for help with figuring it out via telnet. i got it. so thanks for your help anyway. -sean kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.p

Re: [PHP] safe mode and file handling

2002-03-01 Thread Jim Lucas [php]
if you are on a unix system running with apache, you could modify the virtual host block and have apache run as your user name and then change the permissions of the docroot so you are the owner and group. Jim Lucas www.bend.com - Original Message - From: "Mika Lindqvist" <[EMAIL PROTECTE

Re: [PHP] Unable to display images on browser

2002-03-01 Thread Andrew Brampton
if u have the data stored in the DB, just chuck the data out, with the correct mime-type header.. Andrew - Original Message - From: "Narvaez, Teresa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 8:41 PM Subject: RE: [PHP] Unable to display

RE: [PHP] Unable to display images on browser

2002-03-01 Thread Narvaez, Teresa
Andrew, That is exactly what I am trying to do but the only thing I get is a box with an X on IE 4.0 and Netscape Communicator 4.73. Please see my a fragement of my php code below. Thanks in advance! -Teresa -- file1.php ---

[PHP] PHP Job opportunity, Washington DC Area

2002-03-01 Thread Alok K. Dhir
We have an immediate position available for an experienced web developer with the following skills: Required skills (1.5+ years in each): - PHP web development in a Linux/Unix environment - SQL (MySQL preferred) - HTML/Javascript Plusses: - Linux/Unix sysadmin

Re: [PHP] Unable to display images on browser

2002-03-01 Thread Andrew Brampton
RE: [PHP] Unable to display images on browserI've never done this in PHP, but one way of testing if your output is correct is telnet to your webserver and request the php script yourself. Then request a valid JPG (or whatever), and compare the outputs.. If you have netcat (great tool), you can

[PHP] Email MIME Support?

2002-03-01 Thread Steven Walker
Hello, I've just moved my website to a new server and sendmail is not working the same. My email messages (sent via mail()) are coming out blank or with mime attachments. To verify my sanity, I tested this same script on the old server and it came through fine. The new server seems to like on

Re: [PHP] PHP and passwords

2002-03-01 Thread William Lovaton
If you use just and .inc file any user with a browser can hit in the URL: http://www.site.com/connect.inc and see what is inside. So, de recomendation is: Use a .php extension: connect.inc.php William El jue, 28-02-2002 a las 14:16, Sam Masiello escribió: > > What you could do is have a sc

[PHP] showing last mod. of *included* file

2002-03-01 Thread Timothy J. Luoma
I have been using this code to show the last modified time: (Note: the following was adapted from http://www.terrabyte.dc.com.au/phpscripts.php3 ) // the server is 13 hours ahead of Eastern Time USA $hourdiff = "13"; $timeadjust = ($hourdiff * 60 * 60); $eastern_time = date("d M Y g:ia",getlast

Re: [PHP] PHP and passwords

2002-03-01 Thread Rasmus Lerdorf
No, that is not a good idea. It is potentially much worse to allow people to execute include files out of context than to merely let them see them. The correct way to handle this is to either put your include files outside the document_root, or add an Apache rule to block any direct access to .in

[PHP] Arabic Form Input - Help!

2002-03-01 Thread anarchocipher
Hello, I am writing software which uses MySQL as a backend. I need to accept Arabic form input, store it in MySQL, and use it later. I don't believe MySQL supports Unicode except in BLOB column types, so I want to convert it to NCR (numeric character html entities). After looking at iconv() and re

[PHP] Variables that can't be set by query string

2002-03-01 Thread James Taylor
I have a weblog type script I'm building for a friend where there are main posts then comments - Registered users can post comments, unregistered don't even have the option. I was thinking of making a page where a user logs on, then it registers a session with a few variables like $sid, $usern

Re: [PHP] Overriding session headers

2002-03-01 Thread William Lovaton
May be this helps: http://www.php.net/manual/en/function.ob-start.php William. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Variables that can't be set by query string

2002-03-01 Thread Erik Price
On Friday, March 1, 2002, at 06:11 PM, James Taylor wrote: > IF a user is logged on, they can post, if not they don't even see the > option. > Instead of doing a SQL query everytime they look at the posts, I was > thinking > of registering a variable called like $true where if they're logged

Re: [PHP] error msg

2002-03-01 Thread William Lovaton
You have to check your php.ini and set a valid tmp directory for storing session data. Look for the session section. William. El vie, 01-03-2002 a las 02:52, mm fernandez escribió: > hi. i get this error message whenever i open my page (except during the > first time i open it). Can someone

[PHP] Time to recompile - time to add functionality

2002-03-01 Thread Scott Brown
Ok - the scenario: I have a box that I lease... I have root privs, so I can do almost anything I want to it. Almost being the key word. Unfortunately, any time I try to upgrade a base library, I snafu the thing, and the datacenter has to rebuild the libraries. Right now, I've got php4.0.4pl1 t

Re: [PHP] Non printable page

2002-03-01 Thread William Lovaton
But you could save the page... change the colors and then print it. William. El vie, 01-03-2002 a las 15:11, Scott St. John escribió: > Black background, white text used to work :) > > > On Fri, 1 Mar 2002, Diana Castillo wrote: > > > Is there any way tomake a page that cannot be printed??

[PHP] Re: Email MIME Support?

2002-03-01 Thread olev rumm
Have a same problem. Moved my mime stuff just for testing to other server and not working at all. working version www.toolmecindustries.com/submform.php not workin version at http://streetrave.tartu.ee/toolmec/submform.php what to do - good question.. Olev. "Steven Walker" <[EMAIL PROTECTED]

[PHP] Problem with global variables?

2002-03-01 Thread Jeff Lewis
We have some software where there is a form that people can enter a message in. When submitting the form, it is directed to a function that has global declarations for the subject and message of the post. This worked up until yesterday. And it didn't just happen on one site, it stopped on sever

[PHP] how do you install this patch?

2002-03-01 Thread Websitecd
How do you install this patch? php-4.0.6-to-4.1.1.patch.gz Regards, Joseph A. Bannon . The Webmaster CD http://www.thewebmastercd.com Join our affiliate program and get paid in 5 days. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] can I sandwich html docs with PHP

2002-03-01 Thread Michael Kimsal
Peter J. Schoenster wrote: > Using mod_perl I can write a module for any phase that Apache > goes through while handling a request. Based upon any variables I > want, I can tell Apache to have my module handle one of those > phases. So when you request this url for example: > > http://www.my

Re: [PHP] can I sandwich html docs with PHP

2002-03-01 Thread Rasmus Lerdorf
> > Using mod_perl I can write a module for any phase that Apache > > goes through while handling a request. Based upon any variables I > > want, I can tell Apache to have my module handle one of those > > phases. So when you request this url for example: > > > > http://www.mydomain.com/joe.html >

[PHP] Re: just wanna know

2002-03-01 Thread Quentin Bennett
Unlike echo, print can accept only one argument Unlike echo, print returns a value, which represents whether the print statement suceeded. Both are language constructs, so () are optional. Using () with echo limits you to one argument. All courtesy PHP 4 Bible. Quentin Bennett "Eoghan" <[EMAIL

[PHP] help please -- error compiling php 4.1.2 (4.0.6 compiles fine)

2002-03-01 Thread Scott Brown
I'm trying to deal with the recent security advisory... but I cant get 4.1.2 to compile on my system I'm getting : gcc -I. -I/home/webmaster/new_build/php-4.1.2/ext/standard -I/home/webmaster /new_build/php-4.1.2/main -I/home/webmaster/new_build/ph p-4.1.2 -I/home/webmaster/new_build/apache_1

[PHP] HTTP Post to another server

2002-03-01 Thread Quentin Bennett
Hi, I want to turn some form data in to and XML document, and the HTTP Post that data to another server. Is that possible from PHP. As a challenge, I know it is possible in ASP! Thanks In Advance Quentin Bennett mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] shopping cart question

2002-03-01 Thread Jon Feldhammer
The way I see it, there are three options for maintaining state in php. I've already taken the route of keeping a random session id and putting it into a database to track a user/cart. So the only variable i need to track is the session id. The three options I know of then are: 1. Putting the s

[PHP] anyone else been having this problem???

2002-03-01 Thread Ben Turner
I just developed a new site and some of the users that I have go to visit the site are prompted (under IE only) to download a language pack. Not sure why and to top all of that, the language pack it prompts them to download is blank Meaning the prompt doesnt say what language pack. So

Re: [PHP] showing last mod. of *included* file

2002-03-01 Thread Jason Wong
On Saturday 02 March 2002 07:05, Timothy J. Luoma wrote: > I have been using this code to show the last modified time: > > > // the server is 13 hours ahead of Eastern Time USA > $hourdiff = "13"; > $timeadjust = ($hourdiff * 60 * 60); > $eastern_time = date("d M Y g:ia",getlastmod() - $timeadjust

Re: [PHP] anyone else been having this problem???

2002-03-01 Thread GENESiS DESiGNS
Hmm.. Whats the web site address? -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Global Variable Change

2002-03-01 Thread Yasuo Ohgaki
Thomas Brodkorb wrote: > Hi folks, > > small problem with globals: > > I would like to set a variable global called "Language". > > This seems to be not a really problem, but it is. > > Index.php: > >session_start(); > if (!session_is_registered('Language')) { > session_register('La

[PHP] Re: Non printable page

2002-03-01 Thread michael kimsal
Diana Castillo wrote: > Is there any way tomake a page that cannot be printed?? > GZIP the page and force the end user to use Netscape. ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Ok Gurus Shake your nudels !!!

2002-03-01 Thread olev rumm
Mime problem. I have my web form here www.toolmecindustries.com/submform.php Now my email recieves all the contens thruogh [EMAIL PROTECTED] (fields what customer filles out) but attachment (picture fail) is shown like encrypted here: rewfg/wr;tlkmbwsl/kw;relktnh;wlkfdvbs.kdfnghb/asdfmgbn/.slfg

Re: [PHP] Overriding session headers

2002-03-01 Thread Daniel Grace
"William Lovaton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > May be this helps: > > http://www.php.net/manual/en/function.ob-start.php > > Nope, that won't work. I'm not even sending output at this point, just trying to prevent a header from being sent and I'm not being allow

[PHP] Re: showing last mod. of *included* file

2002-03-01 Thread Timothy J. Luoma
> Use filemtime(). UGH! There are so many things to learn! I hate asking obvious questions like this, but I'm still not finding the right search terms. I appreciate your patience. FYI the answer to my problem was found at http://www.php.net/manual/en/function.filemtime.php [EMAIL PROTECTED]

[PHP] Re: Building secure authentification with sessions

2002-03-01 Thread Matthew Crouch
this is in the ballpark: http://phpbuilder.com/columns/ying2602.php3?page=1 Andy wrote: > Hi there, > > I did recently read an article about security. Now I absolutly see the need > of recoding my authentification procedure on a community site. > > There are questions I hoped some of you gu

<    1   2