[PHP] Class returning more than one value

2006-10-14 Thread Deckard
Hi, How can i code a class with a function that returns more than one value ? Any help would be appreciated. Warm Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detected a pattern that malfunctions includes

2006-10-06 Thread Deckard
Hi, I've already set my include_path to /var/www/html and good :( Best Regards, Deckard Richard Lynch wrote: > On Fri, October 6, 2006 11:17 am, Deckard wrote: >> I see now that only when the inclu function "has to scale up in the we >> tree", it fails. >&

[PHP] Detected a pattern that malfunctions includes

2006-10-06 Thread Deckard
Hi, I see now that only when the inclu function "has to scale up in the we tree", it fails. For example: This works: include_once("classes/database/dBInsert.php"); This don't: include_once('../adodb/adodb.inc.php'); Any ideas ? Warm Regards, Deckard

Re: [PHP] Re: Really strange / TYPO

2006-10-05 Thread Deckard
Hi Richard, Thank you so much for your answer. dbInsert.php is in /var/www/html/classes while config.inc.php is in /var/www/html With your code, the file is always searched in /var/www/html/classes and not in /var/www/html Warm Regards, Deckard Richard Lynch wrote: > On Thu, October 5, 200

Re: [PHP] See if this makes any sense / Att. Richard Lynch

2006-10-05 Thread Deckard
people. That's what i'm seeking here: help. Not that someone do the my job for me. Best Regards, Deckard > > $query = "insert ..."; > $insert = mysql_query($query, $connection); > > It's not like you can take your MySQL user-creating queries and > direc

[PHP] See if this makes any sense

2006-10-05 Thread Deckard
Hi, I've burned my brain, checked other sites and come to a code that works. I ask you, please, to see if this makes any sense and/or can be improved. I'd really appreciate. Warm Regads, Deckard dbInsert.php: --- tabl

Re: [PHP] Re: Really strange / TYPO

2006-10-04 Thread Deckard
Yes, permissions are fine :( Ben Ramsey wrote: > On 10/4/06 9:14 PM, Deckard wrote: >> It's a typo. >> The file is really config.inc.php everywhere > > Check the file permissions. Does the Webserver have permission to read > from the /var/www/html (it probably

[PHP] Help on objects

2006-10-04 Thread Deckard
l'); $conn->PConnect('localhost', 'deckard', 'ble', 'wordlife'); if ($conn->Execute($sql) === false) print 'error inserting: '.$conn->ErrorMsg().''; return (T

Re: [PHP] Re: Really strange / TYPO

2006-10-04 Thread Deckard
Hi, It's a typo. The file is really config.inc.php everywhere Regards, Deckard Ben Ramsey wrote: > On 10/4/06 8:32 PM, Deckard wrote: >> Hi, >> >> I have this line of code: >> include_once('../config.inc.php'); >> >> I'

[PHP] Really strange

2006-10-04 Thread Deckard
boggled! Any help would be appreciated. Best Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Breaking lines - att. Richard Lynch

2006-10-03 Thread Deckard
Hi Richard, Richard Lynch wrote: > First, you're scaring the [bleep] out of me from a security standpoint > writing mysql passwords into files... I'm curious. What would you do ? No kidding intended. I'm serious. Warm Regards, Deckard -- PHP General Mailing List (ht

Re: [PHP] Breaking lines

2006-10-03 Thread Deckard
se... I'me not an expert, but also not a nerd :) > Next, you are missing the ';' at the end of each line to make valid > PHP code. I know. I missed it. Best Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Breaking lines / STILL :(

2006-10-03 Thread Deckard
Hi, Yes, it worked, but there's this strange thing. The output of in to the file is: $stringData = ""; is: i. e., the variable $mysql_user_password within quotes is assuming its value, not the string $mysql_user_password, while the others are ok. *sigh* Warm Regards,

Re: [PHP] Breaking lines

2006-10-03 Thread Deckard
Hi Yes, it worked, but there's this strange thing. The output of in to the file is: $stringData = ""; is: i. e., the variable $mysql_user_password within quotes is assuming its value, not the string $mysql_user_password, while the others are ok. *sigh* Warm Regards,

Re: [PHP] Breaking lines / NEW

2006-10-03 Thread Deckard
Hi Brad, Thanks a lot for your answer and the other guys too. It worked. Now i have another doubt: $stringData = ''; The variables contents should be written in the files within quotes, like: $mysql_username = 'deckard'; This is getting me nuts. Any ideas ? Warm Re

[PHP] Breaking lines

2006-10-03 Thread Deckard
ead of breaking a line, it appears in the file the string \n How can i make the line break ? Any help would be appreciated. Best Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Breaking lines

2006-10-03 Thread Deckard
ead of breaking a line, it appears in the file the string \n How can i make the line break ? Any help would be appreciated. Best Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Breaking lines

2006-10-03 Thread Deckard
ead of breaking a line, it appears in the file the string \n How can i make the line break ? Any help would be appreciated. Best Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Strange error in PHP/MySQL

2006-10-01 Thread Deckard
licate entry 'localhost-' for key 1" I can't see nothing wrong with it and if i run it in MySQL's prompt everything's fine. Any ideas ? Besta Regards, Deckard. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems creating a user in MySQL

2006-10-01 Thread Deckard
;localhost-gamito' for key 1 --- although the pair 'localhost-gamito' is not duplicated and i can be assured os this, because it works perfectly well in the MySQL prompt. Can someone help me, please ? Best Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to check if a session exists

2002-01-07 Thread Deckard Q.
if (session_is_registered("variable")) { ... } - Original Message - From: "Alex Shi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 20, 2001 11:34 PM Subject: [PHP] How to check if a session exists > If a sesson_id is known, how can check if the session exists