I'm having a hard time figuring out exactly how paths should be listed when
pointing to files using the ImageCreate(), ImageCopyResized(), etc.
commands.
My images are in a sub-folder called img, and my script is in another
sub-folder called scripts (at the same level as img).
It appears that
I've been trying to post to this newsgroup, but have had problems. If this
works, I guess the problem has gone away on its own.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm not sure the best way to auto-paginated long articles that will be
stored in a MySQL database. I tried searching a few sites for sample code
but couldn't really find anything, which is why I'm asking here.
An idea I had was to split the content into an array called page and then
just access
Hi Everyone,
I'm new to PHP, and am learning a lot by reading posts here and two PHP
books
I'm going to be writing some content management scripts, and one thing I
want to do is allow writers to embed some simple codes in their text such
as:
[LINK=http://wwwmysitecom]Click here for
Is preg_replace() the best PHP command to use for parsing custom codes in
text retrieved from a database (eg, turning [link= ] into a href= )?
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
Maybe try looking into the crypt() or md5() functions on php.net. These will
encrypt a string more than scramble, but maybe one of these serves the
purpose.
From: [EMAIL PROTECTED] (Leif K-Brooks)
Newsgroups: php.general
Date: Fri, 01 Mar 2002 02:30:04 -0500
To: [EMAIL PROTECTED]
Subject:
From: [EMAIL PROTECTED] (Leif K-Brooks)
Newsgroups: php.general
Date: Fri, 01 Mar 2002 02:50:09 -0500
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Does anybody have code for this?
on 3/1/02 2:43 AM, Monty at [EMAIL PROTECTED] wrote:
Maybe try looking into the crypt() or md5() functions
Start here...
http://www.php.net/manual/en/function.fwrite.php
From: [EMAIL PROTECTED] (Thomas Franz)
Newsgroups: php.general
Date: Fri, 1 Mar 2002 08:55:25 +0100
To: [EMAIL PROTECTED]
Subject: create a file
good morning,
i want to create a new file and save it in the current dir. I
be as easy to
make site-wide design changes this way, and I won't be able to do some
things like automatically paginating longer articles over several pages.
Anyone have any input or words of wisdom they can offer on the best method
for setting up a content management system? Thanks!
Monty
--
PHP
themselves when entering the article into the database. A parsing function
would grab the chunk of text/html between the appropriate [pagebreak] codes
for each page.
But this just doesn't seem a very elegant solution. Anyone know of a better
way to do this?
Thanks!
Monty
--
PHP General Mailing List
be more of an Apache issue than PHP, but, thought I'd see
if anyone here has dealt with something similar.
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to preg_split() text between page. I used the following but
can't get the regular expression to work:
$content = blah blah page blah blah blah;
$paged = preg_split( [[:cntrl:]*]page[[:cntrl:]*], $content );
I also tried the following...
$content = blah blah page blah blah blah;
The * needs to be after the character class, ie [[:cntrl:]]*.
--Dan
Thanks Dan. But, removing the asterisk or putting it after the character
class doesn't work either for some reason.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
wrong?
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes! That was it! Thank you so much. I actually thought preg and ereg were
interchangeable, so, I'm glad you pointed out the difference for reg
expressions. Can you tell me what the open and closing slashes / are for
inside the quotes? Is it equivalent to [ and ] for ereg?
Monty
DOH! It's
suggestions? I'll mostly need to compared dates/times of different
records and then extract parts of the date for displaying on the screen.
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you have have a large number of functions, it might be better to separate
them into a few files that you can include as needed. I use one file that
contains functions needed by every page. I have a few other files that
contain functions that aren't needed by every page, so, I include them only
to drop blocks of code in a
page design without disrupting the design of the page very much.
Thanks,
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Monty
From: [EMAIL PROTECTED]
Reply-To: Richard Kurth [EMAIL PROTECTED]
Newsgroups: php.general
Date: Wed, 17 Jul 2002 12:52:00 -0700
To: php-general [EMAIL PROTECTED]
Subject: sorting and searching an Array
After I read this file into an array (small sample of file below) I need
Chris, thanks for describing your method. The reason I really dislike
Functions in PHP is because you have to pass every variable needed by a
function, even if that variable is global in the main script, which is a
pain in the ass when a function needs a long string of variables. It makes
it
is displayed,
but, what I really want to do is store it in a string variable, not output
it directly. How can I do this?
Thanks,
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
filesize() doesn't see those files. So, if I replace the filesize($filename)
command with a hard-coded number, it works.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the include_path, this seems to always return
zero, which is why I hardcoded the byte size into fread().
Monty
From: [EMAIL PROTECTED] (Andre Dubuc)
Reply-To: [EMAIL PROTECTED]
Newsgroups: php.general
Date: Thu, 18 Jul 2002 17:45:14 -0400
To: Monty [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re
Hi Rasmus,
file_gets_contents() doesn't work in my version of PHP (4.2.1). It says not
a valid function or something like that. Also, I discovered that the
filesize() function won't work on files fopened from the include_path. It
returns a value of zero, so, I had to hardcode the bytes into the
create a very simple form that only has hidden
fields with the data I want to pass, along with an image Submit button that
would call the page and pass the hidden field variables.
Is that the only/best way to accomplish this?
Thanks.
Monty
--
PHP General Mailing List (http://www.php.net
important part of doing what
you need to do. If you don't already know how they work, they are hard to
grasp at first, but, very useful once you understand their purpose.
Monty
From: [EMAIL PROTECTED] (Justin French)
Newsgroups: php.general
Date: Fri, 19 Jul 2002 13:50:08 +1000
To: php [EMAIL
use your master MySQL username and password.
Monty
From: [EMAIL PROTECTED] (Sailom)
Newsgroups: php.general
Date: Fri, 19 Jul 2002 10:03:02 +0700
To: [EMAIL PROTECTED]
Subject: Password in script
I am new to PHP and MySQL and never have experience in this area. I am
writing a PHP script
Well, first thing I see is that you need to change this:
if ($mode == entrance)
You need the double equal signs for string comparison.
From: [EMAIL PROTECTED] (John Wulff)
Newsgroups: php.general
Date: Fri, 19 Jul 2002 00:25:12 -0700
To: [EMAIL PROTECTED]
Subject: Why won't this
Is there a way to get and store the name of a referenced variable into
another variable? Example...
$varname = blah;
checkit($varname);
function checkit($name) {
...code...
}
In the function above, I'd like to find out the name of the referenced
variable (pointed to by $name) which should
Is there much of a difference in speed or efficiency between INCLUDEing
files in a script or loading data from a database? I'm building a dynamic
menu system for a website and not sure if it would be faster to store button
data in a DB or just do it with Included files.
--
PHP General Mailing
? If not, is there another command I can use? I also tried $_SERVER[]
but this appears to be always empty no matter what level I call it on.
Thanks.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can anyone recommend where I could find a decent script that automatically
generates passwords? I don't care if they are readable or just random
letters, numbers.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
commands.
I'm not a MySQL expert, so, the above my not be totally accurate, it's based
on my own experience.
Monty
From: [EMAIL PROTECTED] (Ragnar)
Organization: na
Reply-To: Ragnar [EMAIL PROTECTED]
Newsgroups: php.general
Date: Fri, 26 Jul 2002 00:19:02 +0200
To: [EMAIL PROTECTED]
Subject
the fields into one table and be done with it.
Sorry for the long-winded explanation. Any suggestion are greatly
appreciated!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Is it only possible to POST variables to a page if they are not in an array?
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
so with Guinness and bread, who needs to buy a meal? :-)
Ooof. I feel bloated just reading that. :)
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If someone enters this into a field...
New York City
and I need to re-display it in the field (if an error occurred, for
example), this is what's in the field...
New York \
I have another multi-line text field that I used quotes in and this doesn't
happen with that field, even though
When I issue this command to remove any commas at end of string:
$query = rtrim($query, ,);
PHP give me an error saying Wrong parameter count for rtrim(). How can
this be? The online manual shows rtrim can accept two parameters. Shouldn't
this work? I have PHP 4.0.6 installed on the server.
be someone sending this password
over and over to another user, but, at least they won't get 20 new passwords
and be locked out of their account as a result.
If anyone else has dealt with this issue, I'd appreciate your insight.
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net
type
variables? Why is PHP ignoring the variables passed via the URL?
Thanks.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Indexes
Putting strings in single quotes instead of double (WHERE id = 'something')
Normalized database design.
- Monty
From: [EMAIL PROTECTED] (Erich Kolb)
Organization: RB Receivables Management, Inc.
Reply-To: Erich Kolb [EMAIL PROTECTED]
Newsgroups: php.general
Date: Fri, 2 Aug 2002
: php.general
Date: Fri, 2 Aug 2002 12:45:41 -0700
To: Monty [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] Vars passed via URL disappearing
'variables passed via the URL' = 'GET variables'
-steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
I'm trying to use the more secure register_globals=Off setting for some
simple scripts that do authentication and use sessions. But I'm ready to rip
all my hair out!
Can someone recommend a good article online that clearly discusses what's
different when you have register_globals=Off? I've spent
Aug 2002 15:46:57 +1000
To: Monty [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Need Help with register_globals OFF
Anyone want to share any tips on how to deal with form vars passed to a
script with register_globals turned off? Do you simply refer to them
directly with $_GET
You might get some help if you post only the code relevant to the problem
with a clear explanation of the exact problem. Otherwise, I doubt anyone
will bother looking through all that code you posted links to.
From: [EMAIL PROTECTED] (Tony Harrison)
Newsgroups: php.general
Date: Sat, 3 Aug
), it won't really work because the variables are
created only within the scope of the function, so, as soon as it returns to
the script, the vars it created are released.
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What does this parameter do in PHP.ini, and what would happen if I turned it
off? From reading the PHP site, it appears this is only useful if you use
PHP from the command line, is that right?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
, is there a way I access session vars stores in $_SESSION[] from a custom
function? Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have an include file named functions.inc.php that I include in nearly
every script. For some bizarre reason, the following function inside this
file does not always work:
function user_acess() {
if ( isset($_SESSION['valid_user']) ) {
return 1;
}
return 0;
}
Most of the
Dan, you were right and I feel so retarded now!
I found another include file of the same name in the folder with the script
that wasn't working. It was driving me crazy but I didn't even think to
check that. Thank you for replying!
Monty.
Perhaps, somewhere in your include path is another
Try this: $_POST['var_name']
Monty
From: [EMAIL PROTECTED] (Radio X)
Newsgroups: php.general
Date: Fri, 9 Aug 2002 23:38:42 -0700
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Getting information of a client
how can i get a variable posted from a form by a user whitout having
I've downloaded the patch file for 4.2.2 to 4.2.3 from the PHP website, but,
not sure what to do with this file. I have a Linux 7.x server. Can anyone
tell me how to patch my version of PHP or point me to a source that explains
how this is done?
Thanks!
--
PHP General Mailing List
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:
[EMAIL PROTECTED]
I've downloaded the patch file for 4.2.2 to 4.2.3 from the PHP website,
but,
not sure what
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 id
I'm a PHP and MySQL beginner. What's the best book I can buy that will get
me started using both these technologies? Thanks!
--
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
Hi, I'm looking for a really good content management system written in PHP
that's free or very little money. I looked on HotScripts.com, but, there are
SO many of them! Can someone recommend one or two good ones?
Thanks!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Sorry, I did a search here and found only one message with book
recommendations. Where's the archive? Is it a separate newsgroup? I looked
on php.net, but, only found a long list of books available, no
recommendations.
Monty
From: [EMAIL PROTECTED] (Kurt Lieber)
Reply-To: [EMAIL PROTECTED
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
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
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, 14 Dec 2002 20:13:20 +1300
To: [EMAIL
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.
Monty
From
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: 'Monty' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP
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
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
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 Browser Versions
Im
), 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 PROTECTED]
Newsgroups: php.general
Date: Thu, 5 Jun 2003
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 much.
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
['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: Thu, 5 Jun 2003 16:19:04 -0500
To: [EMAIL PROTECTED]
Subject: session_start questions.
Questions
://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
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.
Thanks for any suggestions!
Monty
');
Then you need to create a script called show_photo.php that takes the img
var passed by the Javascript above and loads that image onto the page.
$image = $_GET['img'];
echo img src='$image' border=0;
Hope that helps.
Monty
From: [EMAIL PROTECTED] (Jeffrey L. Fitzgerald)
Newsgroups
against?
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 1 field
Hi,
I have a registration form, but I would like to add a Date of Birth section.
Now, because of the different
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 suggestions??
Monty
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:44 -0500
To: [EMAIL PROTECTED]
Subject: regex problem
Hello,,
I have
?
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
immediately unless they 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
) {
if (strstr($location, '?')) {
header(Location: {$location}.SID);
} else {
header(Location: {$location}?.SID);
}
} else {
return $location;
}
return;
}
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
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
. 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 PROTECTED]
Subject: Re: Migration from
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 (http
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], [EMAIL PROTECTED]
Subject: Re: [PHP] Gracefully dealing
in 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
--
PHP General
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
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 into the
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
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
You can't call a PHP function directly from an HTML tag. You'll instead need
to do something like this:
a href='/logout.php'
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
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
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
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
/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 am
trying to rewrite my scripts so when the day comes for my
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 from being submitted if the file size is
too large. Basically, the file has to be uploaded
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 :
form enctype=multipart/form-data
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
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 PROTECTED] (Mike Ford)
Newsgroups: php.general
Date: Thu, 24 Oct 2002
)
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 wrote:
This is a more general server question: I know
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'?
Monty
--
PHP General
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)
Organization: WebPower Design
Newsgroups: php.general
Date: Fri, 25
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 got to be a better way to go about this: I am constantly doing mysql
queries where I am doing
1 - 100 of 155 matches
Mail list logo