RE: [PHP] authentication problem

2003-02-28 Thread Daniel Masson
Is it the Win IIS authentication system ??? or apache .htaccess 



Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]

Imagine S.A. 
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico

 

-Mensaje original-
De: Oliver Witt [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 28 de febrero de 2003 10:44
Para: [EMAIL PROTECTED]
Asunto: [PHP] authentication problem

Hi again,
My problem was about authentication without the default popup, but with
a form that submits the credentials. I still didn't get it to work, so
I'd like to know if anyone has ever done anything like that. I just
can't get it to work right and I'd like to see a working script
thx,
Oliver


-- 
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] setcookie on PHP??

2003-02-12 Thread Daniel Masson
Send some pieces of code.

Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]

Imagine S.A. 
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico

 

-Mensaje original-
De: Balaravi, Bala (Ravi), ALABS [mailto:[EMAIL PROTECTED]] 
Enviado el: miércoles, 12 de febrero de 2003 12:41
Para: [EMAIL PROTECTED]
Asunto: [PHP] setcookie on PHP??

I need to set a cookie within a document in PHP? setcookie didn't work.
I guess it works only in PHP3  PHP4
Any good ideas??

Thanks
Rave

-- 
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] 3 tier web development

2003-02-07 Thread Daniel Masson
Hardik:

Maybe this can help:

Im currently using PHP using MCV (Model Control View) Methology, Model
is about libraries and classes like the business rules of your
application, 
Control has to do with the como control sentences you must use like IF,
WHILE,FOREACH, ... , and View is the look and file of the app , HTML,
IMAGES, ...

Have a look on smarty http://smarty.php.net , and there you can learn
how to use HTML and PHP

And about the databse tier .. I use a class named data_base .. with
attributes like:

-dbtype
-dbhost
-dbuser
-dbpassword

and the instances of the class can handle many databases .. and
guarantee the portability ..

I hope this helps.


Regards.
Daniel.


-Mensaje original-
De: Hardik Doshi [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 07 de febrero de 2003 10:24
Para: [EMAIL PROTECTED]
Asunto: [PHP] 3 tier web development

Hi Everyone,

I am curious to know how one can develop 3-tier web
based applications using PHP, MySQL. Here Database
should be changed in future using database abstraction
layer. Can anybody tell me in detail that how can i
build 3 tier flexible web application?

More questions on this thread:

1. How one can seperate HTML and PHP (or any other
programming code).  Is there anything in PHP so i can
seperate Interface layer and programming logic layer?

2. I know that we can use Database abstraction layer
so in future it is really easy to change database as
per need. Can any one tell me which database
abstraction layer is the best for future applications.

3. There is lots of talk about CMS today. Does anyone
know about PHP based CMS (PHP-Nuke?? i dont know)?

Currently i am making 2 tier systems (HTML+PHP,
Database) I want to switch my applications to 3 tier
(HTML, php and database). Please give me enough
guidance.

thanks 

Hardik

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
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] 3 tier web development

2003-02-07 Thread Daniel Masson
Hardik:


PHP nuke is 100% CMS, snarty offers the posibility to integrate SMART
templates to you php application, smarty templates can do lots of tasks
that you used to perform on your php scripts ... there are tutorials on
zend.com .. and im sure that if you learn how to use it ... youll be
very satisfied with smarty.


Regards.
Daniel.

Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]

Imagine S.A. 
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico

 

-Mensaje original-
De: Hardik Doshi [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 07 de febrero de 2003 10:50
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: RE: [PHP] 3 tier web development

Hi Daniel,

Thanks for your comments.

What is the difference between PHP nuke and Smarty
engine? 

Can we use PEAR or ADODB as database abstraction
layer? Which one is the best on everyone's experience?

thanks

Hardik

--- Daniel Masson [EMAIL PROTECTED] wrote:
 Hardik:
 
 Maybe this can help:
 
 Im currently using PHP using MCV (Model Control
 View) Methology, Model
 is about libraries and classes like the business
 rules of your
 application, 
 Control has to do with the como control sentences
 you must use like IF,
 WHILE,FOREACH, ... , and View is the look and file
 of the app , HTML,
 IMAGES, ...
 
 Have a look on smarty http://smarty.php.net , and
 there you can learn
 how to use HTML and PHP
 
 And about the databse tier .. I use a class named
 data_base .. with
 attributes like:
 
 -dbtype
 -dbhost
 -dbuser
 -dbpassword
 
 and the instances of the class can handle many
 databases .. and
 guarantee the portability ..
 
 I hope this helps.
 
 
 Regards.
 Daniel.
 
 
 -Mensaje original-
 De: Hardik Doshi [mailto:[EMAIL PROTECTED]] 
 Enviado el: viernes, 07 de febrero de 2003 10:24
 Para: [EMAIL PROTECTED]
 Asunto: [PHP] 3 tier web development
 
 Hi Everyone,
 
 I am curious to know how one can develop 3-tier web
 based applications using PHP, MySQL. Here Database
 should be changed in future using database
 abstraction
 layer. Can anybody tell me in detail that how can i
 build 3 tier flexible web application?
 
 More questions on this thread:
 
 1. How one can seperate HTML and PHP (or any other
 programming code).  Is there anything in PHP so i
 can
 seperate Interface layer and programming logic
 layer?
 
 2. I know that we can use Database abstraction layer
 so in future it is really easy to change database as
 per need. Can any one tell me which database
 abstraction layer is the best for future
 applications.
 
 3. There is lots of talk about CMS today. Does
 anyone
 know about PHP based CMS (PHP-Nuke?? i dont know)?
 
 Currently i am making 2 tier systems (HTML+PHP,
 Database) I want to switch my applications to 3 tier
 (HTML, php and database). Please give me enough
 guidance.
 
 thanks 
 
 Hardik
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 
 -- 
 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
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
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] 3 tier web development

