Re: [PHP] equivalent to PERL's qq

2001-03-27 Thread Nuno Silva
hi, try: ?php $this = " select * from xcxcxc where var='111'"; echo $this; ? i'd say it's even better than qq ;) regards, nuno Carsten Gehling wrote: From: "Michael Hall" [EMAIL PROTECTED] Sent: Monday, March 26, 2001 9:36 PM Hi. I'm a

Re: [PHP] examine inner workings of functions

2001-03-27 Thread David Robley
On Tue, 27 Mar 2001 12:59, Jack Dempsey wrote: hi all, I was thinking about some of the built-in functsions (like array_sort) and was wondering how I could find out what the code is behind them. ie, is it an insertion sort? quicksort? etc...do i have to look into CVS for that? thanks!

RE: [PHP] File upload and database optimization questions

2001-03-27 Thread Jason Lotito
3. At the time of upload, it is possible to specify a list of users who can "view" and "modify" the file. Currently I am storing this list as a whitespace-separated list in a mySQL TEXT column. Column "view" data: 3 11 1 At the time of displaying the list, I first SELECT * the

[PHP] Sendmail

2001-03-27 Thread Daniel B I
Yep, I had the same problem yesterday with the mail. Try to just put a semicolon ";" in front of the sendmail path directive :). It worked with mine! It seems that it wants to find the path itself. Daniel BI Hi , I'm at a lossI've searched throught the knowledgebase, archives, docs, etc but

[PHP] PHP as a general scripting language?

2001-03-27 Thread Gildas Quiniou
Hi, What are the pros and cons to using PHP as a scripting language like Perl or Python? After a couple of years using this excellent language for dynamic web pages (its first purpose), I'm currently starting to program shell scripts with PHP. Doing so I encountered some minor problems I turned

[PHP] session expiretime

2001-03-27 Thread Søren Boll Overgaard
Hello I am trying to figure out how long a session survives, if the user does nothing in his or her browser, to update the session. I'm creating a rather comprehensive signup-process, and I need to know how much time a user can spend on each page, before the session expires. Looking through

[PHP] GD problem

2001-03-27 Thread Daniel B I
You need the jpeg support. Shortly, do this: (I will use my version names, so you can easyly find something, if you find newer ones, it's your bussiness) 1. search the internet for: jpegsrc.v6b.tar.gz gd-1.8.3.tar.gz apache_1.3.14.tar.gz php-4.0.4.tar.gz 2. unzip all files in a tmp directory

[PHP] GD problem

2001-03-27 Thread Daniel B I
It.s me, again :) There is trick to find out if php will be compiled well (I mean with jpeg support): when issuing the ./configure command in php, after putting all the options, put something like this: ./configure ... cf.log (this is a redirection comand to write all output info to the file

[PHP] Connect local-remote

2001-03-27 Thread Jochen Kaechelin
how can I connect to a remote-database from my local dos-window? I use the following without success: mysql -u XXX -h mysql-XXX -p -D Jochen Kaechelin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP-CVS] cvs: php4 /pear/Experimental/XML fo2pdf.php

2001-03-27 Thread Christian Stocker
chregu Tue Mar 27 01:53:00 2001 EDT Added files: /php4/pear/Experimental/XML fo2pdf.php Log: a class for rendering (xsl-)formatting objects files into a pdf. Index: php4/pear/Experimental/XML/fo2pdf.php +++ php4/pear/Experimental/XML/fo2pdf.php ?php //

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/pgsql pgsql.c

2001-03-27 Thread Romolo Manfredini
romolo Tue Mar 27 02:22:32 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/pgsql pgsql.c Log: pg_close was closing connection twice, pls insert in 4_0_5 Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.93

[PHP-CVS] cvs: php4 /main php_variables.c

2001-03-27 Thread Jani Taskinen
sniper Tue Mar 27 03:34:51 2001 EDT Modified files: /php4/main php_variables.c Log: Fix the arg_separator behaviour. Only or ; is allowed as separators so no need to use the ini setting here. Index: php4/main/php_variables.c diff -u

[PHP] Re: [PHP-DB] Re: How to print last row in an array using WHILE?

2001-03-27 Thread andreas \(@work\)
hi, $myrow = mysql_fetch_array($result); // erase this line while ($myrow = mysql_fetch_array($result)) { greetings andreas - Original Message - From: "Jon Valvatne" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, March 27, 2001 1:28 PM

