RE: [PHP] Why while doesn't work?

2002-01-24 Thread Matt Schroebel
If you only want the associative array, just use mysql_fetch_array($result). If you're using the constant MYSQL_ASSOC, uppercase it, and don't quote it. Although the table con_inf in db sbwresearch contains 3 records with username as the first column, the following short script generates a

RE: [PHP] Clear form post data

2002-01-24 Thread Matt Schroebel
One would need to check the db to see if the operation had already been performed, so as not to do it again. um , lets say a form calls its own page , does some db operations and then returns to its former self , how do you get it to not perform said db operations on refresh? i.e the data is

RE: [PHP] Sending a POST-message

2002-01-24 Thread Matt Schroebel
I think this is what you're looking for. It's a script written by Rasmus. http://www.php-faq.com/faq.php#39 I wonder how I can send a POST-command to a server, via a PHP-script instead of a form. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] Using the fsockopen ()-function

2002-01-24 Thread Matt Schroebel
-Original Message- From: Björne [mailto:[EMAIL PROTECTED]] Subject: [PHP] Using the fsockopen ()-function - $sp = fsockopen ( www.php.net, 80, $errno, $errstr, 25 ); if ( !$sp ) { die ( $errno . : . $errstr ); } else { fputs ( $sp, POST /page.php HTTP/1.1\n );

RE: [PHP] Sending Form Arrays

2002-01-28 Thread Matt Schroebel
What I do is: input type=checkbox name=check[] value=Box 1Box 1BR input type=checkbox name=check[] value=Box 2Box 2BR input type=checkbox name=check[] value=Box 3Box 3BR input type=checkbox name=check[] value=Box 4Box 4BR input type=checkbox name=check[] value=Box 5Box 5BR Then in the action

RE: [PHP] mixed datatype

2002-01-28 Thread Matt Schroebel
http://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list -Original Message- From: charlesk [mailto:[EMAIL PROTECTED]] What does the function look like that it can take unlimited arguments? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] How to echo the /n, /r, etc... to the HTML display?

2002-01-28 Thread Matt Schroebel
Read the first user note at the bottom of this manual page: http://www.php.net/manual/en/function.htmlentities.php -Original Message- Subject: [PHP] How to echo the /n, /r, etc... to the HTML display? So, you see, if I use the PHP function, nl2br(), that took care of the cr and

RE: [PHP] Re: One form - Two emails, I need some help please

2002-01-29 Thread Matt Schroebel
And I write those as (true == $PHP_MAIL_FORM) so the parser will catch the missing second equal sign. This won't parse: (true = $PHP_MAIL_FORM) Edward R. Bailey wrote: if ($PHP_MAIL_FORM=true){ should probably be if ($PHP_MAIL_FORM==true){ -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread Matt Schroebel
Me thinks you need to have file privileges. See http://www.mysql.com/doc/P/r/Privileges_provided.html -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] the current problem at hand of getting the : error:Access denied for user: 'mjimm@localhost' (Using password:

[PHP] Freebsd, php and mail

2002-02-13 Thread Matt Schroebel
I figured this one out, so I thought I'd put it in the archives ... I just spent a few hours pulling my hair out because the mail sent by mail() was coming from 'unprivileged user' on my freebsd box. It worked fine for another site on the same box. It turned out that I has mistakenly

RE: [PHP] Filling Forms with $variables

2002-02-13 Thread Matt Schroebel
Always use htmlspecialchars() on form value fields and any data you put into the title tags. -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] ?$name = Steven Walker? form name=form1 method=post action=infocollect.php input type=text name=name value=?echo

RE: [PHP] links manager

2002-02-14 Thread Matt Schroebel
Look here: http://www.zend.com/apps.php?CID=38 -Original Message- From: Administration@myclassguide [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 5:22 AM To: [EMAIL PROTECTED] Subject: [PHP] links manager Hi Anybody know of any good scripts for creating a directory

RE: [PHP] how a function 'return' statement works

2002-02-14 Thread Matt Schroebel
How about: return $current_page_name[count($current_page_name)-1]; -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Can anyone give my puny mind an explanation as to why the following function only returns the value Array ? #

RE: [PHP] good practice

