Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 16th, 2003, 07:46 PM
Registered User
 
Join Date: Nov 2003
Location: Olympia, WA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dooz
Default Chapt 13 auto_prepend_file

I was doing great with this book and was sort of blindsided by this auto_prepend_commend. I get teh basic idea of what it is suppose dot do, but I have no idea where is goes. Does it go in the php script?
help

gary doolittle
Reply With Quote
  #2 (permalink)  
Old November 16th, 2003, 10:00 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

They are talking about setting a configuration directive in php.ini.

There are a couple of ways to alter the setting, if you are using a windows environment all you need to do is located the configuration file, located at C:\Windows\php.ini (or whatever drive letter Windows is installed on). Open the configuration file in Notepad or a notepad like text editor.

Alter the directive by assigning a file path to it.

auto_prepend_file = path/to/file.php

Alternatively if your server is configured to accept PHP configuration changes through .htaccess files you can create a .htaccess file.

name the file: .htaccess
On a Windows OS you might have to surround this with quotes to get the OS to create the file.

include this line:
php_value auto_prepend_file path/to/file.php

Notice that each value is separated by a single space.

Save the file in the directory where you want *all* php files in that directory to be auto-prepended.

You may verify that settings have taken effect by running <?php phpinfo(); ?>

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::
Reply With Quote
  #3 (permalink)  
Old November 20th, 2003, 08:34 PM
Registered User
 
Join Date: Nov 2003
Location: Olympia, WA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dooz
Default

thanks much quesidilla

gary doolittle
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems in Chapt 9 pjwarez BOOK: Beginning Mac OS X Programming 0 August 30th, 2006 02:46 PM
Chapt 6 Removal from an ArrayList Jerry Obrien BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 February 19th, 2004 02:40 PM
Chapt. 13 "Try It Out" - Auto-Generated Commands tullyf BOOK: Beginning ASP.NET 1.0 0 January 20th, 2004 02:30 AM



All times are GMT -4. The time now is 06:46 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.