[PHP] Question on manually instantiating a file download

2001-03-27 Thread Vikram Vaswani
Hello all, I am working on a script which locates a file on the system and then tells the browser to pop open the "Save As" dialog box for download. In order to do this, I am using the following code: $filename = $dataDir . $id . ".dat"; header ("Content-Type: application/octet-stream");

[PHP] We need PHP developers - Urgently in the UK

2001-03-27 Thread Paul Tweedy
Sorry for the repeat posting, but this was send a few weeks ago and we had no response from the list - perhaps new subscribers to the list will be interested. We are a successful web agency based in the UK and are looking for talented UK-based html and technical developers. Our company 5e, has

[PHP] GZip + NS + Print = Trouble

2001-03-27 Thread Renze Munnik
Okay ob_start ("ob_gzhandler") is a very cool thing to use. At least when you write _to much_ code like I do. And it works perfectly most of the time, i.e. I've got this problem: My pages start with the gzhandler (see above) to decrease the amount of data that should be

Re: [PHP] escape sequences not recognized inside an .html

2001-03-27 Thread Jason Stechschulte
On Sat, Mar 24, 2001 at 09:06:36PM -0500, Mauricio Junqueira wrote: Hi, I believe I am missing some configuration regarding my apache becouse I can only get php to work inside a file .php. If my page extension is .html, nothing happend with the php script; but just changing from .html to

[PHP] PostgreSQL and PHP - some Great Bridge news

2001-03-27 Thread Ned Lilly
All, I'm pleased to announce two initiatives at Great Bridge aimed at improving the integration of PostgreSQL and PHP, and some exciting stuff that we're doing as a company to get behind PHP more fully. First, Great Bridge is partnering with Zend Technologies to include a fully-integrated

[PHP] Dynamic constant names

2001-03-27 Thread Geoff Caplan
Hi folks I am trying to create a constant name dynamically and then get at the value. // We set up the constant define( CONSTANT_1 , "Some value" ) ; // Later we try to use it dynamically ... $constant_number = 1 ; $constant_name = ( "CONSTANT_" . $constant_number ) ; // We try to assign the

[PHP] A ToDo/ task list

2001-03-27 Thread Harshdeep S Jawanda
Hi ppl, I have been thinking of using PHP to make a ToDo/task list type of application. I am looking for something different from the usual Personal Information Managers (PIMs) - they are oriented more towards appointments than tasks. Does anybody know of any ongoing (preferably open source)

RE: [PHP] Dynamic constant names

2001-03-27 Thread Neil Kimber
You need another level of indirection. Try: $constant_value = $$constant_name ; -Original Message- From: Geoff Caplan [mailto:[EMAIL PROTECTED]] Sent: 27 March 2001 14:19 To: PHP General List Subject: [PHP] Dynamic constant names Hi folks I am trying to create a constant name

Re: [PHP] A ToDo/ task list

2001-03-27 Thread techzeus
I think Sourceforge uses something like what you are talking about. Check it out : http://www.sourceforge.net - Original Message - From: "Harshdeep S Jawanda" [EMAIL PROTECTED] To: "PHP General" [EMAIL PROTECTED] Sent: Tuesday, March 27, 2001 9:29 PM Subject: [PHP] A ToDo/ task list

Re: [PHP] escape sequences not recognized inside an .html

2001-03-27 Thread Mauricio Junqueira
I've check the other articles and came up with the following: 1- take out the extension, html or php, inside the links in way that I can change from .html to .php and vice-versa without worrie to change all links. 2- and to add the .html to httpd.conf in order to all files to be parsed. Not too

[PHP] Re[PHP] Dynamic constant names -SOLVED

2001-03-27 Thread Geoff Caplan
Hi folks I had 2 suggestions from the list: 1) indirection - $constant_value = $$constant_name ; I had already tried this, but couldn't get it to work. Unless I am missing something it just gives an "Undefined Variable" error. 2) eval("\$constant_value = $constant_name;") ; This does work.

[PHP-CVS] cvs: php4(PHP_4_0_5) /main php_variables.c

2001-03-27 Thread Jani Taskinen
sniper Tue Mar 27 06:03:03 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/main php_variables.c Log: MFH Index: php4/main/php_variables.c diff -u php4/main/php_variables.c:1.21 php4/main/php_variables.c:1.21.2.1 --- php4/main/php_variables.c:1.21 Sun

