RE: [PHP] What do I do wrong?

2003-03-13 Thread Alex Piaz
At 20:39 13/3/2003 -0500, John W. Holmes wrote:

I'm not very good at PHP, but I'd have to say the problem is that you've
got an undefined variable called $msg on line 202 in script.php... but I
could be wrong.
LOL:-)

Alex 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PEAR AUTH :: Need some advice

2003-03-08 Thread Alex Piaz
Hi Folks!

I am working with pear auth package in order to authenticate some users on 
a project.

Well, I have a mysql table with the following columns:

uid
username
password
name
I can authenticate the user against his username/password without problems, 
but I need also to include the uid, name and age on the session generated 
by Auth. The only data I get is:

Array
(
[auth] = Array
(
[registered] = 1
[username] = geddylee
[timestamp] = 1047172433
[idle] = 1047172433
)
)

The desired results should be:

Array
(
[auth] = Array
(
[registered] = 1
[username] = geddylee
  [uid] = 2112
  [name] = Gary Lee Weinrib
[timestamp] = 1047172433
[idle] = 1047172433
)
)

I read the docs and the mailing list archives, but find nothing about it.

Any tips?

Thanks in advance.

Alex



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mcrypt

2002-12-23 Thread Alex Piaz
As far as I know, there is no mcrypt windows version. You´ll have to try to 
compile it yourself. And don´t ask me how because I don´t know:-)

A sugestion: If you can, change to linux. It´s better and it´s Free.

Regards

Alex


At 18:33 23/12/2002 -0500, Ysrael Guzmán wrote:
Hi, my server is win 2000 server and IIS 5.0
i wnat to work to MCRYPT, but i don't know...

help me please.

Por favor yo estoy trabajando con windows 2000 server, y mi servidor web
es un Internet Information Service, trabajo con PHP y Mysql...
deseo encriptar con MCRYPT, pero no viene instalado como hago...
es dificil

alguien sabe o a trabajado con esto en windows...

AYUDA!


Ysrael Guzmán Meza



--
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] Re: autocomplete list box

2002-08-30 Thread Alex Piaz

Hi! 

Go to http://javascript.internet.com and look into the forms section. 
You´ll find what you need. 

Regards 

Alex 


Petre Agenbag writes: 

 Hi
 I am wondering if it is possible to write/create/implement an
 autocomplete type list box, something that will basically work the
 same as when you have a normal textbox in a form and have autocomplete
 enabled in the browser, but not quite exactly, I want the textbox and
 the listbox to be combined and browser independant. 
 
 Is this possible? Dependant/do-able with PHP or is it a Java/Browser
 feature? 
 
 Thanks. 
 
  
 
 -- 
 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




Re: [PHP] Re: Cannot Insert into Paradox Tables...

2002-07-10 Thread Alex Piaz


Kondwani Spike Mkandawire [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I am trying to insert info. into a paradox table but receive the following
  message after inputting the data into the approriate fields...
 
  Warning: SQL error: [Microsoft][ODBC Paradox Driver] Operation
  must use an updateable query., SQL state S1000 in SQLExecDirect
  in c:\program files\apache group\apache\htdocs\coopstudent.php
  on line 47

Your problem should be about file permissions. Try to give full permissions 
to the IIS_USR for the Paradox tabel you want to extract data from.

Let me know if you have any other questions

Regards

Alex




  I am able to retrieve info. from the table but when I write some Insertion
  Code I receive the above message...
 
  This is what the code looks like...  Please help...
 
  $db = odbc_connect(MyDNS, who, null);
$dreq = INSERT INTO myTablet.db (field1, field2, field3...) VALUES
  ('$field1', '$field2', '$field3'...);
odbc_exec($db, $dreq);
 
  Thanks in advance...
 
  Kondwani
 
 



--
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




Re: [PHP] newbie: string manipulation

2002-04-24 Thread Alex Piaz

Try this:

$file = /usr/blah/doh/yuck/wow/abigfile.html;

$file = basename($file);

It will returns abigfile.html

That´s it

Regards

Alex

At 16:04 24/4/2002 -0400, ROBERT MCPEAK wrote:
I need code that grabs the file at the end of a file path.
I have this:

/usr/blah/doh/yuck/wow/abigfile.html

And would like to return this:

abigfile.html

Could somebody show me how to do this?

Thank you!

--
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] Question about send email through php script

