[PHP] '--enable-track-vars' php.ini file on Mac OS X
Hi Folks, Let me begin with the direct question to save you time. If you want more info read more about the issue by reading 'The Problem:' below. The question: Is there any way to '--enable-track-vars' in my Macintosh laptop running Mac OS-X 10.1.5 and a version 4.2.1 installation of PHP without creating a php.ini file? Is there a command I can run to do this? If so... What directory do I need to be in when I do this? Configuration Info: Mac OS X PHP Version 4.2.1 The problem: I have a PHP application which works fine on a Cobalt server that is running PHP 4.0.2. My problem is that I'm trying to run this application (a set of PHP scripts) on my Macintosh laptop which is running Mac OS X 10.1.5. I have tested the PHP installation using the phpinfo() function on my laptop and it works fine. But my scripts require the tracking of variables. By running the phpinfo() function on both my laptop (PHP v. 4.2.1 this does not run my scripts) and the cobalt server (PHP v. 4.0.2 this does run my scripts) I noticed that there was some difference in the configuration. I noticed that my laptop configuration does not have '--enable-track-vars' listed under the Configure Command information in the PHP configuration page that results from running the phpinfo() function but the Cobalt PHP installation does have that listed. The installation of PHP I used was obtained from: http://www.entropy.ch/software/macosx/php/ This page says that this installation package does not include a php.ini file and it goes on to say that, if I want this file I should just create it. But it does not say what should go into this php.ini file. I suppose I could just copy the php.ini file from the Cobalt server running PHP v. 4.0.2 but I think that won't work. Any ideas? Thanks in advance, Mario Salinas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] '--enable-track-vars' php.ini file on Mac OS X
On Tuesday 11 June 2002 15:02, Mario A. Salinas wrote: Let me begin with the direct question to save you time. If you want more info read more about the issue by reading 'The Problem:' below. Let me begin by saying: Please do not reply to an existing post when trying to start a new topic Is there any way to '--enable-track-vars' in my Macintosh laptop running Mac OS-X 10.1.5 and a version 4.2.1 installation of PHP According to the manual: ... as of PHP 4.0.3, track_vars is always turned on -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* This is a test of the Emergency Broadcast System. If this had been an actual emergency, do you really think we'd stick around to tell you? */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] '--enable-track-vars' php.ini file on Mac OS X
Hi I suppose you mean register_globals is off and should be on, right? Ok, to make this short, do following: create a file php.ini on your desktop and write following into it: register_globals=on Make sure you have unix-linebreaks (use BBedit for example, or pepper) and a linebreak at the end of the line. Save the file and open the terminal. Enter root cp /Users/yourname/Desktop/php.ini /usr/local/lib/ apachectl restart Now try it again. Register_globals should now be on. As another one has written, enable_track_vars is always on. I use the same installation (entropy.ch) for php :) cya Stefan Rusterholz Am Dienstag den, 11. Juni 2002, um 09:02, schrieb Mario A. Salinas: Hi Folks, Let me begin with the direct question to save you time. If you want more info read more about the issue by reading 'The Problem:' below. The question: Is there any way to '--enable-track-vars' in my Macintosh laptop running Mac OS-X 10.1.5 and a version 4.2.1 installation of PHP without creating a php.ini file? Is there a command I can run to do this? If so... What directory do I need to be in when I do this? Configuration Info: Mac OS X PHP Version 4.2.1 The problem: I have a PHP application which works fine on a Cobalt server that is running PHP 4.0.2. My problem is that I'm trying to run this application (a set of PHP scripts) on my Macintosh laptop which is running Mac OS X 10.1.5. I have tested the PHP installation using the phpinfo() function on my laptop and it works fine. But my scripts require the tracking of variables. By running the phpinfo() function on both my laptop (PHP v. 4.2.1 this does not run my scripts) and the cobalt server (PHP v. 4.0.2 this does run my scripts) I noticed that there was some difference in the configuration. I noticed that my laptop configuration does not have '--enable-track-vars' listed under the Configure Command information in the PHP configuration page that results from running the phpinfo() function but the Cobalt PHP installation does have that listed. The installation of PHP I used was obtained from: http://www.entropy.ch/software/macosx/php/ This page says that this installation package does not include a php.ini file and it goes on to say that, if I want this file I should just create it. But it does not say what should go into this php.ini file. I suppose I could just copy the php.ini file from the Cobalt server running PHP v. 4.0.2 but I think that won't work. Any ideas? Thanks in advance, Mario Salinas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php