[PHP] Sybase Database CONNECTIVITY!

2002-06-21 Thread Vivek Kumar Agrawal
Hi, How can I connect PHP application on Linux to the Sybase database which is lying on the different machine. Please help me. Regards, Vivek

RE: [PHP] Installing Syncronizing

2002-06-21 Thread César Aracena
This is where we find several problems. The first one, is the price for such equipment here in Argentina (more than double in US Dollars), which is the main reason we try to get around with software. The second issue, is that the local DB may have to work synchronized with an on-line one in the

Re: [PHP] Mysql Insert from select problem with php

2002-06-21 Thread Rasmus Lerdorf
I bet you are double-escaping it. Try without the AddSlashes() call. By default PHP will escape this for you automatically. -Rasmus On Thu, 20 Jun 2002, David McInnis wrote: After posting this on the MySQL list and getting some feedback we were able to determine that this was not a flaw

[PHP] Stumped on a function

2002-06-21 Thread Jason Soza
I've been using the following function successfully for months, tonight I literally copied/pasted it to another page I was creating, called it exactly the same using the same data type, and I'm getting an incorrect result. The function is supposed to take a standard MySQL CCYY-MM-DD date format

RE: [PHP] Stumped on a function

2002-06-21 Thread David Freeman
function cleandate($indate) { str_replace(-, /, $indate); return date(F j, Y, strtotime($indate)); } I suspect that you actually need something like this: function cleandate($indate) { $indate = str_replace(-, /, $indate); return date(F j, Y, strtotime($indate)); }

[PHP] OSX + Apache + PHP + MySQL