2002-02-27 Thread Alex Piaz

Hi Folks!

I am working on a php system which sends e-mail. The system is ready to go 
now, but I am asking myself and now all of you what´s the best way to send 
this emails throug a php script:

a) Using the mail() function?

b) popen sendmail and writing the messages directly on it?

I am thinking about which could be faster and costless for the server 
processing perspective.

Regards

Alex


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sao Paulo, Brazil

2001-10-23 Thread Alex Piaz

Hi Rasmus,

I could not resist...How about to be here in São Paulo. I read that you 
lived in Brazil , is this true???

Regards


Alex Piaz
Webmaster
Global Map Internet Marketing
http://www.globalmap.com
Be cool or be cast out

RC1.0 x g/g 0/0/-/RD CP/+ 2 xk  42% [29sep2001]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Mcrypt: just a little tip:-)

2001-08-22 Thread Alex Piaz

Hi Folks!

I am working on a project where I need to encrypt some data that will be 
decrypted later by a visual basic application and also receive encrypted 
data from that application and decrypt it on the webserver. To exchange the 
data, I did some xml and everything went fine, but I can't tell you the 
same about the encryption.

We chose to use BLOWFISH cbc to encrypt the data on both ways (php and vb). 
On php I am using the mcrypt module and at the vb side, the guys are using 
a dll version of the Blowfish algoritm.

Well, we are starting to fight each other, me and the vb guys, because we 
can encrypt and decrypt data on our own applications, but the encrypted 
data from php cannot be decrypted by visual basic, and vice-versa.

Of course the key and the iv are the same on both sides and the data is 
converted to hexa before the encrypt process. I did a lot of tests 
according the manual and some other sources, and everything seems to be ok. 
The vb guys are telling me the same and we are all on a dilema now, and the 
time is becoming short

If anybody knows something about it please let me know. Another point of 
views on doing this are welcome too.
Sorry for any language mistakes I did.

Regards

Alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Mcrypt: just a little tip:-)

2001-08-21 Thread Alex Piaz

Hi Folks!

I am working on a project where I need to encrypt some data that will be 
decrypted later by a visual basic application and also receive encrypted 
data from that application and decrypt it on the webserver. To exchange the 
data, I did some xml and everything went fine, but I can't tell you the 
same about the encryption.

We chose to use BLOWFISH cbc to encrypt the data on both ways (php and vb). 
On php I am using the mcrypt module and at the vb side, the guys are using 
a dll version of the Blowfish algoritm.

Well, we are starting to fight each other, me and the vb guys, because we 
can encrypt and decrypt data on our own applications, but the encrypted 
data from php cannot be decrypted by visual basic, and vice-versa.

Of course the key and the iv are the same on both sides and the data is 
converted to hexa before the encrypt process. I did a lot of tests 
according the manual and some other sources, and everything seems to be ok. 
The vb guys are telling me the same and we are all on a dilema now, and the 
time is becoming short

If anybody knows something about it please let me know. Another point of 
views on doing this are welcome too.

Sorry for any language mistakes I did.

Regards

Alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] web hosting

2001-08-05 Thread Alex Piaz

At 23:26 4/8/2001 -0500, Damiano Ferrari wrote:
Since I am tired of switching from one web host to another because of the
limitations that are imposed... does anybody know of a host provider that
supports PHP  MySQL and that, differently from my current host, will also
allow me to upload files and install the IMAP functions?

