As I understand it, your situation is this:
a) all your pages are named in lowercase
b) if someone tries to access a non-existent page on your site (eg using a URI
which is not fully lowercase) they'll hit your 404.php
Correct.
But if the page was all lowercase they wouldn't be hitting you
Hi all,
It seems that there might be some basic solution on this that I never
received a memo on...
Basically, I'm looking for a way to avoid repeat posts. If someone, for
example, adds something to a bulletin board, clicks submit, and then presses
F5, they're just 1 click away from re-submitting
"Jason Wong" wrote...
>
> Try specifying the full path to the python binary and possibly the full
path
> to ncMailer.py as well.
>
Good suggestion! I switched everything over to absolute paths, as I should
have done in the first place. Unfortunately, this didn't solve the problem.
Still searching
Or to make it easy, here's the line you need:
$info = mysql_fetch_array( $result );
Put that line right after the query. So, here's sample:
$Link=mysql_pconnect($Host, $User, $Password);
$db=mysql_select_db($DBname, $Link);
$query=mysql_query("SELECT * from calendar", $Link);
$result = mysql_fe
On Saturday 04 January 2003 16:29, gilrain wrote:
> > Try specifying the full path to the python binary and possibly the full
>
> path
>
> > to ncMailer.py as well.
>
> Good suggestion! I switched everything over to absolute paths, as I should
> have done in the first place. Unfortunately, this di
on 04/01/03 7:26 PM, OrangeHairedBoy ([EMAIL PROTECTED]) wrote:
> Hi all,
>
> It seems that there might be some basic solution on this that I never
> received a memo on...
it's been mentioned MANY times on the list in the last week :)
> Basically, I'm looking for a way to avoid repeat posts. I
I did searches on this one...I'm using NNTP so it's nice...unfortunatly, no
one had quite the same problem.
I had thought about the random value already (see paragraph about unique
visit id), but it just seems like so much to keep track of...
After asking on other board on the same topic, one the
"Jason Wong" wrote:
>
> Does the webserver have permission to:
>
> (a) execute the python binary
> (b) access and read ncMailer.py
>
>
Thanks for all the help! I really appreciate it. :)
Hm, I'm actually not sure if my host allows that. This could definitely be
the problem. Is there a simple
> I'm back to square one, if I can't run that
> script without the browser waiting on it to finish...
For instance, is there a way for my PHP script to log into my shell account
and *then* send the command? Since I can execute the script, but PHP can't,
this would solve the problem -- if it's poss
Dear Sirs,
I'm using PHP and MySQL to make my programs. But I think I discovered a bug
in PHP or in MySQL (I don't know!).
In one of my files I have the following:
MYSQL_CONNECT("localhost", "**user**", "**pass**");
mysql_select_db("be");
$r=MYSQL_QUERY("SELECT n,u,m,h FROM d WHERE id='$id'");
Actually, there is a different solution to this aswell. One that is used
by phpBB and XMB, and maybe some others aswell.
Basicly, it's an anti-flood system. It works like this:
- You are a member and logged in
You post, and the post gets inserted into the database, and with it,
also the time o
Adam Wilson wrote:
I am beginning a tidy-up of a very messy site i am now managing. I have
started splitting repeated sections into single header and footer files, for
inclusion via php. Unfortunately the javascript no longer works, i.e.
rollovers etc.
Can someone please help me on this? Is this
Why not create a unique constraint with the userid, day (without time) and post
content.
Is it going in a DB?
Mike
*** REPLY SEPARATOR ***
On 04/01/2003 at 3:26 AM OrangeHairedBoy wrote:
>Hi all,
>
>It seems that there might be some basic solution on this that I never
>receiv
I cant give you a solution, and I''m running on Linux.
But I have pages were I do 6-7 queries on one page always using the same connection.
Never had a problem with that.
Mike
*** REPLY SEPARATOR ***
>I'm using PHP and MySQL to make my programs. But I think I discovered a bug
>
Hi,
I'm dealing with the following issue:
how to determine whether the current page request has been responded
normally, eg. output has been sent to the browser as regular, or just a
redirection header sent to it header('Location: '); ?
Some words about the background:
This functinality would
Hi!
How does PHP differs from ASP?
Are there any advantages in using PHP over ASP? Or the other way around?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm dealing with the following issue:
how to determine whether the current page request has been responded
normally, eg. output has been sent to the browser as regular, or just a
redirection header sent to it header('Location: '); ?
Some words about the background:
This functinality would b
repost [no response]
I searched MARC first, but none of the "answers" there seemed to work. I have
noticed similar issues on there, but the only answers are "make sure you
compiled with package X".
Installing:
RH 8
Apache 1.3.27 (--prefix --enable-module=so)
PHP 4.2.3 (--with-apxs --
Hi,
I'm trying to write a function that validates the input in a textarea. I
just want to allow alphanumrical characters, and if the user enters
anything else, I display an error message by calling error().
But the following doesn't work. Even if I enter "hello" in the textarea,
I get the er
I've seen both guest books and user forums "hacked" by users who enter
javascript or other code, and that way redirects vistors to other sites or
do other unwelcome things. What expressions should I look for and not allow
in my forms?
Best regards,
Anders
--
PHP General Mailing List (http
How about saving a timestamp when the user posts a message and when he posts
another message check whether the user already posted a message in the past,
let's say, minute. I saw this used in a lot of forums...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
"Anthony Rodriguez" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How does PHP differs from ASP?
search google on "php vs asp" ...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You need to tell preg_match that there will be multiple characters. Right
now, you're searching for one, and only one.
if (! preg_match ('/^[a-z0-9]+$/', $unchecked_text)) {
The "+" means one or more matches to the range in brackets.
-- tracy
On 1/4/03 9:03 AM, "Anders Thoresson" <[EMAIL PROT
I've been using Apache, MySQL and PHP under Win2k for a while to learn
PHP. At the moment, I'm running PHP 4.2.2, MySQL 3.23.39 and Apache 2.0.40.
During the holidays, I've read about a security hole in MySQL and
therefore plans to upgrade to 3.23.54a. At the same time, I want to install
PHP
Michael J. Pawlowsky wrote:
Why not create a unique constraint with the userid, day (without time) and post content.
Is it going in a DB?
Index on text columns does not seem very efficient, IMHO.
If he wants to avoid multiple inserts, the random unique ID is enough.
--
PHP General Mailing Lis
Might or might not be helpful.. but I had the same thing happend when I added
--with-jpeg-dir=/usr/lib
Everything looked fine... but I could not call imagejpeg. (PHP 4.3 - RH8 - apache2)
Once I did a make clean, ./configure -with- ... , make, make test (to see if it
had jpg), make install
It
You really should be using a $link variable...it's good habit:
$link = mysql_connect(...);
mysql_select_db( "mydb" , $link);
$query = mysql_query( "select..." , $link );
$result = mysql_fetch_array($query);
Lewis
"Nuno Lopes" <[EMAIL PROTECTED]> wrote in message
003a01c2b3de$95004650$0100a8c0@pc
Just in case any of you are still watching this thread, I thought I should
post the exciting conclusion!
Not too exciting, actually. In the end, I've simply added my Python script
to crontab. It runs every 20 minutes, and if the mailing file has changed,
it sends out the e-mails.
Pretty simple, a
Personally I say get yourself a good simple dbconnect class and make life easy.
Also if you ever change users, database name etc, you onlu have one place to replace
it in your code.
I wrote mine based on http://www.vtwebwizard.com/tutorials/mysql/
Take a look at it. Nice and simple.
Mike
php-general Digest 4 Jan 2003 18:21:57 - Issue 1803
Topics (messages 130209 through 130241):
Re: true ip tracking
130209 by: electroteque
130212 by: Jason Wong
Re: Still executing afte die()?
130210 by: Jason Wong
130213 by: Leif K-Brooks
Re: exec() not exec
Well I've been fixing up all my code (and other peoples which is worst) getting ready
to do an upgrade to 4.3. and turning off globals and warnings on.
I very often move parameters that were once POSTed as a GETs.
For instance... some one does a search but is not logged in, they can see the resul
Anders Thoresson wrote:
> I've seen both guest books and user forums "hacked" by users who
> enter javascript or other code, and that way redirects vistors to
> other sites or do other unwelcome things. What expressions should I
> look for and not allow in my forms?
I use the htmlspecialchars()
Why don't you just use $_REQUEST['keyword'] ?
On Sat, 4 Jan 2003, Michael J. Pawlowsky wrote:
> Well I've been fixing up all my code (and other peoples which is worst) getting
>ready to do an upgrade to 4.3. and turning off globals and warnings on.
>
> I very often move parameters that were once
I just found a better answer, but still open to suggestions
with the URI :
http://rc.mikeathome.net/test/index.php?one=1&two[]=2&two[]=3&three=3&key=This%20is%20the%20key
I tried this:
$value){
${$key}=$value;
}
echo $one;
most forums do this
Seraphim wrote:
Anders Thoresson wrote:
I've seen both guest books and user forums "hacked" by users who
enter javascript or other code, and that way redirects vistors to
other sites or do other unwelcome things. What expressions should I
look for and not allow in my forms
Hi,
i need the php mssql functions, but php is not configured --with-mssql
on my server.
What options do i have to enable this?
I mean, if i need the mssql-functions, does the client (as stated in the
php manual) have to be installed, or can i use s.th. dynamical and load
it at runtime?
S.o. me
Hey that's great... I didn't know about $_REQUEST
I suppose the order of overlapping is set in php.ini
I think I saw that somewhere.
Thanks
As for tunring it back on... in .htaccess
I like the idea of having cleaner code
*** REPLY SEPARATOR ***
On 04/01/2003 at 1
NOTE:
this basicly mimics the way register_globals works.
I use this code to fix register_globals aswell as the magic_quotes_gpc:
$global = @array($_SESSION, $_SERVER, $_COOKIE, $_POST, $_GET, $_FILES,
$_ENV);
$global_old = @array($HTTP_SESSION_VARS, $HTTP_SERVER_VARS,
$HTTP_COOKIE_VARS, $HTTP
If you do that you might as well just turn on register globals, you
should look at the $_REQUEST variable, it combines $_POST, $_GET and
$_COOKIE into one array so you can just reference $_REQUEST['variable']
for example $_REQUEST['one'].
Jason
On Sat, 2003-01-04 at 11:50, Michael J. Pawlowsky wr
-Original Message-
From: David Chamberlin
To: [EMAIL PROTECTED]
Is there an easy way to set something in a select list to be selected?
Right now I'm doing a real brute-force method. e.g.,
echo "";
$choices = array( 'pub' => 'On Public Page',
'members' => 'Only
Personally I think the problem lies somewhere between the chair and the keyboard
(Sorry, couldn't resist) :-)
*** REPLY SEPARATOR ***
On 04/01/2003 at 4:58 PM Stefan Hinz, iConnect (Berlin) wrote:
>It doesn't work because of the /* Some code including ... */ part ;-)
>
On Sunday 05 January 2003 01:16, Anders Thoresson wrote:
> I've seen both guest books and user forums "hacked" by users who enter
> javascript or other code, and that way redirects vistors to other sites or
> do other unwelcome things. What expressions should I look for and not allow
> in my form
When doing a function seach at www.php.net I just got:
Parse error: parse error in /local/Web/sites/phpweb/search.php on line 233
Twice in a row... Maybe they will be posting us a question soon!! :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
Well, we're all human.
On Sat, 4 Jan 2003, Michael J. Pawlowsky wrote:
>
> When doing a function seach at www.php.net I just got:
>
> Parse error: parse error in /local/Web/sites/phpweb/search.php on line 233
>
> Twice in a row... Maybe they will be posting us a question soon!! :-)
>
>
>
Hi all,
open cvs has been fixed. Use at will
Take care,
Greg
"Jesus M. Castagnetto" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It does not seem to be working at the moment.
>
> --- Greg Beaver <[EMAIL PROTECTED]> wrote:
> > Hello all,
> >
> > Josh Eichor
I have $REQUEST_URI that will take two values:
"/event/login.php"
and
"/event/register.php"
What I need to do is so simple it's brainless!!! I need to look into $REQUEST_URI and
find if it contains "register.php". I tried this and it completely failed, the
results were wrong every time:
if
At 22:21 4-1-2003, you wrote:
completely failed, the results were wrong every time:
if (strpos($REQUEST_URI, "register.php") !== 0) { // you're in login.php }
try
if (!strpos($REQUEST_URI, "register.php") === FALSE)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
try
if(stristr($_SERVER['REREQUEST_URI'], "register.php"){
echo "at register";
} else {
echo "Not";
}
Not tested but should work.. also case insensitive now...
*** REPLY SEPARATOR ***
On 04/01/2003 at 4:21 PM Phil Powell wrote:
>I have $REQUEST_URI that will
I must be doibg drugs with all those typos...
Typos removed:
*** REPLY SEPARATOR ***
On 04/01/2003 at 4:43 PM Michael J. Pawlowsky wrote:
>try
>
>if(stristr($_SERVER['REREQUEST_URI'], "register.php"){
> echo "at register";
>} else {
> echo "Not";
>}
>
>Not t
Nuno,
> $r=MYSQL_QUERY("SELECT n,u,m,h FROM d WHERE id='$id'");
>
> /* Some code including "mysql_num_rows" and "mysql_fetch_array($r,
> MYSQL_NUM)"
> And the another query:
> */
>
> MYSQL_QUERY("UPDATE d SET h='$h' WHERE id='$id'");
>
> /* i don't know why but this doesn't work!*/
It doesn't wor
Anders --
...and then Anders Thoresson said...
%
% I've been using Apache, MySQL and PHP under Win2k for a while to learn
% PHP. At the moment, I'm running PHP 4.2.2, MySQL 3.23.39 and Apache 2.0.40.
Good for you! All you have left to do is upgrade to Linux ;-)
%
% During the holidays, I'
The following script is found in Matt Zandstra's book on PHP (Sams) on page
160.
He's explaining forms with PHP and has hard coded a value - 42.
He also is explaining a hidden fleld where the user can submit the number
and each time the user hits submit in the formbox, the counter will register
t
I don't know how to post this one so I'm sorry for such bizarre cross-posting, but
honestly I don't know where to go for help on this one!
I have process.php that has to call a remote file called process.asp on another site.
Site 1 has the cookie domain I want (that's where process.php is housed
Use this... enjoy
$numtoguess)
$message="Your guess was too high.";
else
$message="That is the correct number.";
if(isset($_POST['guess']))
$guess=(int)$_POST['guess'];
else
$guess=0;
print_r($_POST);
?>
Guess number:
Type y
This also works with the ternary operator... I don't think it likes the ++ because it
doesn't know the type yet.
$numtoguess)
$message="Your guess was too high.";
else
$message="That is the correct number.";
if(isset($_POST['guess']))
$guess=(int)$_POST['guess'];
else
I'm not sure I totally understand... But why not just call it like a web page using
curl?
*** REPLY SEPARATOR ***
On 04/01/2003 at 6:43 PM Phil Powell wrote:
>I don't know how to post this one so I'm sorry for such bizarre
>cross-posting, but honestly I don't know where t
It would look like any other user.
In ASP you will have to check the request's IP (if its static), or you can
use some kind of username/password combinition... Or if you are real lazy
use just a hidden url ie mysite.com/akjdhsanlfas/process.asp
There is no way to tell the page process.php is makin
I don't know what the heck this is but it works:
#!/usr/bin/perl
$ENV{LD_LIBRARY_PATH} .=":.:..:../lib";
$ENV{CLASSPATH} .= ":Verisign.jar:.";
print `javac PFProJava.java`;
print `java PFProJava test-payflow.verisignscks.com`;
How can it be done with PHP?
OR
run the perl script from a PHP scr
Michael J. Pawlowsky wrote in message:
> This also works with the ternary operator...
.
No dice Michael.
I treid both your scripts.
The formbox comes up.
I enter a number.
I hit submit.
The box clears out the entered number without any mes
This came up in another group and I just wanted to know from the experts
whether this is possible. Being someone well versed in PHP can you visit a
web site, hit a script in PHP and be able to view the script on the page
rather than just the html it generates. Is it true that the only way to
view
foreach ($HTTP_GET_VARS as $key => $val) {
if (!empty($HTTP_GET_VARS["$key"])) ${"$key"} = $HTTP_GET_VARS["$key"];
}
foreach ($HTTP_POST_VARS as $key => $val) {
if (!empty($HTTP_POST_VARS["$key"])) ${"$key"} = $HTTP_POST_VARS["$key"];
}
Whenever the form variable is equal to 0, the va
On Sunday 05 January 2003 07:43 am, Phil Powell wrote:
> I tried using REQUEST_URI but I didn't get the results I wanted. How will
> process.asp know that process.php called it in order to do what it should
> do?
if you can get $_SERVER["REMOTE_ADDR"] or $HTTP_REMOTE_ADDR
and if you can trust it
Could you just get the php script to send the commands to schedule it as a
task to run via cron etc in say 1 minute into the future... that command
would be done quickly.. and the server could continue..
i did something similar when i used NT/ASP.
But i'm just a php newbie so i could be lost..
Not good at perl, but you need to do:
Sam wrote:
I don't know what the heck this is but it works:
#!/usr/bin/perl
$ENV{LD_LIBRARY_PATH} .=":.:..:../lib";
$ENV{CLASSPATH} .= ":Verisign.jar:.";
print `javac PFProJava.java`;
print `java PFProJava test-payflow.verisignscks.com`;
How can it be do
I read on PHP.net that PHP 4.3.0 has read-only GIF support in it's version of gdlib.
I am using the windows version with apache and tried both php_gd.dll and php_gd2.dll
and I could not access any GIF related image functions, however I could use JPG, PNG,
etc. Does anyone know if I need to do
Only if your webserver has a handler issue will this occur or if you
have a .htaccess to override the server from passing onto PHP.
This will happen with .php3 files if you don't have them set to be
processed by php or any other extension that is not included in your web
server configuration file
On Sat, 4 Jan 2003 19:26:02 -0500, you wrote:
>Whenever the form variable is equal to 0, the value is not passed into the
>corresponding variable.
>
>For example, if isLogin = 1, then $isLogin = 1
>But if isRegistered = 0 then $isRegistered = {null}
>
>I do not understand why this happens, someon
I couldn't think of isset, so I winged it:
if (strlen($var) > 0) {...}
Phil
"Michael Sims" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sat, 4 Jan 2003 19:26:02 -0500, you wrote:
>Whenever the form variable is equal to 0, the value is not passed into the
CURL? I only understand CURL as a Vignette command, sorry, you lost me.
Phil
"Michael J. Pawlowsky" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I'm not sure I totally understand... But why not just call it like a web
page using curl?
>
>
>
>
> *
I won't keep it up long... but go here... you will see it works...
http://rc.mikeathome.net:8080/test/index.php
*** REPLY SEPARATOR ***
On 04/01/2003 at 7:17 PM Anthony Ritter wrote:
>Michael J. Pawlowsky wrote in message:
>
>> This also works with the ternary operator...
or rename the file to .phps
for PHP source. Many servers recognize this mime type as source and send you the file.
But if you are thinking about security... the script is compiled and executed on the
server.
What you see are the results of the application.
Get it?
This is good and bad... Beca
I just installed 4.3 today... configured as
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt --with-zlib -
-with-gd --enable-exif --with-jpeg-dir=/usr/lib --with-png --with-ttf --with-fre
etype --enable-gd-native-ttf
I run this code:
and it works fine
Mike
*
http://www.php.net/manual/en/ref.curl.php
have the page send back whatever info you need.
*** REPLY SEPARATOR ***
On 04/01/2003 at 8:33 PM Phil Powell wrote:
>CURL? I only understand CURL as a Vignette command, sorry, you lost me.
>
>Phil
>
>"Michael J. Pawlowsky" <[EMAIL P
on 05/01/03 5:24 AM, Seraphim ([EMAIL PROTECTED]) wrote:
> I use the htmlspecialchars() function to disable all html. This function
> basically puts a '\' in front of eacht html character and thus disables all
> html.
> You may not want to do this if you want to allow, for example or
> other frie
on 05/01/03 4:16 AM, Anders Thoresson ([EMAIL PROTECTED]) wrote:
> I've seen both guest books and user forums "hacked" by users who enter
> javascript or other code, and that way redirects vistors to other sites or
> do other unwelcome things. What expressions should I look for and not allow
> in
Michael, thanks for the response..
Only prob is I'm using the win32 precompiled version.. I got a couple linux boxes I
could throw this on I suppose, but I was kind of hoping to use this machine as a dev
box.
I ran the same code you posted and these were my results:
Fatal error: Call t
when you do a phpinfo() what are the compiled with options?
*** REPLY SEPARATOR ***
On 04/01/2003 at 6:24 PM Adam Plocher wrote:
>This encoded message has been converted to an attachment.
>
>Michael, thanks for the response..
>
>Only prob is I'm using the win32 precompiled
There aren't any, however there is a GD section which says:
GD Support enabled
GD Version bundled (2.0 compatible)
FreeType Supportenabled
FreeType Linkagewith freetype
JPG Support enabled
PNG Support enabled
I know that mySQL errors are caught in mysql_error() and I find that
function extremely useful (kudos!). However, I have several queries in a few
scripts of mine but am wondering if anyone has written a small function that
catches errors and outputs them. What I mean is lets say I have a block of
c
How about something like this..
function runquery($query)
{
$query = mysql_query($query);
if (mysql_error())
{
echo "MySQL Error: ". mysql_error() ."\n";
exit(1);
}
return $query;
}
-Original Message-
Didn't I answer this already? The Windows binary was built without the
right #define to enable the GIF support. You will have to wait for the
next Windows build before this will work.
-Rasmus
On Sat, 4 Jan 2003, Adam Plocher wrote:
> Michael, thanks for the response..
>
> Only prob is I'm usin
If I look at my phpinfo I get:
gd
GD Support enabled
GD Version bundled (2.0 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Notice the GIF Read Support
Why don
Thank you guys for the confirmation and ...yes I got it. :(
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
-Original Message-
From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 04, 2003 8:52 PM
To: Larry Brown; [EMAIL PROTECTED]
Subject: Re: [PHP] web vi
Hello
I am trying to parse ESRI shape files, which have double values stored in
little endian format. when i read these values using something like this:
$RawFileHeader = fread($ShapeFile, 100);
$FileHeader =
unpack("NFileCode/N5Unused/NFileLength/VVersion/VShapeType/d8Box",
$RawFileHeader);
Also if you dont want ot to break you need to add the "@" operator in front
Mike
*** REPLY SEPARATOR ***
On 04/01/2003 at 6:47 PM Adam Plocher wrote:
>This encoded message has been converted to an attachment.
>
>How about something like this..
>
>function runquery($query)
>{
I've been using Authorize.Net for about 6 months now & am happy with them. I
use their AIM interface, which allows ,e complete control over the look & feel
of the payment process. There is no problem doing everything in PHP, as long as
you have the CURL extensions & they are built with SSL suppor
Hi,
Sunday, January 5, 2003, 12:47:40 PM, you wrote:
AP> How about something like this..
AP> function runquery($query)
AP> {
AP> $query = mysql_query($query);
AP> if (mysql_error())
AP> {
AP> echo "MySQL Error: ". mysql_error() ."\n";
AP> exit(1);
AP> }
I use authorize.net with curl as well. It works great. There are tutorials
on http://www.phpbuilder.net on how to set this up.
David
- Original Message -
From: "Jonathan Rosenberg (Tabby's Place)" <[EMAIL PROTECTED]>
To: "Chad Day" <[EMAIL PROTECTED]>; "php general" <[EMAIL PROTECTED]>
On Sat, 4 Jan 2003 20:33:14 -0500, you wrote:
>I couldn't think of isset, so I winged it:
>
>if (strlen($var) > 0) {...}
This should work most of the time, but be aware this will produce a
warning if $var isn't set (and you haven't set your error reporting
level to ignore warnings)... If you're
89 matches
Mail list logo