2002-06-21 Thread Justin French
I currently develop using a FreeBSD unix box on my network, but when I get OSX, I'm thinking of having everything on the one machine... Do I need OSX SERVER to run everything I'd need for a development environment, or will the base version of OSX have the capabilities I need (running a test

[PHP] PHP + SUN SOLARIS + exec() or sytem()

2002-06-21 Thread Fatih stnda
I have php 4.2.1 + apache 1.3.24 on sun solaris 8. In my php files, system() and exec() commands ara not running. Any help? ( my php.ini file, safe_mode=off and safe_mode_exec_dir=no value ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stumped on a function

2002-06-21 Thread John Holmes
Why don't you just use DATE_FORMAT() in your query, then you don't have to do any extra PHP code at all?? ---John Holmes... -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 3:50 AM To: PHP-General Mailing List Subject: [PHP] Stumped on a

RE: [PHP] Mysql Insert from select problem with php

2002-06-21 Thread John Holmes
MySQL doesn't care about quotes when doing INSERT INTO ... SELECT. It's got to be something you're doing in PHP. Are you using that exact query? mysql create table list (clientid int, fname varchar(20)); Query OK, 0 rows affected (0.07 sec) mysql create table list2 (fname varchar(20)); Query

[PHP] ARRAY, IF INSERT

2002-06-21 Thread César Aracena
Hi all. I have this form in which one Administrator can insert new members and after that, in another page, a form where he/she can insert the new member’s sons daughters. I want to display a table with “text inserts” into the admin can type let’s say a maximum of 5 kids in the second page.

[PHP] Re: ARRAY, IF INSERT

2002-06-21 Thread Jesper Brunholm
(i am new to these groups, but shouldn't there be a follow-up-to on a X-post?) César aracena wrote: I have this form in which one Administrator can insert new members and after that, in another page, a form where he/she can insert the new member’s sons daughters. I want to display a table

php-general Digest 21 Jun 2002 09:55:07 -0000 Issue 1418

2002-06-21 Thread php-general-digest-help
php-general Digest 21 Jun 2002 09:55:07 - Issue 1418 Topics (messages 103207 through 103247): Re: Speed tests? RAM usage displays? 103207 by: 1LT John W. Holmes 103208 by: Uros Gruber Re: JPGrapgh and GD Library SAMBAR server 103209 by: Nico Jansen - NiRo IT

[PHP] Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Hi! Cookies makes me go AGHH!! Please help me with this: I am setting a cookie like this in my loginscript: setcookie(devProcCookie, cookie value.|.time(), 31536000); // Set cookie header(Location: inside.php); exit; So far it works! But when I go to the inside.php page that looks like

Re: [PHP] Stumped on a function

2002-06-21 Thread Jesper Brunholm
John Holmes wrote: Why don't you just use DATE_FORMAT() in your query, then you don't have to do any extra PHP code at all?? you might want a link to that: http://www.mysql.com/doc/D/a/Date_and_time_functions.html - look somewhat below the middle of the page function cleandate($indate) {

[PHP] Accessing a form variable before the form is posted

2002-06-21 Thread Ma Siva Kumar
My function for generating a select menu for a city sets the select name to form[city_id]. In one of the forms, there is a selection for City in the address details as well as one for the port of destination. If I use the function both the the select name will be form[city_id]. The port of

[PHP] Old config options still showing after updating PHP

2002-06-21 Thread Peter Janett
I have been compiling some extra configure options into PHP (4.1.2), such as --enable-xslt --with-xslt-sablot, and have had no problem getting PHP to configure, then make, then make install. Even after recompiling PHP, and then restarting (stopping, then starting) apache, phpinfo still shows the

[PHP] How can I output a query in a table with the output in multiple columns?

2002-06-21 Thread Latex Master
Dear List, I've got the following situation: I have a list of items i want placed in side-by-side columns in a table like this: name name name name name name name name name name name name name name name name and so on. How can I do it? Name is a string in the database. -- Best regards,

RE: [PHP] How can I output a query in a table with the output in multiple columns?

2002-06-21 Thread Jay Blanchard
[snip] I've got the following situation: I have a list of items i want placed in side-by-side columns in a table like this: name name name name name name name name name name name name name name name name and so on. How can I do it? Name is a string in the database. [/snip] -- Latex, Others

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Kondwani Spike Mkandawire
Martin Johansson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! Cookies makes me go AGHH!! Please help me with this: I am setting a cookie like this in my loginscript: setcookie(devProcCookie, cookie value.|.time(), 31536000); // Set cookie

RE: [PHP] How can I output a query in a table with the output in multiple columns?

2002-06-21 Thread John Holmes
I've got the following situation: I have a list of items i want placed in side-by-side columns in a table like this: name name name name name name name name name name name name name name name name and so on. How can I do it? Name is a string in the database. You can try something

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Kondwani Spike Mkandawire
As opposed to using the Cookies Array HTTP_COOKIES_VAR could you not just use explode the $devProcCookie using if (isset($devProcCookie)){ $tok = explode(|, $devProcCookie); } //Note this will only work if the global variables in your php.ini files are turned on... I have no idea why it can't

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
I tried your stuff but it didnt help me! Still works in explorer but when I tried it in netscape It says ERROR!!! in netscape if (isset($devProcTailorCookie)) { $tok = explode(|, $devProcTailorCookie); } else { echo ERRROR!!!; } I have global_variables turned on in my php.ini /Martin

[PHP] using extract inside an object

2002-06-21 Thread phpsurf
Hi does anyone know how to use the function extract inside an object, so as the created variables become attributes of the object ? a little example to be more explicit :) I have the following array: Array ( [one] = 1 [two] = 2 ) that I would like to transform into the following

Re: [PHP] Accessing a form variable before the form is posted

2002-06-21 Thread Duncan Hill
On Fri, 21 Jun 2002, Ma Siva Kumar wrote: In one of the forms, there is a selection for City in the address details as well as one for the port of destination. If I use the function both the the select name will be form[city_id]. The port of destination selection overwrites the form[city_id]

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Another thing! when I look in netscape/preferences/privacysecurity/cookies/view Stored Cookies.. there is no cookie for my website.. isnt that strange? /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Old config options still showing after updating PHP

2002-06-21 Thread Jason Wong
On Friday 21 June 2002 18:25, Peter Janett wrote: I have been compiling some extra configure options into PHP (4.1.2), such as --enable-xslt --with-xslt-sablot, and have had no problem getting PHP to configure, then make, then make install. Even after recompiling PHP, and then restarting

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Yes!!! I got it to work! The problem was the expirationdate in the cookie: setcookie(devProcTailorCookie, cookie value.|.time(), 31536000); Now I set it like this: setcookie(devProcTailorCookie, cookie value.|.time(), time()+10); But now it doesnt work in explorer. But I would be able to

[PHP] Data Post or Get Variable Undefined

2002-06-21 Thread Salman Ahmed
Hi, In new version of php 4.2, I am trying to do post or get of data from html form to the php page. But it says undefined variable. Is there something different in new version for post and get. It do have increased security I have read but how can I do post and get. I have changed php INI

[PHP] (SOLVED) [PHP] How can I output a query in a table with the output in multiple columns?

2002-06-21 Thread Latex Master
Hello John, PHP I used your script almost everything is worked. Thanks. Here is the script if someone will need it :) ? $count = 1; $Num_Across = 4; $Width = floor(100 / $Num_Across); while($row = MySQL_fetch_array($result)) { //create first cell $ = $count / $Num_Across; echo td

Re: [PHP] Data Post or Get Variable Undefined

2002-06-21 Thread Latex Master
Hello Salman, They have changed the method. Turn global variables on in your php.ini Friday, June 21, 2002, 4:41:30 PM, you wrote: SA Hi, SA In new version of php 4.2, I am trying to do post or get of data from html form to the php page. But it says undefined variable. Is there something

Re: [PHP] using extract inside an object

2002-06-21 Thread Remy Dufour
Try this $a = array('one'=1, 'two'=2 ); $b = (object)$a; I have the following array: Array ( [one] = 1 [two] = 2 ) that I would like to transform into the following object stdClass Object ( [one] = 1 [two] = 2 ) any idea ? -- PHP General Mailing List

Re: [PHP] insert date with a calendar

2002-06-21 Thread Erik Price
On Thursday, June 20, 2002, at 09:16 PM, Justin French wrote: When users have to enter dates on my forms, I always provide them with three drop-down menus, for day (1-31), Month (1-12) and year (usually current year, the next and the next, depending on the application). Then I have

[PHP] global variables inside of a function

2002-06-21 Thread Mark McCulligh
Is there a way to access a session variables or server variables from inside a function? I have a function and was trying to use $PHP_SELF inside of it. I get a variable undefined error. Out side of the function it works fine. I don't want to parameter pass the global variables to the function,

Re: [PHP] insert date with a calendar

2002-06-21 Thread Erik Price
On Friday, June 21, 2002, at 09:27 AM, Erik Price wrote: * @param string $defaultMonth one- or two-digit number representing a default month (if empty, defaults to current month + day multiplier) * @param string $defaultDay one- or two-digit number representing a default day of the

Re: [PHP] global variables inside of a function

2002-06-21 Thread Erik Price
On Friday, June 21, 2002, at 09:23 AM, Mark McCulligh wrote: Is there a way to access a session variables or server variables from inside a function? I have a function and was trying to use $PHP_SELF inside of it. I get a variable undefined error. Out side of the function it works

RE: [PHP] using extract inside an object

2002-06-21 Thread phpsurf
great ! I should have thought about that ! :) and any idea of how to cast into a specific class instead of stdClass ? -Original Message- From: Remy Dufour [mailto:[EMAIL PROTECTED]] Sent: vendredi 21 juin 2002 15:21 To: phpsurf; [EMAIL PROTECTED] Subject: Re: [PHP] using extract

[PHP] cut text after saving file with php

2002-06-21 Thread Georg Buske
Hello, I want to save a text - which is created in a selfmade javascipt editor - into a .cnt - file with php... It works fantastically if I work in the LAN - environment, but if I work from outside - it's still saving, but it cuts contingent some text...! I can't I understand why it doesn't

Re: [PHP] global variables inside of a function

2002-06-21 Thread Mark McCulligh
I tried using $_SERVER['PHP_SELF'] and $HTTP_SERVER_VARS['PHP_SELF'] but got the same error. I found the answer on www.php.net. function blah() { global $PHP_SELF; echo $PHP_SELF; } Thanks for your help, Mark. -- On Friday, June 21, 2002, at 09:23 AM, Mark McCulligh wrote: Is

[PHP] Re: [PHP-WIN] RE: [PHP] How to Show my Own Error Message Instead of Mysql Error?

2002-06-21 Thread Chris Boget
i made a Registration Form for user to input their Data, but i also had some Field Check before the data can be insert to the Mysql_Database! I had a question here, sometime the mysql shows the error : Duplicate Key for xxx I know what is this about, reguarding to my Registration Form, it

[PHP] dl() problem

2002-06-21 Thread adelpfephp
hi I am a new php user. I am working on linux. I have developped a c++ component who interact with MYSQL. I have compiled it onto .SO object. who can I use my methods With PHP. the dl() function return some worning. please help. -- PHP General Mailing List (http://www.php.net/) To

[PHP] syntax error while compiling php

2002-06-21 Thread David Loszewski
I'm using php-4.2.1 on FreeBSD 4.5 with Apache2, I did the configure fine, I did a './configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs', but when I do a 'gmake' it comes up with php_functions.c:93: syntax error gmake[3]: *** [php_functions.lo] Error 1 gmake[3]: Leaving directory

[PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
hi, i am facing the above issue. i set the headers up for the mail(). tried submitting the email. it worked great on linux server. but when i try to run it on a win2k. i just get: Warning: Server Error in blahblah.php on line blahblah my piece of code: $headers = MIME-Version: 1.0\r\n;

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas
On Friday, June 21, 2002, 3:14:17 PM, you wrote: i am facing the above issue. i set the headers up for the mail(). tried submitting the email. it worked great on linux server. but when i try to run it on a win2k. i just get: Warning: Server Error in blahblah.php on line blahblah my piece

[PHP] build problems(php4)

2002-06-21 Thread Yong Zhang
Hi, when I build php4.2.1 on sun solaris 8. I get the following error: # make Making all in Zend /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main     -D_POSIX_PTHREAD_SEMANTICS -I../TSRM  -g -O2 -prefer-non-pic -static -c -o z end_language_parser.lo `test -f

[PHP] Re: [PHP-DEV] PHP, Java integration failed: Red Hat 7.1, JDK 1.4,Apache 1.3x

2002-06-21 Thread Adam Maccabee Trachtenberg
William -- I've also spend a considerable amount of time trying to get this to work on Redhat 7.2 (and maybe 7.1). I did a lot of coaxing and reconfigurations. Best I can say, it doesn't work with JDK 1.4. Once I tried 1.3.x, everything went fine. My guess is that something changed in the

[PHP] Re: Rounding....

2002-06-21 Thread George Whiffen
Matthew Clark wrote: Seeing as the mathematically correct way to round numbers is to round down to n for n-1=m=n.5 and up to n+1 for n.5mn+1, I wonder why the PHP round() function couldn't include a little 'fuzz' to handle the rounding problems we encounter due to floating point

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
i tried that. using different email addresses. all of them are valid. still getting the same error. however, when i change the Cc to cc, no error was thrown. but only the To: will receive the email. the Cc: never get the mail. any other thoughts on that? Stuart Dallas wrote: That 501 is

Re: [PHP] Architecture problem? Google want index files exept the main page.

2002-06-21 Thread olinux
Are you using a 404 error to generate those deeper pages? If so you will want to send an OK header: header('HTTP/1.1 200 OK'); olinux --- Andy [EMAIL PROTECTED] wrote: Hi guys, I did recently launch my first web site and I am asking myself why google is only indexing the first page.

[PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
I was reading somewhere (can't remember where) that connecting to a db is a pretty costly transaction. DB queries aside, does anyone know of any benchmarks that demonstrate file access vs. db connections? Similarily, while DB queries offer alot of power, would it be cheaper (faster) to drop

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas
On Friday, June 21, 2002, 4:01:44 PM, Lance wrote: i tried that. using different email addresses. all of them are valid. still getting the same error. however, when i change the Cc to cc, no error was thrown. but only the To: will receive the email. the Cc: never get the mail. any other

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lowell Allen
From: Lance [EMAIL PROTECTED] i tried that. using different email addresses. all of them are valid. still getting the same error. however, when i change the Cc to cc, no error was thrown. but only the To: will receive the email. the Cc: never get the mail. any other thoughts on that?

[PHP] output control functions

2002-06-21 Thread Aljosa Mohorovic
is there some kind of problem with output buffering in php 4.2.1. i use ob_start() ob_end_clean(), ob_get_contents() to capture output. everything worked before and i don't know what could be the problem. my upgrade was focused on xml/xslt stuff. any solution/similar problem?

[PHP] Re: Rounding....Message repeated

2002-06-21 Thread George Whiffen
Repeat of previous message in thread without the extra ugly wrapping, (sorry!!!) Matthew Clark wrote: Seeing as the mathematically correct way to round numbers is to round down to n for n-1=m=n.5 and up to n+1 for n.5mn+1, I wonder why the PHP round() function couldn't include a

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread Erik Price
On Friday, June 21, 2002, at 11:19 AM, mike wrote: I was reading somewhere (can't remember where) that connecting to a db is a pretty costly transaction. DB queries aside, does anyone know of any benchmarks that demonstrate file access vs. db connections? Similarily, while DB queries

Re: [PHP] Speed tests? RAM usage displays?

2002-06-21 Thread Pekka Saarinen
At 6/21/2002, you wrote: PS What about execution time in ms (with breakpoints)? PS And is there way to measure MySQL query speed in ms? u can use microtime function function getMicrotime() { list($usec, $sec) = explode( ,microtime()); return ((float)$usec +

[PHP] Is there a replicate function in PHP

2002-06-21 Thread Don
Hi, I'd like to print one or more specific characters many times. For example, let's say I'd like to display the '*' 50 times on one line. Is there a function that will do this? Something like: ? replicate('*',50); Thanks, Don

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
yes, and it did show me whats wrong. but i have no idea why is that the case... 127.0.0.1 SMTPSVC1 RCPT - +TO:[EMAIL PROTECTED] 250 127.0.0.1 SMTPSVC1 RCPT - +TO:Cc:[EMAIL PROTECTED] 501 i don't understand why the Cc is been treated as a recipient in TO: Stuart Dallas wrote: On Friday, June

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
hm... but isn't it weird to include the cc: recipient within to: and then specifying them under cc: again? cos wouldn't it be more straight forward just to simply include all the recipient in cc: to to: and omit the cc: list. and specifying the recipient that is suppose to be in Bcc: under

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas
On Friday, June 21, 2002, 4:40:00 PM, Lance wrote: yes, and it did show me whats wrong. but i have no idea why is that the case... 127.0.0.1 SMTPSVC1 RCPT - +TO:[EMAIL PROTECTED] 250 127.0.0.1 SMTPSVC1 RCPT - +TO:Cc:[EMAIL PROTECTED] 501 i don't understand why the Cc is been treated as a

Re: [PHP] Is there a replicate function in PHP

2002-06-21 Thread Neil Freeman
echo str_repeat(*, 50); Don wrote: ** This Message Was Virus Checked With : SAVI 3.58 May 2002 Last Updated 14th June 2002 ** Hi, I'd like to

RE: [PHP] Is there a replicate function in PHP

2002-06-21 Thread Lazor, Ed
I don't know if the function exists, but it should be easy to create. Something like this: function replicate($Repeat, $RepeatCount) { $Results = ; if ( ($RepeatCount 1) or ($Repeat == ) ) return false; for ($i=0; $i $RepeatCount;$i++)

[PHP] overload extension doesn't load on PHP 4.2.1 + win2k

2002-06-21 Thread phpsurf
everything is in the subject :) the error message on apache startup is: Invalid library (maybe not a PHP library) 'php_overload.dll' anyone had this problem ? here is my phpinfo: PHP Version 4.2.1 System Windows NT 5.0 build 2195 Build Date May 12 2002 23:51:56 Server API Apache Virtual

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
yes, the + is a whitespace. hm... a bug, you could be right on that. i dont have a copy of php4.2.1 on linux to test and see if it is just windows2k that is giving the problem, or php4.2.1 is the main culprit. but i did get the same piece of code to run on php4.0.6 on linux. it runs smoothing

RE: [PHP] Is there a replicate function in PHP

2002-06-21 Thread phpsurf
have look at the function 'str_pad' http://www.php.net/manual/en/function.str-pad.php -Original Message- From: Lazor, Ed [mailto:[EMAIL PROTECTED]] Sent: vendredi 21 juin 2002 17:57 To: 'Don'; php list Subject: RE: [PHP] Is there a replicate function in PHP I don't know if the

Re: [PHP] Script text

2002-06-21 Thread Analysis Solutions
On Fri, Jun 21, 2002 at 11:03:30AM +0700, sonjaya wrote: I have capture serial port (pabx phone) ,and get the file dat like in attachement. 17/06/02 07:27:3008 00:00:59 437 2034224 ... snip ... I want make screen lay out like this 17/06/02 437 2034224 00:00:59

[PHP] any reason why mail() returns a false value?

2002-06-21 Thread Erik Price
FRUSTRATION. I figured it was time to upgrade PHP anyway since I was using 4.1.2 and then there's that Apache security problem, so I upgraded that too. And my sendmail problem is still present -- every time I try to call the mail() function, even with the simplest of arguments (the first

Re: [PHP] Stumped on a function

2002-06-21 Thread Jason Soza
To be honest, I didn't know I could format the date within my query. For some reason, I was under the assumption that since dates go into MySQL in a specific format, that's how they came out. Anyway, thanks for pointing this out to me! Very helpful. Jason Soza - Original Message -

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Christoph Grottolo
Try a recent dev-snapshot from snaps.php.net/win32. The mail function has been reworked. Christoph Lance wrote: yes, the + is a whitespace. hm... a bug, you could be right on that. i dont have a copy of php4.2.1 on linux to test and see if it is just windows2k that is giving the problem,

[PHP] problems with .htaccess - crypt-passwords doesn't mach

2002-06-21 Thread Stephan Huebner
Hi all, I'm new in here and from Germany, so I hope I can make clear what my problem is. I also didn't do too complicated things with php upto now. And the problem I have at the moment is the following: I have done a simple website as a frontend for changing the .htaccess- and .htusers-files

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
Erik, thaks for the reply. I conducted a simple/rough benchmark to which is more expensive. I tested on a Intel PIII (450MHz 384MB ram) box running Win Xp, Apache 1.3.26 and PHP 4.2.1, and mysql 3.23.49 and freeBSD of similar stats (1000MHz, 1G ram). I used the adodb database abstraction

[PHP] display_error=Off in php.ini

2002-06-21 Thread Anil Garg
Hi, In php.ini file i have set: display_errors = Off log_errors = /var/log/php-errors.log but i cant see anything coming in to php-errors.log file. I have tried to change the query in my php code...but it dispays error on the gui( the display errors doesnt seem to get off). I hope someone can

RE: [PHP] any reason why mail() returns a false value?

2002-06-21 Thread Lazor, Ed
Please send code generating the problem. -Original Message- my sendmail problem is still present -- every time I try to call the mail() function, even with the simplest of arguments (the first three required arguments, all three of them simple string literals: mail('[EMAIL

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
i downloaded php4.2.2dev and tried my codes on it. still giving me the same problem. Cc: is not been parsed correctly. so i changed to cc: and CC: no errors thrown out this time. however, only the recipient specified in To: managed to receive the email. the one specified under CC: never gets

Re: [PHP] display_error=Off in php.ini

2002-06-21 Thread Tyler Longren
Did you restart your webserver after you made the change in php.ini? If you didn't, make sure you restart it now. Restarting your webserver should fix it. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 21 Jun 2002 12:57:34 -0400 Anil Garg [EMAIL

Re: [PHP] display_error=Off in php.ini

2002-06-21 Thread Ray Hunter
Also make sure that your webserver has write privileges to the file... RAY HUNTER - Original Message - From: Anil Garg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 21, 2002 10:57 AM Subject: [PHP] display_error=Off in php.ini Hi, In php.ini file i have set:

Re: [PHP] any reason why mail() returns a false value?

2002-06-21 Thread Erik Price
Ed, thanks for taking a look at this: [eprice@media eprice]$ less public_html/testmail.php html head titlea mail Test/title /head body ?php $return = mail('[EMAIL PROTECTED]', 'subject', 'message'); print pNow, hopefully your message has been sent.; print

[PHP] php.ini not creating logs

2002-06-21 Thread Anil Garg
Hi, sorry i forgot to mention that. yes i restarted my webserver. In fact the error messages are getting hidden(on setting display_errors = Off) but the logs are not getting created:(log_errors = /var/log/php-errors.log ) in php.ini file. thanx anil -- PHP General Mailing

RE: [PHP] Re: ARRAY, IF INSERT

2002-06-21 Thread César Aracena
Thanks for the input. I wasn't considering the possibility of making a new table for kids until now which seems pretty logic when trying to save space. The only thing missing now is how to assign a unique relation number for each kid/relative. That's 1 for the first born, 2 for the second one,

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Ray Hunter
Like i said make sure the webserver has the privilege to write to the log file... S RAY HUNTER email: [EMAIL PROTECTED] www: http://www.venticon.com aim: spinebl8d3 - Original Message - From: Anil Garg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread George Whiffen
Mike wrote: Erik, thaks for the reply. I conducted a simple/rough benchmark to which is more expensive. I tested on a Intel PIII (450MHz 384MB ram) box running Win Xp, Apache 1.3.26 and PHP 4.2.1, and mysql 3.23.49 and freeBSD of similar stats (1000MHz, 1G ram). I used the adodb

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Anil Garg
ya i have tried that too.. wot else can be the problem. my php.ini looks like this: ; Print out errors (as a part of the output). For production web sites, ; you're strongly encouraged to turn this feature off, and use error logging ; instead (see below).

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Ray Hunter
Do this, set log_errors = on in your php.ini file. Do not set the error_log = file comment that line out and all other error_log ones as well. This will then log all errors to apache's log files and you can view the errors there. RAY HUNTER - Original Message - From: Anil Garg

[PHP] some one PLEASE help me!

2002-06-21 Thread Rick Kukiela
Ok, I have never, in my entire life, have such a persistant little freakin problem with a programming language... It started out while i was running 4.1.2 where sessions would not write to the disk properly. I researched and found a bug. I couldnt get php properly upgraded... dont know why so i

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Michael Sweeney
First, run a php script that calls phpinfo() and make sure that the php module in your server is running against the php.ini file you think it is. Verify the name and path of the log file. Second, make sure that errors are being reported, meaning check your php.ini file for the error_reporting

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Ray Hunter
Why don't you try using mm for the sessions...then you do not have to write to disk, it is all in memory... RAY HUNTER - Original Message - From: Rick Kukiela [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 21, 2002 12:09 PM Subject: [PHP] some one PLEASE help me! Ok,

[PHP] Log files.

2002-06-21 Thread James E. Hicks III
I was having some problems with my error logs. I just figured out what the problem was! Thought everybody might benefit from it's solution so here it goes. The problem was that the php error log was only showing errors created by my command line scripts that were being executed by cron. The

[PHP] Scree Resolution

2002-06-21 Thread Edgar
Hi, Are there any way to know what screen resolution use a user in your monitor? Thank you in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Rick Kukiela
how do u do that? - Original Message - From: Ray Hunter [EMAIL PROTECTED] To: Rick Kukiela [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 21, 2002 1:16 PM Subject: Re: [PHP] some one PLEASE help me! Why don't you try using mm for the sessions...then you do not have to write

[PHP] Resoltuion

2002-06-21 Thread Edgar
Hi, Are there any way to know what screen resolution use a user in your monitor? Thank you in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Ray Hunter
you need to compile php with-mm and then you need to edit your php.ini file to use mm instead of files. this increases your php performance for sessions. Check you phpinfo() to see if you have mm compiled in and then edit your php.ini file like this: session.save_handler = mm S RAY HUNTER

Re: [PHP] Scree Resolution

2002-06-21 Thread Duncan Hill
On Fri, 21 Jun 2002, Edgar wrote: Hi, Are there any way to know what screen resolution use a user in your monitor? See javascript. -- Sapere aude My mind not only wanders, it sometimes leaves completely. Never attribute to malice that which can be adequately explained by stupidity. --

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Rick Kukiela
Well, i would rather not have to recompile becuase of all the problems i had compiling with mod_perl and mod_ssl together with apache so does anyone else have any ideas how to get files to work??? anyone else have this problem? what gives? Rick - Original Message - From: Ray Hunter

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Rick Kukiela
umm, well i had the same problem on freebsd 4.5-release so i dunno if its neccessarily a freebsd problem, i mean the directory exists, the www has write permissions to it so it should work and it doesnt so im thinking something in php is broke. - Original Message - From: Ray Hunter

[PHP] tracing include

2002-06-21 Thread Tigran Nazaryan
Hi, is there any way to know in the included file the filename of the parent file? for example for restricting the script execution in the included file to certain files. thanks, -- Tigran Nazaryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Application level logging module

2002-06-21 Thread Purushotham Komaravolu
Hi all, Did anyone work on application level logging module ? Please let me know the correct architecture, since I am not able to create a singleton per webserver. Thanks Regards, Puru

RE: [PHP] tracing include

2002-06-21 Thread Johnson, Kirk
You could look at $HTTP_SERVER_VARS['SCRIPT_NAME'] in the included file, for one. Kirk Hi, is there any way to know in the included file the filename of the parent file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Resoltuion

2002-06-21 Thread Rodolfo Gonzalez
On Thu, 20 Jun 2002, Edgar wrote: Are there any way to know what screen resolution use a user in your monitor? From a quick search with Google: http://www.alt-php-faq.org/local/89/ Good luck. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Scree Resolution

2002-06-21 Thread Chris Hewitt
Edgar, Using Javascript, yes. This has been answered on this list about a week ago. I suggest you search the archives for the details. HTH Chris Edgar wrote: Hi, Are there any way to know what screen resolution use a user in your monitor? Thank you in advance. -- PHP General

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
George, George Whiffen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm not quite sure what you are trying to achieve, but if holding the data in a file is realistically an option i.e. your data is static, then why not consider holding your final output

[PHP] mod_mm problems now....

2002-06-21 Thread Rick Kukiela
Nothing is ever easy... I now accept this fact I cant get sessions files handler to work so now im trying to compile --with-mm, php compiles fine but when i compile apache this happens: === src/modules/php4 === src/modules gcc -c -I. -I/usr/libdata/perl/5.00503/mach/CORE -I./os/unix

  1   2   >