Yep:-)

www.iserver.com


Regards


Alex Piaz
Webmaster
Global Map Internet Marketing
http://www.globalmap.com
Be cool or be cast out



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] question

2001-07-17 Thread Alex Piaz

At 20:19 17/7/2001 -0500, Rhony V. wrote:
In Asp i have this
  response.redirect name_page.asp, it's used to go to another page

what is the similar function in PhP?

A good look at the manual would satisfy your needs

http://www.php.net/manual/en

header(location:wheredoyouwanttogo.php);

That's it

Regards


Alex Piaz
Webmaster
Global Map Internet Marketing
http://www.globalmap.com
Be cool or be cast out



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Trouble on PHP4.05 on W2k/IIS

2001-06-21 Thread Alex Piaz

Hi Folks!

I've just installed php4.05 CGI at one of ours W2k/IIS5 Servers. The 
install was ok, but I cannot load any kind of extensions!

My extension_dir directive was set to c:\php\extensions, but i've tried 
./extensions c:\\php\\extensions and a lot of other combinations without 
sucess.

The error message is:

Unable to load dynamic library: ./extensions/php_domxml.dll - The 
especified module could not be found

AH! I did not choose the version with the installer, I've picked the 
binaries zipped package.

The php is working fine, but no additional extensions could be loaded by now.

Thanks to everyall

Regards

Alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] best ide for windows

2001-05-06 Thread Alex Piaz

Hi Folks!

I've tested a lot of ide's for windows, but never found anything better 
than the Allaire Homesite. (www.allaire.com)

On linux, Quanta is a good choice, since homesite does not run on linux (I 
couldn't run it through WINE).

That's it.

Alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: SV: [PHP] PHP Book?

2001-04-27 Thread Alex Piaz

Hi All!

One of the best books on PHP that I ever read is Web Application 
Development with PHP 4.0 from New Riders.

It is an advanced book, not recomend it for beginners, but the 
medium/advanced skill programmer will love it.


THat's my 10 reais (brazillian money):-)

[]'s



Alex Piaz
Webmaster
Global Map Internet Marketing
www.globalmap.com
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Those who know what's best for us -
  Must rise and save us from ourselves


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Mcrypt

2001-04-26 Thread Alex Piaz

Hi All!

It's my first post:-)

I am working on a php web application that has to interchange encrypted 
data to a VB windows standalone exe. Does anybody know the best way to do it??

I am making some tests with mcrypt_module using the BLOWFISH algorithm. On 
the web enviromment I can encrypt and decrypt data following the rules said 
at the manual, but the data that is interchanged with the VB application 
cannot be decrypted and vice-versa!

Of Course, the VC app is able to deal with the BLOWFISH algorithm, although 
it is not using the libmcrypt source, but another package who supports 
BLOWFISH. Should I say to the VB people to use the sources from libmcrypt 
instead of the actual ones?

That's it.

Regards


Alex Piaz
Webmaster
Global Map Internet Marketing
www.globalmap.com
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Those who know what's best for us -
  Must rise and save us from ourselves


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] line break

2001-04-26 Thread Alex Piaz

At 22:07 26/4/2001 -0400, you wrote:
Hi all,
I know how to get a line break in text. Is there a way to get a line break 
between the user agent string below? I would line to print in a column 
instead of a long row.

Use \n\r concatening with your actual string

See below:

?php
$newfile = fopen(log_test.txt, a+);
fwrite($newfile, getenv(HTTP_USER_AGENT).\n\r);
fclose($newfile);
?


It will work.

Regards

Alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] line break

2001-04-26 Thread Alex Piaz

At 22:23 26/4/2001 -0400, Joao Prado Maia wrote:
Actually the correct sequence is \r\n on Windows platforms. Just a small
note.

Yeah! You're right. I made a typo here:-)

Nice to know I'm not alone. See you at php-pt;-)

[]'s

Alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]