[PHP] IPlanet Webserver

2002-09-11 Thread Chris Boget
Do any of you guys have experience setting PHP up with the IPlanet webserver? We are trying it out (for a client) and we can't seem to get to so that PHP gets the POST or GET variables passed from a form and would like to talk with someone who's had experience working with or around this problem

RE: [PHP] basic voting

2002-09-11 Thread David Buerer
Since you haven't divulged your task, I'm guessing from comments that receving 24 votes from faked emails is a really bad thing. In that case you have no choice but to thoroughly authenticate your users! Hey, at least it's not a complicated thing to do, just kind of pain on everyones end. -O

RE: [PHP] basic voting

2002-09-11 Thread James E Hicks III
How bout this for just a little better than IP logging. -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:24 AM To: Justin French Cc: php Subject: Re: [PHP] basic voting Most sites log by IP but if its the IP of a firewall, it wou

[PHP] is php4.2 supported on freebsd-4.2

2002-09-11 Thread Anil Garg
Hi, i am using php.4.1.2. on freebsd 4.2 i want to upgrade from 4.1.2 to 4.2.2... The problem is: 1. Is php 4.2.2 supported on freebsd-4.2 ? 2. Can this happen that after upgrade(of php).some code doesnt work on 4.2.2 which was working on 4.1.2. thanx and regards anil -- PHP General

Re: [PHP] basic voting

2002-09-11 Thread Adam Williams
Most sites log by IP but if its the IP of a firewall, it would only be one vote from everyone behind the firewall. Adam On Thu, 12 Sep 2002, Justin French wrote: > Hi, > > I'm looking to implement very basic like it | hate it voting for a product > on a site, but I'd lik

Re: [PHP] basic voting

2002-09-11 Thread Justin French
on 12/09/02 12:12 AM, David Buerer ([EMAIL PROTECTED]) wrote: > Justin, you've just asked for a way to restrict the possible number of votes > from any one person to 1, however, you don't want to find out anything about > that person! I'd consider that a restriction to getting lots of votes in a

RE: [PHP] Re: mysql query

2002-09-11 Thread David Buerer
sorry bill, i misunderstood your question. I thought you wanted to only return one row, not just get one value. Given my new understanding, I would do something like this which is only a slight variant on what you did $result = mysql_query("select euro from brandstofprijzen where id=2") or die

Re: [PHP] header() problem!!!!

2002-09-11 Thread Henrik Hudson
I have not had any problems on IE 6 with this. The code I am using on numerous scripts looks like this: header("Content-Disposition: attachment; filename=$filename"); header("Content-Type: application/octet-stream"); fpassthru($filehandle); fclose($filehandle); Maybe the the combination of usin

RE: [PHP] basic voting

2002-09-11 Thread David Buerer
Justin, you've just asked for a way to restrict the possible number of votes from any one person to 1, however, you don't want to find out anything about that person! Although I certainly understand your position, you either have to get from them some information specific to the person, like, nam

Re: [PHP] Re:[PHP]question

2002-09-11 Thread John Wards
Meltem, Your english is very good but you have lost me :) could you explain more slowly John - Original Message - From: "Meltem Demirkus" <[EMAIL PROTECTED]> To: "John Wards" <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 3:32 PM Subject: Re: [PHP] Re:[PHP]question > then

[PHP] Re: mysql query

2002-09-11 Thread bill
Ooops, for clarity, I shouldn't have named the result of the function "row" but "euro". It should be: $euro=mysql_one_element("select euro from brandstofprijzen where id=2", "euro"); Bill wrote: > function mysql_one_element($query, $element) { > // quickly returns just one element from a que

[PHP] basic voting

2002-09-11 Thread Justin French
Hi, I'm looking to implement very basic like it | hate it voting for a product on a site, but I'd like to implement some simple (or not so simple) ways of ensuring people don't vote over and over and over. 1. I could set a cookie. Sure, they could delete the cookie and re-vote though, and those

RE: [PHP] Re: Dependent Dropdown Boxes

2002-09-11 Thread Roger Lewis
Thanks Elias, I took a look at the code and there are indeed many things to learn; however, it's all in js. I'm trying to have php write the js, but I don't know enough about arrays and manipulating their elements. Roger -Original Message- From: lallous [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] ucwords()? and åäö

2002-09-11 Thread Ville Mattila
I can't say correct answer to this, but want also notify that strtoupper() -function doesn't affect to those special charters å, ä and ö that are very common in Finnish language. Ville -Original Message- From: Tommi Virtanen [mailto:[EMAIL PROTECTED]] Sent: 11. syyskuuta 2002 17:14 To:

