Martin Towell wrote:
use vbscript :P
otherwise no - php = server - [java|vb]script = client
:o)
of course there IS way how to do it from php .. put into your code
something like this special secret code stolen from M$
H1
FONT color=red
On Friday 19 April 2002 08:04, David McInnis wrote:
I am having a problem reading a remote file using fopen and http://. I
suspect this is because the remote file is sending back a cookie. Can
anyone confirm and/or offer a solution?
If it is indeed sending back a cookie then you need
I had thought that a session would last only 20 mins if
session.gc_maxlifetime is set at 1440. Was I wrong in assuming this? I
have pages that have session_start() at the top to persist the session
throughout the life-cycle of these pages, however, I want the session to
expire after 20 mins or
I have installed gd-1.8.4 in apache server without any problems.To check if the gd can
work,I write some codes with php like this:
?
Header(Content-type: image/gif);
$im = imagecreate(40,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
I have installed gd-1.8.4 in apache server without any problems.To check if the gd can
work,I write some codes in php like this:
?
Header(Content-type: image/gif);
$im = imagecreate(40,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
I have installed gd-1.8.4 in apache server without any problems.To check if the gd can
work,I write some codes in php like this:
?
Header(Content-type: image/gif);
$im = imagecreate(40,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
On Friday 19 April 2002 09:31, Jeff Oien wrote:
I have a script which retrieves the body of an email message from
a MySQL database to be sent to someone who applies using a form.
The script contains this:
$url = a
href=\http://$HTTP_HOST$SCRIPT_NAME\;http://$HTTP_HOST$SCRIPT_NAME/a;
$url =
GIF is licensed by Unisys(it is a compuserve format). This is very
expensive, so it has been cut out of php. Solution: a) use PNG b) get an old
version of php.
regars,
Jan Peuker
P.S.: In future, please don't post 3 times using courier-extrabig.
- Original Message -
From: zhaoxd
On Friday 19 April 2002 15:06, zhaoxd wrote:
I have installed gd-1.8.4 in apache server without any problems.To check if
the gd can work,I write some codes in php like this:
?
Header(Content-type: image/gif);
$im = imagecreate(40,30);
$black = ImageColorAllocate($im, 0,0,0);
$white =
I have a directory on my server that contains log files for all my virtual hosts.
I'd like to create a (web) login page that each owner of those vhosts can use to gain
access to their individual log files. Ideally by using the same login they have on
the system (their physical log in),
On Friday 19 April 2002 15:06, zhaoxd wrote:
I have installed gd-1.8.4 in apache server without any problems.To check if
the gd can work,I write some codes in php like this:
?
Header(Content-type: image/gif);
$im = imagecreate(40,30);
$black = ImageColorAllocate($im,
Hi,
I am evaluating if it is posible to connect Oracle 8i from PHP, running a
PL/SQL procedure and returning the results, avaible in a temp table, to
HTML. Besides, I need to format the results of the query in PDF document and
make a pie chart based on he results of the contents of the table
On Friday 19 April 2002 15:41, zhaoxd wrote:
But this time,when I use imagepng function instead imagegif funtion,the
result is not right ,either!
The warning message displayed also,which is bWarning/b: ImagePng: No
PNG support in this PHP build in b/usr/local/apache/htdocs/index.php/b
Just a few quick questions if anybody is out there.
Why use .inc as a file extenstion when you can use .php ??
What are the advantages/disadvantages to using .inc?
Is one more secure?
Which is faster?
Which is consider a better pratice?
Thanks a lot.
Look at file() and fgets() functions.
File gives you the whole file as a row per element array
e.g. ...
If ($csvfile = file(yourfile.csv))
{ foreach($csvfile as $row)
{ $csvarray[] = explode(,, $row);
}
}
... gives you a structure from the csv that you can walk through
On Friday 19 April 2002 16:10, Jacob Wyke wrote:
Just a few quick questions if anybody is out there.
Nobody here but us chickens.
Why use .inc as a file extenstion when you can use .php ??
Just a matter of aesthetics. Some people might like to use .inc to remind
themselves that the file is
Hi
I am trying to offer downloading files from a web server, using PHP.
The files are gzipped text and have all .txt.gz extensions. Now while on
Windows systems both IE and Netscape offers to download it under the
full name (althought IE adds [some_number] to the base of the file
name), under
php-general Digest 19 Apr 2002 08:48:55 - Issue 1295
Topics (messages 93598 through 93643):
Re: How to create, name and start PHP sessions
93598 by: Phil Powell
93605 by: Michael Virnstein
Re: verify file types when uploading to server...
93599 by: Vince LaMonica
Jon wrote:
Hi,
I am evaluating if it is posible to connect Oracle 8i from PHP, running a
PL/SQL procedure and returning the results, avaible in a temp table, to
HTML. Besides, I need to format the results of the query in PDF document and
make a pie chart based on he results of the
you 'd need process forking, which is has to be compiled into php
and which should/could not be used within a webserver environement.
i don't know your scripts will work,
if you call process_function after including auth_user.php.
if it works, i'd do it this way:
?php
require(function.php);
...
Hello
I have the following SQL and I wanna insert the current date in one of
the table fields but it's not working. Can u tell me whats the problem?
(I'm using mysql and php)
Thx a lot
$SQL = INSERT INTO orders (Customer_Id, Order_Date).
VALUES($CustID,date());
--
Have a look here...
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=8txtCodeId
=585
Craig
Jason Whitaker [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am looking for a pre-wrote script thats does the same thing as what this
company offers:
[EMAIL PROTECTED] (Alia Mikati) wrote:
Hello
I have the following SQL and I wanna insert the current date in one of
the table fields but it's not working. Can u tell me whats the problem?
(I'm using mysql and php)
Thx a lot
$SQL = INSERT INTO orders (Customer_Id, Order_Date).
Hi,
I recently had this problem and, after hours of hair pulling, found that it
seems to work best if you send
the words Content-Type and Content-Disposition in **lower case**. Not sure
why it has to be like that but it was the only way I found.
HTH,
Danny.
- Original Message -
From:
MySQL (I assume that's the database you're inserting into) requires dates to
be sent in -MM-DD format. You appear to be sending a unix timestamp.
Try:
date(Y-m-d,time()) // Sends a MySQL style date.
or even:
$SQL = INSERT INTO orders (Customer_Id, Order_Date) VALUES($CustID,NOW());
//
A third way could be to append .php onto those files too, giving .inc.php,
.class.php etc.
Danny.
There are two ways to counter this:
1) have the .inc files in a directory outside the scope of the webserver
directory.
2) set the webserver to treat .inc files as php files.
--
PHP
Yeah,I have already compiled --with-png-dir=../libpng --with-zlib-dir=../zlib.
The command is :
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.24
--enable-track-vars --with-gd=../gd-1.8.4 --with-png-dir=../libpng
--with-zlib-dir=../zlib
Has something wrong or
And what about pearDB ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dear All!
I try to have run a php-forum. It works fine, but it is unable to send mail
automatically (f.e.: if somebody registers or in case of forgotten
password). If sombody tries to register he will succeed, but without sending
an email. If sombody forgots his password, and tries to get his
I have installed gd-1.8.4 in apache server without any problems.To check if the gd can
work,I write some codes in php like this:
?
Header(Content-type: image/png);
$im = imagecreate(400,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
But the result is warning message in IE:bWarning/b:
ImagePng: No PNG support in this PHP build in
b/usr/local/apache/htdocs/index.php/b on line b9/bbr.
Is this a compiling problem?The compiling command of php is:
./configure --with-mysql=/usr/local/mysql
an email. If sombody forgots his password, and tries to get his lost
password, there is the following warning:
Warning: Failed to Connect in c:\program files\apache
group\apache\htdocs\forum03\phpbb\sendpassword.php on line 87
http://www.phpbb.com/phpBB/
There are support forums here for
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi,
I set my own error handler as described in the documentation.
It seems to work, as I can catch NOTICE errors.
The problem is that PARSE errors do not display anywhere, nor are
catched by my error handler. The browser
On Saturday 20 April 2002 01:24, Pedro Garre wrote:
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi,
I set my own error handler as described in the documentation.
It seems to work, as I can catch NOTICE errors.
The problem is that PARSE errors do not display
On Friday 19 April 2002 17:31, Danny Shepherd wrote:
A third way could be to append .php onto those files too, giving .inc.php,
.class.php etc.
SARCASTIC
IOW make them into .php files?
/SARCASTIC
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems
If you do not want your site visitors to make good copies of your
pictures, you can present low-resolution JPG images. I use this when I
make images for galleries. But you cannot prevent them from obtaining
an image that you display on their screen - even if they cannot
right-click, they can
On Friday 19 April 2002 18:57, zhaoxd wrote:
The version of php is php-4.1.2,the latest version,apache-1.3.24,also
latest.
I have installed gd-1.8.4 in apache server without any problems.To check if
the gd can work,I write some codes in php like this:
?
[snip]
Is this a compiling
i'm not sure if the same rules apply to PHP but with ASP I make all my
includes contain only functions and constants, no free mark-up, and then
save them as .inc.asp so if requested directly they return an empty script.
.b
-Original Message-
From: Jason Wong [mailto:[EMAIL
Hi,
Is there any official statement (by php.net) about which file extension you
should use when using PHP (1, 2, 3 or 4)? I know that's server related, but
isn't there a standard?
http://www.fatcow.com/help/php.shtml states when using PHP4, you should
use .php4. But I have the feeling that's
Yup, and I also think it is the best way to do.
Though, could be smarter to have any kind of include files OUTSIDE the web
root - makes life so easy, not always possible for many development
enviroments.
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
At 19.04.2002 13:32, you wrote:
Hi,
Is there any official statement (by php.net) about which file extension you
should use when using PHP (1, 2, 3 or 4)? I know that's server related, but
isn't there a standard?
http://www.fatcow.com/help/php.shtml states when using PHP4, you should
use
It does not work. Can somebody to help me!?!?!?
Each time I try to write with ming it does not work. I have Popup: The
instruction At 0x00b907fc referenced memory At 0x00abc000. The memory
could not Be written.
I maked a file .mdb by my self (if the file would not be portable...) I
use a
Thanks for all the reply!
I think I didn't make myself clear. I want
to use php command to popup a dialog or window
msg to alert user like the Javascript alert
without using javascript.
Is it possible?
Thanks again.
--Wo
- Original Message -
From: Wo Chang [EMAIL PROTECTED]
To:
If I have two variables of time both in the format of Y-m-j J:i:s
How would I go about and get the difference?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
By using .inc you can be sure they will not get executed out of context
which can be dangerous, but also you should add this to apache config to
stop them being delivered as plain text which can also be dangerous. I
don't know about IIS but I guess they have something similar.
FilesMatch
Your message was clear, and as stated by several people already, you
can't do it in PHP.
PHP is a server side scripting language, Javascript and VBScript are
client side languages. Popping up a dialog box is a client side
function, thusly cannot be done in PHP. :)
HTH
--Sam
-Original
On Thursday, April 18, 2002, at 05:38 PM, Jason Lam wrote:
But,
$arr1[0] = 1;
$arr1[1] = 10;
$arr2[0] = $arr1;
$arr3 = each($arr2);
print $arr3[1];
Result is not 10. So, function each is not taking the whole $arr2[0]
out..
My question is what function should I use to iterate
On Friday, April 19, 2002, at 12:48 AM, Jason Wong wrote:
On Friday 19 April 2002 07:14, Wo Chang wrote:
Dear All,
One simple question:
Is there any easy way to popup a new browser from PHP
without using any Javascript?
No.
What about target=_blank ? I didn't think this was
hi
anybody knows how to activate printer functionallity under 4.2 ?? why was it removed
from the releases afer 4.1 ??
thx
m.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for all the reply! Understood.
--Wo
- Original Message -
From: Sam Masiello [EMAIL PROTECTED]
To: 'Wo Chang' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, April 19, 2002 8:21 AM
Subject: RE: [PHP] Re: how to popup a new browser window from php
Your message was clear,
Firstly, I assume you mean Y-m-j H:i:s for the date format.
To get the difference between 2 time strings :
?php
// orginal time strings
$firstTime=2002-04-19 13:49:00;
$lastTime=2002-04-19 14:00:00;
// convert to unix timestamps
$firstTime=strtotime($firstTime);
On Friday, April 19, 2002, at 04:10 AM, Jacob Wyke wrote:
Why use .inc as a file extenstion when you can use .php ??
What are the advantages/disadvantages to using .inc?
Is one more secure?
Which is faster?
Which is consider a better pratice?
It's just to help me organize which files I
I am trying to validate an user's input. I can get the ereg function to
work if I just type in the pattern I'm searching for but my problem is I
want to build the pattern through a variable first and then use that
variable in the ereg function.
For example, I want to check an input that's only
add this to the head section;
script language=JavaScript
function popupcontent(urll)
{
window.open(urll,'popup','toolbar=no,location=no,directories=no,status=n
o,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=400,height
=250');
}
//--
/SCRIPT
then use the following to open
On Friday, April 19, 2002, at 07:22 AM, .ben wrote:
i'm not sure if the same rules apply to PHP but with ASP I make all my
includes contain only functions and constants, no free mark-up, and then
save them as .inc.asp so if requested directly they return an empty
script.
Until the ASP
On Friday, April 19, 2002, at 07:42 AM, [EMAIL PROTECTED] wrote:
Is there any official statement (by php.net) about which file
extension you
should use when using PHP (1, 2, 3 or 4)? I know that's server
related, but
isn't there a standard?
http://www.fatcow.com/help/php.shtml states
On Friday, April 19, 2002, at 08:00 AM, Wo Chang wrote:
I think I didn't make myself clear. I want
to use php command to popup a dialog or window
msg to alert user like the Javascript alert
without using javascript.
no
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL
I don't think there's nothing official. If I am not mistaken, rare case,
PEAR recommends using only .php
It's kind of an informal consensus to use .php for anything beyond PHP3
and .php3 for PHP3-only files. This way, you script will work in most of
webservers that exist.
As an open
On Friday, April 19, 2002, at 07:22 AM, .ben wrote:
i'm not sure if the same rules apply to PHP but with ASP I make all my
includes contain only functions and constants, no free mark-up, and then
save them as .inc.asp so if requested directly they return an empty
script.
Until the
On Friday 19 April 2002 20:48, Brian McGarvie wrote:
add this to the head section;
script language=JavaScript
function popupcontent(urll)
{
window.open(urll,'popup','toolbar=no,location=no,directories=no,status=n
o,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=400,height
On Fri, 19 Apr 2002 [EMAIL PROTECTED] wrote:
At 19.04.2002 13:32, you wrote:
Hi,
Is there any official statement (by php.net) about which file extension you
should use when using PHP (1, 2, 3 or 4)? I know that's server related, but
isn't there a standard?
No.
You want a client side browser popup.
PHP runs on the server. PHP does not run in a browser.
Javascript runs on the browser.
You need to use Javascript.
Matt Friedman
Web Applications Developer
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Friday April
Hi Quinn
I see no one has responded yet. As I said on the OpenLDAP list, this is
not currently possible. Maybe I implement something some time in the
future, but patches would be welcome... If no one responds, I suggest
you go to http://bugs.php.net/ and submit a feature request. Or you
could of
Hi Folks,
I have a problem assigning an 3dim array, maybe I´m to tired today to see the
mistake, but PHP thinks, that it finds Illegal string index at the marked line.
could someone verify this, maybe find my mistake??
FYI getDbAns(), talk2DB are substitutions for DB - related routines, and the
Hi,
?php
function check_input($user_input, $min=0, $max=0, $text=false,
$number=false, $special=false, $default=)
{
$pattern=;
if ($text) $pattern.='a-zA-Z';
if ($number) $pattern.='0-9';
if ($special)
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Yes, but note that strtotime has a second parameter, which is now if
not indicated.
What strtotime returns is relative to this second parameter.
I would use:
$ahora = time();
$firstTime=strtotime($firstTime, $ahora);
Hi,
I was wondering. PHP is within our company compiled as a apache module (libphp4.so).
But i want to do some experiments with domxml. Therefor is it possible to create an
extention as a module and load it with dl()?
We're running Linux (Debian).
Thanks,
Dave Mertens
--
PHP General
If I wanted to represent it in the format of Days,Hours,Minutes,Seconds how
would that work
Danny Shepherd [EMAIL PROTECTED] wrote in message
020e01c1e7a1$70098eb0$0200a8c0@dannys">news:020e01c1e7a1$70098eb0$0200a8c0@dannys...
Firstly, I assume you mean Y-m-j H:i:s for the date format.
To
Garbage collection is launched according to the gc_probablility. If it finds
a session file that has not been modified for a longer time than
gc_maxlifetime, it deletes it. So, whenever a user requests a page, they
essentially reset the session timer to zero for that particular session,
since the
Try setting error_reporting = E_ALL ~E_NOTICE, or just E_ALL, in php.ini.
Kirk
-Original Message-
From: Pedro Garre [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 11:25 AM
To: php-general
Subject: [PHP] parse error= doc contains no data
I set my own error handler as
use the date() command (http://www.php.net/date) - using $timeDiff as the
datestamp.
HTH
Danny
- Original Message -
From: Ron Allen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 19, 2002 2:56 PM
Subject: Re: [PHP] Determine the difference between two dates
If I wanted
Thanks Danny, that worked!
Now should I include all those special characters? I want it to be hack
proof so I don't want to add the user input into my database and have
something bad happen.
Which ones are safe?
~ ` ! @ # $ % ^ * ( ) _ + - = [ ] \ { } | : ; ' ? , . /
-Original
I redoing some code, and the original author has code like
if
elseif
elseif
elseif
else
I have always known it to have just one elseif, not multiple ones.
I was going to move it to a switch/case, but there is no common switch.
So I wanted to know if its technically ok, or just ok to use
You can use as many elseifs as you need. I'm not sure how it affects
performance, but it works (I have one that goes through all 50 states).
-Natalie
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 10:02 AM
To: PHP
Subject: [PHP] if
List,
I'm trying to include some .inc files in my project, but I got errors
all time saying that this includes couldn't be found. I'm a newbie, so I
can't understand what's happend, since it worked pretty good in my local
machine and not in the ISP. I tried to speak to ISP many times but they
Nope..
That is fine..
I use it all the time.. It's quite acceptable..
- Original Message -
From: Gerard Samuel [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Saturday, April 20, 2002 12:01 AM
Subject: [PHP] if elseif else
I redoing some code, and the original author has code
How is this going to give the overall time in difference... For instance
A circuit went down at 17:30:45 it came back up at 18:37:49
what is the difference in time between the 2 in the format Days XX Hours XX
Minutes XX Seconds XX
Danny Shepherd [EMAIL PROTECTED] wrote in message
Hi list,
In order to avoid many left joins I took an aproach that I didn't know
if it's good, but I couldn't figure out another way. If my cliente has
10 phone numbers I buld an array, serialize it and store in database, so
I didn't have to create another table. The problem is now I need to
Appreciate the assistance Danny
Figured it out
$totaltime= date(H:i:s, mktime(0,0,$totaltime));
Just followed PHP from this page
http://www.php.net/manual/en/function.mktime.php
Ron Allen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
How is this going to give
*This message was transferred with a trial version of CommuniGate(tm) Pro*
My php.ini has E_ALL and E_NOTICE
I have tried several values with function error_reporting, including
error_reporting(0) as recommended in the documentation.
I am using the example of error handler function provided in
Sorry, I missed the main point of your original question. No more ideas
here.
-Original Message-
From: Pedro Garre [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:23 PM
To: php-general
Subject: Re: [PHP] parse error= doc contains no data
*This message was transferred
be sure that the path to the include file is relative to the script that was
requested
by the user. that's important if you include include-files into included
files.
you then have to make sure that the path to your include-file in the
include-file is
relative to the file that included the file,
I have written an extension that I compile into PHP in both CGI and
in module mode. The CGI version never crashes with a segfault in
my code; however, the module version almost always crashes on the
second page load. I've tracked it down to what appears to be one of
my pointers being
Ok this could be the wrong place to ask this but there seems to be some
people in here that know mysql quite well.
My question is this; I have a database that looks like this.
galleries
gallery_id
gallery_name
1
3d
2
fractals
3
abstract
4
cats
5
cars
Images
image_id
gallery_id
This don't work for me :(
Extension .gz is still throwed away.
Tom
Danny Shepherd wrote:
Hi,
I recently had this problem and, after hours of hair pulling, found that it
seems to work best if you send
the words Content-Type and Content-Disposition in **lower case**. Not sure
why it has to
On Fri, 19 Apr 2002, Jon wrote:
I am evaluating if it is posible to connect Oracle 8i from PHP, running
a PL/SQL procedure and returning the results, avaible in a temp table,
to HTML. Besides, I need to format the results of the query in PDF
document and make a pie chart based on he results
Ok the formatting got lost on that I will try this again.
-Original Message-
From: Fifield, Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 8:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MySql query
Ok this could be the wrong place to ask this but there seems to be some
I've settled on .inc.php, .class.php, etc. that way you get the best of both
worlds. Your files are identified as what they are and don't get sent out
unparsed
Tim Ward
Internet Chess www.chessish.com http://www.chessish.com
--
From: Jason Wong [SMTP:[EMAIL
Try:
SELECT gallery_name, image_id, image_name FROM galleries, Images WHERE
galleries.gallery_id = images.gallery_id
At 07:57 AM 4/19/2002 -0700, you wrote:
Ok this could be the wrong place to ask this but there seems to be some
people in here that know mysql quite well.
My question is this;
On Friday 19 April 2002 15:58, Erik Price wrote:
On Friday, April 19, 2002, at 04:10 AM, Jacob Wyke wrote:
Why use .inc as a file extenstion when you can use .php ??
What are the advantages/disadvantages to using .inc?
Is one more secure?
Which is faster?
Which is consider a better
At 19.04.2002 14:21, you wrote:
snip
Is there any official statement (by php.net) about which file
extension you
should use when using PHP (1, 2, 3 or 4)? I know that's server
related, but
isn't there a standard?
snip
This only belongs to the settings your webserver allows.
f.e. I
This is what I have right now
$totaltime= date(:H:i:s, mktime(0,0,$totaltime));
This is the result
04:20:46
from the following dates
2002-04-25 16:30:16
2002-04-19 12:09:30
534046 seconds
I would like to be able to get the days and, if needed, the number of months
and years
--
PHP
On Fri, 19 Apr 2002, SP wrote:
Now should I include all those special characters? I want it to be hack
proof so I don't want to add the user input into my database and have
something bad happen.
Which ones are safe?
~ ` ! # $ % ^ * ( ) _ + - = [ ] \ { } | : ; ' ? , . /
All
On Fri, 19 Apr 2002, Ron Allen wrote:
This is what I have right now
$totaltime= date(:H:i:s, mktime(0,0,$totaltime));
This is the result
04:20:46
from the following dates
2002-04-25 16:30:16
2002-04-19 12:09:30
534046 seconds
I would like to be able to get the days and, if
Wouldn't it be easier to convert each date into a unix timestamp, then
subtract... the resulting number is the difference in seconds. Then
devide by 60 for minutes, again for hours 24 for days, etc, etc
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday,
Like I said, if it crosses through a leap year, your calculation may be
off. How many days are there in February when you don't know what year it
is?
miguel
On Fri, 19 Apr 2002, Demitrious S. Kelly wrote:
Wouldn't it be easier to convert each date into a unix timestamp, then
subtract... the
How do I assemble strings to become a variable?
These code do not work...
$abc = 10;
echo $('ab'.'c');
function is_leap($) {
$leap=0;
$refy=2000;
while ( $ = $refy ) {
if ( $refy == $ ) {
$leap=1;
} else if ( $refy $ ) {
break;
}
$refy++;
3) Block downloads on .inc files, like using a Files directive in
httpd.conf or a .htaccess file in apache. (Or whatever on another web
server.) Now, even if a user tries to view that file, it won't execute at
all, thus perhaps saving you some memory and clock cycles. (And it's
generally
Here is what I have currently to validate the file type on upload to a
server:
?php
if ($htm1 != eregi('.htm$', $htm1)) {
copy($htm1, /path/to/upload/directory/$htm1) or die (Could not upload
file, please try again after making sure the file is less than 2mb in size
and the file name correct);
1 - 100 of 168 matches
Mail list logo