[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

[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 -- PHP General Mailing List (http

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. For example: This works: include_once

[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: --- ?php

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

2006-10-05 Thread Deckard
. 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 directly map them to ANY other database on the planet... So what does the DB abstraction and class OOP

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, 2006 2

[PHP] Really strange

2006-10-04 Thread Deckard
, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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'm 100% sure that the file config.inc.php is a directory up. config.inc.php is in /var

[PHP] Help on objects

2006-10-04 Thread Deckard
) { print($sql); // connect to MySQL $conn-debug=1; $conn = ADONewConnection('mysql'); $conn-PConnect('localhost', 'deckard', 'ble', 'wordlife'); if ($conn-Execute($sql) === false) print 'error inserting: '.$conn-ErrorMsg().'BR

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 does, but it wouldn't hurt to check)? Does

[PHP] Breaking lines

2006-10-03 Thread Deckard
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
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
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

Re: [PHP] Breaking lines / NEW

2006-10-03 Thread Deckard
= ' . $mysql_user_password . \n\n . '?'; The variables contents should be written in the files within quotes, like: $mysql_username = 'deckard'; This is getting me nuts. Any ideas ? Warm Regards, Deckard Brad Bonkoski wrote: Deckard wrote: Hello, I have this code to write three lines in a file

Re: [PHP] Breaking lines

2006-10-03 Thread Deckard
= 'wordlife' $mysql_username = 'gamito' blabla = 'blabla' ? 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, Deckard Brad Bonkoski wrote: Deckard wrote: Hello, I have this code

Re: [PHP] Breaking lines / STILL :(

2006-10-03 Thread Deckard
= 'wordlife' $mysql_username = 'gamito' blabla = 'blabla' ? 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, Deckard Brad Bonkoski wrote: Deckard wrote: Hello, I have this code

Re: [PHP] Breaking lines

2006-10-03 Thread Deckard
, 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 - 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 (http://www.php.net

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?