2003-02-07 Thread Daniel Masson
About the database sigue .. i dont use ADOD or PEAR .. I use this:


//Class to handle ALL operations an ANY database
Class data_base (
//Predetermined value of attributes, you can safely override
this when   //do many instances of this class
$dbtype = mssql;
$duser = user;
$dbname = name;
$dbpass = x;


function connect()  {
if ($this-dbtype == mssql)   {
retrun function_to_connect_to_mssql($this-user,
 );
}
elseif ($this-dbtype == mysql)   {
retrun function_to_connect_to_mysql($this-user,
 );
}
}

function query(){
if ($this-dbtype == mssql)   {
retrun
function_to_query_mssql($this-connection,  );
}
elseif ($this-dbtype == mysql)   {
retrun
function_to_query_mysql($this-connection,  );
}
}



);




Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]

Imagine S.A. 
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico

 

-Mensaje original-
De: Hardik Doshi [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 07 de febrero de 2003 10:50
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: RE: [PHP] 3 tier web development

Hi Daniel,

Thanks for your comments.

What is the difference between PHP nuke and Smarty
engine? 

Can we use PEAR or ADODB as database abstraction
layer? Which one is the best on everyone's experience?

thanks

Hardik

--- Daniel Masson [EMAIL PROTECTED] wrote:
 Hardik:
 
 Maybe this can help:
 
 Im currently using PHP using MCV (Model Control
 View) Methology, Model
 is about libraries and classes like the business
 rules of your
 application, 
 Control has to do with the como control sentences
 you must use like IF,
 WHILE,FOREACH, ... , and View is the look and file
 of the app , HTML,
 IMAGES, ...
 
 Have a look on smarty http://smarty.php.net , and
 there you can learn
 how to use HTML and PHP
 
 And about the databse tier .. I use a class named
 data_base .. with
 attributes like:
 
 -dbtype
 -dbhost
 -dbuser
 -dbpassword
 
 and the instances of the class can handle many
 databases .. and
 guarantee the portability ..
 
 I hope this helps.
 
 
 Regards.
 Daniel.
 
 
 -Mensaje original-
 De: Hardik Doshi [mailto:[EMAIL PROTECTED]] 
 Enviado el: viernes, 07 de febrero de 2003 10:24
 Para: [EMAIL PROTECTED]
 Asunto: [PHP] 3 tier web development
 
 Hi Everyone,
 
 I am curious to know how one can develop 3-tier web
 based applications using PHP, MySQL. Here Database
 should be changed in future using database
 abstraction
 layer. Can anybody tell me in detail that how can i
 build 3 tier flexible web application?
 
 More questions on this thread:
 
 1. How one can seperate HTML and PHP (or any other
 programming code).  Is there anything in PHP so i
 can
 seperate Interface layer and programming logic
 layer?
 
 2. I know that we can use Database abstraction layer
 so in future it is really easy to change database as
 per need. Can any one tell me which database
 abstraction layer is the best for future
 applications.
 
 3. There is lots of talk about CMS today. Does
 anyone
 know about PHP based CMS (PHP-Nuke?? i dont know)?
 
 Currently i am making 2 tier systems (HTML+PHP,
 Database) I want to switch my applications to 3 tier
 (HTML, php and database). Please give me enough
 guidance.
 
 thanks 
 
 Hardik
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 
 -- 
 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
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
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] 3 tier web development

2003-02-07 Thread Daniel Masson
Mr. Holmes 

Im assuming that you can add all the other database operations and the
other dbtypes ... that was just the short version.




Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]

Imagine S.A. 
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico

 

-Mensaje original-
De: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 07 de febrero de 2003 15:35
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: Re: [PHP] 3 tier web development

 //Class to handle ALL operations an ANY database

You may want to change that... it only does 2 operations and it only
does
them for two databases...

---John Holmes...

- Original Message -
From: Daniel Masson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 11:28 AM
Subject: RE: [PHP] 3 tier web development


About the database sigue .. i dont use ADOD or PEAR .. I use this:


//Class to handle ALL operations an ANY database
Class data_base (
//Predetermined value of attributes, you can safely override
this when //do many instances of this class
$dbtype = mssql;
$duser = user;
$dbname = name;
$dbpass = x;


function connect() {
if ($this-dbtype == mssql) {
retrun function_to_connect_to_mssql($this-user,
 );
}
elseif ($this-dbtype == mysql) {
retrun function_to_connect_to_mysql($this-user,
 );
}
}

function query() {
if ($this-dbtype == mssql) {
retrun
function_to_query_mssql($this-connection,  );
}
elseif ($this-dbtype == mysql) {
retrun
function_to_query_mysql($this-connection,  );
}
}



);




Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]

Imagine S.A.
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico



