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
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(){
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,
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
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,
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
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 PM
synopsis
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
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 register
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,
something like this...
if( sizeof( $HTTP_POST_VARS ) 0 ){ // avoid error when no vars
while ( list ( $key, $val ) = each ( $HTTP_POST_VARS )) {
print br$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 test
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,
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
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:
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: [PHP]
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
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
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
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 its
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() {
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]
Sent: Wednesday, August 08, 2001 8:23 AM
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
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
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 working
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
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]; [EMAIL PROTECTED]
Sent: Saturday, August 04, 2001 10:03 PM
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
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
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)
? echo $HTTP_SERVER_VARS["SCRIPT_FILENAME"]; ?
py
- Original Message -
From: "Roman" [EMAIL PROTECTED]
To: "Php-General" [EMAIL PROTECTED]
Sent: Tuesday, July 24,
: [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
+ [EMAIL PROTECTED]
+ ==
--
PHP General Mailing List (http
]
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
+ [EMAIL PROTECTED]
+ ==
--
PHP General Mailing List (http://www.php.net
al 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
+ [EMAIL
sn'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
+ (514) 729-8100
+ [EMAIL PRO
-----
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.
If you put the appropriate header type (ms-word in this case), IE will
open
word. Netscape
and other browser
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
+ [EMAIL PROTECTED
?
--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, e-mail: [EMAIL PROTECTED]
+ ======
+ Pierre-Yves Lem@ire
+ E-MedHosting.com
+ (514) 729-810
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
+ ====
tors, 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 PROTECTED]
To contact 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]
+ ==
+ Pierre
* 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:
]
+ ==
+ 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 PROTECTED]
To contact the list administrators, e
nsubscribe, 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
+ [EMAIL PROTECTED]
+ ==
--
PHP Gener
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
+ [EMAIL PROTECTED]
+ ==
--
PHP General Mailing List (http://www.php
tors, 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 P
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]
+ ==
+ Pierre-Yves Lem@ire
+ E-MedHosting
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
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
-
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
movie ?
py
__
Pierre-Yves Lemaire
514.729.8100
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 "table";
print "thEvent/th";
... print all your header here
while
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 using a
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");
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 on
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 =
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
?
__
Pierre-Yves Lemaire
514.729.8100
?
__
Pierre-Yves Lemaire
514.729.8100
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
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$17f85f00$9ceee740@py">news:01c301c0a7e0$17f85f00$9ceee74
63 matches
Mail list logo