[PHP] Crystal Reports PHP MySQL

2002-10-15 Thread Webmaster MBTRADINGCO

Hi does anyone knows if Crystal Reports works fine with PHP MySQL
Enviroment, or can anyones suggest me a good reporter for PHP MySQL
Site?

The Vampmaster.




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




[PHP] Does anyone knows File Maker

2002-10-03 Thread Webmaster MBTRADINGCO

I ran yesterday into a company that wants me to implement a solution
with PHP and File Maker. I don't even know if it is possible, so I was
wondering:

A) Does anyone has any experience with filemaker?
b) Can PHP save data from internet via ODBC to a database (other than
the ones it supports) in a windows server?
c) Does anyone knows if PHP supports file maker?

Thanks in advance.


Elliot J. Balanza



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





[PHP] Getting users IP address into a variable.

2002-10-02 Thread Webmaster MBTRADINGCO

I'm sure there has to be a way to verify which IP address is accessing
from. I need to establish a page where when I enter it records the IP
address I'm logging in from, to a database.

Problem is I can't seem a command in php that can assign that to a
variable, as in:

$ip=HTTP_GET_

ANY IDEAS

Thanks


Elliot J. Balanza



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




RE: [PHP] Getting users IP address into a variable.

2002-10-02 Thread Webmaster MBTRADINGCO

Actually I'm just using it so a customer can acces a PWS that is
broadcasting on its own security cameras. I have a DSL that disconnects
every 8 hours, and gives dinamyc IP, so each time it connects it goes to
my site, and writes down the addres, so my customer can access the
report, and see what is the current IP address for it's server.

Thanks to all it worked.

-Mensaje original-
De: Jon Haworth [mailto:[EMAIL PROTECTED]] 
Enviado el: Miércoles, 02 de Octubre de 2002 10:19 a.m.
Para: [EMAIL PROTECTED]
Asunto: RE: [PHP] Getting users IP address into a variable.

Hi,

  I'm sure there has to be a way to verify which IP 
  address is accessing from.
  $ip=HTP_GET_
  
 $REMOTE_ADDR

...and to deal with some (but not all) proxies:

$ip = (getenv(HTTP_X_FORWARDED_FOR))
?  getenv(HTTP_X_FORWARDED_FOR)
:  getenv(REMOTE_ADDR);

Either way you're still going to get stuff that isn't right, so make
sure
(a) you validate the contents of $ip before doing anything with it, and
(b)
you're not using it for anything critical.

Cheers
Jon

-- 
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] Sessions and variables dum question

2002-06-18 Thread webmaster mbtradingco

Hi, maybe I'm doing something wrong but I can't figure out what. I have a little 
script that is supposed to handle two variables from a session, so when a user logs in:

Session start()
$user = user
$pass = pass... redirects to another page.

Now on the index page it reads 

Session start()
Global $user, $password;
If (empty($user))
   Die(You need to be registered to see this page)
Else ...

This works fine... the first time you use it, if someone tries to log in, from 
outside, it gives them an error message, the problem is that if I log in correctly, 
and lets say go to another restricted page, while I use the exact same header, it 
always takes $user as empty in the second page, and then if I try to go back to the 
first page, now $user is also empty...

I thought once you registered a variable in a session, it was supposed to be available 
through the global instruction for the whole section, but in this case it seems to 
disappear after the first page... funny, cause I don't pass the variable the first 
time through a post, or get, but rather by registering the variable before going to 
index.

Any ideas, of what I'm doing wrong?


__
Elliot Balanza
ICQ#: 146854957
Current ICQ status:  


  More ways to contact me 
  See more about me: 
__




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




RE: [PHP] Trying to list a directory content HELP PLEASE

2002-06-07 Thread webmaster mbtradingco

Hey Scott, that at least helped me to find out what is going wrong.