-Mensaje original-
De: Hardik Doshi [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 07 de febrero de 2003 10:50
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: RE: [PHP] 3 tier web development

Hi Daniel,

Thanks for your comments.

What is the difference between PHP nuke and Smarty
engine?

Can we use PEAR or ADODB as database abstraction
layer? Which one is the best on everyone's experience?

thanks

Hardik

--- Daniel Masson [EMAIL PROTECTED] wrote:
 Hardik:

 Maybe this can help:

 Im currently using PHP using MCV (Model Control
 View) Methology, Model
 is about libraries and classes like the business
 rules of your
 application,
 Control has to do with the como control sentences
 you must use like IF,
 WHILE,FOREACH, ... , and View is the look and file
 of the app , HTML,
 IMAGES, ...

 Have a look on smarty http://smarty.php.net , and
 there you can learn
 how to use HTML and PHP

 And about the databse tier .. I use a class named
 data_base .. with
 attributes like:

 -dbtype
 -dbhost
 -dbuser
 -dbpassword

 and the instances of the class can handle many
 databases .. and
 guarantee the portability ..

 I hope this helps.


 Regards.
 Daniel.


 -Mensaje original-
 De: Hardik Doshi [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes, 07 de febrero de 2003 10:24
 Para: [EMAIL PROTECTED]
 Asunto: [PHP] 3 tier web development

 Hi Everyone,

 I am curious to know how one can develop 3-tier web
 based applications using PHP, MySQL. Here Database
 should be changed in future using database
 abstraction
 layer. Can anybody tell me in detail that how can i
 build 3 tier flexible web application?

 More questions on this thread:

 1. How one can seperate HTML and PHP (or any other
 programming code).  Is there anything in PHP so i
 can
 seperate Interface layer and programming logic
 layer?

 2. I know that we can use Database abstraction layer
 so in future it is really easy to change database as
 per need. Can any one tell me which database
 abstraction layer is the best for future
 applications.

 3. There is lots of talk about CMS today. Does
 anyone
 know about PHP based CMS (PHP-Nuke?? i dont know)?

 Currently i am making 2 tier systems (HTML+PHP,
 Database) I want to switch my applications to 3 tier
 (HTML, php and database). Please give me enough
 guidance.

 thanks

 Hardik

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com

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



__
Do you

RE: [PHP] delete query doesnt work

2003-02-07 Thread Daniel Masson
Maybe you have to use wildcards like:

mysql_query(delete from members where company like '%$delete%');??




Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]

Imagine S.A. 
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico

 

-Mensaje original-
De: Sunfire [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 07 de febrero de 2003 17:06
Para: [EMAIL PROTECTED]
Asunto: [PHP] delete query doesnt work

i have a delete query:
mysql_query(delete from members where company='$delete');

it doesnt work should i change it to :
mysql_query(delete from members where company like '$delete');??

the first one worked in mysql client but it doesnt work in php script
for
some reason...


also having problems with update... if nothing on the form changes and
it
gets submitted anyways all the records in the db gets changed to the
same
thing that one record  has in it...





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


-- 
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] Sql server -- trusted connection

2003-01-20 Thread Daniel Masson
Hello list.


I need help on this urgently.

I need to connect to a ms sql server usgin windows autentication on a
win 2000 box and IIS 5, i cant switch sql server to windows and sql
authentication, .. I really need to know hot to connect.

Thanks

Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]

Imagine S.A. 
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico

 




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




[PHP] pfpro configuration on win2000

2002-12-19 Thread Daniel Masson
Hello list !!!

Id like to know if theres a way to enable pfpro extension on windows
2000 ... Im currently usong 4.2.3 and i havnt seen any dll for this
extension in the distro 

Thanks for your help ..


Regards.
Daniel.



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




[PHP] Smarty + css + dreamweaver

2002-12-12 Thread Daniel Masson
Hi list :

This is maybe a silly question from deamweaver users, i hope you people
understand what i mean.

im working on a site php, smarty,css , etc. the directory structure of
the site is this:

--
- classes
- Files of the smarty class 
- Templates (Directory)
- template1.html
- template2.html
- template3.html
  - dw_template.dwt
script1.php
script2.php
script3.php
style.css
javasc.js
--

script1.php, script2.php, and script3.php look like this

Require /path/to/smarty/smartyfile.class.php;
$page = new Smarty;
// some stuff
$page-display(templateN.html);
//end

Im working dreamweaver Templates system so every templateN.html are
attached to dw_template.dwt, dw_template.dwt calls the style sheet like
this:

link rel=stylesheet href=../style.css type=text/css

Of course all the templatesN.html call the style shett the same way. No
problem here. But ... since scriptsN.php need the TemplatesN.html ...
(maybe im wrong with this) the browser doesnt know that
Templates/TemplatesN.html exist, the browser calls 

http://site/script1.php
http://site/script2.php

So the browser shouldnt find the style sheet because TemplatesN.html
call ../style.css and ../style.css doesnt exists relative to
http://site/scriptN.php , and for my surprise the output result DOES
apply the style sheet ... Am i wrong with this ??? Or what should i know
about all this ??

Thanks for reading this long and silly question.


Daniel.



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




RE: [PHP] Smarty + css + dreamweaver

2002-12-12 Thread Daniel Masson
Thanks for your reply ... I know about absolute paths ... My question is
why it did work ???

Cordialmente;
Daniel E. Massón.
Web: www.imagine.com.co
Te Deseamos una Feliz Navidad
y un Prospero 2,003
 


 -Mensaje original-
 De: olinux [mailto:[EMAIL PROTECTED]] 
 Enviado el: jueves, 12 de diciembre de 2002 16:14
 Para: Daniel Masson; 'PHP'
 Asunto: Re: [PHP] Smarty + css + dreamweaver
 
 
 use absolute path
 link rel=stylesheet href=/style.css
 type=text/css
 
 or 
 
 link rel=stylesheet
 href=http://www.sitename.com/style.css;
 type=text/css
 
 
 --- Daniel Masson [EMAIL PROTECTED] wrote:
  Hi list :
  
  This is maybe a silly question from deamweaver
  users, i hope you people
  understand what i mean.
  
  im working on a site php, smarty,css , etc. the
  directory structure of
  the site is this:
  
 
 --
  - classes
  - Files of the smarty class
  - Templates (Directory)
  - template1.html
  - template2.html
  - template3.html
