TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-02-2009, 02:47 AM   #1 (permalink)
The Acquainted
 
Dave's Avatar
 
Join Date: Apr 2008
Posts: 110
Thanks: 97
Dave is on a distinguished road
Default Guestbook script does not use a db...?

I like to read simple scripts in hopes that I might accidentally learn something. I downloaded a one-file script entitled "guestbook.php. The notes said:

--> Doesn't use database. Writes all info to entries.php.

My question is, what might "entries.php" look like? Don't mean a long, involved description, just a quick thought.

Thanks!
Dave
Dave is offline  
Reply With Quote
Old 11-02-2009, 04:43 AM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Dave View Post
I like to read simple scripts in hopes that I might accidentally learn something. I downloaded a one-file script entitled "guestbook.php. The notes said:

--> Doesn't use database. Writes all info to entries.php.

My question is, what might "entries.php" look like? Don't mean a long, involved description, just a quick thought.

Thanks!
Dave
Never directly write to a PHP file, or any other executable file for that matter. If you don't want to use a database, use a CSV file.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
Dave (11-02-2009)
Old 11-02-2009, 06:37 AM   #3 (permalink)
The Wanderer
 
unitechy's Avatar
 
Join Date: Mar 2008
Location: navi mumbai
Posts: 10
Thanks: 4
unitechy is on a distinguished road
Default

It must be using a text file to save. I have been advised by great souls never to write to php file.
__________________
How to crash your pc??
Send a message via AIM to unitechy Send a message via MSN to unitechy Send a message via Yahoo to unitechy Send a message via Skype™ to unitechy
unitechy is offline  
Reply With Quote
The Following User Says Thank You to unitechy For This Useful Post:
Dave (11-02-2009)
Old 11-27-2009, 11:45 PM   #4 (permalink)
The Contributor
 
Izym's Avatar
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Izym is on a distinguished road
Default

Yes, sLysdal, but only if no security precautions was taken by the developer at all. Anyway, one should at most be writing to config files in an installation script or so, nothing more.
Izym is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Part 2: Giving our Currency Conversion Script some Responsibility Wildhoney General 15 03-17-2009 01:53 PM
Random Avatar Script FaceDancer Script Giveaway 1 08-22-2008 05:47 AM
here are some bugs in my guestbook script how to solve them ? webtuto Absolute Beginners 1 03-01-2008 12:59 PM
hash() algorithm info script RobertK Script Giveaway 4 01-09-2008 03:00 PM
Script Execution Time Class Wildhoney Script Giveaway 2 09-14-2007 11:36 PM


All times are GMT. The time now is 08:26 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design