2002-02-14 Thread Matt Schroebel
What I do is use templates to separate the html from the php. So I end up with (at least) 2 files per page, one the template; the other the html. If you have tables, then you need templates for the rows. My model is basically: If (POST == $HTTP_SERVER_VARS['REQUEST_METHOD']) { // do data

RE: [PHP] MySQL Query

2002-03-04 Thread Matt Schroebel
This tutorial was my introduction to the concept, but you can find this information in a hundred other places: http://hotwiredlycoscom/webmonkey/programming/php/tutorials/tutorial4html I'd recommend that tutorial only as a guideline for using mySQL and php Don't try to use the

RE: [PHP] MySQL Query

2002-03-04 Thread Matt Schroebel
I don't really remember the tutorial very well I thought it did a fine job of explaining some of the basics I spent a few hours with it and felt pretty good However, I agree that it's not a good intro to PHP's basic features I stumbled on php a few years ago, and that was my intro

RE: [PHP] Mysql

2002-03-05 Thread Matt Schroebel
Change the grant to: grant all on * to clark@localhost identified by 'clark'; Then do a: flush privileges; I am trying to connect to the database like this: $db=mysql_pconnect(localhost, clark, clark) while in mysql do the following: grant all on * to clark identified by 'clark';

RE: [PHP] Script Debug.

2002-03-07 Thread Matt Schroebel
Could be several things ... else { session_register(user_auth_level); $auth_select = select account_admin_level from account_details where username='$login_username'; Perhaps echo the sql statement here so you can see what you're trying to do. $run_auth_select = mysql_query($auth_select);

Re: [PHP] newbie: the superglobal $_SESSION

2002-03-10 Thread Matt Schroebel
?php add a session_start() here if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } echo $count; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Matt Schroebel
Read the manual about magic_quotes_gpc and addslashes() I prefer to add slashes myself, that way I can verify input lengths but it has the risk that I might miss a field. The trouble with magic_quotes_gpc is that if you have to re-display a variable you have to stripslashes() first. -

Re: [PHP] which rights to set for dirs containing uploaded files?

2002-03-10 Thread Matt Schroebel
- Original Message - From: Andy [EMAIL PROTECTED] Subject: [PHP] which rights to set for dirs containing uploaded files? I am wondering which right I should set for a directory where users can upload pictures. What would be a secure way? Currenly I did set the rights to 777 which

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Matt Schroebel
How about: ALTER table auto_increment=0 -Original Message- From: Claudiu [mailto:[EMAIL PROTECTED]] I wish it was that simple... No.. It doesn't work this way... On Tue, 12 Mar 2002, Rick Emery wrote: your query is: DELETE FROM mytable; -Original Message-

RE: [PHP] Form Based Authentication

2002-03-12 Thread Matt Schroebel
First, change the names of your include files to something.inc.php so that no-one can download the files and get thte source, should their names become known. Second, you either must use session_register or $_SESSION['variablename'] and not mix their use. So instead of: $authenticated_user =

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

2002-03-14 Thread Matt Schroebel
It's not $PHP_SELF that's the issue here -- well it was probably blank because either register_globals is off or you were in a function and didn't global it. The real trouble is that. IE v6.0 is forgiving and if the action= is blank sends the request to the current page. So you feel comfy

RE: [PHP] Website STATISTICS

2002-03-18 Thread Matt Schroebel
I use webalizer. www.mrunix.net -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 2:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Website STATISTICS Hi, Anybody knows any good open source website statistics tool with graph and

RE: [PHP] combining headers with includes

2002-03-19 Thread Matt Schroebel
Ob_end_clean is clearing the buffer and not sending any data to the browser. Use ob_flush or ob_end_flush(). Output buffereing will take care of ordering the headers so they'll still work even though the include may still be sending some output. -Original Message- From: Ian Wayne

RE: [PHP] FAQ

2002-03-22 Thread Matt Schroebel
I've been working on that at http://www.php-faq.com/ Want to help? -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP] FAQ Has anyone given any thought to possibly maintaining a FAQ

RE: [PHP] using a counter in a foreach loop

2002-03-26 Thread Matt Schroebel
$i = 1; foreach ($months) { // do some things $i++; } -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 9:49 AM I have a foreach loop, where I execute some commands for each element in a certain array. One thing I would like to

RE: [PHP] Query from POST_VARS

2002-04-03 Thread Matt Schroebel
In my opinion, you should always single quote everything, including numerics. Why? Say you have a: $sql = Delete from table where id=$id; where id is expected to be numeric. What if the variable id ends up containing: 7 or id0 So the sql would end up as $sql = Delete from table where id=7

RE: [PHP] checkbox doesn't pass?

2002-04-04 Thread Matt Schroebel
You should use $HTTP_POST_VARS (or $_POST) all of the time. There's security risks in using register_globals. It's not risky in all cases. But register_globals will allow arbitrary variables to be added to into the name space of your script by simply putting them on the uri. Code not

RE: [PHP] AS/400 data access

2002-04-09 Thread Matt Schroebel
I just did this on a Linux box running Red Hat 7.2 last Friday. I used several sources on the web and wrote up my exact steps and posted them at http://www.php-faq.com/as400.html The other sources are quoted in that document. Keep in mind, it's not the final version of the document, and I'd

RE: [PHP] POST v. GET

2002-06-20 Thread Matt Schroebel
after you read this web page (take you no more than 15 minutes), you should consider browsing the actual HTTP spec, though it's pretty technical and is very long. I've html'd the RFC2616 for easier reading and you can find it at http://www.php-faq.com/httpintro.php -- PHP General Mailing

RE: [PHP] Using PHP and Apache's .htaccess files.

2002-06-20 Thread Matt Schroebel
-Original Message- From: Todd Fernandes [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:07 PM The way I have it working now is that I check to see if $PHP_AUTH_USER is set, and if it is, I send them to the page that is a directory down behind the .htaccess file.

RE: [PHP] checking

2002-06-28 Thread Matt Schroebel
if ($lastname=) { $insert=no } Even though you should use either empty() or isset(), you'd have a parse error if you wrote that as: if (=$lastname) { $insert=no } It takes a little time to learn to write the test 'backwards' but if you do the php parser will help and catch your

RE: [PHP] $name = My $row['name'] not longer possible?

2002-07-02 Thread Matt Schroebel
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ... when doing sth like: $name = My $row['name']; You have to wrap array references in curly braces within double quoted strings. Proper form is: $name = My

RE: [PHP] .htpasswd

2002-07-02 Thread Matt Schroebel
%htpasswd --help Usage: htpasswd [-cmdps] passwordfile username htpasswd -b[cmdps] passwordfile username password htpasswd -n[mdps] username htpasswd -nb[mdps] username password -c Create a new file. -n Don't update file; display results on stdout. -m Force

RE: [PHP] $name = My $row['name'] not longer possible?

2002-07-02 Thread Matt Schroebel
-Original Message- From: Hugo Wetterberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] $name = My $row['name'] not longer possible? It is possible to use arrays within strings, just skip ''. Write $name=My

RE: [PHP] Postal / Zip Code Proximity Search

2002-07-09 Thread Matt Schroebel
-Original Message- From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 1:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Postal / Zip Code Proximity Search I don't know what you mean by straight line. AFAIK all of this will be as the crow flies.

RE: [PHP] Working under Apache 1.3 but not Under IIS

2002-07-09 Thread Matt Schroebel
From: Kondwani Spike Mkandawire [mailto:[EMAIL PROTECTED]] Subject: [PHP] Working under Apache 1.3 but not Under IIS The function shown below only functions with my Apache on WinNT... I have tried it on my local Server (thats the one running the Apache and it works perfectly)... I am

RE: [PHP] Postal / Zip Code Proximity Search

2002-07-09 Thread Matt Schroebel
I found the points file here: ftp://ftp.census.gov/pub/tiger/pts/geoex.zip Sorry, I was wrong here. Those aren't the right files, and it's hard to find the correct ones. Should I ever do that, I'll post a correct link. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] HTTP authentication

2002-07-10 Thread Matt Schroebel
From: Varsha Agarwal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 4:30 PM I thought it will ask some user name and password thing but it just displays me the string text to send if user hits cancel. This is the code: ?php header(WWW-Authenticate: Basic realm=\My

RE: [PHP] Final Year Computer Science Project involving PHP

2002-07-12 Thread Matt Schroebel
A couple projects that I have thought of doing at are quite large would be: 1. A network monitor, like Big Brother, but written in php. Completely db driven, with an easy to use web interfaces for monitoring/adding systems and has uptime graphs, etc. It can be quite complex if you try to add

RE: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not?

2002-07-15 Thread Matt Schroebel
From: gilles [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 1:19 PM Subject: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not? ? error_reporting(E_ALL); session_start(); if (!isset($_SESSION['download'])) { @$_SESSION['download'] =

RE: [PHP] Newbie getting close, form submission

2002-07-22 Thread Matt Schroebel
From: Dean Ouellette [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:43 AM Subject: [PHP] Newbie getting close, form submission I am a complete newbie, search the web for examples right now and use them. The host has php 3.0. ^ That's really old, you

RE: [PHP] Newbie getting close, form submission

2002-07-22 Thread Matt Schroebel
From: Dean Ouellette [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:56 AM Subject: RE: [PHP] Newbie getting close, form submission $Message = $HTTP_POST_VARS['Message']; // should single quote associative array indexes if (isset($HTTP_POST_VARS['Header'])) { This is 78

RE: [PHP] dbf Help

2002-07-22 Thread Matt Schroebel
From: Vinod Palan [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:41 PM Subject: [PHP] dbf Help I have already php installed on linux running with mysql enabled. Now I wanted to read dbf files and I came to know that we need to install php with

RE: [PHP] stores / ecommerce

2002-07-22 Thread Matt Schroebel
-Original Message- From: Chris Edwards [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:11 PM Subject: [PHP] stores / ecommerce What are some good e-commerce stores written out there for PHP and mySQL?? http://marc.theaimsgroup.com/?l=php-generalm=101839857008918w=2 --

RE: [PHP] What does register_globals do?

2002-07-22 Thread Matt Schroebel
From: Matt Babineau [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 3:59 PM Subject: [PHP] What does register_globals do? I have never had a clear understanding about what this does, the php.ini has an explanation but being newer to PHP I don't understand it very well. Could

RE: [PHP] What does register_globals do?

2002-07-22 Thread Matt Schroebel
From: Martin Clifford [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:21 PM Subject: Re: [PHP] What does register_globals do? My way of thinking about is: With register_globals ON, all variables defined are available anywhere in the script (with the exception of functions and

RE: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0

2002-07-23 Thread Matt Schroebel
From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 12:43 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0 I don't know how to appy patches to the PHP software. I just finish upgrading the website to

RE: [PHP] Running ./configure multiple times

2002-07-24 Thread Matt Schroebel
From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 2:53 PM Subject: Re: [PHP] Running ./configure multiple times Yes, it is pretty safe to run ./configure more than once. The 1st time, it create the config.cache and so on. The 2nd time, it use the

RE: [PHP] 'Previous' 1, 2, 3, 4, etc. 'Next'

2002-07-25 Thread Matt Schroebel
-Original Message- From: ctan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:24 AM To: [EMAIL PROTECTED] Subject: [PHP] 'Previous' 1, 2, 3, 4, etc. 'Next' I seem to have a problem getting the page to display beyond the limit if a page, i.e. if the limit if 10

RE: [PHP] New way to make select boxes auto select

2002-07-25 Thread Matt Schroebel
From: Nathan Cook [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 12:34 PM Subject: [PHP] New way to make select boxes auto select You may already be doing it like this, but I think I found a new way to make select boxes auto-select (what data they put in) a lot easier. All

RE: [PHP] New way to make select boxes auto select

2002-07-25 Thread Matt Schroebel
From: Nathan Cook [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 2:52 PM Subject: Re: [PHP] New way to make select boxes auto select How are you able to quickly and painlessly determine which key gets the selected value, from form submission data, when building the initial

RE: [PHP] Help on dealing with arrays of HTTP_POST vars

2002-04-15 Thread Matt Schroebel
-Original Message- From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]] function SearchOrders() { global $Orders; global $HTTP_POST_VARS; $index = count($HTTP_POST_VARS); for($i=1; $i = $index; $i++) { The trouble is here . You should be

RE: [PHP] copy protection

2002-05-07 Thread Matt Schroebel
Look at the Zend Encoder. It's not free, but there is a free trial available. http://www.zend.com/store/products/zend-encoder.php -Original Message- From: Udo Giacomozzi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 9:36 AM Subject: [PHP] copy protection Has somebody

RE: [PHP] Help Please

2002-07-29 Thread Matt Schroebel
-Original Message- From: Varsha Agarwal [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 4:27 PM To: Dennis Moore; [EMAIL PROTECTED] Subject: Re: [PHP] Help Please Hi, I did not find any print or echo stetement in the sample example before hearder or setcookie function.

RE: [PHP] Readdir

2002-08-01 Thread Matt Schroebel
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Readdir New To Php so please bear with me... :) I used the readdir function to read the files listed on a Apache server. And it worked fine. Now I would

RE: [PHP] Protect PHP coding

2002-08-02 Thread Matt Schroebel
From: YC Nyon [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 12:59 PM Subject: [PHP] Protect PHP coding There is the PHP Obfuscator/Obscurer: http://pobs.mywalhalla.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can I assign to $_POST legitimately

2002-08-09 Thread Matt Schroebel
From: Henry [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 6:00 AM Subject: [PHP] Can I assign to $_POST legitimately I can do it but is it legit? $_POST['name']='henry'; within a php script? if $_POST['name'] is not set. The clearly $_POST['name'] was not posted!! Yes,

RE: [PHP] Linux PHP editor

2002-08-09 Thread Matt Schroebel
Here's some Linux ones that satisfy this requirement: 1. Zend IDE: Nice, but $$$ is the big inhibiting factor. There's a Zend Studio for-non-commercial use version available for free. It's based on version 2.0 of the product, fully functional. I would have to say that Zend Studio is

RE: [PHP] Creating a zip file using php

2002-08-13 Thread Matt Schroebel
From: Rahul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Creating a zip file using php Hi I want to create a zip file using php. Can this be done? If anybody has a code snippet, for this, or any guidelines, please send it

RE: [PHP] addslashes() and stripslashes()

2002-08-14 Thread Matt Schroebel
-Original Message- From: ed [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 1:48 PM To: [EMAIL PROTECTED] Subject: [PHP] addslashes() and stripslashes() Is it a good idea to always use addslashes() on a value gathered from a text field or textarea? Yes, always.

RE: [PHP] How to show data in one row from two rows from the database

2002-08-15 Thread Matt Schroebel
From: Ing. Rajesh Kumar [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] How to show data in one row from two rows from the database Hi everybody What I wrote in the subject may look complicated so I added a html file. It

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Matt Schroebel
From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:19 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include opens source, but it shouldn't [snip] Only on demand. I'd like to define the variable without showing the file $var=include(); do something

RE: [PHP] Problem with Testing if the user has an account in my database

2002-08-15 Thread Matt Schroebel
From: Sebastian Marcu [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:32 PM Subject: [PHP] Problem with Testing if the user has an account in my database For some reason though it isn't working right and keeps telling me that the 'Email' address is already taken even

RE: [PHP] Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Matt Schroebel
-Original Message- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:46 PM To: [EMAIL PROTECTED] Subject: [PHP] Can anyone help me out? I am really getting frustrated! Hello all, I am very confused. This script that I have been working on for a while

RE: [PHP] Array query - finding the key for a value

2002-08-16 Thread Matt Schroebel
From: Tim Fountain [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 7:51 AM Subject: [PHP] Array query - finding the key for a value This may be a silly question, but I'm used to being able to find PHP functions to do whatever I want, but I can't find one to do this! If I have

[PHP] Calendar logic question

2002-08-21 Thread Matt Schroebel
I have a calendar application that shows events in a month. I want to add the ability to have re-occuring events. I've been thinking about how to do that, but it's not seeming to be too easy. Say, I have a table of re-occuring events: eventId int eventName varchar eventStartDate date

RE: [PHP] check unread messages in a forum

2002-08-26 Thread Matt Schroebel
From: Charlotte [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 8:04 AM To: [EMAIL PROTECTED] Subject: [PHP] check unread messages in a forum I have made a forum in PHP, and the users are logged in using cookies. I want all new threads (and if there are new replies in an old

RE: [PHP] strange error message when trying to start apache

2002-08-26 Thread Matt Schroebel
From: Jesse Lawrence [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] strange error message when trying to start apache Everything appeared to go smoothly, except when I try to start up Apache, I get the following error message:

RE: [PHP] Re: Tricky question - referrer from ousite, or from intern?

2002-08-27 Thread Matt Schroebel
However.. you think it might be not sure that this workes for every browser? PUh... thats bad. Do u have examples for that? It workes with IE on PC. Well, the HTTP 1.1 spec says it shouldn't be set when it's typed into the address line. That happens often enough that it can't be relied

RE: [PHP] flaking out on foreach

2002-08-27 Thread Matt Schroebel
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 11:08 AM Subject: [PHP] flaking out on foreach Why is this code: ?php $bob=array(1,2,3,5,6); foreach($bob as $foo);

RE: [PHP] Stepping through an array more than once

2002-08-28 Thread Matt Schroebel
From: Petre Agenbag [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 8:17 AM To: Petre Agenbag Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Stepping through an array more than once Actually, it's not accurate for me to say stepping through an array more than once, as I want to

[PHP] PDF POST, but refresh is GET

2002-08-28 Thread Matt Schroebel
I have a page the will print a telephone listing in pdf (using pdflib and inline pdf) by POSTing the requested orientation and papersize to a second page. I've found that I have to post to a second page because IE seems to cache a response, and if I post to the same page, I can never get the

RE: [PHP] PDF POST, but refresh is GET

2002-08-28 Thread Matt Schroebel
GET solved it. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 2:44 PM To: Matt Schroebel Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PDF POST, but refresh is GET Sounds like an IE bug to me. If it knows there is POST data

RE: [PHP] PHP_AUTH_USER

2002-08-30 Thread Matt Schroebel
From: Hendråwan Rinäldi [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 5:44 AM Subject: [PHP] PHP_AUTH_USER anyone can help me what is the script for log out WWW-authenticate You can't log out of http authentication. Close the browser is it. Not very secure, eh. Use a

RE: [PHP] PHP_AUTH_USER

2002-08-30 Thread Matt Schroebel
From: Stas Maximov [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:02 AM To: Matt Schroebel Cc: PHP General Subject: Re: [PHP] PHP_AUTH_USER You can't log out of http authentication. Close the browser is it. Not very secure, eh. Use a session based login method

RE: [PHP] help with installation

2002-09-09 Thread Matt Schroebel
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:32 AM Subject: [PHP] help with installation Sure I'm missing some thing silly here but its monday morning :) I have just installed php 4.2.3 with apache 1.3.26. I have all loadmodule/addmodule as well

RE: [PHP] PHP Source files

2002-09-09 Thread Matt Schroebel
From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 12:41 PM Subject: [PHP] PHP Source files I'm wondering if anyone knows where I can find information about how PHP parser processes commands like: $a=$b+$c; if ($b $a) {} (Ones with operators)

RE: [PHP] Re: Displaying PDF file

2002-09-12 Thread Matt Schroebel
-Original Message- From: Erwin [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:02 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Displaying PDF file Joseph Szobody wrote: Thanks Erwin, that helps but I'm still not getting it to work. Should I still use the

RE: [PHP] freetype - could not open font problem

2002-09-24 Thread Matt Schroebel
From: andy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 7:29 AM Subject: [PHP] freetype - could not open font problem I am trying to use freetype, but do always get the message Warning: Could not find/open font in test.php on line 18 The font is available and ok. I

RE: [PHP] Jpeg resize quality problem

2002-09-24 Thread Matt Schroebel
-Original Message- From: Michael F. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Jpeg resize quality problem Hello, I have a php script which resizes a jpeg file. I use ImageCopyResized and ImageJPEG

RE: [PHP] User Authentication

2001-11-13 Thread Matt Schroebel
Caveat: Don't forget to escape user input before sending to SQL. Those samples leave that part to your imagination. Bad guys might take advantage of that :) http://www.google.com/search?q=php+mysql+user+authenticationb tnG=Google+Search First hit's a winner :) -- PHP General

RE: [PHP] mySQL access denied with correct account/pw?

2001-05-08 Thread Matt Schroebel
If you are now accessing remotely, you'll need remote privileges for the user, not just user@localhost. Could also be the db name is incorrect. -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:59 PM He has given me the account and

RE: [PHP] mysql_trouble (check fast!)

2001-05-08 Thread Matt Schroebel
You have to check for a db result with either $count = mysql_num_rows($q_updateresult) or if ($row = mysql_fetch_array($q_updateresult)). mysql_query returns a 1 or 0 to indicate if the query was sucessful. One might typically query a db before inserting a record to make sure it's not there

RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Matt Schroebel
the man page for header() says look here: http://www.w3.org/Protocols/rfc2616/rfc2616 From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 9:33 AM where can I find reference on these header stuff? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: Re[2]: [PHP] Variables in variable names

2001-05-09 Thread Matt Schroebel
or even try input type=text name=name[] input type=text name=name[] This should AFAIK result in an Array, but I'm not sure if empty fields are put in. You will get the empty fields except for checkboxes. For checkboxes only the checked elements come through so you need values that

RE: [PHP] PHP: Variables in TITLE

2001-05-14 Thread Matt Schroebel
I would recommend: title?php echo htmlspecialchars($name); ? is logged in/title that way you won't get burned by quotes, etc ... From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 7:59 AM To: '[EMAIL PROTECTED]' I want the the secure page to hold the users name

RE: [PHP] How do I have a Authentication box pop up?

2001-05-17 Thread Matt Schroebel
There are some user notes under that manual page that might be of use to you. From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 3:17 PM For some reason that doesn't provoke a Pop-up. Maybe this is because I am on an IIS server. Any Ideas?

RE: [PHP] Array Problem

2001-05-22 Thread Matt Schroebel
What is the best way to delete an element from an array? I tried using unset(), and it didn't work. unset works with arrary elements, but it must be a global variable and not passed in. Try the code below to see the results. ?php // deletes an element of global array function

RE: [PHP] .htaccess for PHP

2001-05-22 Thread Matt Schroebel
php_value safe_mode 1 php_value max_execution_time 15 You need to also set the AllowOverride option in apache so that apache looks into the .htaccess file. http://httpd.apache.org/docs/misc/FAQ.html#htaccess-work I heard that you can modify PHP settings with the .htaccess file for Apache.

RE: [PHP] php FTP

2001-04-25 Thread Matt Schroebel
I've never done it but here it is: http://conf.php.net/pres/index.php?p=slides%2Fintroid=ac2 -Original Message- From: ryan.barnett1 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 10:03 AM To: [EMAIL PROTECTED] Subject: [PHP] php FTP Hi there, I would like to

RE: [PHP] php FTP

2001-04-25 Thread Matt Schroebel
NT to fix it. Damn, damn, and double-damn! Cheers - Miles At 10:26 AM 4/25/01 -0400, Matt Schroebel wrote: I've never done it but here it is: http://conf.php.net/pres/index.php?p=slides%2Fintroid=ac2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] Get the title from an HTML page

2001-04-30 Thread Matt Schroebel
You can find a function that does that at http://www.zend.com called Get Title Tag in the Code Gallery under the HTML catagory. -Original Message- From: Matthew Ralston [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Get the

RE: [PHP] Logout Problem auf .htaccess-Login

2001-05-01 Thread Matt Schroebel
$PHP_AUTH_USER= ought to do it. From: Jochen Kaechelin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 4:30 AM Is it possible to unset $PHP_AUTH_USER and $PHP_AUTH_PW after a successfull '.htaccess-login'? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] add to .htpasswd via php

2001-05-02 Thread Matt Schroebel
You might want to forget the exec and write direct to the file as in this code gallery item: http://www.zend.com/codex.php?id=521single=1 From: Joseph Koenig [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 1:40 PM I'm attempting to streamline my work by writing a script that

RE: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Matt Schroebel
$PHP_AUTH_USER = ; $PHP_AUTH_PW = ; Ought to do it. From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 8:39 AM To: [EMAIL PROTECTED] Subject: [PHP] HTTP authentication : logout!!! Now i woul like to create a logout link after clicking on which, whenever you

RE: [PHP] Undefined index a different problem

2003-01-07 Thread Matt Schroebel
Try: echo($GLOBALS[$i]); Or echo {$GLOBALS[$i]}; This times it's the array in the double quoted strings ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
-Original Message- From: Simon Dedeyne [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 9:03 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Mysql/php database performance question So I think I have to reformulate the question: which is better 5 varchar columns of size 50 or

  1   2   >