- dw_template.dwt
  script1.php
  script2.php
  script3.php
  style.css
  javasc.js
 
 --
  
  script1.php, script2.php, and script3.php look like
  this
  
  Require /path/to/smarty/smartyfile.class.php;
  $page = new Smarty;
  // some stuff
  $page-display(templateN.html);
  //end
  
  Im working dreamweaver Templates system so every templateN.html are
  attached to dw_template.dwt, dw_template.dwt calls
  the style sheet like
  this:
  
  link rel=stylesheet href=../style.css
  type=text/css
  
  Of course all the templatesN.html call the style
  shett the same way. No
  problem here. But ... since scriptsN.php need the 
 TemplatesN.html ...
  (maybe im wrong with this) the browser doesnt know
  that
  Templates/TemplatesN.html exist, the browser calls 
  
  http://site/script1.php
  http://site/script2.php
  
  So the browser shouldnt find the style sheet because TemplatesN.html
  call ../style.css and ../style.css doesnt exists
  relative to
  http://site/scriptN.php , and for my surprise the
  output result DOES
  apply the style sheet ... Am i wrong with this ???
  Or what should i know
  about all this ??
  
  Thanks for reading this long and silly question.
  
  
  Daniel.
  
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 -- 
 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] UNA AYUDA-NOVATO PHP

2002-12-10 Thread Daniel Masson
Amigo:

Tiene que ajustar el archivo c:/winnt/php.ini

Y poner

register_globals= On


Cordialmente;
Daniel E. Massón.
Web: www.imagine.com.co
Te Deseamos una Feliz Navidad
y un Prospero 2,003
 


 -Mensaje original-
 De: Héctor Fabio Sánchez Velasco [mailto:[EMAIL PROTECTED]] 
 Enviado el: martes, 10 de diciembre de 2002 10:26
 Para: '[EMAIL PROTECTED]'
 Asunto: [PHP] UNA AYUDA-NOVATO PHP
 
 
 Soy un principiante de PHP , instale PHP 4.2.3 en un servidor 
 NT4 , con SQL SERVER 7.0 y OPTION PACK 4.0 , en el momento 
 que publico una pagina con una conexion a la base de datos 
 SQL me trae la informacion de las tablas hasta aqui todo 
 normal , pero al crear una forma con una variable escondida 
 al momento de publicarla saca un error Undefined variable  
 
 gracias
 
 
 
 
 -- 
 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] PHP Sessions

2002-12-04 Thread Daniel Masson


$_SESSION IS SUPERGLOBAL 


Are you sure? I thought $_SESSION was a superglobal.


Marco

On Wed, 2002-12-04 at 09:15, Justin French wrote:
 Good point -- are the included files functions, or other stuff??
 
 function myfunc()
 {
 return $_SESSION['something'];
 }
 
 will not work, but:
 
 
 function myfunc()
 {
 global $_SESSION;
 return $_SESSION['something'];
 }
 
 will...
 
 J
 
 
 
 on 05/12/02 1:14 AM, Ryan Gibson ([EMAIL PROTECTED]) 
 wrote:
 
  May be a silly question but are u using a global statement in the 
  include files, just a thought
  
  
  on 4/12/02 1:11 pm, Andy Kirk at [EMAIL PROTECTED] 
  wrote:
  
  Can anyone tell me if session variables should be available to 
  scripts that are included into the main script?
  
  It appears to me that they are not unless I am really missing the 
  point.
  
  
  
  
 
 Justin French
 
 http://Indent.com.au
 Web Development 
 Graphic Design
 
 
 
 --
 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




RE: Re[2]: [PHP] need advice on template engine

2002-12-03 Thread Daniel Masson

Ive been working with smarty and for me its awsome ... My advice is
SMARTY !!!


Hi Justin.


JF http://smarty.php.net seems polular

It seems to me too
but i thick may be I can miss smthng important



 Alexander A. Savenkov
 System Administrator
 mailto:[EMAIL PROTECTED]
 JSC Terminal GMB
 http://www.terminalgmb.ru


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

2002-12-03 Thread Daniel Masson


Take a look at mktime() and date() ... 

echo date(M,mktime(0,0,0,12,1,2002))


The first param of date is the format, M means month in string format
not number of month, and mktime paramas are:

int hour, int minute, int second, int month, int day, int year


This should work


Hi,

please could someone tell me how i can return a month in text from an
int ie

getMonth(12)

returns Decmber. Is this possible?

Thanks for your help



-- 
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] Php search results

2002-11-21 Thread Daniel Masson
Hello everyone ...

Im working on some kind of search engine for two little tables on text
fields on mssql, and the text fields can be very large fields, im doing
the search with SELECT FIELD FROM TABLE WHERE FIELD LIKE '%SOMTHING%' ..
My question is: 

When displaying the search results i dont want to display the entire
field, only the specific parts where the keyword was found , and bold
for the keyword and i just dony know  how to to do that, i mean
displaying the keyword in bold is no problem .. I need to know how to
display only the parts where this keyword is.

Any help will be very helpful

