there must be some way to convert those curly quotes into
> straight ASCII quotes while the text is still in Unicode format, before I
> run this through either iconv() or utf8_decode(). But, I've searched all
> over for two days and can't figure out how to accomplish this.
ll
over for two days and can't figure out how to accomplish this.
I'd really appreciate someone's help with this! It's driving me nuts!!
Thanks,
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
] = iconv("UTF-8", "ISO-8859-1", $var);
> }
>
> It can be that your array has a different coding than UTF-8 check the
> manual for the htmlentities function, but i'm pretty shure that should
> solve it.
>
> I2eptilex
>
> Monty wrote:
>
oreign
characters, and if there's any way to convert them to proper htmlentities
before being displayed in a browser. I thought htmlentities would do this,
actually.
Thanks!
Monty.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s, or just Netscape?
Monty
> From: [EMAIL PROTECTED] (Bing Du)
> Newsgroups: php.general
> Date: Tue, 3 Aug 2004 15:34:27 -0500 (CDT)
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Location header does not work?
>
> The latest message I got was 'Redirection limit for thi
hich have PHP forums, such as sitepoint.com.
Monty
> From: [EMAIL PROTECTED] (Josh Close)
> Newsgroups: php.general
> Date: Tue, 3 Aug 2004 13:44:28 -0500
> To: PHP <[EMAIL PROTECTED]>
> Subject: Re: [PHP] javascript type cast
>
> Ok. I write most my web apps in php. I rarely
I got the following e-mail from this list. Is this legit? I'm skeptical
because the URL it tells me to click on leads to what looks like a SPAM site
to me. Here's the full e-mail I received with headers:
-
MIME-Version: 1.0
Received: from tgpnexus.com ([66.17.150.83]) by mc3-f36.hotm
> On Fri, 30 Jul 2004 17:08:46 -0400, Monty <[EMAIL PROTECTED]> wrote:
>> In my .htaccess file I have...
>>
>> php_value upload_tmp_dir /home/site/temp
>>
>> But when I upload a file using a form, here's what the $_FILE array prints
>> out:
>
t).
Anyone have any insight on this??
Thanks! - Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mall files, but, for larger
files it sucks that the user has to wait for the entire file to upload first
before being told it's too big.
If the MAX_FILE_SIZE form variable doesn't prevent this, as the manual says
it should, then what's the point of using it?
I'm using PHP 4
dexes with
MATCH() and AGAINST()? I have MySQL 3.23.58 installed on my server.
Thanks!
- Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;m finding it a lot trickier to allow the users to
customize these with their own category types. So, I'm hoping someone might
be able to point me to an example of how custom categories and
sub-categories can be programmed in PHP and set up in MySQL.
Any suggestions or advice would be much appr
> From: [EMAIL PROTECTED] (Jason Barnett)
>
> Out of curiosity, how were you planning on passing session id's?
> Through POST variables?
In cookies only.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sy way to keep just the user-defined vars
part of the array created by get_defined_vars.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ave the Session ID appended to all URLs, just
the first page visited.
I have PHP 4.3.2 installed on a RedHat Linux ES 3.0 server. Is there
anything I can do to prevent this from happening?
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I need the Content-Type header for a CURL POST to be this:
Content-Type: text/comma-separated-values
instead of the default "application/x-www-form-urlencoded" that is set by
the CURLOPT_POST parameter set with curl_setopt(). How is this done?
Monty
--
PHP General Mailing
99&cvv2_code=M
Do my CURL statements look correct based on what the gateway needs to
receive?? I have PHP 4.3.2 and Apache 2.0 running on Red Hat ES 3.0.
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> A define is pretty much for strings only, not objects or resources. Try
> using $GLOBALS['_CONNECT_DB'] instead.
I tried this, but, same results. If I store the Resource ID from a
mysql_pconnect() in $GLOBALS['_CONNECT_DB'] and then call...
mysql_query($query, $GLOBALS['_CONNECT_DB']);
PHP
It appears you can't pass constant vars by reference, or am I missing your
point? I understand passing vars by reference, but not sure where you
suggest I need to use it. I tried "define('_CONNECT_DB', &$result);" and
"return &_CONNECT_DB;" separately, but neither worked.
> [snip]
> function conne
7;m trying
to avoid. I only want to create a session for a user that I know has already
been authenticated first, which for my site seems to be the existence of the
session cookie.
Monty
> just on a side-note, the session is not always kept in a cookie ( if
> cookies are deactivated the ses
exactly how
PHP and MySQL work together, but, if there's anything that explains in
detail exactly what is happening when you call mysql_connect or mysql_query,
please point me in its direction.
Any input on this is most appreciated!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y checking a value. If the session value isn't there, then I
destroy the session, clear out the $_SESSION vars and send back to log-in
pgae. This only works if you are restricting passing sessions IDs via a
cookie, which I am doing to make my sessions a bit more secure.
Monty
> From: [EMAIL
\n must be included in double-quotes because it's treated like a variable.
echo "This works\n"; // Displays: This works
echo "This doesn't work\n'; // Displays: This doesn't work\n
> From: [EMAIL PROTECTED] (Labunski)
> Newsgroups: php.general
> Date: Mon, 5 Apr 2004 00:58:35 +0300
>
sion if it's possible to first know whether
a session exists without starting it.
I have my site set to store the PHPSESSID in a cookie only (not passed via
URL), so, would checking for the existence of $_COOKIE['PHPSESSID'] be a
reliable way of doing this?
Any other suggestions are appre
evelopment
> Reply-To: [EMAIL PROTECTED]
> Newsgroups: php.general
> Date: Sat, 03 Apr 2004 00:01:43 +0200
> To: [EMAIL PROTECTED]
> Cc: Monty <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: Re: [PHP] Strange Numeric Conversion...
>
> sry... it's \\1 instead of
erting it
immediately to a 9 instead of reading it as 11 or even 11.
If PHP sees this as an octal, then why does gettype(11) = INTEGER? This
makes no sense.
Monty.
> From: [EMAIL PROTECTED] (Jay Blanchard)
> Newsgroups: php.general
> Date: Fri, 2 Apr 2004 15:38:03 -0600
> To:
Why is this happening???
$id = 11;
echo $id; // Displays: 9
$id = 11;
echo $id; // Displays: 11
How do I make the first number (00011) display as 11? Why is it showing 9?
Thanks.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
ld just wait until I get
PHP 5? Anyone have any insight??
- Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
separate table (which has
very limited access with a separate user/password in MySQL). The Member DB I
was asking about holds stuff like username, password, e-mail, membership
expire date and various preferences.
Thanks for all the input!
- Monty
> From: [EMAIL PROTECTED] (Chris W. Parker)
> Ne
ingle table in MySQL than several if a member makes changes to
their account or preferences.
What do you think?
Monty.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ake a
difference. I also tried /articles... but that didn't work, either.
Monty
> From: [EMAIL PROTECTED] (Paul Chvostek)
> Newsgroups: php.general
> Date: Sat, 24 Jan 2004 13:39:25 -0500
> To: Monty <[EMAIL PROTECTED]>
> Subject: Re: RewriteRule REGEX ?
>
>
&
gt;
> --
> // DvDmanDT
> MSN: dvdmandtâhotmail.com
> Mail: dvdmandtâtelia.com
> "Monty" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
>> My server runs Apache 2.0. I am trying to do a simple URL rewrite so that
>> old URLs will map to our new st
My server runs Apache 2.0. I am trying to do a simple URL rewrite so that
old URLs will map to our new style of URLS...
From This: articles.php?id=999
To This:articles/999
In the .htaccess file for the htdocs folder that contains the web files, I
put the following:
RewriteEngine
) within PHP, then
writing directly to it using fputs.
> From: [EMAIL PROTECTED] (David Otton)
> Newsgroups: php.general
> Date: Mon, 05 Jan 2004 16:36:09 +
> To: Monty <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Alternate way of e-mailing in
Shouldn't this work in PHP 4.3.2? ...
mail('[EMAIL PROTECTED]', 'Subject', 'Body of email');
This very simple use of the mail command produces an error by Sendmail:
"dsn=5.6.0, stat=Data format error," which must mean there is a bug in this
function. Does anyone know why this won't work anymo
I've been getting "data format errors" from Sendmail when trying to send
automatic e-mails from my websites recently, and as I can't find a fix for
this, I tried some code that someone sent to me which actually worked. It
uses popen() and I'd like to know if this method of sending e-mail has any
ma
nd fixed it, I'd really
appreciate hearing from you!
Thanks - Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s at any time...
session_start();
echo "Hi there ".$_SESSION['username'].", welcome back!";
That's a very brief overview. The above links provide better explanations.
Monty
> From: [EMAIL PROTECTED] (Daniel J. Rychlik)
> Newsgroups: php.general
> Date
ther spanner into it all, what happens if I have JS off?
> will I still be able to access the content of the pop-ups? i bet not :)
Well, I have to draw the line somewhere. Javascript is used throughout this
site for simple things like resizable popups. I'm not willing to dumb it
down that m
ere.
I also get PHP Architect (phparch.com), a PDF publication that has some good
and helpful stuff in it. As you can see, there are lots of online resources
for PHP and MySQL.
Monty
> From: [EMAIL PROTECTED] (Simon Thurtle)
> Organization: Mainlink
> Reply-To: "Simon Thurtle" <[EMAIL
Maybe it might be easier to just use the get_browser() function:
http://www.php.net/manual/en/function.get-browser.php
Monty
> From: [EMAIL PROTECTED] (Gerard Samuel)
> Newsgroups: php.general
> Date: Thu, 05 Jun 2003 14:00:23 -0400
> To: [EMAIL PROTECTED]
> Subject: Regex for B
nstruct loops through the array and assigns the value of
each element to $digit, and continues doing this until it reaches the end of
the array.
http://www.php.net/manual/en/control-structures.foreach.php
http://www.php.net/manual/en/function.explode.php
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'd be interested in hearing how others have
dealt with requiring users to have cookies turned on for sessions, or not.
Monty
> From: [EMAIL PROTECTED] (Justin French)
> Newsgroups: php.general
> Date: Wed, 04 Jun 2003 19:23:11 +1100
> To: Monty <[EMAIL PROTECTED]>, <[EMA
I've decided to require that members for a site need to have cookies enabled
in their browsers to sign-up and use the site. Is there a graceful way to
deal with this when users who have cookies off try to sign-up or log-in to
the site?
Thanks,
Monty
--
PHP General Mailing List
ab one POST
variable. It makes it a little easier. Also be sure to clean the data with
some kind of function that uses strip_tags() and similar functions.
Monty
> From: [EMAIL PROTECTED] (ØYstein HåLand)
> Newsgroups: php.general
> Date: Tue, 3 Jun 2003 18:44:30 +0200
> To: [EMAIL PRO
ermine where to send the user. So instead of sending them to
PHP_SELF or next.php, use something like goto.php, which can determine where
to send the user next, and then redirects the user using the header()
function.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
function myHeader($location) {
if (SID) {
if (strstr($location, '?')) {
header("Location: {$location}&".SID);
} else {
header("Location: {$location}?".SID);
}
} else {
return $location;
}
retu
first
leave the site then come back to clear the empty PHPSESSID var from all the
URLS. How can I make this stop?
Thanks
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
enabled. (I have trans-sid enabled).
Is there any reliable way to avoid this, or is this just a small side-effect
of making the site accessible to all?
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tring to be tested for digits, you need to add the
length of the string to the regex pattern:
$length = strlen($data);
preg_match("[0-9]{$length}", $data);
Monty
> From: [EMAIL PROTECTED] (Daniel J. Rychlik)
> Newsgroups: php.general
> Date: Sat, 31 May 2003 13:46:4
this problem? Or, is it simply
unavoidable? Right now, I tell users that the site will only work with
browsers that have cookies turned on, but, I'd rather the site was
accessible to all. However, I also don't like passing session IDs via the
URL because of the security risk.
Any sugge
7;]."-".$realdate['day'];
This would insert the date as: 2003-05-21
Monty
> From: [EMAIL PROTECTED] (Vicky)
> Newsgroups: php.general
> Date: Sat, 31 May 2003 15:05:43 +0100
> To: "PHP List" <[EMAIL PROTECTED]>
> Subject: 3 entries going into
ore in the cookie to authenticate
against?
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that takes the "img"
var passed by the Javascript above and loads that image onto the page.
$image = $_GET['img'];
echo "";
Hope that helps.
Monty
> From: [EMAIL PROTECTED] (Jeffrey L. Fitzgerald)
> Newsgroups: php.general
> Date: Thu, 29 May 2003 14:2
limiting, and need finer control
over who has access to what.
Does anyone know of a better system for granting access to groups of users
that isn't too complicated but is flexible enough to add or remove access to
whole groups of users? I'm trying to not reinvent the wheel here if
possible.
You can't call a PHP function directly from an HTML tag. You'll instead need
to do something like this:
Then create a logout.php file that has your logout code.
> From: [EMAIL PROTECTED] (Martin Johansson)
> Newsgroups: php.general
> Date: Mon, 3 Mar 2003 23:32:16 +0100
> To: [EMAIL PROTEC
What is the code for the inner query? Hard to advise you based on the small
bit of code you posted.
Are you using the same $result var for both queries? If so, that's why. Just
run two separate queries stored in to different result vars. I do this all
the time with no problems.
> From: [EMAIL PR
d allowed to proceed. Is this how
PHP is supposed to work? Is there any way to prevent the script from
executing below a certain point if the user is not logged in?
Thanks,
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Are you using Apache2? IIRC, there was a bug where data would get added
> to the POST data, or something along those lines...
>
> What if you just look at the file with a regular text editor? Do you see
> that data there after it's uploaded and written to the server, or does
> it just appear int
I have a form that allows someone to upload a text file, the contents of
which will be inserted into the database. When I fread() the file, there is
some garbage at the beginning and end of the text.
Here's what the text looks like:
This is the sentence of text.
Here's what it looks like aft
n the
forum. I do have a "remember me" feature that uses a cookie, but, not all
visitors are using it, and they are the ones experiencing this problem.
Is there a way to extend session time, and is that the best way to reduce
this problem from happening to most members?
Thanks!
Monty
Okay, I've read just about everything on the Internet about how the change
the Return-Path header in an e-mail sent using mail(), but, I STILL can't
get it to work. All e-mail sent via PHP says Return-Path: [EMAIL PROTECTED]
and Received: (from nobody@localhost).
I have a Red Hat Linux 7.2 server
or do I need to use one of the various PHP
e-mail classes available to send HTML e-mail?
Any recommendations for online tutorials about building a mailing list
manager using PHP would be much appreciated!
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
? I saw the site and will
definitely be subscribing! It's a great idea.
Thanks,
Monty
> From: [EMAIL PROTECTED] (John W. Holmes)
> Organization: U.S. Army
> Reply-To: <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Date: Sat, 14 Dec 2002 02:06:59 -0500
> To:
HI Nofa,
When you say submit the file, do mean as a TXT file via a file upload field?
If so, not sure what to do with the file once it's been uploaded. Do I read
the file using fopen(), then just put this into a var that can be stored in
the DB? Hmmm... sounds like a good solution.
Nofa, sorry, forgot to say Redhat Linux. What you mentioned seems pretty
easy, actually. I'll give a try and keep my fingers crossed.
Thanks!
Monty
> From: [EMAIL PROTECTED] (Nofa)
> Reply-To: "nofa" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Date: Sat
specific
enough for a Linux novice like me. Does anyone know of a good place to find
out how to do this? I'm all Goggled out.
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;t want to have to
do this manually in MySQL. That would make me break down and start sobbing.
Has anyone else dealt with this and found a solution?
Thanks a lot!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ble in the popup
window if I make the FORM action = javascript:popWin('/poll.php').
Is setting the vote choice in a session var the only way to make this work,
or is there a way to pass vars via a form POST to the popup window?
Thanks!
Monty
--
PHP General Mailing List (http://www.php.
separate table and link
them to a central "Poll" record? Or do you store the questions all in one
record? Or is there an even better way to do this?
Any suggestions or pointers would be appreciated! Thanks.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Does unsetting an array element make the array smaller? For example, if I
have two elements in an array...
$array = ("title" => "Title of Document",
"content" => "Ten paragraphs of text in here..." );
...then issue this command...
unset ($array['content']);
...will this ma
] (Ernest E Vogelsinger)
> Newsgroups: php.general
> Date: Sun, 10 Nov 2002 10:42:05 +0100
> To: Monty <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] set_error_handler() Keeps Triggering Errors
>
> At 06:34 10.11.2002, Monty said:
> [snip
#x27;line'] = $line;
header("Location:./error_page.php");
}
Anyone have any clues why when I set_error_handler to the above function
errors are being triggered for every page?
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or links to articles that explain how this can
be done?? Thanks a lot.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On a site that uses a popup window to display images, I want to prevent
people from hotlinking directly to the popup page because it just looks like
crap if not sized properly with controls removed.
But I'm not sure how I can prevent someone from doing this. It appears the
HTTP_REFERER isn't alway
that
allow someone to re-order photos displayed in a thumbnail gallery. I'm
having a hard to figuring out the best fool-proof way to accomplish this
with PHP alone.
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
h photo as well as prevent members that have
already voted from voting again.
Any suggestions would be appreciated!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I still need to worry about using
addslashes?
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ken Kirtley wrote:
> I'm new to PHP and so this may be something of a newbie question. My bad if
> it is. I've spent a week now looking for information on capturing the
> referral site with php so that I can store it with some session information.
> If any of you have any idea how to accomplish
if (is_string($param)) { $type = 'string'; }
if (is_int($param)) { $type = 'integer'; }
echo 'Type: '.$type;
... I get the following result:
Type: string
But, it should be integer because 10001 is meant to be a number. How does
this work for $_GET values?
e now holds: "John AND fname = \'Mary\'"
This forces MySQL to read \' as a character rather than as the beginning of
a variable value. So, in essence, this would produce a mySQL error instead
of executing the query, is that correct?
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andre Dubuc wrote:
> Perhaps some kind guru can spare me some time. I've tried to get the "From:
> " field pre-filled for a registration/confirmation email that I send out.
To add to John's reply, here's how to do a multi-parameter Header. Also note
the \r\n at the end of each of these lines.
h does get
posted. Not sure why it's being rejected and where this is coming from. Any
clues??
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e do the same with
MySQL code in a string to prevent tampering?
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r various functions: one that can only SELECT,
which is the one I use the most, another that can SELECT, UPDATE and INSERT,
and another that can do all of the following plus DELETE.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm not attempting to solve this puzzle, but, regarding the output from
print_r(), try this for nicely formatted output:
echo "";
print_r($myarray);
echo "";
Looks much better.
Monty
> From: [EMAIL PROTECTED] (Peter Harkins)
> Newsgroups: php.general
> Dat
ecords that match the query and only
requires me to type one line of code.
Monty
> From: [EMAIL PROTECTED] (James Taylor)
> Newsgroups: php.general
> Date: Sat, 26 Oct 2002 03:23:23 -0700
> To: <[EMAIL PROTECTED]>
> Subject: mysql_fetch_row options
>
> There's g
le that would be unique to my web server that
CANNOT be spoofed or easily changed by a cracker that I can use as a check
to be sure the data is being submitted from a form on my site on not from
someone else's site?
Thanks a lot, guys!
Monty
> From: [EMAIL PROTECTED] (Paul Nicholson)
> O
Hi Jason, I have a follow-up question about mkdir. If the files created by
mkdir are owned by 'nobody', does that create a security risk for those
files? If so, how does one get around accepting files via an upload form
that are assigned to a user other than 'nobody'?
Mont
ED] (Leif K-Brooks)
> Newsgroups: php.general
> Date: Fri, 25 Oct 2002 00:55:48 -0400
> To: Monty <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] How many is too many?
>
> Why not store them in a database with one php script selecting them?
>
> Monty wro
field.
But maybe I'm missing the point, and if so I'd like to understand so I can
make my scripts more secure when passing data. It seems like I will need to
basically re-define every form field and GET variable at the beginning of
each script literally.
Monty
> From: [EMAIL PROTE
This is a more general server question: I know that having a large number of
files in one folder can slow down a web server, but, how many would it take
for this to be a problem? Wondering if I should store all articles for a
content site in one big 'articles' folder with each article having it's o
Nicos, the problem is that MAX_FILE_SIZE doesn't check the file size before
it's uploaded to the server, it only works afterwards. So, you have to first
wait for the file to upload before you know whether or not it's too large.
Thanks.
> Hi,
>
> The way is :
>
>
> Send this file:
>
>
> See
t 2002 16:10:48 -0400
> To: "'Monty'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: RE: [PHP] Checking File Size BEFORE Uploading
>
> You can set the MAX_FILE_SIZE in the hidden element of your form, but I
> don't think that stops the form
p://www.php.net/manual/en/function.extract.php
Monty
> From: [EMAIL PROTECTED] (Gary)
> Newsgroups: php.general
> Date: Mon, 14 Oct 2002 15:07:21 -0400
> To: [EMAIL PROTECTED]
> Subject: Pass vars in URL
>
> Hello,
> My host has upgraded to 4.2 but still uses the old ini setting. I
I have a few File input fields in a form so people can upload images. If
there's an error with the form, I want to re-populate the fields with the
values the user filled in. This works for all the fields except the File
fields. When I check the HTML output to the browser, I do see that the value
p
If someone uploads a file via an HTML form, is there a way to check the file
size before it's uploaded to the server?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
For a form that allows people to upload image files to the server, I'd like
to pop open a small browser window with an "Uploading..." message once
someone clicks on Submit button. Then I'd like the window to automatically
close once the process is done and the main browser window refreshes.
Can t
Even though I have no record in my MySQL DB with that has "005" in the ID
field, the following statement always reverts to Record Found, or True, no
matter what ID I use. What's wrong? I'm using PHP 4.2.2. Has something
changed that makes this work differently? Thanks.
$query = "SELECT
>
> You should use the patch command, feel free to "man patch".
>
> --
>
> Nicos - CHAILLAN Nicolas
> [EMAIL PROTECTED]
> www.WorldAKT.com - Hébergement de sites Internet
>
> "Monty" <[EMAIL PROTECTED]> a écrit dans le message de news:
> [E
1 - 100 of 157 matches
Mail list logo