[PHP] adodb and php5
Does anyone had tested ADODB with php5? I can make a query, print the recordcount but when i try to show the result i got nothing ? require (some\\adodb.inc.php); $conn = ADONewConnection('mysql'); $conn-PConnect('some', 'some', 'some', 'some'); $seleciona = select campo from tabela ; $qry = $conn-Execute($seleciona); if (!$qry) { echo $conn-ErrorMsg(); echo erro; } else { while (!$qry-EOF) { echo $qry-fields['campo'] . br; $qry-MoveNext(); } } ? any help? thanks
Re: [PHP] adodb and php5
I use adodb cause I need an abstraction layer for database cause the application can run under mysql, mssql, oracle and pgsql. so i have one config file that has the parameters for the conection. this is the reason for me use adodb layer. now, about ADONewConnection(), this function is from adodb layer. php.weblogs.com/adodb - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Gilberto Garcia Jr. [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, September 08, 2003 5:45 PM Subject: RE: [PHP] adodb and php5 [snip] Does anyone had tested ADODB with php5? I can make a query, print the recordcount but when i try to show the result i got nothing ? require (some\\adodb.inc.php); $conn = ADONewConnection('mysql'); $conn-PConnect('some', 'some', 'some', 'some'); [/snip] You do not need the ADODB connection if you are using MySQL. Are you connecting to Access or MS SQL? If you are using MySQL look at http://www.php.net/mysql_connect . For instance, the function you use above ADONewConnection() does not exist as a PHP function. Do you declare the function in adodb.inc.php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] function is_executable
Hey guys, I made a class to work with file upload. I used the php function is_executable. and in php 4.2.x it works ok, on linux and on windows. Last week I update my php to 4.3.x and this function stop work. In fact I got this error. undefinied function. Does anyone can help? thanks
[PHP] php and mcrypt on windows
How I can use php and mcrypt on windows? I mean. What I have to do to turn php able to use mcrypt function on windows. Thanks
[PHP] php with mcrypt
Hey guys, How can I enable php to work with mcrypt functions? I´m using debian woody linux. I´ve had installed libmcrypt already, from debian cds. But I dont know how to make php understands this lib. thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fast template class
I´m a newbie on this class. But i´m getting this error. if I define a constant using define('',''); I get template as just if doesnt has parsed anithing. all constants name´s are showed without changing the name per values. So, when i define the constant as a variable $x = ''; it works fine. anyone can help? thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] login problem
Hi guys. I´m having a problem with a login system. I enter with the correct password and I press the submit button. But, nothing happens. It´s not a typinh mistake, cause when i enter the wrong pass. it returns me an error. What this can be??? thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RES: [PHP] login problem [solved]
It was a cookie problem. between php and windows. thanks -Mensagem original- De: Chris Hewitt [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 17 de maro de 2003 11:45 Para: Gilberto Garcia Jr. Cc: PHP Assunto: Re: [PHP] login problem Gilberto Garcia Jr. wrote: Hi guys. Im having a problem with a login system. I enter with the correct password and I press the submit button. But, nothing happens. Its not a typinh mistake, cause when i enter the wrong pass. it returns me an error. What this can be??? You would need to tell us a lot more about it. The most I can say at the moment is that you have a bug in your code. I suggest you put in some debug code to try to narrow it down a bit more or post the relevant part of the code here and tell us what error you are getting. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] adodb + oracle 8i
Somebody here use adodb with oracle? I´m triyng to use that, but I´m noting realize how to estabilish a conection with oracle. I´m getting the folowing error: Fatal error: Call to undefined function: ora_plogon() in e:\inetpub\wwwroot\hosted\EnsinoNet\php\adodb\drivers\adodb-oracle.inc.php on line 105 I´m triyng to conect with oracle with the folowing command: $conn = ADONewConnection('oracle'); $conn-PConnect(false, 'user', 'pass', 'bata_base_name'); can some one help? thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getting javascript string values
Hey Guys, How can I get the value of an javascript string and pass it to a php variable? i.e. script var x = test; /script ? $x = // need to get the value of x ? thanks Iced Sun
[PHP] handling files error
Hey guys, I have a red hat 7.3 server running apache and php4. It all seems working fine, but when I try to upload a file through a form I got nothing. I mean, I can ouput the temp name of the file, the final name, size and other stuff. but some functions don´t work. Like If (!is_executable($userfile_temp)) - this don´t block executables files. if I change to If (!is_executable($userfile_name)) - it´s point me that all files is executable. and when i try to move the file from /tmp directory to another directory with move_upload_file function. This func. doesn´t do anything, and doesn´t move the file to the specified directory any help are welcome []´s Iced Sun
Re: [PHP] handling files error
Thanks, but just a little part of the problem was solved. the other part is: why php doesn´t move the upload file to the specified directory, with move_uploaded_file? - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Gilberto Garcia Jr. [EMAIL PROTECTED] Cc: PHP [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 10:36 AM Subject: Re: [PHP] handling files error None of the uploaded files is executable, even if it is some .exe or shell script, simply it does not have the permission to execute. $userfile_name is only the name of the file as it was on the client's machine, there is no such file on your filesystem (unless you create it) Gilberto Garcia Jr. wrote: Hey guys, I have a red hat 7.3 server running apache and php4. It all seems working fine, but when I try to upload a file through a form I got nothing. I mean, I can ouput the temp name of the file, the final name, size and other stuff. but some functions don´t work. Like If (!is_executable($userfile_temp)) - this don´t block executables files. if I change to If (!is_executable($userfile_name)) - it´s point me that all files is executable. and when i try to move the file from /tmp directory to another directory with move_upload_file function. This func. doesn´t do anything, and doesn´t move the file to the specified directory any help are welcome []´s Iced Sun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php