Thanks every1



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




RE: [PHP] help needed with forms

2002-11-21 Thread Daniel Masson
My advice is USE JAVASCRIPT

Cordialmente
Daniel Massón = Ingeniero de desarollo
[EMAIL PROTECTED]
www.imagine.com.co
Tels: (57)(1) 2182064 - 6163218
Bogotá - Colombia

- Soluciones web para internet e intranet
- Asesoría y Soporte Técnico
- Licenciamiento de Software 

 



-Mensaje original-
De: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED]] 
Enviado el: jueves, 21 de noviembre de 2002 16:28
Para: [EMAIL PROTECTED]
Asunto: [PHP] help needed with forms


Hello

I am using php based forms, which collect information from the client 
and send it in the form a email message to the admin.
I need to start using validation i.e. check whether some field/s  has 
been correctly entered in the from.
My application consists of 2 php pages
1).  info.php(this page consists of the plain form and the has its 
action parameter set to send_info.php)
2).  send_info.php  (this forms collects the information that the 
client entered and composes a message and mails it to
admin)

So I use headers in the following manner:

The send_info.php code starts like this

?
if($email =='') {
 header(Location: http://www.mysite.com/info.php;);
}
?


This takes the user back to the info.php page with all the fields reset.
What I need is that 1).  An alert box must be displayed which tells the
user where he went 
wrong
2).  Also the data that the user had entered on the form must not be 
reset to blank.

I know this sounds very trivial.
Please help me out.
Thanks
--pS

Pushpinder Singh Garcha




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




RE: [PHP] Free MySQL Hosting :)

2002-11-19 Thread Daniel Masson
AWSOME !!!

Cordialmente
Daniel Massón = Ingeniero de desarollo
[EMAIL PROTECTED]
www.imagine.com.co
Tels: (57)(1) 2182064 - 6163218
Bogotá - Colombia

- Soluciones web para internet e intranet
- Asesoría y Soporte Técnico
- Licenciamiento de Software 

 



-Mensaje original-
De: PHP Mailing List [mailto:[EMAIL PROTECTED]] 
Enviado el: martes, 19 de noviembre de 2002 8:34
Para: [EMAIL PROTECTED]
Asunto: [PHP] Free MySQL Hosting :)


As a project I'm working on that will later manifest into something
more, 
I'm offering free MySQL hosting on one of my servers. Just enter the 
desired username and password, and 3 databases will be created for you
to 
use from your PHP scripts. The info you'll need to connect to the MySQL 
server will be provided.

Don't expect some grand website when you click the URL, it's just a 
simple page I put up that does nothing but create the databases. :)

http://64.53.137.236:82/


-- 
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] Theory question

2002-11-01 Thread Daniel Masson

Hi   every1

This is a theorical question about the best way to use classes.

I have a class named anything, and also theres a table named ahything ..
The class attributes are the same fields of the table like this

Class anything {
var $something1;
var $something2;
var $something3;
}

And the table 'anything' has 3 fields they are something1 , something2,
something3, my question:

I have a method in the class that retrieves the values for the 3
attributes from the table, there are many scripts that use this method
to get the data, but not all the scripts uses the 3 attributes, for
example a script calls the method just because only needs the attribute
something1. should i write one method to retrieve each attribute ? Or is
just fine that one method gets all data, and the scripts only uses what
it needs ?? Of course, the real class has more than 3 attributes it has
10 attributes


Thanks
Any help would be very useful.

Daniel.



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




RE: [PHP] Smarty functions help

2002-10-29 Thread Daniel Masson
Thanks a lot man !! It worked perfecly !!

 






 Im using smarty template engine .. Id like to know if theres a way to 
 place php functions, specifically nl2br(), into smarty templates .. 
 Not in php script that calls smarty class.

Take a look at the modules/ folder in Smarty. You can create your own
modifier to use in your templates.

You'd want to make a file called modifier.nl2br.php

and have it's contents something like this:

?php

/*
 * Smarty plugin
 * -
 * Type: modifier
 * Name: nl2br
 * Purpose:  add br / to all newlines in string
 * -
 */
function smarty_modifier_nl2br($string)
{
return nl2br($string);
}

?

and then you'd display your value like {$value|nl2br} in the templates.

You could just use the nl2br() function in your assign(), too:

$smarty-assign('text',nl2br($text));

---John Holmes...


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




RE: [PHP] Progress bar for uploading files

2002-10-16 Thread Daniel Masson

I needed that once ... I uploaded files using ftp functions .. And then
a pop-up comes checking the size on the remote host .. And comparing
with the size on the local machine, that way a colud make that the pocp
up displays a bar and refreshes every n seconds, displaying the bar with
a longer size everytime.

Cordialmente
Daniel Massón = Ingeniero de desarollo
[EMAIL PROTECTED]
www.imagine.com.co
Tels: (57)(1) 2182064 - 6163218
Bogotá - Colombia

- Soluciones web para internet e intranet
- Asesoría y Soporte Técnico
- Licenciamiento de Software 

 



-Mensaje original-
De: Oscar F [mailto:[EMAIL PROTECTED]] 
Enviado el: miércoles, 16 de octubre de 2002 13:17
Para: [EMAIL PROTECTED]
Asunto: [PHP] Progress bar for uploading files


Hello,
 
I'm working on a file uploading script, but I need to know if there is a
way to know what's the progress of the file, so I can make la a progress
bar?.. Any ideas? Please?.
 
Thanks in advance.
 
  Oscar F.-



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