[PHP] free webspace supporting PHP/MySQL

2001-03-27 Thread Alaiddin Tayeh
Hi, is there any comapany (like freeservers.com and geocities.com)give a free web space and supporting PHP/MySQL. Thanks -- Best Regards Alaiddin Tayeh; Webmaster Palestinian Internet Services WWW.P-I-S.COM Tel: +97272843197 Fax: +97272843377 -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] free webspace supporting PHP/MySQL

2001-03-27 Thread Rosen
Hi, The adress is: www.f2s.com Rosen Marinov "Alaiddin Tayeh" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, is there any comapany (like freeservers.com and geocities.com)give a free web space and supporting PHP/MySQL. Thanks -- Best Regards Alaiddin

Re: [PHP] A ToDo/ task list

2001-03-27 Thread A.T.Z.
Does anybody know of any ongoing (preferably open source) projects in PHP of a similar nature? Seen something on www.php.net just click links and projects. Bye, B. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-03-27 Thread Dan Kalowsky
kalowskyTue Mar 27 06:17:53 2001 EDT Modified files: /php4/ext/odbc php_odbc.c Log: Fix for Bug #9272, as submitted by marc boeren ([EMAIL PROTECTED]). Applied by me, due to apparently a lack of cvs access to ext/odbc for him. Index:

[PHP] Help: How do you get rid of these warnings for undefined variables?

2001-03-27 Thread Anyangwe, Tanwani
Warning: Undefined index: make in C:\PHP\Test_Scripts\testdb3.php on line 16 Warning: Undefined variable: user in C:\PHP\Test_Scripts\testdb3.php on line 5 etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP-CVS] cvs: php4 /pear/Experimental/XML fo2pdf.php

2001-03-27 Thread Christian Stocker
chregu Tue Mar 27 06:35:22 2001 EDT Modified files: /php4/pear/Experimental/XML fo2pdf.php Log: corrected Usage example Index: php4/pear/Experimental/XML/fo2pdf.php diff -u php4/pear/Experimental/XML/fo2pdf.php:1.1

[PHP] search safe URLs

2001-03-27 Thread Joe Sheble aka Wizaerd
In order to use URLs without ? and , there has to be some re-configuration in Apache, correct? So somebody who didn't have access to httpd.conf couldn't use this methodology? Or if this is completely incorrect, where can I find more info on implementing it strictly in PHP? Joseph E. Sheble

[PHP-CVS] cvs: php4 /ext/oracle oracle.c

2001-03-27 Thread Thies C. Arntzen
thies Tue Mar 27 06:55:03 2001 EDT Modified files: /php4/ext/oracleoracle.c Log: fixed newly introduced crash in ora_bind Index: php4/ext/oracle/oracle.c diff -u php4/ext/oracle/oracle.c:1.60 php4/ext/oracle/oracle.c:1.61 ---

[PHP] Looking for a file editor written in php

2001-03-27 Thread Chris Moewes-Bystrom
I am trying to find a file editor / file management tool written in php something like the file manager used by the old geocities now yahoo public web servers. ANyone seen something like this, or done something like this?? Chris Moewes http://phpusergroups.com -- PHP General Mailing List

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/oracle oracle.c

2001-03-27 Thread Thies C. Arntzen
thies Tue Mar 27 07:04:21 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/oracleoracle.c Log: MFH Index: php4/ext/oracle/oracle.c diff -u php4/ext/oracle/oracle.c:1.60 php4/ext/oracle/oracle.c:1.60.2.1 --- php4/ext/oracle/oracle.c:1.60 Sun

Re: [PHP] reading microsoft word, excel, pdf document text

2001-03-27 Thread ~~~i LeoNid ~~
On 25 Mar 2001 20:25:47 -0800 impersonator of [EMAIL PROTECTED] (David Robley) planted I saw in php.general: On Mon, 26 Mar 2001 13:20, Erick Papadakis wrote: hi david, thanks for the note. ok, here is what i want to do. i want my users to upload WORD, XLS, PPT and PDF files. when they

[PHP-CVS] cvs: php4 /sapi/fastcgi fastcgi.c

2001-03-27 Thread Ben Mansell
joostersTue Mar 27 07:16:34 2001 EDT Modified files: /php4/sapi/fastcgi fastcgi.c Log: Changed header handling; before, we were somehow losing Content-Type: text/html Index: php4/sapi/fastcgi/fastcgi.c diff -u php4/sapi/fastcgi/fastcgi.c:1.2

