do you have a tip to upload big files without the hassle of having
php crunch so much memory? If I upload, say, 20 MB of data, my script
process will end up using 20 MB of memory. I think it stores all received
data
in memory and then flushes it in the temp file at the end.
Regards,
--
PHP Ge
Hello,
what I would do is build the instance of your mysql class in the constructor
of the user class
class User{
var $db;
// constructor
function User(){
$this->db = new Mysql(True);
}
// function that show how to use the Mysql class in the User class
function foo(){
$this
Hello,
I need to put a small security feature in one of my page.
The page is open as a popup from another web site. By checking the referer I tought
I could block any other call to this page but the referer variable is often not set...
What else could I do? ( no ssl so far is available for this :
Hello,
> can someone has an idea in how to convert for example
> > a string posted by a form in this format "são paulo" to this "sao
paulo"??
function remove_accents( $str ){
if( strlen( $str ) == 0 )
return $str;
else
$ret = strtr($str,
"ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõ
> So... when redirecting the user to a different page, you should
> always put exit after the header() call.
Yes that's what I do but it freeze on netscape 6 ?
Does anyone has experience this or am I the only one ?
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [
Hello,
several months ago I discovered that under some IE 4.0 and upgrades of 4.0 the
header() function would simply not redirect if
you don't put exit() right after the header() call. Now I'm discovering that header()
does not work under netscape 6 if you put
exit() right after!
How come th
Hello,
I am trying to use a URL like path/script.php/argument
and later retrieve argument using $PATH_INFO. The problem
is that all image on my page are broken and the css and javascript file
are not found when I use an URL like this.
Any idea why ?
py
p.s. I am trying to avoid ?arg=value on t
>I got an error "Maximum execution time of 30 seconds exceeded in C:\... on
line 224" while
>accessing a PHP page tie to a Mysql database.
>1. Is 30 seconds the normal setting before it times out ?
It is the default settings. It's rarely normal that a script last that long.
My longest scripts is
Hello,
maybe you could have a hidden field named myfield[], this one will be for
the index
in php that you will build with a javascript function when you submit the
form.
py
- Original Message -
From: "M" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 03, 2001 10:12
>
> 1) some want direct marketing
> 2) Some believe the status quo is enough
> 3) all agreee php is useful as a web development tool/language
...
Did you open source your thread filter program? :)
Good job anyway. For me the most important point is that
the developer/maintainer of the language
Grrr !! same for me, I never knew you were in Montreal,
> - Linux Expo - Montreal, Canada
Now I see why the calandar is so useful on php.net !!
py
p.s. in june I was probably too busy at the jazz festival tho :)
- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: "Rasmus Le
You will find the answer to that question in the archives. Someone answer
this question a couple of days ago.
Can't remember the address of the archive tho, anyone can help me here?
py
- Original Message -
From: "Andy Ladouceur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday,
Hello,
>From the manual:
http://www.php.net/manual/en/function.register-shutdown-function.php
py
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 7:37 AM
Subject: [PHP] cancellation cleanup handlers in PHP4?
>
> Is it possible to reg
something like this...
if( sizeof( $HTTP_POST_VARS ) > 0 ){ // avoid error when no vars
while ( list ( $key, $val ) = each ( $HTTP_POST_VARS )) {
print "$key = $val";
}
}
py
- Original Message -
From: "Andy Ladouceur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
> I don't think Brainbench is exactly what I was looking for... but thanks
> anyway.
>
> BTW... has anyone taken the Brainbench test?
> Is it difficult?
I did, it is not that difficult. It can tell you if a future employee really
knows PHP.
But as an employer myself, I would never rely on such a
> there. There are too many languages in the world, including ones which
are
> much more capable than PHP in the GUI programming area, and if we move the
> focus to this front, we're going to fight a lost battle. In the Web
front,
> on the other hand, we're doing quite well.
This is the main re
It's always nice and wise to try,
if you do make the switch, even if they say (MS) the opposite, it's a no
return path...
py
- Original Message -
From: "ReDucTor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 26, 2001 2:38 AM
Subject: [PHP] Thinking about going to ASP
I worked on a script like yours for a looong time now!
I need to force the download of various type of file, doc, pdf, zip, even
html!
Your script works fine on Opera 5.02 and netscape 4.76 on my win NT 4.0 box,
but
not on IE 5.5 On this one, it offers me to download the script file but
Hello,
I have read http://www.php.net/manual/en/function.setcookie.php and did not
find out a quick solution on how
to set a cookie that will NEVER expires ?
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
Hello,
what he explained with GetVariable works fine. I just want to add that you
do the opposite,
sending value to flash via php, by echoing the querystring in a php file and
use LoadVariable
to read the value and display it in the flash movie.
py
- Original Message -
From: "Tribun" <
Dear PHP fans,
Knowing large sites that use php is one thing (it shows the language can
support
heavy loads). But what I would really like to know is the time difference to
design,
code and implement web application in PHP versus java solution, or
ColdFusion,
or another language.
I switch to PHP
Hello,
it is quite simple, php is a programming language.
CGI is an interface that execute programming language, usually Perl, but can
be C, C++...
py
- Original Message -
From: "nafiseh saberi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 18, 2001 4:46 AM
Subject:
I was once in your situation, fortunately, my boss understood that it is
better to have an application that has less
features but never shuts down. The linux/php/mysql app was up for 283 days
when they review it. The full featured
NT/ASP/SQL 6.5 was shut down an average of 1 full day for every 3 w
Hello,
I did an timed online quiz using session variables for my timer. It work
fine.
When the user start the quiz, you check the time and calculate the duration
of your quiz.
exemple: 20:00 + 60 min = 21:00 So you register 2100 in a session variable
Each subsequent request you make shure the cu
http://www.phpbuilder.com/columns/tim2505.php3
py
- Original Message -
From: "Andras Kende" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 6:44 AM
Subject: [PHP] php authentication system
> Hello,
>
> I need to password protect some webpages right now i
Thanks, I feel a bit moron ;) it seems like I missed it while reading the
manuel,
sometimes the solution is so obvious that it becomes trivial!
py
- Original Message -
From: "Thomas Schmid" <[EMAIL PROTECTED]>
To: "'pierre-yves'" <[EMAIL PROTECTED]
Hello,
I convert the time in seconds to do some calculations, now I want
to convert a number of seconds in a presentable HH:MM:SS format.
In other words, how do you change this 997271630.08651
in 08:14:32 ?
py
p.s. I use this to get the number of seconds.
function getmicrotime() {
$temparray
Thanks, I got what I needed out of parsing
http://weather.noaa.gov/weather/CA_cc.html
As for the webcam, I will pass, I don't want to be blamed if our
clients/managers
ruin their golf game because of me ;)
py
- Original Message -
From: "Kevin Leavell" <[EMAIL PROTECTED]>
To: <[EMAIL PROT
Hello,
I would like to display the wheather on a page depending on the city of my user.
(or the capital of their province/state)
Do you know a service/db/web site I could query in order to extract what I need ?
py
Salut,
I have 1 little classe that does what you need here,
http://www.pywebsolutions.com/source.php
py
- Original Message -
From: "Steph" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 05, 2001 6:56 PM
Subject: [PHP] Limit records/ prev/next links
> Hi all!
>
> Im
Sorry, I meant compare and I wrote decrypt,
We will:
- encrypt in jsp
- compare in php
I am curious about the "should" you wrote
py
- Original Message -
From: "Joe Conway" <[EMAIL PROTECTED]>
To: "pierre-yves" <[EMAIL PROTECTED]>; <
Hello,
excuse my ignorance on that field, but if I use md5 in a java server page
(jsp), can I decrypt it
in php ? Is the implemantation of md5 the same on both language ?
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hello,
I need to convert an application that run on mysql to an oracle database. The
application strickly use the db_mysql class
from phplib. Can anyone suggest me another class and maybe common pitfalls to avoid ?
Thank you,
py
I am not shure a php developer would need help from another php developer at
the hosting company.
What we need is:
-Sys Admin that understand php.
-Sys Admin that knows how to secure the server and be able to tell the
developer what to follow in order
to built secure code. If system command are di
I would also cover in detail the php.ini file. (what is safe mode,
magic_quote...)
So many questions get posted here because of people who do not know the
power of this file and all it's implication. (nothing wrong tho, people are
here to answer...) They use the engine without knowing the engine..
You seem to be on windows, check with phpinfo() for this var. (I use this on
unix
and assume it would be the same for win)
py
- Original Message -
From: "Roman" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 8:20 AM
Subject: [PHP] Document root
=
>I haven't lost my mind, I've got it backed up on TAPE somewhere...
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>T
eaching the goal you set for
>yourself"
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
+ ===
e, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>F
viously doesn't
>work for PHP or ASP(ugh) because the browser parses them THEN sends it to
>the client. Is there anyway to allow the client to download the actual
>unparsed file? Any help would be appreciated ^_^
+ ==
+ Pierre-Yves Lem@ire
+ E-MedHosting.com
+ (
it.
>
>
>- Original Message -
>From: Pierre-Yves Lemaire <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, 11 April, 2001 3:54 PM
>Subject: Re: [PHP] Are calling COM applications a trojan?
>
>
> >
> > It can't.
> >
$i."\r\n");
> > }
> >
> > ?>
>
>
>try:
>
>header("Content-Type: unknown/unknown");
>
>browswer won't know what type of file it is, so will prompt to save.. should
>get the file-name right from the other.
>
>bkx
>
t"); }
> echo( $shiny ); //this will return 0
>
>?>
>
>--Dan
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators,
t;--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubs
t
>InterClean Equipment, Inc.
>734-975-2967
>www.InterClean.com
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTE
order to send a long message,
wich is coming multiple db fields to a text file to php mail(),
so it will be formatted nicely on all email client?
Or, is it possible?
Any piece of code, tutorial, newsletter script, good wiches or
old grandma's soup would be so appreciated!
py
+ ===
t the list administrators, e-mail: [EMAIL PROTECTED]
+ ==
+ Pierre-Yves Lem@ire
+ E-MedHosting.com
+ (514) 729-8100
+ [EMAIL PROTECTED]
+ ==
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
gt;To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For addit
* Willingness to work weekends/evenings, if need be, to meet deadlines.
And if you are still working weekends and evenings after 9 months on the
job, quit immediately. Start your own company or go fishing :)
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
taking place?
>
>Ade
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
+ =
General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
+ ==
+ Pierre-Yves Lem@ire
+ E-MedHosting.com
+ (514) 729-8100
+ [
tional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
+ ==
+ Pierre-Yves Lem@ire
+ E-MedHosting.com
+ (514) 729-8100
+ [EMAIL PROTECTED]
+ ==
--
PHP General Mailing List (http://www.php.net/)
To unsu
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
ad it have it be deleted off the server?
>
>
>thanks
>
>randy
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello,
Yes this should work, but if like me, you still have no redirection and
you are working with IE 4.0, put exit; after header.
$URL="domain.com";
header ("Location: Http://www.$URL/members/index.php");
exit;
I have not seen this anywhere, but putting exit; after a redirection
was the only wa
The answer, like yahoo, is to also store the username and password in
a database. When the cookie is not set or the option not checked, you will
use a database to validate the username and password.
You will build a session only if the username and password are matched
in the database.
py
- O
One solution:
You set up a separate table:
user_level { level_id (unsigned int), level_description (varchar 100 )}
it looks like this:
level_idlevel_description
100 admin
200user
In your user table you add level_id as a field.
After a good validation of the user (username an
Third one would be http://apc.communityconnect.com/ ??
py
- Original Message -
From: Chris Adams <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 3:37 PM
Subject: Re: [PHP] Benchmarks
> On 16 Mar 2001 04:39:06 -0800, Phil Driscoll <[EMAIL PROTECTED]>
wrote:
>
>
code, code that is easier to modify and code that is probably faster
no matter what technology you use.
Pierre-Yves
- Original Message -
From: Marian Vasile <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 15, 2001 5:59 PM
Subject: [PHP] 3 situations -
Hello,
The header will make netscape offer you a download of the file, and
IE will open it in a excell format.
For the display, just put your result in a nice html table and excell will
convert
it, it's quite simple.
print "";
print "Event";
... print all your header here
while ($row = mysql_f
movie ?
py
__
Pierre-Yves Lemaire
514.729.8100
check out,
dirname() // Returns directory name component of path
py
- Original Message -
From: Hardy Merrill <[EMAIL PROTECTED]>
To: Jordan Elver <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 13, 2001 5:21 PM
Subject: Re: [PHP] Getting path of script
> How 'bout usin
Hello,
I do that with this piece of code. ( This will close the window, so open a
new one and put this code inside)
header("Content-disposition: attachment; filename=\"$fileName\"");
header("Content-type: application-download");
header("Pragma: no-cache");
header("Expires: 0");
$fn=fopen($FileNa
?
__
Pierre-Yves Lemaire
514.729.8100
?
__
Pierre-Yves Lemaire
514.729.8100
I receive 2 variables, $var and $num
I need to make a variable out of these two like this
$var2 where $num = 2 or
$var3 where $num = 3
How can I do that ?
__
Pierre-Yves Lemaire
514.729.8100
Hello,
This works when you have a separator of some sort, a space would work too.
The tricky part is that mktime works with mm dd yy format.
$start = "2001-01-01";
$end = "2001-03-12";
$start = explode( "-", $start );
$start = mktime( 0, 0, 0, $start[1], $start[2], $start[0] );
$end = explode(
Yes it would be a lot better to just passed the id in the url.
py
- Original Message -
From: Fates <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 5:12 PM
Subject: [PHP] Best way to pass SQL TEXT field via a link
> I'm trying to update an existing record based
Hello,
For the most popular one, it is include in the phplib package:
http://phplib.netuse.de/download/index.php3
Or for just the mysql database class, I like this one:
MySQL_class at: http://phpclasses.upperdesign.com/ (login required)
py
- Original Message -
From: Jordan Elver <[EM
/", "05/03/2001") ;
>
> to test the function. but it doest seem to work :(
> any help ?
>
> btw i believe it must be 24*60*60 inorder to 24*24*60 :)
>
> ""Pierre-Yves Lemaire"" <[EMAIL PROTECTED]> wrote in message
> 01c301c0a7e0$17f8
Hello,
this is a function I use on my site, you can problably find
your answer,
py
// =
// This function returns the difference between a dates
// and the current date.
// arg1: separator
// arg2: startdate date dd mm
// return number of d
71 matches
Mail list logo