[PHP] Win nt logon user how to ?

2002-10-11 Thread Daniel Masson

Hey everyone, id like to know how to get the logon user in my NT domain,
i know that this can be done in ASP:
Request.Servervariables(LOGON_USER), and gets the logged user of the
client machine, i need to do that with PHP, ... im affraid this is not
possible because, runing phpinfo() ... this variable is not on
enviroment list.
 
is it possible what i want to do ??
 
Thanks every1 !!
 
Regards
Daniel.
 



-Mensaje original-
De: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 11 de octubre de 2002 8:49
Para: Cole Tuininga
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] Raw HTTP data


See your php.ini file:

; Always populate the $HTTP_RAW_POST_DATA variable.
;always_populate_raw_post_data = On

On 11 Oct 2002, Cole Tuininga wrote:


 Quick question - is there an equivalent to QUERY_STRING for POSTs?  I 
 need the deata to essentially be in the same format as for GETs.  If 
 the answer is build it myself from $_POST, so be it.  I was hoping 
 there was a more elegant solution though.  8)

 -Cole Tuininga
 [EMAIL PROTECTED]




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




RE: [PHP] Win nt logon user how to ?

2002-10-11 Thread Daniel Masson

Thanks, im just wondering ... There are some ASP scripts in this same
server and they get the variable perfetcly, the directories have the
same config, i dont know whats wrong with this, maybe beacuse the
gateway is CGI ???

Cordialmente
Daniel Massón = Ingeniero de desarollo
[EMAIL PROTECTED]
www.imagine.com.co
Tels: (57)(1) 2182064 - 6163218
Bogotá - Colombia

- Soluciones web para internet e intranet
- Asesoría y Soporte Técnico
- Licenciamiento de Software 
 



-Mensaje original-
De: John W. Holmes [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 11 de octubre de 2002 9:29
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: RE: [PHP] Win nt logon user how to ?


It's there...

$_ENV['LOGON_USER']

You may have to turn on some NT setting in IIS for that directory...if
you're using IIS.

---John Holmes...

 -Original Message-
 From: Daniel Masson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 11, 2002 9:55 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Win nt logon user how to ?
 
 Hey everyone, id like to know how to get the logon user in my NT
domain,
 i know that this can be done in ASP: 
 Request.Servervariables(LOGON_USER), and gets the logged user of the

 client machine, i need to do that with PHP, ... im affraid this is not

 possible because, runing phpinfo() ... this variable is not on 
 enviroment list.
 
 is it possible what i want to do ??
 
 Thanks every1 !!
 
 Regards
 Daniel.
 
 
 
 
 -Mensaje original-
 De: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes, 11 de octubre de 2002 8:49
 Para: Cole Tuininga
 CC: [EMAIL PROTECTED]
 Asunto: Re: [PHP] Raw HTTP data
 
 
 See your php.ini file:
 
 ; Always populate the $HTTP_RAW_POST_DATA variable. 
 ;always_populate_raw_post_data = On
 
 On 11 Oct 2002, Cole Tuininga wrote:
 
 
  Quick question - is there an equivalent to QUERY_STRING for POSTs?
I
  need the deata to essentially be in the same format as for GETs.  If

  the answer is build it myself from $_POST, so be it.  I was hoping

  there was a more elegant solution though.  8)
 
  -Cole Tuininga
  [EMAIL PROTECTED]
 
 
 
 
  --
  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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: MySQL back up

2002-10-10 Thread Daniel Masson

Ken ..

You have to replace

exec(mysqldump -u\$sqlusername\ -p\$sqlpassword\ \$sqldatabase\ 
$backupdir/$nam.sql);

With this

exec(mysqldump -u \$sqlusername\ --password=\$sqlpassword\
\$sqldatabase\  $backupdir/$nam.sql);

Please not the space after -u

And i agree owen about

2. $backupdir MUST BE writeable by apache

IT HAS TO WORK MAN !!


Cordialmente
Daniel Massón = Ingeniero de desarollo
[EMAIL PROTECTED]
www.imagine.com.co
Tels: (57)(1) 2182064 - 6163218
Bogotá - Colombia

- Soluciones web para internet e intranet
- Asesoría y Soporte Técnico
- Licenciamiento de Software 
 



-Mensaje original-
De: Ken [mailto:[EMAIL PROTECTED]] 
Enviado el: miércoles, 09 de octubre de 2002 22:36
Para: [EMAIL PROTECTED]
Asunto: Re: [PHP] Re: MySQL back up


Okay here is the new code and this is still not working.

?php

require(./config.php);

$sqlserver = $server1;
$sqlusername = $username1;
$sqlpassword = $password1;
$sqldatabase = $database1;

//**
$nam_bak=date('D,d-m-Y');

exec(mysqldump -u\$sqlusername\ -p\$sqlpassword\ \$sqldatabase\ 
$backupdir/$nam.sql);

exec(gzip $backupdir/$nam.sql);

?



-- 
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] Animation in PHP

2002-10-10 Thread Daniel Masson

No way man !!





  hai ,
   I want to create an animated line in php from (x,y) to
(x1,y1).will
  php support animation.if so how do i go about in doing this.how do i
  draw a char so that it keeps on changing colors till i close browser.
  thanks for help
 Arun






-- 
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] Problems with Fileupload

2002-10-10 Thread Daniel Masson


Sascha:

