[PHP] Cookies not expiring

2002-03-14 Thread David McInnis
I understand that if an expiration time is not set, the cookie should expire at the end of the session (when the browser is closed). This is not happening. What is wrong here? I would actually prefer for the cookie to expire when the user left the Web site. Any ideas? Thanks, -- David A

[PHP] Problem upgrading to PHP 4.1.2

2002-03-14 Thread David Brannlund
Hi, We are currently using PHP 4.0.4pl1 with the following configure: ./configure --with-apxs --with-mysql --with-gd --with-zlib --prefix=/usr/local/php/ This configuration works with GD 1.3-6 and Freetype 1.x. When we try to upgrade to PHP 4.1.2 with the same configuration, we

Re: [PHP] Re: Variables within a string

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 14:14, Analysis Solutions wrote: [snip] The examples on that page are lame. For example: if($HTTP_COOKIE_VARS['username']){ // can only come from a cookie, forged or otherwise $good_login = 1; fpassthru (/highly/sensitive/data/index.html);

Re: [PHP] dynamically fill list box

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 16:07, gee wrote: A real newbie would be grateful for some help. I have a sports club membership database (Mysql) with first and last names, address and paid or not paid. In edit.php I would like to be able to pre-fill a list box with whether the person has paid or

Re: [PHP] Problem upgrading to PHP 4.1.2

2002-03-14 Thread Richard Archer
At 9:22 AM +0100 14/3/02, David Brannlund wrote: This configuration works with GD 1.3-6 and Freetype 1.x. When we try to upgrade to PHP 4.1.2 with the same configuration, we can't use the ImageTTF* functions. We tried to add --with-ttf to the configuration with the result that apache wouldn't

[PHP] Hi what is the prob with this small file?

2002-03-14 Thread Balaji Ankem
Hi friend, I am getting null values (0) for the following program. what will be the problem? Any help greatly appreciable!! example.php === ?php // Connect to MySQL $connection = mysql_connect( 'localhost',

[PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Balaji Ankem
Hi, UNIX_TIMESTAMP(2002-03-21 08:30:00) and mktime(2002,03,21,08,30,00) equal or not? But both are same timestamp..but returning values are different.y? Unixtimestamp from Mysql :1016679600 Unixtimestamp from PHP :953699601 y this much

RE: [PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Jon Haworth
Unixtimestamp from Mysql :1016679600 Unixtimestamp from PHP :953699601 y this much difference? A PHP timestamp is the number of seconds since 1st Jan 1970 A MySQL UNIX_TIMESTAMP is the date in MMDDHHMMSS format. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To

[PHP] installing php-interbase support

2002-03-14 Thread Francisco Jesus Castillo Pinazo
Hi, I would like to solve this problem on my apache-php instalation Fatal error: Call to undefined function: ibase_connect() in /home/pcash/public_html/includes/conexioninterbase.inc on line 7 To solve first i have try to do [root@www download]# rpm -i php-interbase-3.0.16-2bc.i386.rpm

Re: [PHP] Hi what is the prob with this small file?

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 17:38, Balaji Ankem wrote: [snip] $sql1=select UNIX_TIMESTAMP('start_date') startdate,UNIX_TIMESTAMP('end_date') enddate from request where req_status='Approved'; Did you try entering this query ($sql1) into mysql at the command line to ensure that

Re: [PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Rasmus Lerdorf
UNIX_TIMESTAMP(2002-03-21 08:30:00) and mktime(2002,03,21,08,30,00) equal or not? Careful, 08 != 8 A leading 0 indicates an octal number in PHP. Also, you have the arguments to mktime() completely messed up. It is hour, minute, second, month, day, year. 2002 is a

Re: [PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 18:03, Balaji Ankem wrote: Hi, UNIX_TIMESTAMP(2002-03-21 08:30:00) and mktime(2002,03,21,08,30,00) equal or not? But both are same timestamp..but returning values are different.y? Unixtimestamp from Mysql :1016679600

Re: [PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 18:11, Jon Haworth wrote: Unixtimestamp from Mysql :1016679600 Unixtimestamp from PHP :953699601 y this much difference? A PHP timestamp is the number of seconds since 1st Jan 1970 To be pedantic, in PHP it is time() A MySQL UNIX_TIMESTAMP is the date in

[PHP] mail() and qmail

2002-03-14 Thread Daniel Reichenbach
Hy list, seems like my PHP installation won't send mails with qmail. I'm using it with vpopmail. As suggested in the manual nots for mail() I tried using both /path/to/qmail/bin/sendmail -t -i and directly using /path/to/qmail/bin/qmail-inject for sendmail_path in php.ini. Anyway ... it doesn't

[PHP] Hi some logical help is required!!!

2002-03-14 Thread Balaji Ankem
**Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any

[PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Balaji Ankem
Hi friend, I need some help on this logic... 1. I have some range (A to B) which is fixed and A,B are very large numbers.(AB) 2. I have X to Y and I want to check this range should not match with A to B. How can I check this? Ex: 1) A=4 B=8 Totally 4 cases

[PHP] trouble with deleting files on unix

2002-03-14 Thread andy
Hi there, I know this is not a unix board, but maybe someone had to cope with the same problem. I have a couple of wired filenames matching all this pattern .jpeg: How can I delete all files matching this pattern recursive in all directories? I tryed : rm -r test *.jpeg:* But this only

RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Ford, Mike [LSS]
-Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: 14 March 2002 11:51 Hi friend, I need some help on this logic... 1. I have some range (A to B) which is fixed and A,B are very large numbers.(AB) 2. I have X to Y and I want to check this range

RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Niklas Lampén
First of all, take that 'I want to know when you received my e-mail' -thingie away. It's anoying. But to the solution: if ((x A || x B) (y A || x B)) { do something.. } Niklas -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: 14. maaliskuuta 2002

[PHP] What is needed to test php mail on a local testserver

2002-03-14 Thread andy
Hi there, I am wondering, how I could test the mail functions of php on a local machine. Do I have to install something like a mailserver, or does this come with php? Maybe someone knows some good articles on that. Thanx, Andy -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Niklas Lampén
Last X should be Y. Niklas -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 14. maaliskuuta 2002 14:05 To: Php-General Subject: RE: [PHP] Hi some logic help is required! First of all, take that 'I want to know when you received my e-mail' -thingie away.

RE: [PHP] getting values from multiple select

2002-03-14 Thread Ford, Mike [LSS]
-Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 21:32 I am working on a javascript box that will allow the user to drag values from one select box to another. I will use this box to set the values. This is a standard, multiple select

Re: [PHP] What is needed to test php mail on a local testserver

2002-03-14 Thread andy thomas
On Thu, 14 Mar 2002, andy wrote: Hi there, I am wondering, how I could test the mail functions of php on a local machine. Do I have to install something like a mailserver, or does this come with php? If you are using a Unix/Linux type server for your local system, sendmail (or an

Re: [PHP] trouble with deleting files on unix

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 20:01, andy wrote: Hi there, I know this is not a unix board, but maybe someone had to cope with the same problem. I have a couple of wired filenames matching all this pattern .jpeg: How can I delete all files matching this pattern recursive in all directories?

[PHP] Sorting in php

2002-03-14 Thread Uma Shankari T.
Hello, Can anyone please tell me is there any function in php for sorting in which the contents are stored in array -Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to UnRegist session when Close Browser

2002-03-14 Thread News.php.net
Hello,I'am Beginner in PHP, Now I meet a Problem with Session . I am Using Session to track my php web application Users ,I just want to know Who is online and Who has offline. I make a Quit Botton on my webpage, But Someone do not use it to quit my system .So I Can't know who has quit my system

Re: [PHP] Sorting in php

2002-03-14 Thread Edward van Bilderbeek - Bean IT
check the 1001 sort functions in the manual http://www.php.net for instance... Edward - Original Message - From: Uma Shankari T. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 1:36 PM Subject: [PHP] Sorting in php Hello, Can anyone please tell me is

[PHP] CLI through PHP

2002-03-14 Thread Liam
14/03/2002 10:51:10 PM Hi, I was wondering how I'd go about manipulating some command line software through PHP.  For instance, I have an FTP program installed that allows you to add users through the command line, but it's in this format:

[PHP] Parse Error

2002-03-14 Thread Jérome Moisy
Hy, When I try to see my page I have this message and I don't know why. If someone can explain to me. Thank You Parse error: parse error, expecting `')'' in liensfr.php on line 17 Source code : htmlheadLINK REL="stylesheet" HREF="mmenu.css"SCRIPT LANGUAGE="javascript"

[PHP] Update File Woe (Maybe OT!)

2002-03-14 Thread Caspar Kennerdale
This is not truly a php programming question but a problem I have when programming php on which I was hoping someone would shed some light. When I write php code I generally upload directly to a server via ftp. As I am on a pretty fast adsl line I have never seen toi the need to have a sever

[PHP] include, include_once bug or feature ?

2002-03-14 Thread Pavel Plesov
Hello! I have a trouble :( When I try this: --[index.php]-- ?php function f($action) { switch($action){ case 'one': include_once('M/one.php'); break; } } f('one'); ? -- --[M/one.php]-- ?php print pre\n; print_r(get_defined_vars()); print /pre\n; ? -- At

Re: [PHP] Parse Error

2002-03-14 Thread RIVES Sergio
For ($i = 1; $i ($nbline+1); $i++) { // Line 17 not : For ($i = 1; $i ($nbline+1); i++) { // Line 17 hope it helps you SR Jérome Moisy a écrit : Hy,When I try to see my page I have this message and I don't know why.If someone can explain to me.Thank You Parse error: parse

RE: [PHP] DHTML Trouble please help

2002-03-14 Thread Robert V. Zwink
You could modify near line 575 of tetrisIE.html: function Show_Score() { _block.score.document.forms[0].High_Score.value = high_score; _block.score.document.forms[0].Game_Score.value = game_score; } to something similar to: function Show_Score() {

RE: [PHP] Re: Get row number from mysql

2002-03-14 Thread Rick Emery
The greater question: Why does irow order matter? What are you REALLY trying to do? == In article 000701c1cb06$3b54f3b0$0101a8c0@nightengale, [EMAIL PROTECTED] says... Hello, How can I get the number of the current row, something like this: ? $sql = mysql_query(SELECT *

RE: [PHP] mail() and qmail

2002-03-14 Thread Rick Emery
I use qmail with PHP on a RH v 7.0 system. Works like a charm. I compiled/installed qmail from source. Installed RH, Apache, PHP from RPMs. I'm not at my home-office, where I have this set-up, so I cannot provide you with my set-up info. I dod not use vpopmail yet, but I will soon instll it

RE: [PHP] Cookies not expiring

2002-03-14 Thread Rick Emery
Can't read your mind, bud. Show us your code... -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 2:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Cookies not expiring I understand that if an expiration time is not set, the cookie should

RE: [PHP] include, include_once bug or feature ?

2002-03-14 Thread Matt Friedman
I think that since you are including a file into a function - the vars become local so they only exist when the function is running. Therefore, a call to get_defined_vars will not show them since the vars do not exist in the global scope. In fact, during the call to get_defined_vars, the included

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
On Wednesday, March 13, 2002, at 04:31 PM, Scott St. John wrote: If I send 5 fields to the next page PHP will show me one when I echo the variable to the page. If I try to split the varaiable I still get only one value in the echo. Tried to reponse.write it in asp and I get the string

RE: [PHP] Connecting Form result to PHP query?

2002-03-14 Thread Rick Emery
Form elements are passed to the following page as variable names. For instance, the text value in subject 1 input element: INPUT type=text name=subject1 is passed to the following page as: $subject1 -Original Message- From: PHPList [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13,

Re: [PHP] include, include_once bug or feature ?

2002-03-14 Thread Pavel Plesov
: I think that since you are including a file into a function - the vars : become local so they only exist when the function is running. Therefore, : a call to get_defined_vars will not show them since the vars do not : exist in the global scope. In fact, during the call to get_defined_vars, :

RE: [PHP] CLI through PHP

2002-03-14 Thread Rick Emery
index.html FORM method=post action=adduser.php INPUT type=text name=pwBR INPUT type=text name=pw2BR INPUT type=submit name=submit valuye=submit /FORM adduser.php - ?php ...write $pw and $pw2 to database ? did you try to do this yourself yet? what were the results?

Re: [PHP] Targetted redirection?

2002-03-14 Thread Erik Price
On Wednesday, March 13, 2002, at 07:36 PM, Analysis Solutions wrote: Sure it works... execpt when people who have Java'sCrap turned off come to your site. Oh, and then there's the folks with browsers that don't have JS at all? HTTP headers work across all browsers. header('Location:

Re: [PHP] Re: getting values from multiple select

2002-03-14 Thread Erik Price
On Wednesday, March 13, 2002, at 10:27 PM, David Robley wrote: If you are using a SELECT MULTIPLE you need to name the item as an array, e.g. NAME=multi[] - then loop through the array in the target script to extract the values. Don't forget to either define a default selection or

Re: [PHP] What is needed to test php mail on a local testserver

2002-03-14 Thread scott furt
... and AFAIK, if you're running windows, read 'php.ini' and you can specify an SMTP server to use for mail sending. andy thomas wrote: On Thu, 14 Mar 2002, andy wrote: Hi there, I am wondering, how I could test the mail functions of php on a local machine. Do I have to install something

Re: [PHP] CLI through PHP

2002-03-14 Thread scott furt
Pipes. I've only had to do it with perl, so i have no idea what the syntax or function calls are with PHP, but i'm almost positive that PHP supports reading/writing to/from pipes. Liam wrote: 14/03/2002 10:51:10 PM Hi, I was wondering how I'd go about manipulating some command line

Re: [PHP] CLI through PHP

2002-03-14 Thread andy thomas
On Thu, 14 Mar 2002, Liam wrote: 14/03/2002 10:51:10 PM Hi, I was wondering how I'd go about manipulating some command line software through PHP. For instance, I have an FTP program installed that allows you to add users through the command line, but it's in this format:

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
Yes, I have tried that. To view them on the next page I would call them as $choice[0];$choice[1];, etc, but only the first item in the list is available. -Scott On Thu, 14 Mar 2002, Erik Price wrote: Did you try putting brackets at the end of the input names? This tells PHP to put the

[PHP] Multiple layout strategy, advice saught!

2002-03-14 Thread James Green
Hi all, We have a unix server with apache and php on it. We have a set of client site that all share the same codebase. Our problem is that we end up with multiple URL layouts for essentially the same thing. Let me explain. Say we have clients x, y, and z. These buy template sites from us, and

[PHP] get the greatest key of an array???

2002-03-14 Thread Alex Elderson
Hi, How can i get the greatest key of an array?? $array[1] = ...; $array[5] = ...; $array[0] = ...; $array[10] = ...; $array[7] = ...; $greatest_key = ??? (this must be 10 in this example) Alex Elderson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] mail() and qmail

2002-03-14 Thread Daniel Reichenbach
I use qmail with PHP on a RH v 7.0 system. Works like a charm. Same here, RH 7.0 with some updates from RPM. I compiled/installed qmail from source. Installed RH, Apache and PHP from source, too. Do you have a possibility to look at a phpinfo() page? There the option your php version uses

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 09:33 AM, Scott St. John wrote: Yes, I have tried that. To view them on the next page I would call them as $choice[0];$choice[1];, etc, but only the first item in the list is available. Hm... have you tried using a loop to get their values, rather than

Re: [PHP] get the greatest key of an array???

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 09:47 AM, Alex Elderson wrote: How can i get the greatest key of an array?? $array[1] = ...; $array[5] = ...; $array[0] = ...; $array[10] = ...; $array[7] = ...; $greatest_key = ??? (this must be 10 in this example) I think you mean the element with

RE: [PHP] get the greatest key of an array???

2002-03-14 Thread Rick Emery
krsort(array) then grab first key. -Original Message- From: Alex Elderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:47 AM To: [EMAIL PROTECTED] Subject: [PHP] get the greatest key of an array??? Hi, How can i get the greatest key of an array?? $array[1] = ...;

RE: [PHP] Cookies not expiring

2002-03-14 Thread David McInnis
Here is what I am using to set my cookie. $cp_sessionid = $CP_partnerid . _ . uniqid(str_pad(getenv(REMOTE_ADDR), 15, 0)); setcookie('cp_sessionid', $cp_sessionid); David McInnis -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 6:01 AM To:

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
Ok, how about a code snipet since I seem to be blind this morning. The select box code: select multiple=yes name=groups id=av ? $sql = select groupID,groupName from groups order by groupName; $result = mssql_query($sql,$connection); while($row = mssql_fetch_array($result)){ $groupID =

RE: [PHP] Cookies not expiring

2002-03-14 Thread Rick Emery
OK...that looks valid. Now, what indications are you getting that the cookie is not expiring when you close the browser? As far as expiring when user leaves the web-site? M.C. Hammer said it best...can't touch that -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]]

Re: [PHP] DHTML Trouble please help

2002-03-14 Thread Erik Price
On Saturday, March 13, 2010, at 10:15 PM, Jennifer Downey wrote: I am no DHTML expert and don't even know the language also didn't know where to post this. But after today I am going to learn. Isn't DHTML more of a buzzword? i don't think it's really a language. It just refers to using

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 09:52 AM, Scott St. John wrote: Ok, how about a code snipet since I seem to be blind this morning. The select box code: select multiple=yes name=groups id=av ? $sql = select groupID,groupName from groups order by groupName; ... Any eye openers?

Re: [PHP] mail() and qmail

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 22:56, Daniel Reichenbach wrote: I use qmail with PHP on a RH v 7.0 system. Works like a charm. Same here, RH 7.0 with some updates from RPM. I compiled/installed qmail from source. Installed RH, Apache and PHP from source, too. Do you have a possibility to

[PHP] Auth against system userlist vice .htpasswd

2002-03-14 Thread Dave
Aside from creating an .ht* type of list, it is possible to simply auth against a valid user on the server in question? Looking to do the following; User wishes to access directory... enters their system login/passwd... login is auth'ed against the system password list... php then performs

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
On Thu, 14 Mar 2002, Erik Price wrote: Sure! First go get a cup of coffee! :) Then change the first line to say this: select multiple=yes name=groups[] id=av Let me know how that works for you. Erik- I don't do coffee, but the Iced Tea works just as well :) Thank you, all is well and my

[PHP] textarea/textarea

2002-03-14 Thread Vlad Kulchitski
Hi, I have the following probably very simple problem. Basically what I need to do is to collect info from the user via 4 steps... like a set of input type(s) throughout STEP 1 of 4 ... STEP 4 of 4... etc... submitted to db on STEP 5. The only problem I have is I need to display textarea on

RE: [PHP] textarea/textarea

2002-03-14 Thread Rick Emery
stripslahses($variable) -Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:26 AM To: [EMAIL PROTECTED] Subject: [PHP] textarea/textarea Hi, I have the following probably very simple problem. Basically what I need to do is to collect

RE: [PHP] textarea/textarea

2002-03-14 Thread Rick Emery
I mean: stripslashes($variable) -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:24 AM To: 'Vlad Kulchitski'; [EMAIL PROTECTED] Subject: RE: [PHP] textarea/textarea stripslahses($variable) -Original Message- From: Vlad Kulchitski

Re: [PHP] textarea/textarea

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 10:26 AM, Vlad Kulchitski wrote: The only problem I have is I need to display textarea on step 3, and once again the same textarea on step 4 so that user has another chance to review what s/he's written in and on the fifth page all date submitted to db. The

[PHP] regular expression for (NOT 'word')

2002-03-14 Thread Ando Saabas
how would i build a regular expression in php that would match everything but the given word. For example, match the string only if there isnt a word 'php' in the string. I understand i can list characters i dont want to see in the string: [^php]. but this means there cant be any p or h in the

[PHP] INSERT IMAGE INTO DATABASE / PHP

2002-03-14 Thread Jerry
Hi, I have a windows 2000 Database Server with IBM DB2 V7.2 FP5 I have a linux web server with Apache/PHP I installed IBM DB2 IMAGE Extender and enable my database for it. Now I'm uploading a file to the server and I want to copy this file in the database. I'm using the following script:

RE: [PHP] regular expression for (NOT 'word')

2002-03-14 Thread Rick Emery
the best you can do is: ?php $a = this has php in the string; if( ! ereg(php, $a ) ) { print a: not in string; } $a = this has in the string; if( ! ereg(php, $a ) ) { print b: not in string; } ? -Original Message- From: Ando Saabas [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14,

[PHP] simple yet weird... help pls

2002-03-14 Thread Simon De Deyne
Please take a look at the script below. If i want to show an image it doesnt work if it's under an if statement. Why in this case? ? $feedb=0; if($feedb==0){ echo img scr='somepic.jpg';} echo img src='somepic.jpg'; ? How can i solve this problem? thank you!

Re: [PHP] regular expression for (NOT 'word')

2002-03-14 Thread Ando Saabas
Ok let me explain my problem further some. I need the regular expression to purify the html page from script tags: I used: $file = eregi_replace((script(.*).*/script), , $file); Now this works fine, until theres a webpage like: script somethingscript data./script Some webpage data script

[PHP] Opera broswer file upload

2002-03-14 Thread Vlad Kulchitski
Also another question, my fileupload works everywhere (IE, Netscape) but Opera. Does Opera support it at all? My fileupload is very simple. It checks is the file is JPEG/GIF/BMP and then saves it, if not, gives an error message. Vlad -- PHP General Mailing List (http://www.php.net/) To

[PHP] If...Else question

2002-03-14 Thread Brad Harriger
Is it legal for an if...else statement to span PHP code blocks? Here's an example: ? $a = 0; if ($a 5) { $b = 50; $c=500; // Take a break from php and put in some HTML ? HTML HEAD/HEAD BODYMORE HTML CODE HERE/BODY /HTML ? // Now back to the PHP code $d = 250; } else {

RE: [PHP] If...Else question

2002-03-14 Thread Vlad Kulchitski
Of course it's legal, absolutely. You have to make sure though that you don't use double quotes in php portion, and if you do, you have to escape them for instance: echo font color=\red\; if you paste the code that's causing the problem, we can take a look. Vlad -Original Message-

Re: [PHP] If...Else question

2002-03-14 Thread Nick Winfield
On Thu, 14 Mar 2002, Brad Harriger wrote: !-- snip -- ? // Now back to the PHP code $d = 250; } else { $e = Does not apply. } ? I have some code similar to this example. When I run the code in my browser, I get a parse error on the last line (?). Replace: $e = Does not

Re: [PHP] Opera broswer file upload

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 23:57, Vlad Kulchitski wrote: Also another question, my fileupload works everywhere (IE, Netscape) but Opera. Does Opera support it at all? My fileupload is very simple. It checks is the file is JPEG/GIF/BMP and then saves it, if not, gives an error message. I use

Re: [PHP] Opera broswer file upload

2002-03-14 Thread Andrey Hristov
This problem was fixed in the CVS. Best regards, Andrey Hristov - Original Message - From: Vlad Kulchitski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 5:57 PM Subject: [PHP] Opera broswer file upload Also another question, my fileupload works everywhere

RE: [PHP] Opera broswer file upload

2002-03-14 Thread Vlad Kulchitski
The message I get is that the file is invalid format... I tested on Netscape 4.xx and Netscape 6.xx tested on IE 4 through 5. Works fine. I can paste the code I am using if you want to take a look. Vlad -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 14 ÂÅÒÅÚÎÑ

[PHP] Opera broswer file upload / MY CODE

2002-03-14 Thread Vlad Kulchitski
This is the code I am using for uploading: if(($userfile) ($userfile != none)) { $type=basename($userfile_type); switch ($type) { case jpeg: case pjpeg: $filename=talkroom_gallery_photographs/$username.jpg; copy($userfile, $filename); echo

Re: [PHP] Opera broswer file upload

2002-03-14 Thread Andrey Hristov
CVS is the code repository. The PHP code is developed by many programmers and the CVS is used to store the code. CVS = concurent versioning systems. It is used to prevent race conditions when two or more programmers are writing/patching a code. Also there are many other pretty things. So when

[PHP] YET another question re: magic quotes

2002-03-14 Thread Vlad Kulchitski
If I have magic quotes on, will stripslashes() / addslashes() work? Doesn't seem to work for me... -Original Message- From: Vlad Kulchitski Sent: 14 ÂÅÒÅÚÎÑ 2002 Ò. 11:10 To: [EMAIL PROTECTED] Subject: [PHP] Opera broswer file upload / MY CODE This is the code I am using for

Re: [PHP] Problem upgrading to PHP 4.1.2

2002-03-14 Thread David Brannlund
Thank you VERY much!!! Worked like a charm... David Richard Archer [EMAIL PROTECTED] wrote in message news:a05100301b8b615655f5f@[203.89.243.68]... At 9:22 AM +0100 14/3/02, David Brannlund wrote: This configuration works with GD 1.3-6 and Freetype 1.x. When we try to upgrade to PHP

Re: [PHP] Opera broswer file upload

2002-03-14 Thread Andrey Hristov
Look here for more info about file upload problems with Opera: http://bugs.php.net/search.php?cmd=displaysearch_for=operax=0y=0 Andrey - Original Message - From: Vlad Kulchitski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 5:57 PM Subject: [PHP] Opera broswer

RE: [PHP] Cookies not expiring

2002-03-14 Thread Ray Todd Stevens
Also you have to close all instances of the browser for this to occur. That is even if you close the browser that has a session to the site if you have another window open to any other site then the cookie stays. OK...that looks valid. Now, what indications are you getting that the

Re: [PHP] Opera broswer file upload / MY CODE

2002-03-14 Thread Jason Wong
On Friday 15 March 2002 00:10, Vlad Kulchitski wrote: This is the code I am using for uploading: if(($userfile) ($userfile != none)) { $type=basename($userfile_type); [snip] Hmm, Andrey says the bug has been fixed and committed to the CVS. But looking at the bug reports there have

Re: [PHP] simple yet weird... help pls

2002-03-14 Thread Rasmus Lerdorf
Please take a look at the script below. If i want to show an image it doesnt work if it's under an if statement. Why in this case? ? $feedb=0; if($feedb==0){ echo img scr='somepic.jpg';} echo img src='somepic.jpg'; ? How can i solve this problem? By

[PHP] Passing an array as an argument

2002-03-14 Thread Mauricio Cuenca
Hello, I've built a function that receives an array as an argument to create an HTML drop-down list, but when I try to print the list this is all I got: select name=my_list option value=Array[0]Array[1] option value=Array[0]Array[1] /select This is my code: ---

[PHP] Passing an array as an argument

2002-03-14 Thread Mauricio Cuenca
Hello, I've built a function that receives an array as an argument to create an HTML drop-down list, but when I try to print the list this is all I got: select name=my_list option value=Array[0]Array[1] option value=Array[0]Array[1] /select This is my code: ---

Re: [PHP] Passing an array as an argument

2002-03-14 Thread Rasmus Lerdorf
You can't put $a[][] inside a qouted string like that. Either use ${a[][]} or put it outside like this: Print( option value=\.$aOptions[1][0].\.$aOptions[1][1].\n); -Rasmus On Thu, 14 Mar 2002, Mauricio Cuenca wrote: Hello, I've built a function that receives an array as an argument

[PHP] putting a url in an anchor tag

2002-03-14 Thread Tyler Longren
Hello, I've been playing with this since lastnight. I have a string of text...Example: This is a test string of test, please go to http://www.google.com now. I need something that will catch the http://www.google.com; part, and make into a link instead of just plain text. Does anyone know how

[PHP] Readfile() Download Issues

2002-03-14 Thread Steven Walker
Hi, I'm having trouble supporting Internet Explorer 5.5 and earlier versions in a PHP download script. People are reporting that the file comes out as 'download.htm'. Here is the code in my download.php: $len = filesize($file); header(Content-type:

Re: [PHP] putting a url in an anchor tag

2002-03-14 Thread JSheble
Here's a function that was sent to me in response to me needing the exact same thing: function pb_t2h_URLMarkup ($Text, $StyleClass = '', $Target = '') { if ($StyleClass != '') $ClassS = class='$StyleClass'; else $ClassS = ; if

[PHP] posting without a from

2002-03-14 Thread Eric Kilgore
I am trying to post to another server without a form. The input is from a form on my server. I log the entry in MySQL and then pass the input to this function to open the connection and return a query result. The post to the other server requires authentication in the form of USERID and

[PHP] Format of browser image requests

2002-03-14 Thread Dennis Gearon
Please CC me, I'm on digest --- Has anyone looked at what the browsers send when they request stuff like: images flash Real Audio etc Do they send the cookies/post/get vars from the previous page, the requesting URI, or anything but the

Re: [PHP] Re: Get row number from mysql

2002-03-14 Thread Chris Hewitt
Rick, I agree. opinionRow ids should be for internal database use. SQL frees us from needing them. /opinion Tyler, what order do you want these records returned in? That is what goes into the ORDER BY clause. If, for example, it is alphabetical order of NAME then use ORDER BY NAME. If it is

[PHP] header(Location:) problem with Netscape

2002-03-14 Thread Jeff Bearer
I'm working on a app that uses the header(Location) is the middle of the file, but since I'm using output buffering it shouldn't matter. The application works fine in Mozilla, Konqueror, and IE, but not in Netscape 4 or 6. I don't get the error that the headers have already been written error,

Re: [PHP] header(Location:) problem with Netscape

2002-03-14 Thread Steven Walker
Jeff, I just had this problem! Using $PHP_SELF did not work with Netscape 4.7 for some reason. I was using it in form submissions and kept getting the error 'Method Not Allowed'. My fix was simple, I just hard coded the action url since. If you really need $PHP_SELF, I don't know what the

[PHP] Data from multipart/form-data goes missing

2002-03-14 Thread Miguel Cruz
(Sorry if this is a duplicate post; I sent it through the news server but began to think that might not be forwarding posts to the list) For some reason, on just one server, data from forms posted with ENCTYPE=multipart/form-data never makes it to the PHP script. We use this extremely simple

[PHP] Data from multipart/form-data discarded

2002-03-14 Thread Miguel Cruz
For some reason, on just one server, data from forms posted with ENCTYPE=multipart/form-data never makes it to the PHP script. We use this extremely simple test script: form method=post enctype=multipart/form-data action=?= $PHP_SELF ? !--form method=post action=?= $PHP_SELF ?-- input

[PHP] Can Event Handlers Trigger PHP Code?

2002-03-14 Thread Dr. Shim
My question is can event handlers on form objects trigger PHP code? input type=submit name=submit value=Submit Form onclick='PHP CODE HERE' Or even an onsubmit event handler on forms? If something like this is possible, could any of you tell me how? I've tried, and tried. I've used PHP tags

Re: [PHP] dynamically fill list box

2002-03-14 Thread gee
Sorry... The error I get on members.php page is if ( == paid) is printed if 'paid' is selected or if ($paid == no) is printed if 'not paid' is selected from this piece of code print trtd class=LabelColumnPaid:/tdtd class=TextColumnselect name='paid' value='$row-paid' option

  1   2   >