[PHP] Session problem

2004-03-24 Thread carlos castillo

I want to know how can i do to make the session dont expire?. i have an
application that works with sessions, when i left the browser open for a
while, i dont know maybe 30 minutes, when i try to go into a section it
throw me an error, for session expire, how can i fic that?.

thanks.

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]


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] SMTP ERROR

2004-03-03 Thread carlos castillo

When i try to send a mail i receive the followin error

Warning: mail() [function.mail]: SMTP server response: 503 Comando o
secuencia de comandos inesperados in
E:\wwwroot\helpdesk_imagine\classes\helpdesk.class.php on line 1054

But the mail is sent, it occurs sometimes not always.

Thanks,

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]


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] session problems

2004-03-03 Thread carlos castillo

Hi, i have the followin problem, i have a site that use sessions,
sometimes when i want to write on the session i get the followin error:

Warning: Unknown(): The session id contains invalid characters, valid
characters are only a-z, A-Z and 0-9 in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (D:\PHP\tmp) in
Unknown on line 0

I see the folder D:\PHP\tmp and there is the session file, so i dont
know whats the problem, also the script works ok, the problem is that at
the end of the html show the warnings.

Any clue?, thanks.


Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]


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] Crypt code

2004-02-25 Thread carlos castillo

I want to know if you know a tool to crypt the code, all, i mean a file
php, so when i open it i only see some characters without order, like
zend, but free or where can i get zend or a similar tool.

thanks.

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]


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] Replace of ' in a query

2004-02-17 Thread carlos castillo

Hi , i have the following problem, i have a form where a user can input
any text, on that text may be a char is ' char(39) when i try to execute
the sql query, i have an error for that ', i need to replace it for the
html tag, for example " is " or by chr(39) i dont know, and then
execute the sql query.

i really appreciate your help, thanks.

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]


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] Mp3 with php?

2004-02-12 Thread carlos castillo

does anyone know how to reproduce a mp3 file with php?

Thanks

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]


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] RE: [SMARTY] Re: dreamweaver extension

2003-09-15 Thread carlos castillo

I would like to know too, where i can get the dreamweaver extension for
smarty, thanks!

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]

 
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: Mattia Cazzola [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 15 de septiembre de 2003 11:40
Para: [EMAIL PROTECTED]
Asunto: [SMARTY] Re: dreamweaver extension


It's not very clear what you mean with "dreamweaver extension for 
smarty". Smarty in not a piece of dreamweaver. Smarty is a standalone 
project, not made bi Macromedia.
Usully template files used by smarty use .tpl or .html extension. But 
that is not something special related to dreaweaver.

Pete M wrote:
> Anyone know where the dreamweaver extension for smarty is ? - its not 
> on
> Macromedia's site and the one at tiki.org crashes ;-(
> 
> tia
> 
> pete

-- 
Smarty General Mailing List (http://smarty.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] A bd problem

2003-09-04 Thread Carlos Castillo
Title: Mensaje



 
HI, i have the following 
problem
 
Im working with sql server 2000 in a windows 
xp pc, then in the bd i have a table called "noticias" and a text type field, 
when i insert into the field everything goes rigth, but when i try to get the 
info of teh field, i can get all the info, is like the variable is not enough to 
save all the info but im sure that all the info is in the bd, the code is the 
following:
 
 $consulta = new 
BaseDatos; $consulta->connect(); $sql = "select * from 
Noticias where Id=".$_GET["id"]; $res = 
$consulta->query($sql); $not = 
$consulta->fetch_row($res); $not["Descripcion"] = 
eregi_replace(chr(13),"",$not["Descripcion"]);
echo $not["Descripcion"];
when i do an echo for $not["Descripcion"] i 
can see that it doesnt have all the info of the field Descripcion on the 
table noticias.
 
can you help me please?, is 
urgent!
 
thanks!
 

Carlos A. 
Castillo.Ingeniero de desarrollo[EMAIL PROTECTED]
Su Aliado Efectivo en Internetwww.imagine.com.co(57 
1)2182064 - (57 1)6163218Bogotá - Colombia 
- Soluciones web para Internet e 
Intranet
- Soluciones para redes- Licenciamiento de 
Software- Asesoría y Soporte 
Técnico 


 


[PHP] jabber - chmod on files

2003-07-31 Thread Carlos Castillo








HI, 

 

I'm using jabber but I have
one problem, I did an administrator webpage for it, so I create the users for
jabber in that page, when I create the user, it creates a xml file with
permission of 644 and the owner is apache, but when I connect on the jabber or
that user connects the xml file changes to 600 and the owner to root.

 

The problem is that I have to
read that file after he connects but when I try I don't have access,
because the perm is on 600, 

 

How can I change the perm
from the php page, so I change with chmod 644 .xml before I open
itor how can I modify jabber so it doesn't change the perm of the
files?

 

Thanks!

 

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]



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] cookies in asp

2003-07-24 Thread Carlos Castillo








HI,

 

I have the following problem,
i have a website with php
and asp files, in one asp file i create some cookie
that i need to access on another php
file.do you have any idea.???

 

Thanks,

 

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]



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


 








RE: Re[2]: [PHP] Read a file

2003-07-08 Thread carlos castillo
Thanks, i already solve that problem, but now i have
another...sorry...jejejeje.

Look I need to change the permissions for the files, I use
$cmd = "chmod 644 $archivo";
system($cmd);

but I can do it, only the root can do thatyou have an idea how I can
do it?

Thanks,

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]

 
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: Burhan Khalid [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 08 de julio de 2003 11:03
Para: carlos castillo; [EMAIL PROTECTED]
Asunto: Re[2]: [PHP] Read a file

On Tuesday, July 8, 2003, 6:52:56 PM, carlos wrote:

cc> But them how i can look for the tag i need if i have the file in an
cc> array, i need to read an xml file and extract the info between tags
cc>  and .

Well, I wish you would have said that earlier. Parsing XML files is
different than parsing text (or other files).

PHP has XML parsing built-in thanks to expat. More information on XML
support in PHP is at http://www.php.net/xml

I have written a tutorial at my website
http://www.meidomus.com/archives/75.php that shows an
example of parsing
XML files in PHP. It does not use the XMLDOM extension. It might be of
help to you.

-- 
Regards,
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.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] Read a file

2003-07-08 Thread carlos castillo
But them how i can look for the tag i need if i have the file in an
array, i need to read an xml file and extract the info between tags
 and .

Thanks,

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]

 
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: Burhan Khalid [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 08 de julio de 2003 10:15
Para: Carlos Castillo
Asunto: Re: [PHP] Read a file

On Tuesday, July 8, 2003, 6:08:20 PM, Carlos wrote:
CC> I need to read a whole file and then look for an info on it, i want
to know
CC> with which function is better, fopen(),
fpasstrhu()...fseek()
 
The function that will be best will depend on what kind of file you
are wanting to read. For simple text files, this works well :

$contents = file("somefile.txt");

Which puts all the information in the file in an array.

http://www.php.net/file


-- 
Regards,
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com




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



[PHP] Read a file

2003-07-08 Thread Carlos Castillo








 

Hi,

 

I need to read a whole file
and then look for an info on it, i want to know with
which function is better, fopen(), fpasstrhu()...fseek()

 

Thanks,

 

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]



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] delete files from a directory

2003-06-17 Thread Carlos Castillo

Hi,

i need to delete all the files that are stored in a dir.i had try 
with this and nothing happen...

passthru ("del $path_adjuntos.$idprod/*.* /q");

i'll aprecciate your help

thanks!, and excuse me for my english


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