I worked on a web based file share system, .. Users had to select the
file(s) to share and start uploading to the remote servers, had, timeout
problems, size problems, etc. This users are inside an intranet, so i
started to use the php ftp functions, so i placed the web based
application to a local server inside the intranet, and it could handle
the files very fast and big sizes, when this local server gets the files
starts to trnsfer via ftp functions of php to the remote server, ... So
that way i avoided the problems, doing direct upload to the remote
server.

I hope this is a little helpful to you.


Hi freaks,

my image library isn't still finished yet, but it's running and with a
running system are comming new problems up.

I remember that there was a discussion about big file uploads.

It seems, that i stepped into the same trap, 'cause my web- server
doesn't accept more than two uploads each upload session. I wrote a
script which should make it possible to upload 10 files at a time. The
files are up to 3 MB each so I had to set up the upload_max_filesize in
php.ini to an 
amount of 50 MB Data. But it seems, that there still can
be uploaded about 5 or 6 MB in two files at a time.

Would be nice if somebody could tell me about made
experiences.

Thank you very much.

Sascha Braun



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




RE: [PHP] Re: MySQL back up

2002-10-09 Thread Daniel Masson

I agree everything, but
Im not very sure if this is going to work:

  $backup=@passthru(mysqldump --opt \$sqldatabase\  
  $backupdir/$nam.sql);

 You need to send mysqldump the username and password. Syntax is


 Mysqldump -uuser -ppassword databasename  filename.sql

Y think tou should use:

Mysqldump -u user --password user_password  filename.sql

I had an expirience with perl trying like John mysqldump -uuser
-ppassword databasename  filename.sql did not work, i think you have
to send the password too.


Regards.
Daniel


 -Original Message-
 From: Ken [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 7:25 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: MySQL back up
 
 Here is the code I tired to use:
 
 ?php
 
 session_start();

You don't need to start a session...

 require(./config.php);
 
 $sqlserver = $server1;
 
 $sqlusername = $username1;
 
 $sqlpassword = $password1;
 
 $sqldatabase = $database1;
 
 $nam=date('D,d-m-Y');
 
 @ $db = mysql_pconnect($sqlserver, $sqlusername, $sqlpassword);

You don't need to connect to the mysql server.

 
 if (!$db)
 
 {
 
 echo Could not connect to MySQL;
 
 exit;
 
 }
 
 $backup=@passthru(mysqldump --opt \$sqldatabase\  
 $backupdir/$nam.sql);

You need to send mysqldump the username and password. Syntax is 

Mysqldump -uuser -ppassword databasename  filename.sql

 passthru(gzip $backupdir/$nam.sql);

Why are you using passthru? Neither of these commands should return any
output, so passthru isn't returning anything. You can use backticks or
exec() instead.

---John Holmes...



-- 
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] Adding to a MySql Database

2002-09-24 Thread Daniel Masson

I agree mt, LET MYSQL DO THE JOB !!


 Marek's a bit more elegant, but I'm wondering when twelve of us press
 the  button and the database is hit bang, bang, bang. Mightn't a MySQL
 autoincrement field be better, and let MySQL do the work?

 mt

 At 07:32 PM 9/24/2002 +0200, Marek Kilimajer wrote:
Or better UPDATE table SET col = col +1

Jay Blanchard wrote:

[snip]
I have a field on a MySql database that is started with a 0, and I
 want to add 1 to this field every time a button is pressed on a form.
 So it should add one every time, like if there is 5 and you press it
 one time it would have 6.
[/snip]

1. SELECT for the current value
2. add 1 to the current value
3. UPDATE the new value

HTH!

Jay

I ain't gonna write your code for ya' or fix your computer neither

*
* Texas PHP Developers Conf  Spring 2003*
* T Bar M Resort  Conference Center*
* New Braunfels, Texas  *
* Contact [EMAIL PROTECTED]   *
*   *
* Want to present a paper or workshop? Contact now! *
*







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




RE: [PHP] generating variable names

2002-09-06 Thread Daniel Masson

Hi ... You can make it like this:

If you have 
$variable4[0]=four;

Then you can have a new variable

$$variable[0] , and the new variable´s name is four


Cordialmente

Daniel Massón = Ingeniero de desarollo

[EMAIL PROTECTED]

www.imagine.com.co

Tels: (57)(1) 2182064 - 6163218

Bogotá - Colombia



- Soluciones web para internet e intranet

- Asesoría y Soporte Técnico

- Licenciamiento de Software 



-Mensaje original-
De: Kevin Heflin [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 06 de septiembre de 2002 13:38
Para: php-general
Asunto: [PHP] generating variable names


Hoping someone can help me with this. Below I have an example of what 
I'm trying to accomplish.
Bottom line.. I need to print out $variable3[0] and $variable4[0] and my
problem is that I'm trying to generate the variable name. I can 
get this to work with $variable1 and $variable2 which are not arrays, 
however that doesn't help me much.

Any suggestions would be appreciated.

Kevin



?
$variable1=one;
$variable2=two;
$variable3[0]=three;
$variable4[0]=four;

$j=1;
while($j5){
print(${variable.$j} BR);
$j++;
}


$j=1;
while($j5){
$k=\$variable.$j.[0];
print($k BR);
print(${variable.$k} BR);
$j++;
}
?


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

2002-08-30 Thread Daniel Masson

Just do this:

Header(Location: $where_you_wanna_go\n\n);

And make sure you do this before produce any HTML autput !! Hope this is
helpful !!

How do I get PHP to automatically open another PHP page in a browser if
a condition is met?

 I have a pull down HTML table that submits a form to a PHP script.
That script then uses a little logic to figure out which web page to go
to.  I have 5 different pages, and each has different content.  Right
now, I can make it bring up links, but I can't figure a way out to make
it automatically go to the proper web page.

I know this has to be easy, but I can't find any info one it.

Thanks for your help,

Brian



-- 
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] Passing variables between servers

