php-windows Digest 3 Dec 2001 09:51:33 -0000 Issue 882
Topics (messages 10691 through 10695):
Posting data to a web page
10691 by: Paul J. Smith
10693 by: Svensson, B.A.T. (HKG)
4800 Would you like to lose weight while you sleep? 5060017
10692 by: 1750600ultimate.excite.com
Re: PHP Bulletin Board - How it works...
10694 by: Svensson, B.A.T. (HKG)
File upload
10695 by: Samba Sidibeh
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
I am trying to post data to a web page using the code
fopen("http://www.someserver.com?data=XXXXXXXXXXX");
The data is actually around 7k worth and I seem to be having trouble
with the app it is posting to ( I have URL encoded it). I was reading
in various places on the web that there might be a url length limitation
and was wondering if this method should work or not for posting data to
a form??
If anyone can confirm, deny, or point me in the direction of something
better, I'd apreciate it.
Regards,
Paul
This email or attachment(s) may contain confidential or legally privileged information
intended for the sole use of the addressee(s). Any use, redistribution, disclosure, or
reproduction of this message, except as intended, is prohibited. If you received this
email in error, please notify the sender and remove all copies of the message,
including any attachments. Any views or opinions expressed in this email (unless
otherwise stated) may not represent those of Microtech Limited.
This email has been scanned for viruses by MailSafe. For more infomation please visit
http://www.microtech.co.gg/mailSafe
--- End Message ---
--- Begin Message ---
>I am trying to post data to a web page using the code
>
> fopen("http://www.someserver.com?data=XXXXXXXXXXX");
>
>The data is actually around 7k worth and I seem to be having trouble
>with the app it is posting to ( I have URL encoded it). I was reading
>in various places on the web that there might be a url length limitation
>and was wondering if this method should work or not for posting data to
>a form??
>
>If anyone can confirm, deny, or point me in the direction of something
>better, I'd apreciate it.
A good starting point might be www.w3.org, specifically you can look at
http://www.w3.org/TR/REC-html40-971218/interact/forms.html
Also having a glance at HTTP 1.1 would not hurt...
--- End Message ---
--- Begin Message ---
As seen on NBC, CBS, CNN, and even Oprah! The health
discovery that actually reverses aging while burning fat,
without dieting or exercise! This proven discovery has even
been reported on by the New England Journal of Medicine.
Forget aging and dieting forever! And it's Guaranteed!
Click here:
http://ultimatehgh1000.81832.com
Would you like to lose weight while you sleep!
No dieting!
No hunger pains!
No Cravings!
No strenuous exercise!
Change your life forever!
100% GUARANTEED!
1.Body Fat Loss 82% improvement.
2.Wrinkle Reduction 61% improvement.
3.Energy Level 84% improvement.
4.Muscle Strength 88% improvement.
5.Sexual Potency 75% improvement.
6.Emotional Stability 67% improvement.
7.Memory 62% improvement.
You are receiving this email as a subscriber
to the Opt-In America Mailing List.
To remove yourself from all related maillists,
just click here:
mailto:[EMAIL PROTECTED]?Subject=REMOVE
--- End Message ---
--- Begin Message ---
>I'm using Windows 98 with Apache, mysql and PHP.
>
>I'm in the process of learning PHP and would like to find a
>few tutorials on HP/mysql bulletin boards.
>
>
>I know that there are a few that you can download but I am trying to find a
>tutorial that will let me anylaze the syntax and logic of the code so that
I
>can understand and breakdown the steps in how a BB program works.
>
>Any URL's will be helpful.
It is unclear what your question is about?
a) would you like to learn program in php and/or SQL
b) would you like to learn how to write a BBS software?
If you want to learn php consult the online manual at
http://www.php.net/docs.php
To learn more about mysql consult
http://www.mysql.com/documentation/index.html
If you would like to learn how to write a BSS then I would
not recommend someone to learn to write a BBS software by
doing reverse engineering of some BBS software - trying to
understand a design from that level is not the right way to
learn the "programming" of a BBS, e.g. to design a BBS.
The important thing must be to learn how a BBS functionally
fits together, and that is very hard to understand straight
out from the code unless you don't have lots of programming
experience. (Reverse engineering *is* difficult!)
Looking at just one implementation of a BBS wont help you either,
at most you will learn how that specific implementations works.
Judging from the formulation of you question I assume you don't
have the sufficient experience to do this, so I would then instead
recommend you to try to learn the basic principles about HTML and
SQL before attempting to write a BBS - other wise your BBS will
be more or less a "relabling" of the system you study - and you
probably don't want that!
My recommendation is someone of the following:
1) If you know how to program: first learn how webserver
and databases works and interact, then it is easy to design
and write a BBS.
2) If not, learn the basic skills and proceed to 1)
3) Hire someone with sufficient skill to do the job for you.
The first two is an advice you ought to follow if you really
wants to *learn* how a BBS software system in this form works,
but if you just wants to have something up and running, then
3) should be your choice. If you already know how to do
programming then 1) wont take that long time to achieve
anyway, at the very least it will be fare cost effectively
than trying to reverse engineer a BBS.
--- End Message ---
--- Begin Message ---
Hi
I'm trying to learn how to do file upload and I am using the example shown
on php.net's manual (http://www.php.net/manual/en/features.file-upload.php):
<form enctype="multipart/form-data" action="_URL_" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
...for the client
and:
<?php
if (is_uploaded_file($userfile)) {
copy($userfile, "/place/to/put/uploaded/file");
} else {
echo "Possible file upload attack: filename '$userfile'.";
}
/* ...or... */
move_uploaded_file($userfile, "/place/to/put/uploaded/file");
?>
..for the server side. No matter how I do it I always get the response
"Possible file upload attack: filename." from the server. Am I forgetting
something or what. Any help at all would make me very glad.
------------------------
Samba Sidibeh
Systemutvecklare
SYSteam Udac AB
Storgatan 19, Box 174, 751 04 Uppsala
Tel direkt: 018-67 81 35
Tel vxl: 018-67 80 00 Fax: 018-51 66 00
Hemsida: www.systeam.se, www.udac.se
SYSteam Udac ingår i SYSteamkoncernen.
--- End Message ---