When I use the code as you told me...

   $fd=readdir(/home/casapu/paginas /image/caterleras/);
   if (!$fd) die (Can't read dir);

It gives me:
Warning: Supplied argument is not a valid Directory resource in
/home/casapu/paginas/mbt/php/dir.php on line 7
Can't read dir

So I'm assuming is not accepting the directory. I have checked the
permits, and it has all enabled, read, write and executable.
I have tried with the final slash, and without it, and so far it keeps
giving me that message... any ideas?



-Mensaje original-
De: Scott Hurring [mailto:[EMAIL PROTECTED]] 
Enviado el: Jueves, 06 de Junio de 2002 15:26
Para: '[EMAIL PROTECTED]'
Asunto: RE: [PHP] Trying to list a directory content HELP PLEASE

Instead of chdir() try putting the path directly into 
readdir();  it'll make the code a tiny bit cleaner.

readdir(/home/casapu/paginas/images/carteleras);

** and check return values! **

$fd = readdir(...)
if (!$fd) die(Cannot readdir);

The code you have *should* work, but you'll never
know why it's not working if you don't check return
statuses

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

 -Original Message-
 From: Jason Wong [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 06, 2002 3:44 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Trying to list a directory content HELP PLEASE
 
 
 On Friday 07 June 2002 00:47, webmaster mbtradingco wrote:
  I know my doubt is probable odd, but I would ask your help please.
 
  I need a user to be able to select an image from a directory, from a
  drop down box. For this I need to list all the images 
 available on the
  directory, hence, I have this code:
 
 select size=1 name=normal1
  ?php
chdir(/home/casapu/paginas/images/carteleras);
$direc = opendir(.);
while ($f = readdir($direc)); {
print(option value=\.$f.\.$f./option);
 }
  ?
 ./select);
 
  but this is not working. I have reviewed the code against all the
  manuals/books I have, and it says it should work but it 
 doesn't. Anyone
  knows what I'm doing wrong?
 
 how doesn't it work?
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications 
 Development *
 
 /*
 Fashions have done more harm than revolutions.
   -- Victor Hugo
 */
 
 
 -- 
 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Trying to list a directory content HELP PLEASE

2002-06-06 Thread webmaster mbtradingco


I know my doubt is probable odd, but I would ask your help please.

I need a user to be able to select an image from a directory, from a
drop down box. For this I need to list all the images available on the
directory, hence, I have this code:

   select size=1 name=normal1
?php
  chdir(/home/casapu/paginas/images/carteleras);
  $direc = opendir(.);
  while ($f = readdir($direc)); {
  print(option value=\.$f.\.$f./option);
   }
?
   ./select);

but this is not working. I have reviewed the code against all the
manuals/books I have, and it says it should work but it doesn't. Anyone
knows what I'm doing wrong?

HELP PLEASE

VV



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




[PHP] Timed Jobs.

2002-02-20 Thread webmaster mbtradingco








Hi:



I was wondering if it is posible to make in PHP a cron
job, that will trigger an event (i.e. send an e-mail) long after the process of
the data has taken place, like programming an e-mail to go out, on an specified
date.



My question is, since the script is run and triggered
by the user, how can u trigger the later sending of the mail?



Thanks.








[PHP] form opens a php window.

2002-02-17 Thread webmaster mbtradingco








Hi, I have a form, that I need to control the parameters in the _blank target
once it is submitted.



Everything works, fine except the client wants the
result of the poll in a popup window, and I am not able to control the parameters on the new window.



Can any one help me with this? Thanks.



E








[PHP] Help please

2002-02-16 Thread webmaster mbtradingco








Im trying to control the way a new window opens when submiting
a form.



When I do it from a regular button, I use:



p align=center a href="#pv"
>rollbars=0,width=300,height=340,top=150,left=150');return
true



and it works, it opens the new window, but Im
not transferring any values in here.



What I want to do is that when I push the submit
button of a form, it opens in the same window size as the prior example. I hope
you can assist me.



E.








RE: [PHP] Help please

2002-02-16 Thread webmaster mbtradingco

Thanks… I hope you can assist me a little more.

 

I put the text like this:

 

input type=Button value=Enviar
style=background-color: #E9B361
onClick=window.open('php/encuesta.php','1','scrollbars=0,width=300,heig
ht=340,top=150,left=150',document.forms[0].submit());return true

 

but it opens the new window (like it is supposed but it carries no
data), and the main window changes like if no value was added. This is
the third consecutive form in the page, and the form header is like
this.



form method=POST  action=php/encuesta.php
target=_blank onSubmit=submitonce(this) name=”poll”

 

where submitonce(this) is a function that disables the button after one
submission is made.

 

Help please.

 

Thanks

 

The site is www.papelesdeviaje.com http://www.papelesdeviaje.com/  and
is the poll in question. You can access below the enviar, and see what I
need the submit button to do.

 

Thanks.

-Mensaje original-
De: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] 
Enviado el: Sábado, 16 de Febrero de 2002 20:43
Para: webmaster mbtradingco
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] Help please

 

Since you're assuming Javascript anyway, you can use a input
type=button instead of input type=submit and use the same
javascript code as for the a href, just that you append a
document.forms[0].submit().

HTH

Bogdan

webmaster mbtradingco wrote:



I’m trying to contro l the way a new window opens when submiting a form.

 

When I do it fro m a regular button, I use:

 

