View previous topic :: View next topic |
Author |
Message |
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Thu Aug 07, 2003 10:09 pm Post subject: Contact Webmaster PHP Script |
|
|
I am a complete NewB at PHP and I wrote a PHP contact webmaster script for you all to try out , this is my first week on PHP learning and I already made a script lol. I hope you all find interest of it
Tell me what you think of it. Im new to this !
Contact Webmaster: (2.70 KB)
http://offspring.no-ip.com/downloads/scripts/contact_webmaster.zip _________________ This web server is the best !
Last edited by os17fan on Fri Aug 29, 2003 2:01 am; edited 2 times in total |
|
Back to top |
|
|
Kent -
Joined: 12 Jan 2003 Posts: 137
|
Posted: Fri Aug 08, 2003 11:53 pm Post subject: nice |
|
|
good job for a first time script :wink:
I did my first blog/message type script a while ago it can be used for a number of things though, check it out if you like it's at
http://16.sytes.net/0/article-manager/mainpanel.php
it is a rather simple script for people who are new to php
and dont want to hassel with alot of setup crap, I have a built in
$PHP_AUTH_USER in the script but as of right now it only seems to work with non cgi compiled php installations. A bug I will have to fix soon. |
|
Back to top |
|
|
Deledar -
Joined: 26 Feb 2003 Posts: 94
|
Posted: Thu Aug 21, 2003 6:39 pm Post subject: |
|
|
Hey, I think you should instead of saving it on a file, why not email it to them? You can always use the Mail() feature |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Fri Aug 22, 2003 12:11 am Post subject: |
|
|
I really think its more reasonable to have the entries be saved to a file because some people don't have SMTP access and its best that every one can use my script and when people put their e-mail , you can just click on the e-mail address and e-mail them anyway through OutLook Express. 8) _________________ This web server is the best ! |
|
Back to top |
|
|
Deledar -
Joined: 26 Feb 2003 Posts: 94
|
Posted: Fri Aug 22, 2003 3:32 pm Post subject: |
|
|
But isn't it a secirity hazourd? Like what if someone writes something private and someone found out the URL to the file? |
|
Back to top |
|
|
Kent -
Joined: 12 Jan 2003 Posts: 137
|
Posted: Sat Aug 23, 2003 4:14 am Post subject: |
|
|
You dont have to have the file in your server directory at all
you can have the script write the info to file and have the file stored on your desktop so there is no way for visitors to guess the url to the file.
just set an absolute path to the file being written to in your script code. |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Sat Aug 23, 2003 5:44 pm Post subject: |
|
|
That is true , I should have mentioned that :oops:
To add the data.html file to a folder on your desktop instead of a folder on your server , do this , open post.php and find
$filename ="data.html";
Chnage it to
$filename ="C:\Documents and Settings\Owner\Desktop\data.html";
where C:\Documents and Settings\Owner\Desktop
is the path to your data.html file. _________________ This web server is the best ! |
|
Back to top |
|
|
|