[PHP] ucwords()?

2002-09-11 Thread Tommi Virtanen
Hi! I'll try to convert field first char to upper by using ucwords(). Well, this doesn't seem to work correct. Well maybe error came, because that characteres are not standard (they are special characterers, finnish language). Example: $work_text = "perhepäivähoitaja"; $work_text = ucwords

RE: [PHP] Displaying value different from actual value

2002-09-11 Thread Jay Blanchard
[snip] Thanks Jay. How would that work into something like: printf("Total Budget: $%s\n", mysql_result($result,0,"budget")); or printf("%s%s%s%s%s%s%s\n", $myrow[0], $myrow[0], $myrow[4], $myrow[8], $myrow[9], $myrow[7], $myrow[10]); [/snip] You have to do the test prior to the output, chec

Re: [PHP] Re:[PHP]question

2002-09-11 Thread John Wards
oh missed something out... function your_form_html($var_1=null, $var_2=null){ global $message echo $message; ?>etc... This will print out your form again with the variables the user submited plus the message. Is this what you need? John > I think it only prints out the message .. am I wrong?

[PHP] Multiple user session management confusion?

2002-09-11 Thread Ian Thurlbeck
Dear All We are testing a multi-user quiz system with PHP session management. Everything has been fine until we tested the system with about 12 users... Each user gets an individual instantiation of some questions and they type in some answers and submit them for marking. To remember the quest

[PHP] Re: Fw: Questions regarding inserting and updating data into a MySQL db

2002-09-11 Thread bill
comments below Axis Computers wrote:   - Original Message - From: Axis Computers To: [EMAIL PROTECTED] ; PHPSent: Tuesday, September 10, 2002 4:51 PMSubject: Questions regarding inserting and updating data into a MySQL db  Hi, I'm developing a web application that uses forms for user in

RE: [PHP] Re: mysql query

2002-09-11 Thread David Buerer
Look into the LIMIT command, it will limit the number of rows in the result set to the number you specify -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:10 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: mysql query function mysql_one_element(

Re: [PHP] Displaying value different from actual value

2002-09-11 Thread Dave Rosenberg
Thanks Jay. How would that work into something like: printf("Total Budget: $%s\n", mysql_result($result,0,"budget")); or printf("%s%s%s%s%s%s%s\n", $myrow[0], $myrow[0], $myrow[4], $myrow[8], $myrow[9], $myrow[7], $myrow[10]); Thanks, Dave Jay Blanchard wrote: > [snip] > I'm not sure th

Re: Fw: [PHP] Re:[PHP]question

2002-09-11 Thread Support @ Fourthrealm.com
Meltem, You're much better off to use JavaScript to perform the form validation. This way, when the user clicks on the Submit button, JavaScript can make sure that values are filled in, or that they are within range, and can then pop up a message advising them of any errors, and that they ca

[PHP] Re: mysql query

2002-09-11 Thread bill
function mysql_one_element($query, $element) { // quickly returns just one element from a query $one=mysql_query($query); // add error checking here if you wish $r=mysql_fetch_array($one); $thisvalue=$r[$element]; return($thisvalue); } $row=mysql_one_element("select euro from brandsto

RE: [PHP] Displaying value different from actual value

2002-09-11 Thread Jay Blanchard
[snip] I'm not sure this is possible, but here's what I'd like to do: I know that in order for a set of records from MySQL to display in numerical order on a web page, you need to make the column type "Integer," but here's my situation: I'm creating a database of contracts that my organization ha

Re: [PHP] Re:[PHP]question

2002-09-11 Thread John Wards
right... To: <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 2:53 PM Subject: Fw: [PHP] Re:[PHP]question > I think because of my bad english I made you misunderstand..I ment this : > for example when a person miss an input to fill on the from and then > press the

[PHP] Displaying value different from actual value

2002-09-11 Thread Dave Rosenberg
I'm not sure this is possible, but here's what I'd like to do: I know that in order for a set of records from MySQL to display in numerical order on a web page, you need to make the column type "Integer," but here's my situation: I'm creating a database of contracts that my organization has. N

Fw: [PHP] Re:[PHP]question

2002-09-11 Thread Meltem Demirkus
I think because of my bad english I made you misunderstand..I ment this : for example when a person miss an input to fill on the from and then press the submit button I want him to be back to the same form page with a special message that I entered (something like :you left . place empty).B

Re: [PHP] question

2002-09-11 Thread Miles Thompson
Julie Meloni to the rescue again - http://www.thickbookcom, you'll find a tutorial on custom error messages. In fact, after working on that you may rethink your approach. Miles Thompson At 04:31 PM 9/11/2002 +0300, Meltem Demirkus wrote: >Hi, >I am working on a process which turn to the previou

[PHP] Re:[PHP]question

2002-09-11 Thread Meltem Demirkus
Thanks ...But I know this way about carrying data from one page to another.. I want this message to be seen on the page without my doing anythingand I cant do that?.. - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: "Meltem Demirkus" <[EMAIL PROTECTED]>; <[EMAIL PROTEC

Re: [PHP] Unable to flush output

2002-09-11 Thread PHP
I do not have compression in apache - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 3:38 PM Subject: Re: [PHP] Unable to flush output > Didn't you enable some apache extentions, like compression. > > PHP

Re: [PHP] question

2002-09-11 Thread John Wards
pass the message as a variable header:location.php?message=$message - Original Message - From: "Meltem Demirkus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 2:31 PM Subject: [PHP] question > Hi, > I am working on a process which turn to the previous

[PHP] question

2002-09-11 Thread Meltem Demirkus
Hi, I am working on a process which turn to the previous page when the user enter something wrong in the form on a page .But I also want to warn the user with an error message on this page ...I know using heder : location but I couldn't add the message ... can anybody help me ? How can I add this

RE: [PHP] Comments in code

2002-09-11 Thread Jay Blanchard
[snip] I just started writing comments in my code for use with phpdocumentor. And Im beginning to wonder if too many comments is a *bad* thing. I was wondering about file size, but dont think that can be avoided, and php's parser speed. Nothing bad, just looking to see what others have to say abou

[PHP] Comments in code

2002-09-11 Thread Gerard Samuel
I just started writing comments in my code for use with phpdocumentor. And Im beginning to wonder if too many comments is a *bad* thing. I was wondering about file size, but dont think that can be avoided, and php's parser speed. Nothing bad, just looking to see what others have to say about it. T

[PHP] Upload

2002-09-11 Thread Sascha Braun
This is the Error Message: value of $source : C:\WINNT\TEMP\php98.tmp Error: 0 Warning: Unable to open '' for reading: Permission denied in C:\Webverzeichnis\docs\living_sports\living_sports\lsadmin\includes\image.handling.inc.php on line 129

[PHP] upload

2002-09-11 Thread Sascha Braun
This is the original code: "none") { if ($error <> 1) { $dest = $path.$source_name; if (copy($source, $dest)) { echo ''.$source_name-' wurde hochgeladen'; } else { echo 'Schreibrechte im Zielverzeichnis fehlen'; $error = 1; } } @unlink(

Re: [PHP] PHP, ask questions

2002-09-11 Thread Marek Kilimajer
Make sure you are not outputing anything besides the headers and actual content of the file, you may also try looking at the downloaded file if there are any php errors and/or warnings. Ralf Bengl wrote: >hallo ..., > >my name is ralf and i read the comments from the last weeks about >"downloa

Re: [PHP] Unable to flush output

2002-09-11 Thread Marek Kilimajer
Didn't you enable some apache extentions, like compression. PHP wrote: >Hi all, >Until yesterday i was running Apache/2.0.36 (Unix) mod_ssl/2.0.36 OpenSSL/0.9.6c >PHP/4.2.1 and was able to flush script output to browser (using flush() ), before >the script stops executing. I upgraded to Apach

[PHP] Image upload

2002-09-11 Thread Sascha Braun
Please Excuse, the code must look like this: if(!file_exists('../images/upload_tmp')) { $dir = '../images/upload_tmp'; mkdir($dir); chmod($dir, 0777); $path = dirname($PATH_TRANSLATED).$dir.'/'; for ($i = 0; $i < 10; $i++) { switch($i) { case $i: $source = $image

Re: [PHP] Apache compile

2002-09-11 Thread William Allmendinger
I deleted the entire source upacked again then did the new compile for the apache module. I have the approprate lines in the httpd.conf file to load the php modules. I just did httpd-l and made sure that the module is loaded. And the cgi iss for local scripting on the server only and I do have th

[PHP] Image Upload

2002-09-11 Thread Sascha Braun
Hi Freaks, I got a problem to solve. This script i wrote seems to have an failure but I don't know why. The Error Message is telling me, that I don't have the permission to do the action I want to do. I thought it has some to do with my windows apache installation, but on linux its the same b

Re: [PHP] Sending Attachements through php email form

2002-09-11 Thread Justin French
Hi, I'm not aware of any existing code/samples for this, but the individual components you need to break it down into are pretty straight forward: 1. Learn about forms, validation of user input, and in particular file uploads (which there is a perfect library of working code in the manual: http:

[PHP] basilix

2002-09-11 Thread sonjaya
I have installed basilix 1.1.0 , I have imap too also php support for imap but why every I get to basilix always get error like this: xx.xx.xx.xx - - [12/Sep/2002:19:09:45 -0400] "GET index.php?testCookie=1 HTTP/1.1" 302 5 looping until I stop the browser .. any one how to solve this problem.

Re: [PHP] header question

2002-09-11 Thread Krzysztof Dziekiewicz
> On Wed, 11 Sep 2002, Meltem Demirkus wrote: >> I want to know if there is any way to send data in >> header("Location:login.php") .I know how to send like this > href=\"login.php?id=$ID\"> but I need to use header and I dont know howto >> do this?... > header( "Location: login.php?id=${

RE: [PHP] PHP as a tool for developing enterprise systems.

2002-09-11 Thread Jay Blanchard
[snip] I have just had a discussion in which it was said that PHP cannot be used to develop a *true* enterprise system. In light of this, I would be very interested to hear you comments/opinions/arguments on: 1. What would you consider to be a true enterprise system? [/snip] Here is one definiti

[PHP] Unable to flush output

2002-09-11 Thread PHP
Hi all, Until yesterday i was running Apache/2.0.36 (Unix) mod_ssl/2.0.36 OpenSSL/0.9.6c PHP/4.2.1 and was able to flush script output to browser (using flush() ), before the script stops executing. I upgraded to Apache/2.0.40 (Unix) mod_ssl/2.0.40 OpenSSL/0.9.6g PHP/4.2.3 and on the same scri

RE: [PHP] How to pass null as value?

2002-09-11 Thread Jon Haworth
Hi Chuck, > how do you pass null on to a page as a value. > Let say in a field where you have a yes and no. > Null needs to equal no. Pass from where? If it's a checkbox on a form, just use isset() to test for the existence of the variable: true means it's ticked, false means it isn't. If i

[PHP] How to pass null as value?

2002-09-11 Thread Chuck PUP Payne
I know this may have been asked a thousand times but how do you pass null on to a page as a value. Let say in a field where you have a yes and no. Null needs to equal no. Is this more mysql? Can it be done in php? Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.

[PHP] PHP, ask questions

2002-09-11 Thread Ralf Bengl
hallo ..., my name is ralf and i read the comments from the last weeks about "download a file" with php on http://www.php.net/manual/en/function.header.php. i tryed a few of this examples, but i have still a problem with downloading a file, i.e. a "ms-word file" or a pdf-file or something else:

RE: [PHP] not passing arguments from HTTP GET?

2002-09-11 Thread Jay Blanchard
[snip] I am running PHP 4.2.2 on Apache 1.3.26 under MacOS X 10.2. My scripts' functionality seems to have gone amok, and while I am not sure this is the fault of php directly, I was hoping someone could help me track down the problem. Basically, if I have a script that I pass arguments to on a g

[PHP] Sessions problem and unsettling Session variables

2002-09-11 Thread David Russell
Hi all, I have a problem... I have 3 pages in a search mechanism. Page 1 (Search.php) unsets all related session variables. It then displays a form which allows the user to specify search criteria. Submission sends us to Page 2 Page 2 (generateListSQL.php) Sets up the basic database search q

Re: [PHP] header question

2002-09-11 Thread Chris Wesley
On Wed, 11 Sep 2002, Meltem Demirkus wrote: > I want to know if there is any way to send data in > header("Location:login.php") .I know how to send like thishref=\"login.php?id=$ID\"> but I need to use header and I dont know howto > do this?... header( "Location: login.php?id=${ID}" );

[PHP] Sending Attachements through php email form

2002-09-11 Thread Heidi Belal
Hi, I was wondering if anybody could tell me the best way and how to code sending an attachement with an email form. I want the user to be able to browse and select the file he wants to attach, and i want the reciepent to be able to see the file that has been attached with the email. Thanks

[PHP] header question

2002-09-11 Thread Meltem Demirkus
Hi , I want to know if there is any way to send data in header("Location:login.php") .I know how to send like this but I need to use header and I dont know howto do this?... thanks alot meltem demirkus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] PHP as a tool for developing enterprise systems.

2002-09-11 Thread Scott Houseman
Dear all. I have just had a discussion in which it was said that PHP cannot be used to develop a *true* enterprise system. In light of this, I would be very interested to hear you comments/opinions/arguments on: 1. What would you consider to be a true enterprise system? 2.Is his statement correct

Re: [PHP] Questions regarding inserting and updating data into aMySQL db

2002-09-11 Thread Marek Kilimajer
mysql_insert_id() will tell you the number of last auto_increment insert, you can use this, but you must keep it using session on the server side for security reasons. But better solution be to use session or hidden fields in your forms to pass the values from page to page and insert them at o

[PHP] Re: sessions nightmare

2002-09-11 Thread Philippe Saladin
Your variable in session is called "Item", so session_register("SESSION") is wrong. It should be session_register("Item"). But, as you use directly the new syntax ($_SESSION) to affect the variable, you don't need session_register. The variable "Item" will be automatically registered when you writ

Re: [PHP] Strore Data in File

2002-09-11 Thread Marek Kilimajer
You may use either dBase ( http://www.php.net/manual/en/ref.dbase.php ) or http://www.php.net/manual/en/ref.dba.php Ram K wrote: > Hi > > I want to store the data of a table in a file and read that file just > as one would read a table. For e.g. I have a table t_data with cols > name,numbe

[PHP] Re: sessions nightmare

2002-09-11 Thread Erwin
> I want to be able to have a user login (which is completed), they > goto a search page (completed), and search for a particular item > (completed). A page will display all the links for the items searched > for (completed). What I want out of sessions is to when they click on > the link for a pa

[PHP] Re: sessions nightmare

2002-09-11 Thread lallous
I use JavaScript cookie to accomplish what you're doing in your case: function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((d

[PHP] Re: Help, Parse error caused by quotes andapostrophes in function, How do I fix this?

2002-09-11 Thread lallous
try this: exec('convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw "text 10,10 \'my text to add to picture\'" text-overlay.jpg'); when you start with a single quote -> you have to end with a single quote while escaping (using "\") all its occurences in the use

Re: [PHP] sessions nightmare

2002-09-11 Thread John Wards
I can't see anything sticking out...but why have you done this... $test2Url = "test2.php?PHPSESSID=" . session_id( ); You don't need to do this. Try doing this $test2Url = "test2.php"; Your server might be set up to use a different name for sessions John Wards SportNetwork.net - Original

[PHP] sessions nightmare

2002-09-11 Thread Chris
Greetings, I am a new user to php and sessions and for the life of me I cannot figure this out I want to be able to have a user login (which is completed), they goto a search page (completed), and search for a particular item (completed). A page will display all the links for the ite

Re: [PHP] header() problem!!!!

2002-09-11 Thread Jim lucas
This is not a bug. This is just one of many differances between the big browser war. With Netscape (not sure which versions), the attachment thing I found is required. But with IE it kills the browser. - Original Message - From: "xdrag" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMA

[PHP] not passing arguments from HTTP GET?

2002-09-11 Thread Mark Setzer
Hi all, I am running PHP 4.2.2 on Apache 1.3.26 under MacOS X 10.2. My scripts' functionality seems to have gone amok, and while I am not sure this is the fault of php directly, I was hoping someone could help me track down the problem. Basically, if I have a script that I pass arguments to o

[PHP] Re: Dependent Dropdown Boxes

2002-09-11 Thread lallous
Hi, Try to learn many things from the test code i created below: http://lgwm.org/ozone/dynatable.htm Good luck, Elias "Roger Lewis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The Situation: > > I'm trying to create a pair of dynamic dropdown boxes wher

[PHP] connection with bibit (XML)

2002-09-11 Thread Wilbert Enserink
Hi all, I am trying to set up a connection between my site and a payment system (bibit). Does anybody know some good URL's which can help set up the connection and parse all XML messages. I'm sure this must have been done before...so there should be no reason to invent the wheel again. thx.

[PHP] Re: mysql_insert_id

2002-09-11 Thread Erwin
Clemson Chan wrote: > Hi guys, > > I never can get mysql_insert_id? > Is this broken with PHP4? > Please let me know if you can get it to work. or work around. It works here, but it returns only an ID if the table in which you add a record has a AutoIncrement column, because it will returns the v

<    1   2