2002-08-21 Thread Daniel Masson


Hi !!

I know you said you cont want to use cookies ... I suggest that place
encrypted data in a cookie and in the win2000 machine place a php script
that read the data in the cookie, uncryptit and some how set the info
for the asp script, a plain text file or something ...

I hope this is useful.



-Mensaje original-
De: Mark McCulligh [mailto:[EMAIL PROTECTED]] 
Enviado el: miércoles, 21 de agosto de 2002 12:23
Para: [EMAIL PROTECTED]
Asunto: [PHP] Passing variables between servers


I have two server.  One running PHP/Linux the other running ASP/2000.
The user logins into the PHP server and session variables are made to
hold their username, password, department, etc..  The site from time to
time redirect the user to the ASP server.  I want to pass the session
variable across to the other server.  I can't use the GET method.
(www.domain.com/form.asp?username=Mark.) because putting the
password on the address bar is not an option.  The ASP server will
redirect them back when they are done on it. It will pass back the
variables just in case the session on the PHP server has expired for the
PHP server can create a new session if needed.

I don't want to use a cookie.

I was thinking of using cURL but I can't fine any information about
using it in ASP.  I know how to use cURL in PHP to redirect the user to
the ASP server and pass the variables in the POST method, but not the
other way.

Any ideas would be a GREAT help.
Mark.

_
Mark McCulligh, Application Developer / Analyst
Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED]



-- 
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] session lost when back button hit?

2002-08-16 Thread Daniel Masson


HI

make ser youre using session_start() before performing any action on
sessions, also make sure you´re registering properly the variables.


-Mensaje original-
De: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 16 de agosto de 2002 9:43
Para: [EMAIL PROTECTED]
Asunto: [PHP] session lost when back button hit?


I have two pages, page one links to page two via a form button. The 
browser does not accept cookies.

On page two I create a session variable with:

$_SESSION[id] = 1;

But if I hit the back button to go back to page one $_SESSION[id] is 
not set. If I hit the reload button on page one it is still not set.

How can I get a session var to stay set when someone hits the back
button?

Jc

PS I have session.auto_start ON and enabled trans-sid


-- 
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] secure files acess

2002-08-16 Thread Daniel Masson

Hi there !!!

I had the same problem once ...

This will save you !!

http://www.zend.com/zend/trick/tricks-august-2001.php


I have a bunch of files which need to be kept secure. I need to allow a
user access to them them based on a criteria which I can
programmatically determine.

My question, is how can I allow the user to download or view only one
file on my computer without allowthem to just enter the URL into their
browser of the file and view it?


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




RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Daniel Masson


I ... Had to do something like that recently .. Sending files through
ftp_put(); i just send the file .. And when user clicks 'Send' button
... A pop-up appears and gets the file size of the remote file and
comparing with de local size you can build a progress bar  This
pop-up uses the tag that Peter said HTTP-REFRESH so you can see how the
file size increases every n seconds ... It worked for me .. I hope this
can help !!

= Daniel


This wouldn't work for uploading files however since the long part of
the process is the act of uploading the file and until that completes
your save.php (or whatever) isn't called.

So in regards to file uploading it has to be done with Javascript.  What
you do below is great for scripts that just take a long time though.

-philip

On Fri, 16 Aug 2002, Peter J. Schoenster wrote:

 On 16 Aug 2002 at 23:40, electroteque wrote:

  hi guys i was wondering if there was anyway to have a progress bar 
  for uploading images ?

 TMTOWDI, but here is a way I did something similar. I was spidering 
 remote sites and to get user's data and store in a database and the 
 user could not continue until the spider spun it's web.

 I accpeted the data I needed and then returned a page with the 
 HTTP-REFRESH tag in it with something like this

 meta http-equiv=Refresh content=10; 
 URL=http://yoursite.com/verify_upload?process_id=Xamp;action=check_up
 loadamp;timer=X

 So it refreshes every 10 seconds and checks to see if process X  has 
 finished, if so then redirect to the next step,  if not then just 
 return but upgrade the timer so you can increase your counter (perhaps

 a percentage in a table cell).


 Peter





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




RE: [PHP] Redhat Linux 7.2

2002-08-14 Thread Daniel Masson


Usually in the RedHat cd´s you can find php-mysql-*.*.rpm, after
installing this package you´re ready to go !!

= Daniel.


On Wednesday 14 August 2002 19:21, Tim Haynes wrote:
 I have just installed Redhat Linux 7.2, the installation was fine at 
 it installed apache with php 4.0.6 as default, that runs without 
 problems. Unfortunately I noticed that PHP was not compiled with mysql

 support and there was no distribution of mysql with linux so please 
 can anyone help by explaining what I need to do to resolve these 
 problems.

RH7.2 does come with everything to get Apache/MySQL/PHP working
together. To 
get MySQL support in PHP, install the php-mysql-X.rpm.

For further help ask on the RH7.2 (Enigma) mailing list.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
The wise man seeks everything in himself; the ignorant man tries to get
everything from somebody else. */


-- 
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] Mysql connect through proxy

2002-08-13 Thread Daniel Masson


Hello everyone id like to know if theres a way to connect to mysql via
proxy ... I really need to !!  
Any tip or help would be very useful !!




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