Contact Webmaster PHP Script

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Thu Aug 07, 2003 10:09 pm    Post subject: Contact Webmaster PHP Script Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Kent
-


Joined: 12 Jan 2003
Posts: 137

PostPosted: Fri Aug 08, 2003 11:53 pm    Post subject: nice Reply with quote

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 View user's profile Send private message
Deledar
-


Joined: 26 Feb 2003
Posts: 94

PostPosted: Thu Aug 21, 2003 6:39 pm    Post subject: Reply with quote

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 View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Fri Aug 22, 2003 12:11 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Deledar
-


Joined: 26 Feb 2003
Posts: 94

PostPosted: Fri Aug 22, 2003 3:32 pm    Post subject: Reply with quote

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 View user's profile Send private message
Kent
-


Joined: 12 Jan 2003
Posts: 137

PostPosted: Sat Aug 23, 2003 4:14 am    Post subject: Reply with quote

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 View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Sat Aug 23, 2003 5:44 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group