Jeff McKeon said on Saturday, October 04, 2003 at 11:35 AM
>However on the third funtion I get an undefined index error for
'>ticketid'
Post some code ...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Roger B.A. Klorese wrote:
>>> if ("Add" == $Task)
I call that 'defensive programming', defending yourself from yourself!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: Anthony [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 9:52 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Best PHP CMS
>
>
> I'm just looking for some opinions. I've been going though
> sourceforge
> looking at different CMS systems. There are a
Is anyone using a php/mysql/apache CMS (either custom or open source)
that is performing well serving on the order of 1 million page views a
month with 2600+ items of content? If so, I'd like to know what your
using and a description of your server setup, such as if the backend
runs on a different
> -Why the concern about letting that user have execute permissions,
> and then prevent anyone (except those that have valid reasons) from
> having write/execute permission to the webroot.
The permissions are Read, Write, and Execute. Read and Write are self
explanatory (for directories Write mea
> -Original Message-
> From: Jay Fitzgerald [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 9:17 AM
> Subject: [PHP] PHP Auto-Date Select Box
>
>
> Does anyone know how I can make a PHP form select box that
> has the dates in
> it for the next 7 days including today and the re
> -Original Message-
> From: Tim Haskins [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 2:45 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] datetime
>
>
> How does one retrieve the date and time off a server in the following
> format?
>
> 2003-04-03 11:11:38
Plenty of example
> -Original Message-
> From: Bobby Rahman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 11:25 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] RE: [newbie] embed php in html file
>
> I have a header.php :
> session_start();
> echo " color=\"red\"size=\"3\">Logged in as:
> ".$_SE
> -Original Message-
> From: David Banning [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 2:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] redirect using header
>
>
> I have been trying to do a redirect with header;
>
>
>
>Optex Staging and Services Inc.
>
>
> he
> -Original Message-
> From: Richard Whitney [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 1:02 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] RE: Anew set of eyes
>
>
> Can you folks help me out b y looking at this code?
>
> It all of a sudden is not grabbing the email addres
> -Original Message-
> From: Christopher Ditty [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 11:15 AM
> To: Matt Schroebel
> Subject: RE: [PHP] How to Return 403 Forbidden headers
>
>
> Try it in Netscape 7 if you have it.
6.5 showed blank, and
> -Original Message-
> From: Christopher Ditty [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 10:59 AM
> To: Matt Schroebel; [EMAIL PROTECTED]
> Subject: RE: [PHP] How to Return 403 Forbidden headers
>
>
> Thanks, but it returns a blank page
> -Original Message-
> From: Christopher Ditty [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 10:42 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to Return 403 Forbidden headers
header('HTTP/1.0 403 Forbidden');
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
> From: juan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 9:36 AM
> Subject: [PHP] new to PHP
>
> New to php and looking to by this book
> PHP For the World Wide Web: A Visual QuickStart Guide
>
> The book says it covers PHP version 4.04.
> Will this book be current enough for m
> -Original Message-
> From: Steve Jackson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 2:10 PM
> To: Php-General
> Subject: [PHP] Process array after form submission problem
>
>
> Hi,
>
> My problem is that I have a dynamic form with vars which I
> want to process.
> -Original Message-
> From: Lowell Allen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 12:38 PM
> To: PHP
> Subject: [PHP] tracking bulk email
> (1) My client is nervous about the script failing mid-list
> and not being
> able to determine which contacts were sent mail. I
> -Original Message-
> From: Roman Duriancik [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 9:31 AM
> Subject: [PHP] How to compare 2 strings
>
> How to compare 2 strings in PHP
> I hawe 2 array where I have only string values some values in
> both arrays
> are same but
> -Original Message-
> From: Mr. BuNgL3 [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 31, 2003 8:43 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] checkboxes and php...
>
>
> Hi...
> can you give me some lights in this subject? How checkboxes
> work with php?
> Or where i can find som
> -Original Message-
> From: SpyProductions Support Team [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] while loop- will this work?
>
>
>
>
> Should this work?
>
> $f1 = rand(999,999);
>
> while($check_si
> >> $query = "UPDATE assets SET title = '$title', version = '$version',
> >> developer = '$developer', serial_number = '$serial_number', WHERE
> >> asset_id = '$HTTP_GET_VARS[id]'" ;
> >
> > Change the var to '{$HTTP_POST_VARS['id']}' (with the curly braces
> > since
> > the array reference is i
> -Original Message-
> From: Mike Tuller [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 11:02 AM
> Subject: [PHP] HTTP_GET_VARS[]
> The issue I am
> having now is that I have the editsoftwareassest.php's form
> action set
> to POST to a script called updatesoftwareasset.
> -Original Message-
> From: Tommy Jensehaugen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 10:32 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] apache webprotect logout
>
> When I browse to this folder I get a popup to type my name
> and password
> in( automatic popup by in
> -Original Message-
> From: Bryan Brannigan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 9:03 AM
> Subject: [PHP] mysql_fetch_row problem
> $db = mysql_connect("localhost", "webapp");
> mysql_select_db("helpdesk",$db);
> $result = mysql_query("SELECT contactemail FROM l
> -Original Message-
> From: thkiat [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 22, 2003 10:23 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Need help.
>
>
> Can someone tell me what should I do to solve this problem?
>
> Warning: mysql_fetch_row(): supplied a
> -Original Message-
> From: John M [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 30, 2003 3:05 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] File upload problem
>
>
> Hello,
>
> I have the code below. It's a simple file upload. But it doesn't work.
> Before the line if(isset( $Submit )
> -Original Message-
> From: Cesar Aracena [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 12:56 PM
> Subject: [PHP] Header sent polem
>
>
> Hi all,
>
> Following Chris's idea on how to handle visitors sessions,
> I'm trying to
> setup a cookie with a randomly generated ses
>
> Header("Content-type: image/jpeg");
> $im = ImageCreateFromJpeg('1234_1.jpg');
> ImageJpeg($im);?>
>
> The file is in the folder, it has execute and write
> permissions set, and the error given is "The image
> cannot be displayed, because it contains errors.",
> which is not very useful.
> -Original Message-
> From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]]
> Sent: 16. janúar 2003 13:59
> Subject: RE: [PHP] Problem with a for loop...
>
> I only want the last inserted row in the mysql database, and each time
> the script goes trough the loop it adds a new row into th
> -Original Message-
> From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 15, 2003 1:00 PM
> To: Beauford.2002; PHP General
> Subject: Re: [PHP] Windows PHP vs Linux PHP
>
>
> Set your php.ini file and error reporting as such:
>
> error_reporting = E_ALL & ~E_NOTIC
> -Original Message-
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 10, 2003 11:45 AM
> To: Matt Schroebel
> Cc: Simon Dedeyne; [EMAIL PROTECTED]
> Subject: Re: [PHP] Mysql/php database performance question
>
>
> Sure, just tried it
> -Original Message-
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 10, 2003 11:04 AM
> To: Matt Schroebel
> Cc: Simon Dedeyne; [EMAIL PROTECTED]
> Subject: Re: [PHP] Mysql/php database performance question
>
>
> char of greater
> -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
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
I was thinking you'd start at the beginning, displaying row 0 through
row 19, and then have a next link, that will show rows 20 through 39,
and so on.
> -Original Message-
> From: Marco Bleeker [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 9:06 AM
> To: [EMAIL PROTECTED]
Why don't you use full text search, which creates a score?
Two tutorials:
http://www.mysql.com/doc/en/Fulltext_Search.html
http://www.zend.com/zend/tut/tutorial-ferrara1.php
The match words need to be at least 3 characters in length or you'll get
no results.
> -Original Message-
> From:
Look at the user notes on the man page for zip
http://www.php.net/manual/en/ref.zip.php, there are several solutions
there
> -Original Message-
> From: Brent Baisley [mailto:brent@;landover.com]
> Sent: Thursday, October 24, 2002 10:30 AM
> To: php-gen
> Subject: [PHP] Packaging files for
> From: Brad Harriger [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 3:17 PM
> Subject: [PHP] Setting date fields in mysql queries
>
>
> I have the following line in a program I'm working on:
>
> $query = "UPDATE countertable SET CurrDate = '$ndate' WHERE ID = $id"
>
> $ndate
> -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
> ImageJP
> 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 o
> -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 st
> 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 oper
> 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
> 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
> 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
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.
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 ht
> 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
> From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 27, 2002 11:08 AM
> Subject: [PHP] flaking out on foreach
>
>
> Why is this code:
>
>
> $bob=array(1,2,3,5,6);
>
> foreach($bob as $foo);
> > 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 r
> 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:
> 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 i
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
eventE
> 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
> -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
> 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
> 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();
>
> d
> 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.
> -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, a
> 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,
> ple
> >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 St
> 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 post
> 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
> 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
> -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
> 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
> init
> 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
> eas
> -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
> 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
>
> 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 web
> 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
> 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. Co
> -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-general&m=101839857008918&w
> 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
>
> *
> 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'])) {
> <<<>>> $
> 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, y
> 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'] = $_POST['down
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 h
> 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:
>
> header("WWW-Authenticate: Basic realm=\"My
> 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, vis
> 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
> -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
> -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 $
%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 M
> "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 {$ro
> 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
> -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 fi
> 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 Maili
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
> -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 sh
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
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 expectin
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 id>0
So the sql would end up as
$sql = "Delete from table where id=
$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 l
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
> c
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 [
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 gr
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
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 = 7
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
- 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 whi
1 - 100 of 139 matches
Mail list logo