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
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
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
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
. 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
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
,
Deckard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
)
{
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
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
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
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
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
= ' . $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
= '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
= '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
, 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
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
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?
19 matches
Mail list logo