[PHP] Mysql session handler?
Can anyone recommend a good php-mysql session handler class? I have found a lot of them, but they are all pretty old, pre-2005 -- Mike B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Setting session from within iframe?
I have a problem that maybe someone can shed some light on. I have a page, lets say it is located here... www.domain1.com On this page is a iframe with a src like so... www.domain2.com/mypage.php This php page has a session _start call in it. The problem is, the session cookie is not set when the php is called into an iframe. The session_id changes each time the iframe is refreshed. If I go to the page directly, then the cookie is set (and stays set). This happens in Safari, not FF. Is there some sort of bug that will not allow session cookies to be set when a page is called from an iframe? I have heard IE does this as well? -- Mike B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] include config.php does not work anymore after PHP 5.2
on 12/2/07 2:22 AM, wmac at [EMAIL PROTECTED] wrote: Hello, I have been working with PHP 5.0 and my register_globals has always been Off since PHP 4.1 Today I upgraded to PHP 5.2 and now neither of my include config.php work. Neither of the variables defined in include files are even included. Anyone knows what has been changed and what can I do? This is what I normally use PHP Code: include(config.php); mysql_connect($host,$user,$password); @mysql_select_db($db) or die(Unable to open database); I echoed those connection variables and all are empty. Thank you, Mac I had the same problem last week. Turned out there was another 'config.php' in the include_path (in my case the pear folder). Can you rename the config.php file and things work? If so, then look in your include_path and see if there is a config.php file there as well. -- Mike B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Instantiate phpmailer in a separate class?
on 11/29/07 1:53 AM, Jochem Maas at [EMAIL PROTECTED] wrote: Mike Yrabedra wrote: Hello, I want to have a class send some emails. I wanted to use the excellent phpMailer class to do this. What is the proper way to use the phpMailer class from within a method of a separate class? the same way you would use it outside of a method of a class. class Foo { function bar() { $mailer = new phpMailer; // do stuff with mailer. } } now your Foo class might want to make use of the $mailer object from within more than one method - in this case you can consider using a property of your Foo instances. class Foo { private $mailer; function __construct() { $this-mailer = new phpMailer; } function bar() { $this-mailer-clearAddresses(); } function bar() { $this-mailer-Send(); } } Very kewl. Thank you. -- Mike B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Nested include/require not working in 5.2 (SOLVED)
on 11/27/07 3:49 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 1:53 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 1:43 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 11:46 AM, Jochem Maas at [EMAIL PROTECTED] wrote: Mike Yrabedra wrote: I am not able to use includes or requires in nested files using php 5.2.3 (osx) Including or Requiring files directly works. Including files, that also have includes in them, does not. Say you have this... -TopDirectory --index.php (contains include(includes/top.php); ) --includes (folder) ---config.php (contains echo crap; ) ---top.php (contains include(config.php); ) When you load the index.php file you would expect the word crap to show, but it does not. I think the getcwd is staying specific to the top folder, so the path stays the same throughout. This does not happen in 5.1.6 nothing changed in php - the CWD has always been the dir in which the explicitly called script lives in and it does not change because your inside an included file. my guess is your include_path no longer includes '.' so php is not trying to find the file in the directory of the script which is doing the include. Is there a fix for this or is it PHP causing the problem? Here is what I have for include_path... include_path = .:/usr/local/pear Everything seems to be in order? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The first question I have is what does the Error log show? You should have error reporting turned on so you can see where the script is barfing on the coding. Wolf One more thing, it only does this IF the nested include file is named 'config.php'. No error is thrown because it is pulling the 'config.php' file from somewhere, I just do not know where. If I change the name of the file from 'config.php' to 'config1.php', then everything works fine. Is there a way to figure out where and why it is pulling this mystery 'config.php' file from? -- Mike Yrabedra B^) What does the error message log tell you? It should be readily available in it Wolf The include tag is not throwing any error. If I call the same file with a read file method, then I get this error Warning: readfile(config.php) [function.readfile]: failed to open stream: No such file or directory in Even though the file calling it is in the same directory as 'config.php' Your include path should be along the lines of: include_path = .:/usr/local/pear:/server/path/to/web/includes/folder so if your server root is /var/htdocs/www it would look like: include_path = .:/var/htdocs/www/includes:/usr/local/pear Notice that I changed the order to look local first, then go to the includes folder. HTH, Wolf Isn't it always the obvious thing that fixes things?? ;-) Inside the '/usr/local/pear' was the pear 'Config.php' file. PHP was not using the local version, but grabbing this one instead. I have adjusted the include_path so that this will no longer happen. Thanks to everyone that chimed in. :-) -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Instantiate phpmailer in a separate class?
Hello, I want to have a class send some emails. I wanted to use the excellent phpMailer class to do this. What is the proper way to use the phpMailer class from within a method of a separate class? -- Mike B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Nested include/require not working in 5.2
I am not able to use includes or requires in nested files using php 5.2.3 (osx) Including or Requiring files directly works. Including files, that also have includes in them, does not. Say you have this... -TopDirectory --index.php (contains include(includes/top.php); ) --includes (folder) ---config.php (contains echo crap; ) ---top.php (contains include(config.php); ) When you load the index.php file you would expect the word crap to show, but it does not. I think the getcwd is staying specific to the top folder, so the path stays the same throughout. This does not happen in 5.1.6 Is there a fix for this or is it PHP causing the problem? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Nested include/require not working in 5.2
on 11/27/07 11:46 AM, Jochem Maas at [EMAIL PROTECTED] wrote: Mike Yrabedra wrote: I am not able to use includes or requires in nested files using php 5.2.3 (osx) Including or Requiring files directly works. Including files, that also have includes in them, does not. Say you have this... -TopDirectory --index.php (contains include(includes/top.php); ) --includes (folder) ---config.php (contains echo crap; ) ---top.php (contains include(config.php); ) When you load the index.php file you would expect the word crap to show, but it does not. I think the getcwd is staying specific to the top folder, so the path stays the same throughout. This does not happen in 5.1.6 nothing changed in php - the CWD has always been the dir in which the explicitly called script lives in and it does not change because your inside an included file. my guess is your include_path no longer includes '.' so php is not trying to find the file in the directory of the script which is doing the include. Is there a fix for this or is it PHP causing the problem? Here is what I have for include_path... include_path = .:/usr/local/pear Everything seems to be in order? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Nested include/require not working in 5.2
on 11/27/07 1:43 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 11:46 AM, Jochem Maas at [EMAIL PROTECTED] wrote: Mike Yrabedra wrote: I am not able to use includes or requires in nested files using php 5.2.3 (osx) Including or Requiring files directly works. Including files, that also have includes in them, does not. Say you have this... -TopDirectory --index.php (contains include(includes/top.php); ) --includes (folder) ---config.php (contains echo crap; ) ---top.php (contains include(config.php); ) When you load the index.php file you would expect the word crap to show, but it does not. I think the getcwd is staying specific to the top folder, so the path stays the same throughout. This does not happen in 5.1.6 nothing changed in php - the CWD has always been the dir in which the explicitly called script lives in and it does not change because your inside an included file. my guess is your include_path no longer includes '.' so php is not trying to find the file in the directory of the script which is doing the include. Is there a fix for this or is it PHP causing the problem? Here is what I have for include_path... include_path = .:/usr/local/pear Everything seems to be in order? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The first question I have is what does the Error log show? You should have error reporting turned on so you can see where the script is barfing on the coding. Wolf One more thing, it only does this IF the nested include file is named 'config.php'. No error is thrown because it is pulling the 'config.php' file from somewhere, I just do not know where. If I change the name of the file from 'config.php' to 'config1.php', then everything works fine. Is there a way to figure out where and why it is pulling this mystery 'config.php' file from? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Nested include/require not working in 5.2
on 11/27/07 1:53 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 1:43 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 11:46 AM, Jochem Maas at [EMAIL PROTECTED] wrote: Mike Yrabedra wrote: I am not able to use includes or requires in nested files using php 5.2.3 (osx) Including or Requiring files directly works. Including files, that also have includes in them, does not. Say you have this... -TopDirectory --index.php (contains include(includes/top.php); ) --includes (folder) ---config.php (contains echo crap; ) ---top.php (contains include(config.php); ) When you load the index.php file you would expect the word crap to show, but it does not. I think the getcwd is staying specific to the top folder, so the path stays the same throughout. This does not happen in 5.1.6 nothing changed in php - the CWD has always been the dir in which the explicitly called script lives in and it does not change because your inside an included file. my guess is your include_path no longer includes '.' so php is not trying to find the file in the directory of the script which is doing the include. Is there a fix for this or is it PHP causing the problem? Here is what I have for include_path... include_path = .:/usr/local/pear Everything seems to be in order? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The first question I have is what does the Error log show? You should have error reporting turned on so you can see where the script is barfing on the coding. Wolf One more thing, it only does this IF the nested include file is named 'config.php'. No error is thrown because it is pulling the 'config.php' file from somewhere, I just do not know where. If I change the name of the file from 'config.php' to 'config1.php', then everything works fine. Is there a way to figure out where and why it is pulling this mystery 'config.php' file from? -- Mike Yrabedra B^) What does the error message log tell you? It should be readily available in it Wolf The include tag is not throwing any error. If I call the same file with a read file method, then I get this error Warning: readfile(config.php) [function.readfile]: failed to open stream: No such file or directory in Even though the file calling it is in the same directory as 'config.php' -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Nested include/require not working in 5.2
on 11/27/07 3:49 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 1:53 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 1:43 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 11:46 AM, Jochem Maas at [EMAIL PROTECTED] wrote: Mike Yrabedra wrote: I am not able to use includes or requires in nested files using php 5.2.3 (osx) Including or Requiring files directly works. Including files, that also have includes in them, does not. Say you have this... -TopDirectory --index.php (contains include(includes/top.php); ) --includes (folder) ---config.php (contains echo crap; ) ---top.php (contains include(config.php); ) When you load the index.php file you would expect the word crap to show, but it does not. I think the getcwd is staying specific to the top folder, so the path stays the same throughout. This does not happen in 5.1.6 nothing changed in php - the CWD has always been the dir in which the explicitly called script lives in and it does not change because your inside an included file. my guess is your include_path no longer includes '.' so php is not trying to find the file in the directory of the script which is doing the include. Is there a fix for this or is it PHP causing the problem? Here is what I have for include_path... include_path = .:/usr/local/pear Everything seems to be in order? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The first question I have is what does the Error log show? You should have error reporting turned on so you can see where the script is barfing on the coding. Wolf One more thing, it only does this IF the nested include file is named 'config.php'. No error is thrown because it is pulling the 'config.php' file from somewhere, I just do not know where. If I change the name of the file from 'config.php' to 'config1.php', then everything works fine. Is there a way to figure out where and why it is pulling this mystery 'config.php' file from? -- Mike Yrabedra B^) What does the error message log tell you? It should be readily available in it Wolf The include tag is not throwing any error. If I call the same file with a read file method, then I get this error Warning: readfile(config.php) [function.readfile]: failed to open stream: No such file or directory in Even though the file calling it is in the same directory as 'config.php' Your include path should be along the lines of: include_path = .:/usr/local/pear:/server/path/to/web/includes/folder so if your server root is /var/htdocs/www it would look like: include_path = .:/var/htdocs/www/includes:/usr/local/pear Notice that I changed the order to look local first, then go to the includes folder. HTH, Wolf I will give this a try, but what happened from 5.1.6 - 5.2.3 that forces me to do this? All the php.ini settings are the same, but I have this problem only on 5.2.3 with files named 'config.php'. That is the really weird part. -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Bcompiler errors
on 11/15/07 12:51 PM, Daniel Brown at [EMAIL PROTECTED] wrote: On Nov 15, 2007 12:36 PM, Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/15/07 11:17 AM, Colin Guthrie at [EMAIL PROTECTED] wrote: Mike Yrabedra wrote: Hello, I am getting these errors all the time now, on multiple scripts at random times. Warning: bcompiler: Bad bytecode file format at in Unknown on line 0 This tells me it has to be PHP in some fashion. Only thing I have found is this... http://pecl.php.net/bugs/bug.php?id=10742 I am unsure as to where I need to go from here? I am concerned about putting this into production if it happens this often. Any ideas? P.S. Running PHP 5.2.3 on Mac OS X intel xserve Apache 2.2.4 Do you have to bytecompile your scripts? You're using apache, so it's not a gtk exectutable or such like, so I can only assume you're wanting to sell/supply your code to third parties? If not then simply don't bytecompile ;) Col I am not, that is why it is so weird. It is straight PHP code. -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Does the error appear when you execute this via the CLI, or only on the web? Don't know, but it is totally random, so it is not my script(s). -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Bcompiler errors
on 11/15/07 11:07 AM, Daniel Brown at [EMAIL PROTECTED] wrote: On Nov 15, 2007 11:05 AM, Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/15/07 10:55 AM, Daniel Brown at [EMAIL PROTECTED] wrote: On Nov 15, 2007 10:31 AM, Mike Yrabedra [EMAIL PROTECTED] wrote: Hello, I am getting these errors all the time now, on multiple scripts at random times. Warning: bcompiler: Bad bytecode file format at in Unknown on line 0 This tells me it has to be PHP in some fashion. Only thing I have found is this... http://pecl.php.net/bugs/bug.php?id=10742 I am unsure as to where I need to go from here? I am concerned about putting this into production if it happens this often. Any ideas? P.S. Running PHP 5.2.3 on Mac OS X intel xserve Apache 2.2.4 -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If it's an encoded file, it might be corrupted. Make sure it was uploaded in binary mode, and that there are no trailing whitespaces or newlines. Nope, not encrypted. Also, reloading the same page almost always fixes the problem and the page loads. -- Mike Yrabedra B^) Voodoo. Are you using XDebug, by chance? No, I am not using Xdebug -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Bcompiler errors
on 11/15/07 10:55 AM, Daniel Brown at [EMAIL PROTECTED] wrote: On Nov 15, 2007 10:31 AM, Mike Yrabedra [EMAIL PROTECTED] wrote: Hello, I am getting these errors all the time now, on multiple scripts at random times. Warning: bcompiler: Bad bytecode file format at in Unknown on line 0 This tells me it has to be PHP in some fashion. Only thing I have found is this... http://pecl.php.net/bugs/bug.php?id=10742 I am unsure as to where I need to go from here? I am concerned about putting this into production if it happens this often. Any ideas? P.S. Running PHP 5.2.3 on Mac OS X intel xserve Apache 2.2.4 -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If it's an encoded file, it might be corrupted. Make sure it was uploaded in binary mode, and that there are no trailing whitespaces or newlines. Nope, not encrypted. Also, reloading the same page almost always fixes the problem and the page loads. -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Bcompiler errors
on 11/15/07 11:17 AM, Colin Guthrie at [EMAIL PROTECTED] wrote: Mike Yrabedra wrote: Hello, I am getting these errors all the time now, on multiple scripts at random times. Warning: bcompiler: Bad bytecode file format at in Unknown on line 0 This tells me it has to be PHP in some fashion. Only thing I have found is this... http://pecl.php.net/bugs/bug.php?id=10742 I am unsure as to where I need to go from here? I am concerned about putting this into production if it happens this often. Any ideas? P.S. Running PHP 5.2.3 on Mac OS X intel xserve Apache 2.2.4 Do you have to bytecompile your scripts? You're using apache, so it's not a gtk exectutable or such like, so I can only assume you're wanting to sell/supply your code to third parties? If not then simply don't bytecompile ;) Col I am not, that is why it is so weird. It is straight PHP code. -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Bcompiler errors
Hello, I am getting these errors all the time now, on multiple scripts at random times. Warning: bcompiler: Bad bytecode file format at in Unknown on line 0 This tells me it has to be PHP in some fashion. Only thing I have found is this... http://pecl.php.net/bugs/bug.php?id=10742 I am unsure as to where I need to go from here? I am concerned about putting this into production if it happens this often. Any ideas? P.S. Running PHP 5.2.3 on Mac OS X intel xserve Apache 2.2.4 -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unable to use exec() in php
Is there a special way to allow only a specific user to execute the system_exec() and exec() calls? on 6/18/07 10:31 AM, Daniel Brown at [EMAIL PROTECTED] wrote: On 6/18/07, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Monday 18 June 2007 13:15, makhan wrote: Stop top posting. I am also using shell_exec('matlab -r myscript') to run my matlab script. Using shell_exec('matlab -r /path/to/myscript') would be a better idea. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ? exec('date 21',$ret); echo $ret.\n; ? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Php script diagnostic app?
I was wondering if there was some kind of application that would process a php script, logging any functions (or classes) it encounters along the way. Logging times and memory use. I am trying to figure out what in a script slows it down so much. Any ideas? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Imap certificate error?
When using imap_open to access my email server, I keep getting a invalid certificate error. The cert on the email server is issued from Geotrust and is quite common (Rapidssl). The error comes from it not being listed in the root certificates list (bundle). My question is, is this a problem with my email server or my php(www) server? If it is a php problem, then how do I fix it? Other than using /notls or /no-validate -- Mike B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Only allow one vhost to use exec() ?
I want to be able to use the exec() function on my site, but do not want to allow all the other users that same ability. IS there a safe and secure way to limit the use of that function to a single virtualhost...maybe even a single page or directory? -- Mike B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Let openbasedir limited folks use system-wide includes
Hello, I use php admin flags to give each of my clients different permissions. All of them , by default, are limited to their directory using openbasedir parameter. I also have phpmailer set up so everyone can use it as an include or require function. The only problem is, the folks locked into their directories cannot use it. It gives an openbase directory error every time. Does anyone know of a solution for this without compromising security? ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Php ftp client recommendations?
Can anyone recommend a good, secure, stable php ftp client? And please save the look at hotscripts responses. I am looking for actual user input. Thanks. ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Crossed paths?
A customer of mine has recently started to see a weird error. He will get the typical 'open_basedir' error, but it will say his allowed path is another clients allowed path??? See an example below. Warning : Unknown(): open_basedir restriction in effect. File(/Sites/thissite.com/www/forums/admin/template.php) is not within the allowed path(s): (/sites/othersite.com) in Unknown on line 0 I set all my clients up with 'php_admin_value' parameters in their config files. Each vhost is assigned their own directory. Any ideas? Where should I look to troubleshoot this one? ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Crossed paths?
on 11/21/03 6:47 AM, Eugene Lee at [EMAIL PROTECTED] wrote: : A customer of mine has recently started to see a weird error. He will get : the typical 'open_basedir' error, but it will say his allowed path is : another clients allowed path??? See an example below. : : Warning : Unknown(): open_basedir restriction in effect. : File(/Sites/thissite.com/www/forums/admin/template.php) is not within the : allowed path(s): (/sites/othersite.com) in Unknown on line 0 : : I set all my clients up with 'php_admin_value' parameters in their config : files. Each vhost is assigned their own directory. : : Any ideas? Where should I look to troubleshoot this one? The most obvious difference is /Sites vs. /sites. If your PHP server is using a case-sensitive filesystem, I'd check the whole uppercase-lowercase thing first. Not likely, I am running Mac OS X and have never had a 'case' problem. ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Instant timeout
What would cause a php page to instantly prompt a timeout error when loading? ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Comments / Feedback script?
Anyone know of a good 'comments/ feedback' creation script that writes to a static text file (no MySQL)? The user would enter their email, name and comment. They would then be displayed on the page using an include function. ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP generated AuthUserFiles?
Is there a way to let PHP generate the necessary AuthUserFiles for use with .htaccess? I don't allow my clients the ability to use .htpasswd in the command line. From what I see, the user file is just a text file with the username and the encrypted password. TIA ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Script that pulls several pages from list?
Hopefully someone can help. I want to create a php script that will... 1. Take a list of URLs separated by commas 2. Covert that to an array 3. Then go through and pull the content from each page in a loop I am doing this so I can set up a cron job to automatically cache pages with jpcache. This way the user never needs to wait on the cache to happen. Any help would be appreciated :-) ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] webserver for mac
on 8/27/03 8:40 AM, Justin French at [EMAIL PROTECTED] wrote: Actually, to the best of my knowledge you cannot run a decent server on Mac OS 10 (X), and certainly can't run PHP/MySQL, which is the main reason I upgraded to OSX. But if they're running anything less than a G4, Mac OSX may be too hungry?!? Justin Actually you can, 4D Webstar (4.5 on Mac Classic). So secure and stable that the US Army used it for their web site. Having said that, let me also say that WebSTAR is crap compared to Apache. :-) ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] zend optimizer for 4.3.2
on 7/17/03 7:20 AM, Adrian Teasdale at [EMAIL PROTECTED] wrote: I might be wrong (it's been known in the past!) but I think that theirs supports 4.3.x The OS X version came out yesterday and it DOES require 4.3.2 Not sure about the other platforms. ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 4.3.2 fopen() problem/limit?
I just upgraded to 4.3.2 and one of my scripts will not work now. The script basically used fopen to get a file, then it would write it to a static page (cutting down on DB access). The script has worked fine for months under 4.3.0, but not under 4.3.2 It looks as if it only opens and writes half of the source page. Almost like it gets to 20k then stops the stream. Anyone know if this is a bug or if there is a way to fix the problem? TIA ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 4.3.2 fopen() problem/limit?
on 7/17/03 7:55 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: check if allow_url_fopen is on in /etc/php.ini or C:\Windows\php.ini It is, and fopen IS working. The problem is that it is only pulling half of the page down? Like it is reaching a limit to the amount of data it will pull??? ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 4.3.2 fopen() problem/limit?
on 7/17/03 8:28 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: ohh, excuse me, i read bad your message. What is the size of the file ?? check in php.ini the postmax_size param. 8MB, that should plenty big enough. ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Security-OTHER than safe mode?
Hello, I have many of my clients set up in 'safe_mode' mainly for security reasons. Well, as many of you know, that limits the way PHP functions. Especially on complex apps. Here is what I include in their httpd configs now... php_admin_flag safe_mode on php_admin_flag register_globals off php_admin_flag allow_url_fopen off php_admin_value doc_root /sites/site.com/www php_admin_value open_basedir /sites/site.com php_admin_value session.save_path /sites/site.com/sessiondata php_admin_value upload_tmp_dir /sites/site.com/uploadtemp php_value upload_max_filesize 1024000 Can anyone else give me some other options that will make things secure, but have safe_mode turned off? I mainly don't want them able to execute shell commands, view info not in their directory, etc.. Etc.. ANY help or insight would greatly be appreciated. TIA ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Security-other than safe mode?
Hello, I have many of my clients set up in 'safe_mode' mainly for security reasons. Well, as many of you know, that limits the way PHP functions. Especially on complex apps. Here is what I include in their httpd configs now... php_admin_flag safe_mode on php_admin_flag register_globals off php_admin_flag allow_url_fopen off php_admin_value doc_root /sites/site.com/www php_admin_value open_basedir /sites/site.com php_admin_value session.save_path /sites/site.com/sessiondata php_admin_value upload_tmp_dir /sites/site.com/uploadtemp php_value upload_max_filesize 1024000 Can anyone else give me some other options that will make things secure, but have safe_mode turned off? I mainly don't want them able to execute shell commands, view info not in their directory, etc.. Etc.. ANY help or insight would greatly be appreciated. TIA ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using INCLUDES in SAFE MODE
I currently have all my users in safe-mode to prevent them from running shell commands via php. I would still like for them to be able to access certain folders (i.e. PEAR, basic_functions, etc..) that reside out of their root. Since safe_mode prevents this, is there a way in the domain's config, to allow access to *specific* directories when in safe_mode? TIA ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Convert KB to MB?
Is there a simple script that will take a value in Kilobytes and convert it to MegaBytes? ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Php get vcard info?
Is it possible to use php to snag vCard info and insert it into a form? ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Yearbook script?
Anyone know of a good yearbook script? One that will show a listing of photos, that when clicked on, will bring up a page with more info on the individual? TIA ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Yearbook script?
on 6/9/03 8:58 AM, Edward Peloke at [EMAIL PROTECTED] wrote: What script is this based off? I agree, this would be like most gallery type pages... I also did a small demo page for a used vehicle dealership that could be usedyou just substitute the people for the cars...:) http:\\www.peloke.webhop.org -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 7:12 AM To: 'MIKE YRABEDRA'; 'PHP List' Subject: RE: [PHP] Yearbook script? Anyone know of a good yearbook script? One that will show a listing of photos, that when clicked on, will bring up a page with more info on the individual? I'm sure any gallery type script could be used for this. Just get one that allows comments for the pictures. Maybe adapt the commenting a little to support certain fields. ---John W. Holmes... Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Banner ad solution?
Can someone suggest a 'good' banner ad solution that is done in php. Please do not suggest phpAdNews since it has proven very unstable for me and others. -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 FAX: 734-448-5164 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Phpadsnew?
Has anyone else had problems with this app opening tons of processes and never closing them? -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Preventing the hijacking of pictures
on 2/27/03 10:18 AM, merlin at [EMAIL PROTECTED] wrote: I recently discovered the reason why the traffic is rising so high on my server. Some people are stealing bandwidth. They include the link of an image into a forum posting. Now everytime somebody reads this threat on the other site this image is served by my server!! No one cares about one image, but they become dramaticly a lot! Is there a reason how to find out that the image is not include into my html code, but into the other site code? A great idea would be showing a kind of a watermark on this images if they are included inside other websites. $_SERVER[HTTP_REFERRER] does not help. But there might be another method I do not know of. Thank you for any help and hints on this topic! There is a kewl little php solution called LinkLok that may do what you need. It encrypts the image tag so it will only work on your pages. Search for it in Hotscripts.com HTH -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fputs including php syntax?
Is it possible to use 'fputs' to write to a text file and include php code within it? That way the generated page will have working php syntax within. How do I make it so the php code is treated like text and not code? -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Received: (from www@localhost) ???
I am using sendmail and php and it works great... However, It always says this in the header of the email Received: (from [EMAIL PROTECTED]) Is there a way I can change this to something less generic, more specific to my server? TIA -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Encrypted URL links?
I have a site that sells software and wants to have downloadable purchases. Is there a way to encrypt a URL that will still work when clicked on, BUT not show the customer where the file actually resides? Is it also possible to have it expire after a given amount of time? TIA -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] List folder contents with links?
Is it possible to display the contents of a given folder, list them , and make them links? -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] List folder contents with links?
on 2/20/03 11:49 AM, David Otton at [EMAIL PROTECTED] wrote: Is it possible to display the contents of a given folder, list them , and make them links? http://www.php.net/manual/en/function.readdir.php Thanks :-) -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Opendir listing
How do I remove the '.' and '..' from displaying with the following script? I want just the files, not the dots. ?php if ($handle = opendir('graphics/')) { echo Files:br\n; /* This is the correct way to loop over the directory. */ while (false !== ($file = readdir($handle))) { echo a href=\$file\$file/abr\n; } closedir($handle); } ? -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Opendir listing
on 2/20/03 3:34 PM, MIKE YRABEDRA at [EMAIL PROTECTED] wrote: How do I remove the '.' and '..' from displaying with the following script? I want just the files, not the dots. ?php if ($handle = opendir('graphics/')) { echo Files:br\n; /* This is the correct way to loop over the directory. */ while (false !== ($file = readdir($handle))) { echo a href=\$file\$file/abr\n; } closedir($handle); } ? Nevermind, got it. -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Use GnuPG with PHP?
I want to be able to encrypt a block of text using a passphrase. Then when I get the email, I just need to unlock it using that passphrase (no keys...i think). Can anyone tell me how to do this in PHP code? TIA -- Mike Yrabedra President 323 Enterprises Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ in all your ways acknowledge Him and He will direct your paths. Proverbs 3:6 NIV {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PGP and PHP together???
Is it possible to use php and pgp together? Are there any good tutorials out there? -- Mike Yrabedra President 323 Enterprises Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ in all your ways acknowledge Him and He will direct your paths. Proverbs 3:6 NIV {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IS PEAR Secure?
I am looking into installing PEAR on my production server running 4.3. Are there any PEAR security issues to be concerned about? -- Mike Yrabedra President 323 Enterprises Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ in all your ways acknowledge Him and He will direct your paths. Proverbs 3:6 NIV {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Multi-User phpMyAdmin
on 2/7/03 3:35 PM, Stephen at [EMAIL PROTECTED] wrote: Can anyone tell me a tutorial on how to setup a multi-user phpmyadmin installation? I would like to just have one central copy, then have other users able to access their corresponding database in phpMyAdmin. How can I do this? It is on the phpmyadmin documentation page and it looks something like this... --snip-- This example assumes you want to use pma as the controluser and pmapass as the controlpass, but this is only an example: use something else in your file: GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass'; GRANT SELECT (Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv) ON mysql.user TO 'pma'@'localhost'; GRANT SELECT ON mysql.db TO 'pma'@'localhost'; GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv) ON mysql.tables_priv TO 'pma'@'localhost'; ... and if you want to use the many new relation and bookmark features: GRANT SELECT, INSERT, UPDATE, DELETE ON pma_db TO 'pma'@'localhost'; (this of course requires you to have a special DB for phpMyAdmin, the contents will be explained later) *Then each of the true users should be granted of a set of privileges on a set of particular databases but shouldn't have any global privileges. For example, to grant the user real_user with all privileges on the database user_base: GRANT ALL PRIVILEGES ON user_base.* TO 'real_user'@localhost IDENTIFIED BY 'real_password'; --snip-- -- Mike Yrabedra President 323 Enterprises Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ in all your ways acknowledge Him and He will direct your paths. Proverbs 3:6 NIV {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Adding mhash function without recompile?
I am currently using a php build by Marc Liyanage for Mac OS X and had a question. I need to use the mhash function, but it was not included in the build. Is there a way to add that extension to PHP without recompiling? I already have mhash installed and running, I just need php able to use it. TIA -- Mike Yrabedra President 323 Enterprises Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock ___ in all your ways acknowledge Him and He will direct your paths. Proverbs 3:6 NIV {{{ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php