Is your file greater than 1000 bytes?
If it is, this is the answer: the file you try to upload is too large.
Increase the limit (beware of the built-in limit of PHP - in php.ini)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
Hi,
thanks for the responses! Here is the code snippet:
The form:
Send this file:
The PHP part:
if (is_uploaded_file($userfile)) {
copy($userfile, "./");
} else {
echo "Possible file upload attack: filename '$userfile'.";
}
It always runs into the file attack line.
When I read out
Alltheweb - the world biggest search engine uses it,
Altavista, not the biggest anymore, but I heard it has something to do with
PHP as well.
Maxim Maletsky,
PHPBeginner.com
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 1:34 PM
To: '[EMAIL
Should be actually hard...
Write Update.php file that connects to your web-site and reads your
version-information file and then read version information site from the
hoster site and check if you have a new version, if so then the update.php
will again query the version-info file and get new file
Has anybody ever written some code for a product and want it to be able to
update itself... and made it look for updates? Does anybody have some ideas
or information on this?
Thanks
Scott.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
> Yes, when I first started using php nearly 2 years ago not
> many people even knew what it was (most thought it was some form of
> a drug). Now days you are hard pressed not to at least come across one
> site using it during a normal web browsing session.
At this point, I'll throw in that Ne
Hmm - seems clear to me that PHP *is* some form of drug - judging by the way
it seems to affect some people's lives... *grin*
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
-
[EMAIL PROTECTED] wrote:
> I was just looking at Hallmark Channels' website, and noticed them to be using PHP,
>wow, PHP has rocketed to something, eh.
Yes, when I first started using php nearly 2 years ago not many people
even knew what it was (most thought it was some form of a drug). Now
d
> Thanks - what I want to do is just say something like
> fputcsv($myarray) - and not have to worry about putting in the
> commas or whatever myself... will fputs do that?
>
> (In case it wasn't clear - I'm wanting to write back to the
> file, having already read from it using fgetcsv)
How ab
Thanks - what I want to do is just say something like fputcsv($myarray) -
and not have to worry about putting in the commas or whatever myself... will
fputs do that?
(In case it wasn't clear - I'm wanting to write back to the file, having
already read from it using fgetcsv)
swadie
> Hi all - just wondering if anyone knows of a function like
> fputcsv - that is, writes a line to a csv file - opposite of fgetcsv.
A CSV file is just a text file with a different file extension,
so you can use fgets to write it out...
Jason
--
PHP General Mailing List (http://www.php.net/)
Hi all - just wondering if anyone knows of a function like fputcsv - that
is, writes a line to a csv file - opposite of fgetcsv.
Any help would be appreciated :-)
swadie
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
Tom,
I can't be sure, since I'm not too knowledgeable with this, but I would
think this would work just fine. The search engine should be seeing the URL
just as the user would. Further, a site I know does a similar trick (though
I'm not sure they use mod_rewrite) where /users/username is conver
What is the particular error you're getting?
""Chris Mason"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a form in which I validate the email address using a php function
> then alert the operson if the email address is not correct. However, I
would
hello,
i would try this:
SELECT SUBSTRING(field,pos,len) AS mystring, id, blah FROM mytable WHERE
mystring LIKE '%ABC%';
regards,
Nuno Silva
andreas (@work) wrote:
> hi,
>
> if i use SUBSTRING(field,pos,len) in a SELECT statement it works fine
>
> but i cant work it out how to use this f
do you know of an easy way to change the errors generated by PHP to come
out in WML instead of HTML do they're easier to debug in a WML emulator?
thanks.
todd kennedy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
I have a form in which I validate the email address using a php function
then alert the operson if the email address is not correct. However, I would
like to pop up an alert with javascript if the email field is left blank. I
am using the function below but it down't work with php, probably works
I am not sure about this topic, so my question may refect this lack of
knowledge. I have an application where I send a credit card request to
a credit card processor. They return the information in a POST stream
and I open a socket and read the information into a variable. This
works very well.
> I have a Multiple Selection HTML Field --- the user can select any number of
> items by holding down the CTRL key. When I submit my form to my (say)
> TestProg.php -- in the Hidden Input Field I only see the value for the
> *last* item I selected... how can I see all the items I selected?
If y
Unless you're using PHP3, I'd try using $HTTP_POST_FILES variable as
suggested in http://www.php.net/manual/en/features.file-upload.php.
Chris
--
"... perhaps yer just such a man you put an embarasing fire in her loins"
- Noah A.
On Sun, 13 May 2001, Matthias Roggendorf wrote:
> Hi,
> s
I am writing a PHP application that will operate on a MySQL database. There
will be 4 types of forms (like catalog request, info request, etc.) calling
the code which writes the data to the database.
Since the variable names on the forms will equal the MySQL column names (as they
should), I am w
What I want to do is figure out a way to index MySQL query results on my PHP
site that's not dependent on the id of each record.
I've got a MySQL photo database that runs my photo site. Right now, the 'id'
field is a sequential, auto-incremented number, and I am using that id as an
index for the
I have a Multiple Selection HTML Field --- the user can select any number of
items by holding down the CTRL key. When I submit my form to my (say)
TestProg.php -- in the Hidden Input Field I only see the value for the
*last* item I selected... how can I see all the items I selected?
Thanks.
Jaso
I'm trying to write what I thought would be a pretty simple script
action to pass a variable from a form element without a sumbit button to
subsequent pages; instead of a form button i would like any number of
links to other pages to be able to pass this checkbox value: ie whether
it is checked
php-general Digest 13 May 2001 20:53:43 - Issue 684
Topics (messages 52615 through 52634):
Re: PHP Editor
52615 by: James Crowley
Re: PHP's OO is bad?
52616 by: Phil Driscoll
52617 by: Zeev Suraski
Re: A question on how to get the root directory
52618 by: L
i got a 1.21 txt file worth of backup data on my HD.
I need to get it up and running on my new mysql server asap.
2 problems tho
i dont have ftp or telnet access, and two phpMyAdmin always gives me a syntax
error.. this is most likely because HTML is included in the contexs of the
database.
An
The software can be really a freeware (better) or...
can be cracked..., than he becomes free.
regards,
Augusto Cesar Castoldi
On Fri, 11 May 2001, Anuradha Ratnaweera wrote:
>
> On Sat, 5 May 2001, Augusto Cesar Castoldi wrote:
>
> > Anyone know a "Free" database Design program? I'm needing
On Sun, May 13, 2001 at 03:08:36PM -0400, Billy Harvey wrote:
> > On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote:
> > > Can someone please help me find the normal distribution function!
> >
> > I dont know of statistical functions within PHP. But I have asked on the
> > develope
> On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote:
> > Can someone please help me find the normal distribution function!
>
> I dont know of statistical functions within PHP. But I have asked on the
> developers list to make a interface to R. That is a language much more
> better
Let us see the form code fragment in your HTML page and the
PHP code that accesses the variables...in order to see where
the problem is.
-Arne
> -Original Message-
> From: Matthias Roggendorf [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 13, 2001 8:15 PM
> To: [EMAIL PROTECTED]
> Subje
Hi,
A snippet of code could help, but I recently experienced two problems with uploading
and gaining the information.
Are you using the correct ENCTYPE for the upload, along with using POST (GET doesn't
work).
Also, if you are trying to us the information from inside a function, I had to either
Hi,
sorry for asking such easy things but I really have a hard time to get this
to work:
I use exactly the scripts which are given on the PHP website to upload
files. The problem is that the variable $userfile just contains "none" and
$userfile_size is "0". The rest of the variables have the righ
On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote:
> Can someone please help me find the normal distribution function!
I dont know of statistical functions within PHP. But I have asked on the
developers list to make a interface to R. That is a language much more
better for statistical
Todd Cary wrote:
>
> In my Index.html, what do I write so that the Surfer goes to my
> Start.Php?
>
> Todd
I use a little bit of javascript ...
location = "newURL.php";
inside the tags.
--
Raquel
If a ma
Hello
Can someone please help me find the normal distribution function!
Thx,
Adi Ionescu
--
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
Hi All!
Just installed PHP4 & Apache.
Apache has started well.
Then I've added two strings from install.txt to the httpd.conf:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
(I've PHP installed in c:\apps\PHP\)
After Apache restart, I've got following mes
In reply to [EMAIL PROTECTED]:
> Return-Path: <[EMAIL PROTECTED]>
> Received: from toye.php.net (va.php.net [198.186.203.51])
> by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4DGDXZ25935
> for <[EMAIL PROTECTED]>; Mon, 14 May 2001 00:13:39 +0800
> Received: (qmail 1286
It should be storing them unless you are doing something to the data before
inserting it into the database. Have you tried outputting the data through
nl2br() ?http://www.php.net/manual/en/function.nl2br.php
Ethan Schroeder
- Original Message -
From: "Ciaron Nixon" <[EMAIL PROTECTED]>
T
I'm trying to insert the conents of a submitted textarea into a field of a
db but it seems to be stripping the control characters or not fomatting them
properly. The record updates fine but when I display it all the newlines are
gone ie the whole field appears on 1 line.
Any ideas how to get it to
$B!z!z(B Chyoi Machi Mail $B!z!z(B
$B>pJsDs6!4k6HL>(B : NET-DOCONO
$B"!!~"!!~"!!~"!!~(B
http://sv.g-spot.to/docono/
$B$M$'$M$'J9$$$F$h(B
$B$*$7$c$l$G$+$C$3?M$,$$$C$Q$$(B
$B$i$7$$!#$h$+$C$?$i!"GA$$$F$_$F!*(B
$B$-$C$H!"=P2q$$$,$"$k$h!#(B
http://sv.g-spot.to/docono/
$B"!!~"!!
""C Benn"" <[EMAIL PROTECTED]> wrote:
> MY QUESTION: What in PHP acts like the 'server.mappath' function in ASP?
It
> gives you the ability to determain the root of the web site and use it as
a
> reference.
Is $DOCUMENT_ROOT what you are looking for.
To see a list of the predefined constants, l
Using OO usually results in a significant slowdown. Significant doesn't
necessarily mean 50% performance drop; 5% to 20% is not uncommon, and as
you said, YMMV.
We're working on ways to improve the OO performance, but it's pretty
difficult, due to the very dynamic nature of PHP.
Zeev
At 08
On Sunday 13 May 2001 06:25, Sean Cazzell wrote:
> certainly not the "signigicant slow
> down" that he claims.
I don't know whether or not what Sterling said is true, but I think that your
comment that the difference in speed with a larger program would be less is
incorrect in view of your ben
You might also want to try a freeware & opens ource editor I am
developing, called Developers Pad
http://www.developerspad.com/
Regards,
- James
Editor, VB Web
==
Web - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ# - 60612011
==
>
> > -Or
php-general Digest 13 May 2001 08:37:21 - Issue 683
Topics (messages 52588 through 52614):
Re: Repeat : I'm Living in cookie hell
52588 by: Scott Brown
Re: referencing a constant inside an object
52589 by: Michael Kimsal
Re: Site search engine suggestion.
52590
hi all,
On one of my sites we make extensive use of variable passed through the
url, particullarly for browsing the main content of the site which is
organised into main and sub categories, eg
browse.php?maincat=Weather&subcat=sunny kind of thing.
I understand from colleagues who know much on th
Does anyone know what the sequence argument is suppose to be? More
importantly, what the numbers stand for "2,4:6"?
Chris
--
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 administ
47 matches
Mail list logo