p align=center a href=#pv
onClick=window.open('php/resulta.php','1','sc
rollbars=0,width=300,height=340,top=150,left=150');return true

 

and it works, it opens the new window, but I’m not transferring any
values in here.

 

What I want to do is that when I push the submit button of a form, it
opens in the same window size as the prior example. I hope you can
assist me.

 

E.

 




RE: [PHP] Help please

2002-02-16 Thread webmaster mbtradingco

Thanks… I hope you can assist me a little more.

 

I put the text like this: 

 

input type=Button value=Enviar
style=background-color: #E9B361
onClick=window.open('php/encuesta.php','1','scrollbars=0,width=300,heig
ht=340,top=150,left=150',document.forms[0].submit());return true

 

but it opens the new window (like it is supposed but it carries no
data), and the main window changes like if no value was added. This is
the third consecutive form in the page, and the form header is like
this.



form method=POST  action=php/encuesta.php
target=_blank onSubmit=submitonce(this) name=”poll”

 

where submitonce(this) is a function that disables the button after one
submission is made.

 

Help please.

 

Thanks

 

The site is www.papelesdeviaje.com http://www.papelesdeviaje.com/  and
is the poll in question. You can access below the enviar, and see what I
need the submit button to do.

 

Thanks.

 

 

-Mensaje original-
De: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] 
Enviado el: Sábado, 16 de Febrero de 2002 20:43
Para: webmaster mbtradingco
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] Help please

 

Since you're assuming Javascript anyway, you can use a input
type=button instead of input type=submit and use the same
javascript code as for the a href, just that you append a
document.forms[0].submit().

HTH

Bogdan

webmaster mbtradingco wrote:



I’m trying to contro l the way a new window opens when submiting a form.

 

When I do it fro m a regular button, I use:

 

p align=center a href=#pv
onClick=window.open('php/resulta.php','1','sc
rollbars=0,width=300,height=340,top=150,left=150');return true

 

and it works, it opens the new window, but I’m not transferring any
values in here.

 

What I want to do is that when I push the submit button of a form, it
opens in the same window size as the prior example. I hope you can
assist me.

 

E.

 




RE: [PHP] Help please

2002-02-16 Thread webmaster mbtradingco

I'm sorry but I cant seem to make it work.

The form instruction is now:

form method=get onSubmit=submitonce(this)

The Button Instruction is now:

input type=Button value=Enviar style=background-color: #E9B361
onClick=document.forms[1].submit();window.open('php/encuesta.php','1','
scrollbars=0,width=300,height=340,top=150,left=150');return true
   
Still when the new window opens is stops cause it does not have any
values with it.

What am I doing wrong here, if I add an action statement in the form,
then it opens the php procedure in the same window an works. If I add a
_blank target it also works, but the new window never works.

Thanks.



-Mensaje original-
De: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] 
Enviado el: Sábado, 16 de Febrero de 2002 21:51
Para: webmaster mbtradingco
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] Help please

You should make up your mind - do you want to use the form in order to 
carry the data (use submit()) or do you want to submit the data via URL 
(GET method - using window.open()). You can't use both!

Bogdan

webmaster mbtradingco wrote:

Thanks... I hope you can assist me a little more.

 

I put the text like this: 

 

input type=Button value=Enviar
style=background-color: #E9B361
onClick=window.open('php/encuesta.php','1','scrollbars=0,width=300,hei
g
ht=340,top=150,left=150',document.forms[0].submit());return true

 

but it opens the new window (like it is supposed but it carries no
data), and the main window changes like if no value was added. This is
the third consecutive form in the page, and the form header is like
this.



form method=POST  action=php/encuesta.php
target=_blank onSubmit=submitonce(this) name=poll

 

where submitonce(this) is a function that disables the button after one
submission is made.

 

Help please.

 

Thanks

 

The site is www.papelesdeviaje.com http://www.papelesdeviaje.com/
and
is the poll in question. You can access below the enviar, and see what
I
need the submit button to do.

 

Thanks.

 

 

-Mensaje original-
De: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] 
Enviado el: Sábado, 16 de Febrero de 2002 20:43
Para: webmaster mbtradingco
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] Help please

 

Since you're assuming Javascript anyway, you can use a input
type=button instead of input type=submit and use the same
javascript code as for the a href, just that you append a
document.forms[0].submit().

HTH

Bogdan

webmaster mbtradingco wrote:



I'm trying to contro l the way a new window opens when submiting a
form.

 

When I do it fro m a regular button, I use:

 

p align=center a href=#pv
onClick=window.open('php/resulta.php','1','sc
rollbars=0,width=300,height=340,top=150,left=150');return true

 

and it works, it opens the new window, but I'm not transferring any
values in here.

 

What I want to do is that when I push the submit button of a form, it
opens in the same window size as the prior example. I hope you can
assist me.

 

E.

 






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