Re: [PHP] problems with exec()
What is the safe_mode value in your php.ini? To run exec the value of your safe_mode has to be OFF. [EMAIL PROTECTED] escribió: Try exec('/path/to/copy', $return); print_r($return); read the manual : http://nl3.php.net/manual/en/function.exec.php Description string exec ( string command [, array output [, int return_var]] ) gr, Thijs On Wed, 29 Nov 2006 23:22:13 -0700, Ray [EMAIL PROTECTED] wrote: hello; I am trying to write a script to do some auto configuration of my webserver. Part of the process involves copying some configuration files from other places on the server to a working directory where they can be modified. I am running freeBSD 6.0, Apache 2.2.3, php 5.1.5 I can't seem to get the exec() command to work. I have an external shell script called 'copy' that takes care of getting files. script is currently set to mode 777 when run from the shell it works perfectly. however, in the php script echo exec('whoami'); exec('/path/to/copy'); the only return is 'www' (the username correctly returned from whoami) also files aren't changed. any suggestions, pointers, log files to check would be appreciated as I have spent several hours on google, in manuals, etc. haven't tried the ougi board, but that's about it ;-) tia Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PROBLEM WITH MAIL FUNCTION
Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página web', 'strongHola, esto es una pruebastrong','From: [EMAIL PROTECTED]' . \r\n . 'Content-type: text/html; charset=iso-8859-1' . \r\n); The mail subject when I receive the message is like this: Consulta SeXalXtica desde la pXgina web ¿How can I solve this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] READING LDIF FILES
Hey all, how can I read LDIF files using PHP?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] STRING TO ASCII CHARACTERS
Do you know any way to convert any string to ascii characters?? I mean: *abcdefgh* to *#97;#98;#99;#100;#101;#102;#103;#104* Juanjo.
Re: [PHP] STRING TO ASCII CHARACTERS
Ok. Thanks. You only have to change the function *length() *by the function *strlen()* cajbecu escribió: function stransform($string) { for ($i=0;$ilength($string);$i++) { $data .= #.ord(substr($string,$i,1)).;; } return $data; } Juanjo Pascual wrote: Do you know any way to convert any string to ascii characters?? I mean: *abcdefgh* to *#97;#98;#99;#100;#101;#102;#103;#104* Juanjo.
Re: [PHP] Paging Help
?php // Num of records each time $NUM_RECORDS = 10; if ($_GET[pag] == ) { $ini = 0; $pag = 1; } else { $ini = ($pag - 1) * $NUM_RECORDS; } // Query to show $query_rsData = SELECT * FROM table LIMIT . $ini . , . $NUM_RECORDS; $rsData = mysql_query($query_rsData, $DB_CONECTION); // Total records $query_rsData2 = SELECT * FROM table; $rsData2 = mysql_query($query_rsData2, $DB_CONECTION); $num_total_records = mysql_num_rows($rsData2); // Total pages $total_pag = ceil($num_total_records / $NUM_RECORDS); $previous_page = $pag - 1; $next_page = $pag + 1; ? Links for the pages --- First page: this_page.php?pag=1 Previous page: this_page?pag=?php echo previous_page; ? Next page: this_page?pag=?php echo next_page; ? Last page: this_page?pag=?php echo total_pag; ? Rodrigo de Oliveira Costa escribió: I have the following problem, I need to make a paging system to show results from search on a Mysql database. I found a class that should do the job but couldn't figure it out how to use it. Does anybody has an Idea of hos to do this? I thank in advance for any help you guys can provide me. Rodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MYSQL_CONNECT vs MYSQL_PCONNECT
How can i know which of both is better to use each time? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php