Re: [PHP] Environment extract

2001-03-27 Thread Matt Friedman
print $HTTP_USER_AGENT; // the variable is already in the global scope. also $ua = getenv('HTTP_USER_AGENT'); Most variables are automatically made a part of the environment in a PHP script. It's one of the ways PHP makes scripting easier. The online manual is invaluable for this type of info.

[PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-03-27 Thread Dan Kalowsky
kalowskyTue Mar 27 07:46:27 2001 EDT Modified files: /php4/ext/odbc php_odbc.c Log: The last fix was missing a , Marc Boeren either made the patch wrong, or I applied it improperly. Anyways, Sebastian Bergmann discovered it, and supposedly is fixed

Re: [PHP] Help: How do you get rid of these warnings for undefinedvariable s?

2001-03-27 Thread Philip Olson
hi anyangwe, either define the variables or do what most people do and turn down error reporting. see : Reporting Errors: - http://www.php.net/manual/en/phpdevel-errors.php pay

[PHP] POP mail delete

2001-03-27 Thread Miguel Carvalho
I, i'm a little new to PHP. I'm sorry if this question has already be answerd, but i have i have searched the list, and i have not found any arcticle about it. My question is: How do i delete a message from a POP server, using PHP functions? I have tried, imap_setflag_full, imap_delete,

Re: [PHP] Dynamic constant names

2001-03-27 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Geoff Caplan) wrote: I am trying to create a constant name dynamically and then get at the value. // We set up the constant define( CONSTANT_1 , "Some value" ) ; // Later we try to use it dynamically ... $constant_number = 1 ;

Re: [PHP] search safe URLs

2001-03-27 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joe Sheble aka Wizaerd) wrote: In order to use URLs without ? and , there has to be some re-configuration in Apache, correct? So somebody who didn't have access to httpd.conf couldn't use this methodology? Or if this is completely

[PHP] password

2001-03-27 Thread Marisol Díaz E.
Hi I need the code, for protecting the dir by password. Thanks Marisol Daz E.

[PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/fastcgi fastcgi.c

2001-03-27 Thread Ben Mansell
joostersTue Mar 27 08:29:45 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/sapi/fastcgi fastcgi.c Log: Changed header handling; before, we were somehow losing Content-Type: text/html Index: php4/sapi/fastcgi/fastcgi.c diff -u

RE: [PHP] password

2001-03-27 Thread Nathan Cassano
Don't you mean.. http://httpd.apache.org/docs/mod/mod_auth.html or do you want to do this with php headers? -Original Message- From: Marisol Daz E. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 9:03 AM To: PHP General Subject: [PHP] password Hi I need the code, for

Re: [PHP] search safe URLs

2001-03-27 Thread Philip Olson
Check out this post : http://marc.theaimsgroup.com/?l=php-generalm=98555149708325 The first two tutorials should help. Btw, no reconfigurations are required. Regards, Philip On Tue, 27 Mar 2001, Joe Sheble aka Wizaerd wrote: In order to use URLs without ? and , there has to be some

[PHP] Again and again problem installing under Solaris

2001-03-27 Thread Emiliano Marmonti
Dear Friends Before all, Thank you Joe, the ar package was the solution and was located at the same place that you told me. Now ,after making and installing all, PHP doesnt work. I followed this process: ./configure --with-mysql --with-apxs=/usr/apache/bin/apxs make make install I have had a

RE: [PHP] session expiretime

2001-03-27 Thread Johnson, Kirk
Yes and no. session.gc_maxlifetime is the right setting, and this means the session will last *at least* this long. The setting in session.gc_probability also has an effect. This gives the percentage of page hits on which gc is launched. For example, if session.gc_probability = 1, then on one out

[PHP] DF output

2001-03-27 Thread Steven Shepherd
I am writing a script, actually modifying PhPSysInfo to include the top processes used on a machine. So far, no matter what I do, I can only get it to work via the command line. I get a blank screen when trying it via the browser: Tried this: ?php $data = `ps auxwww`; echo nl2br($data);

[PHP] form and php

2001-03-27 Thread Augusto Cesar Castoldi
I had a form with just with one button, the action is a PHP file. And when I hit "enter" the button (submit) form action was done. Then I put other button (change) on this form, and now when I hit enter, beside the "pressed" button is the second one (I want that when I hit "enter" the submit

Re: [PHP] DF output

2001-03-27 Thread Joe Brown
nobody has execute permission on ps? Probably quite the opposite, your webserver user doesn't have execute permission on ps, so there is no execution or return value. "Steven Shepherd" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am writing a script,

[PHP-CVS] cvs: php4 /ext/standard formatted_print.c

2001-03-27 Thread Derick Rethans
derick Tue Mar 27 09:21:45 2001 EDT Modified files: /php4/ext/standard formatted_print.c Log: - 'Fix' for bug 10002 Index: php4/ext/standard/formatted_print.c diff -u php4/ext/standard/formatted_print.c:1.28 php4/ext/standard/formatted_print.c:1.29 ---

Re: [PHP] search safe URLs

2001-03-27 Thread Joe Sheble (Wizaerd)
thanx, I'll be looking these over vigarously... At 05:11 PM 3/27/01 +, Philip Olson wrote: Check out this post : http://marc.theaimsgroup.com/?l=php-generalm=98555149708325 The first two tutorials should help. Btw, no reconfigurations are required. Regards, Philip On Tue, 27 Mar

Re: [PHP] form and php

2001-03-27 Thread Johannes Janson
Hi, i'm sorry but I don't quite get what you mean. Which button is pressed. or post the code. Johannes "Augusto Cesar Castoldi" [EMAIL PROTECTED] schrieb im Newsbeitrag Pine.GSO.4.10.10103271417160.12546-10@venus">news:Pine.GSO.4.10.10103271417160.12546-10@venus... I had a form with

Re: [PHP] DF output

2001-03-27 Thread Steven Shepherd
Bad example (changed to ps and it works actually..but i dont want 'ps', I want 'top'). Ran top using su to the user 'www' from the command line and was able to run it fine. On Tue, 27 Mar 2001, Joe Brown wrote: Date: Tue, 27 Mar 2001 12:35:08 -0500 From: Joe Brown [EMAIL PROTECTED] To:

[PHP] Interbase error code = -504 Cursor unknow

2001-03-27 Thread Mauricio Junqueira
Hello, this is my first attempt to query and print a result coming from a database, in this case interbase6. I got the following error: InterBase: Dynamic SQL Error SQL error code = -504 Cursor unknown in maingeral.htm on line 8 Here's the code: ? include("php/header.php");

[PHP] Simple If-else statement

2001-03-27 Thread Louis Brooks
Hi: I am trying to set up a simple script that will verify that all the blanks in a form have been filled out and then submit that to mySQL. If the form has not been completely filled out I want it to redirect them back to the original form. I know that the mySQL part of the script works, but

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/standard formatted_print.c

2001-03-27 Thread Derick Rethans
derick Tue Mar 27 09:24:01 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/standard formatted_print.c Log: - MFH (Fix for bug 10002) Index: php4/ext/standard/formatted_print.c diff -u php4/ext/standard/formatted_print.c:1.28

RE: [PHP] Simple If-else statement

2001-03-27 Thread Johnson, Kirk
This code is checking if $fname and $lname are equal to a single blank character. Is this what you want? My guess is you really want if(($fname == "") || ($lname == "")) Another way to write this is if( (!$fname) || (!$lname) ) Kirk -Original Message- From: Louis

Re: [PHP] Simple If-else statement

2001-03-27 Thread Johannes Janson
Hi, if ($name == " ") { checks for a space in $name. "empty" is either if (§name == "") without a free space between "" or you could do it with empty($mane) if (empty($name)) is true if it is empty (who would have thought this?) Johannes "Louis Brooks" [EMAIL PROTECTED] schrieb im

Re: [PHP] Interbase error code = -504 Cursor unknow

2001-03-27 Thread Mauricio Junqueira
Since ibase_query returns true if the query succeeds I've tried this, but with the same problem with ibase_fetch_row: $stmt = "select count(*) from soldcars"; if ($query= ibase_query($stmt) or die ("script language='javaScript'alert('" . ibase_errmsg() . "'); /script")){

[PHP] About Dbase

2001-03-27 Thread Odd Rune Heggestad
Heyzz Dude! I've got a problem with dbase, do you think you can help me? http://www.ripwares.com/~np2k/norway-warez/admin/create.php here's the script: - ? $dbname = "tedst.dbf"; $def = array( array("date", "D"), array("name", "C", 50),

Re: [PHP] form and php

2001-03-27 Thread Philip Olson
Hi Augusto, Submit buttons aren't that special, they just send a name=value pair. Doing something like this : If the following is pressed, if ($action == 'edit') will return true. input type="submit" name="action" value="edit" If the following is pressed, if ($action == 'new')

Re: [PHP] DF output

2001-03-27 Thread Joe Brown
Well, that's a whole different ballpark. do man top see if it has a batch mode option With the top on my linux box: $ top -b "Steven Shepherd" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Bad example (changed to ps and it works actually..but i dont want

[PHP] PHP and Apachecon

2001-03-27 Thread Brian Moon
Hello All, Apachecon is next week and I am preparing to request a BOF (Birds Of A Feather) for the PHP community. It will be an hour long session that is basically an open forum for users of PHP to meet and talk about PHP. What I would like from all you out there is a list of possible topics

php-general Digest 27 Mar 2001 19:05:15 -0000 Issue 592

2001-03-27 Thread php-general-digest-help
php-general Digest 27 Mar 2001 19:05:15 - Issue 592 Topics (messages 45701 through 45761): File upload and database optimization questions 45701 by: Vikram Vaswani 45702 by: Jason Murray 45708 by: Jason Lotito submit form witout clilck submit button 45703

Re: [PHP] Question on manually instantiating a file download

2001-03-27 Thread Nuno Silva
hello, you could "start from the end" :) show the nice page saying "THANKS!!" or something and this page will call the download script itself with "meta refresh=..." in the head ...can't remember the meta refresh syntax right now :) hope it works, Nuno Vikram Vaswani wrote: Hello all,

Re: [PHP] Environment extract

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 17:31:25 +0100, Costas ([EMAIL PROTECTED]) wrote: when i try printing print $HTTP_USER_AGENT; I get the error message Undefined variable: HTTP_USER_AGENT have i missed a declaration of some sort or something else? thanks Are you doing this from inside a function? If so

Re: [PHP] Environment extract

2001-03-27 Thread Philip Olson
Ahh, that's the cause. Here's how to duplicate the error :-) error_reporting(E_NOTICE); foo(); function foo() { echo $HTTP_USER_AGENT; } As Mark mentioned, mind your scope. Regarding the error, I just posted some information on this perhaps it'll be of some use :

Re: [PHP] Simple If-else statement

2001-03-27 Thread Sterling
H- Another solution might be to use javascript to check the fields before the page is even submitted to make sure they put "something" in the first and last name fields. Unfortunately I'm not a javascript person but I've seen it done so much I'm sure you could find examples on the web or via a

Re: [PHP] Cookie problem

2001-03-27 Thread Martin Skjöldebrand
Thanks everyone for all the responses. I think I'll look into sessions in the future. Meanwhile I'll have to see what others come up with. Thanks, Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Newbie - MySQL Question - Finding Unique Names in Column

2001-03-27 Thread Rami Krayem
I have a listing of photos in a table as follows (not actual column names): Image Name, Image Width, Image Height, Band Name, Venue, City, State, Date I would like to have a list of the different bands with photos in the archive. There may be 120 photos of any one band, but I would like to

RE: [PHP] Newbie - MySQL Question - Finding Unique Names in Column

2001-03-27 Thread Jason Lotito
-Original Message- From: Rami Krayem [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 11:49 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie - MySQL Question - Finding Unique Names in Column I have a listing of photos in a table as follows (not actual column names):

[PHP] $myfile[$count]_type?!

2001-03-27 Thread FredrikAT
Why can't I do $myfile[$count]_type?! What schould I do instead? - Fredrik A. Takle [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] Newbie - MySQL Question - Finding Unique Names in Column

2001-03-27 Thread Data Driven Design
I think you mean distict, as in $query = "SELECT DISTINCT band_name FROM table WHERE ..."; Data Driven Design P.O. Box 1084 Holly Hill, FL 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Rami Krayem [EMAIL PROTECTED] To: [EMAIL

[PHP] Spacing between $row[City],$row[State]

2001-03-27 Thread Mike Mike
Hello, Is there a way to get spacing between $row["City"],$row["State"] in the html output? I've tried echo "$row["City"], nbsp; $row["State"]"; and a bunch of other things and get Parse error: parse error, expecting `STRING' or `NUM_STRING' or `'$'' . The way I want the output is as follows:

Re: [PHP] Simple If-else statement

2001-03-27 Thread Louis Brooks
Thanks for everyone's response. I am still not able to get the if(($fname="")) { statement to work even with the suggestions everyone made so I am beginning to wonder if it is a problem with the server. (It is php3 on an Apache server. ) Any other suggestions would be greatly appreciated.

[PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Michael Champagne
Is there a way to have an ordinary href link call some javascript and say "are you sure blah blah blah?" and then once you hit Ok it calls the same php file which then does all the database stuff? I know I can do this just by creating another PHP file and having the link call that, but it seems

Re: [PHP] DF output

2001-03-27 Thread Steven Shepherd
Brad, Thanks for the response. Either method they both work via command line. Neither of them work in the browser. On Tue, 27 Mar 2001, Brad S. Jackson wrote: Try $top = `top n 1 b | head -8 | sed 's/[\$|^M]//g'`; In my experience, you can't use | in exec calls, you have to use the

Re: [PHP] Spacing between $row[City],$row[State]

2001-03-27 Thread Philip Olson
Hi Mike, Try this little test : ?php // Our array : $row = array('city' = 'Seattle', 'state' = 'Washington'); // Can do in PHP4 : print "{$row['city']} {$row['state']}"; // Can do anytime : print $row['city'] . ' ' . $row['state']; ? Not sure when

[PHP] Dynamic constant names - SOLVED

2001-03-27 Thread Geoff Caplan
Hi folks I mailed this to the list some time ago, but it seems to have got "lost" so here is is again... I had 2 suggestions from the list: 1) indirection - $constant_value = $$constant_name ; I had already tried this, but couldn't get it to work. Unless I am missing something it just gives

Re: [PHP] Simple If-else statement

2001-03-27 Thread Sterling
H- Really, that's strange. Try printing out your variables and seeing what is actually being passed. print "FNAME:$fname:\n"; With the : : colons surrounding your variable you can see what if anything is actually in $fname. Also it might have been a typo on your part but be sure to check

Re: [PHP] Simple If-else statement

2001-03-27 Thread Johannes Janson
Hi Louis, you cuold try it with if (empty($fname)) { redirect... just check again that your form is ok. Johannes "Louis Brooks" [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for everyone's response. I am still not able to get the

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 14:04:58 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: Is there a way to have an ordinary href link call some javascript and say "are you sure blah blah blah?" and then once you hit Ok it calls the same php file which then does all the database

[PHP] Opening Remote Files

2001-03-27 Thread Nick Norton
Does anyone know of a method to read a remote password protected file without actually downloading it locally and then reading? - Nick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] sort multidimensional array?

2001-03-27 Thread phpman
Hello, i have this code: while ($row = mysql_fetch_array($results)) { $tmp = get_item_reorder_priority($row["item_sku"]); $list[$r]["priority"] = $tmp[0]; $list[$r]["sku"] = $row["item_sku"]; $r++; } $list = array_multisort($list["priority"], SORT_NUMERIC, SORT_DESC);

Re: [PHP] POP mail delete

2001-03-27 Thread Johannes Janson
Hi, i'm not that much into mail functions but my manual tells me that impa_delete selects a message to be deleted. imp_expunge delets all selected messages. look into the correct syntax Johannes "Miguel Carvalho" [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Simple If-else statement - Fixed

2001-03-27 Thread Louis Brooks
Thanks for all the help. I finally got it to work. I ended up using a bunch of if ($lname=="") { statements instead of if (($lname=="") || ($fname=="")) { and that seems to be working. I still can't get the header() statement to work. So I just cheated and put in some text telling the user to

[PHP-CVS] cvs: php4 / acinclude.m4 configure.in /ext/aspell config.m4 /ext/bz2 config.m4 /ext/ccvs config.m4 /ext/cpdf config.m4 /ext/crack config.m4 /ext/curl config.m4 /ext/cybercash config.m4 /ext/cybermut config.m4 /ext/dba config.m4 /ext/domxml config.m4 /ext/fbsql config.m4 /ext/fdf config.m4 /ext/fribidi config.m4 /ext/gd config.m4 /ext/gettext config.m4 /ext/gmp config.m4 /ext/icap config.m4 /ext/iconv config.m4 /ext/imap config.m4 /ext/informix config.m4 /ext/ingres_ii config.m4 /ext/interbase config.m4 /ext/ircg config.m4 /ext/java config.m4 /ext/ldap config.m4 /ext/mcal config.m4 /ext/mcrypt config.m4 /ext/mhash config.m4 /ext/midgard config.m4 config.m4.session /ext/ming config.m4 /ext/mnogosearch config.m4 /ext/msql config.m4 /ext/muscat config.m4 /ext/mysql config.m4 /ext/oci8 config.m4 /ext/odbc config.m4 /ext/oracle config.m4 /ext/ovrimos config.m4 /ext/pcre config.m4 /ext/pdf config.m4 /ext/pfpro config.m4 /ext/pgsql config.m4 /ext/pspell config.m4 /ext/qtdom config.m4 /ext/readline config.m4 /ext/recode config.m4 /ext/sablot config.m4 /ext/session config.m4 /ext/snmp config.m4 /ext/swf config.m4 /ext/sybase config.m4 /ext/sybase_ct config.m4 /ext/vpopmail config.m4 /ext/xml config.m4 /ext/zlib config.m4 /ext/zziplib config.m4 /sapi/aolserver config.m4 /sapi/apache config.m4 /sapi/apache2filter config.m4 /sapi/caudium config.m4 /sapi/fastcgi config.m4 /sapi/isapi config.m4 /sapi/nsapi config.m4 /sapi/phttpd config.m4 /sapi/pi3web config.m4 /sapi/roxen config.m4 /sapi/thttpd config.m4

2001-03-27 Thread Jani Taskinen
sniper Tue Mar 27 12:34:51 2001 EDT Modified files: /php4 acinclude.m4 configure.in /php4/ext/aspellconfig.m4 /php4/ext/bz2 config.m4 /php4/ext/ccvs config.m4 /php4/ext/cpdf config.m4 /php4/ext/crack config.m4

Re: [PHP] Simple If-else statement - Fixed

2001-03-27 Thread Johannes Janson
Hi, for the haeder just make sure that there is NO output whatsoever before the header-call. even if line 1 of your script is empty before the ?php-tag the header doesn't work. "Louis Brooks" [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for all

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Michael Champagne
But then how would you process it in the same file? If I'm calling it from myfile and my link is to myfile then how does it know that it's already been clicked? Thanks, Mike On Tue, 27 Mar 2001 14:04:58 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: Is there a

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 15:50:44 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: But then how would you process it in the same file? If I'm calling it from myfile and my link is to myfile then how does it know that it's already been clicked? well you can make the url be:

Re: [PHP] password

2001-03-27 Thread Henrik Hansen
"Marisol Daz E." [EMAIL PROTECTED] wrote: 1. (*) text/plain Hi I need the code, for protecting the dir by password. take a look at htaccess files -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] sessions without cookies?

2001-03-27 Thread duirfire
Hi, can someone point me toward a tutorial that shows how to register info (e.g. username, login status, and user preferences) and do this in a session without using cookies... is this even possible? thanks! duirfire -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread FredrikAT
Hi, again! Didn't work... This is the scene: (file.php?a=input) input type=\"file\" name=\"myfile[$count]" (file.php?a=reg) Trying to echo type... ${$myfile[$count] . '_type'} // NOT WORKIN' ${$myfile$count}_type // NOT WORKIN' Any suggestions? Fredrik A. Takle Bergen, Norway

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread Philip Olson
Try this example : ?php $array = array('a','b','c'); $index = 1; ${$array[$index] . '_type'} = 'foo'; print $b_type; // prints foo ? Regards, Philip On Wed, 28 Mar 2001, FredrikAT wrote: Hi, again! Didn't work... This is the scene: (file.php?a=input) input

[PHP] data entry validation

2001-03-27 Thread Chris Worth
I'm working with some forms that need the data validated. Dates, times etc. my question is, how do I "reset" the form back to the original screen with variables intact so they can make the changes? is there a code snippet some place i can work with? thanks, chris -- PHP General Mailing

Re: [PHP] data entry validation

2001-03-27 Thread Miles Thompson
Chris, Go to www.thickbook.com. Julie Meloni has a tutorial there which gives you exactly what you want. It's the one which has to do with custom error messages, which , believe or not, are on the subject of data validation. Miles At 06:31 PM 3/27/01 -0500, Chris Worth wrote: I'm working

[PHP] Array in Form Elements

2001-03-27 Thread Jason Lotito
Okay, here is the question, I have a form that will continue to grow in the number of elements that it contains. The values are passed into a function, and then written out to a file. Currently, I have 38 seperate values that are being passed into this function, making the arguments for the

  1   2   >