[PHP] weird behavior: Apache mod rewrite

2010-02-26 Thread Alberto Lepe
Hello everyone, this is my first time in this mailing list.
Using: PHP Version 5.2.10-2ubuntu6.4, Apache/2.2.12

I'm redirecting all the request into one file with ( .htaccess ):

RewriteEngine On
RewriteRule .* index.php

My index code is:

?php  echo $_SERVER[REDIRECT_URL];  ?

In the same directory I just have other file besides index.php. And
depends on how this file is named, I'm getting
different values for the same request:

Request: /menu.html

Filename: menu.html
Output: /menu.html
Result: OK!

Filename: menu.html.bak
Output: /menu.html.bak
Result: NOT GOOD!

Filename: menu.html.whatever.other
Output: ERROR 404 (from apache)
Result: NOT GOOD!

Could someone please explain me why I'm getting this weird behavior?

As the request is the same, I expected to display always the same
value. Am I'm wrong??

Thank you.

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



[PHP] eAccelerator Loader can't load code. Incorrect Zend Engine

2010-01-30 Thread Alberto García Gómez
After many tries I have this error still persisting in my server. It's a script 
that was coded using phpcoder and just request eAccelerator (or e Loader) to 
work. I, of course, install both (eAcc better) and then this error cames out.

What I must do??? How can I know what Zend Engine is requesting???

Saludos Fraternales
_
Atte.
Alberto García Gómez M:.M:.
Administrador de Redes/Webmaster
IPI Carlos Marx, Matanzas. Cuba.
0145-2887(30-33) ext 124


__ Información de ESET NOD32 Antivirus, versión de la base de firmas de 
virus 4821 (20100130) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com



[PHP] XAMPP PHP 4/5

2010-01-25 Thread Alberto García Gómez
There's a think that I don't understand and I really really need to know. Can 
XAMPP run PHP4 and PHP5 at th same time? How?

Saludos Fraternales
_
Atte.
Alberto García Gómez M:.M:.
Administrador de Redes/Webmaster
IPI Carlos Marx, Matanzas. Cuba.
0145-2887(30-33) ext 124


__ Información de ESET NOD32 Antivirus, versión de la base de firmas de 
virus 4805 (20100125) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com



[PHP] PHPCoder Help

2010-01-20 Thread Alberto García Gómez
I have a couple of php script coded with PHPCoder, which (I don't know why) 
isn't working. I need someone who can decode those scripts for me and send me 
the codes decrypted or teach me how do it...thanks a lot

Saludos Fraternales
_
Atte.
Alberto García Gómez M:.M:.
Administrador de Redes/Webmaster
IPI Carlos Marx, Matanzas. Cuba.
0145-2887(30-33) ext 124


__ Información de ESET NOD32 Antivirus, versión de la base de firmas de 
virus 4791 (20100120) __

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com



[PHP] Upgrading to PHP5.2.x

2009-08-11 Thread Alberto García Gómez
Dear Fellows:

I want ot upgrade my PHP from 5.1.x to 5.2.x. I want to do using rpm, but any 
time that I going to upgrade the rpm request me more dependencies.

How can I configure my rpm (or other command) to automaticly satisfy my 
dependencies.



Saludos Fraternales
_
Atte.
Alberto García Gómez M:.M:.
Administrador de Redes/Webmaster
IPI Carlos Marx, Matanzas. Cuba.

[PHP] EXEC and SYSTEM delay

2009-07-08 Thread Alberto García Gómez
Fellows:

I'm experimenting problems with a call that I made to exec or system. The 
problem is that the script await for the function finish and that take's a lot 
of time.

I need a way to use those functions in order to continue without await for it.

Saludos Fraternales
_
Atte.
Alberto García Gómez M:.M:.
Administrador de Redes/Webmaster
IPI Carlos Marx, Matanzas. Cuba.

[PHP] Regular Expression by Exception

2008-08-04 Thread Alberto García Gómez

Fellows:

If I use ereg_replace($params, $string) I can replace the char that match 
with $params in the $string.


BUT, how I can replace ALL chars EXCEPT the chars in $params.

Something like !$params, I think 




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



[PHP] About HTML CSS

2008-06-10 Thread Alberto García Gómez
Hi Fellow:

I wonder if there some list about HTML/CSS/JavaScript and Genereal Web Design.

Thanks

[PHP] FROM httpd.conf TO .htaccess

2008-04-17 Thread Alberto García Gómez
Fellows, I need to change this configuration from my httpd.conf file to an 
.htacces file so my scripts can work in any apache without having access (or 
change) the server httpd.conf file

Here's the piece of the httpd.conf

RewriteEngine On
RewriteLogLevel 9
RewriteLog logs/server.com-rewrite_log
RewriteRule ^/(.*\.html)$ /index.php?$1 [L]
RewriteRule ^/(.*\.htm)$ /index.php?$1 [L]

What I need to do is put this redirection in the .htaccess file instead the 
httpd.conf file

[PHP] Sending Mails

2007-11-09 Thread Alberto García Gómez
I want to use the mail() function but doesn't work so I have some questions:

1. Is necessary that sendmail must be installed in the server to use this 
function?
2. Is necessary that sendmail must be running to use this function?
3. Is necessary that sendmail must be proper configure to use this function?


Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas


Re: [PHP] Re: Sending Mails

2007-11-09 Thread Alberto García Gómez
John, those are the lines in the log file when I try to send a mail using 
mail() function. PLease let me know my errors.


Nov  9 15:26:17 shannon sendmail[8649]: lA9KQHYt008649: from=apache, 
size=82, class=0, nrcpts=1, 
msgid=[EMAIL PROTECTED], 
[EMAIL PROTECTED]


Nov  9 15:26:17 shannon sendmail[8650]: lA9KQHhY008650: 
from=[EMAIL PROTECTED], size=382, class=0, nrcpts=1, 
msgid=[EMAIL PROTECTED], proto=ESMTP, 
daemon=Daemon0, relay=shannon.ipimtzcm.rimed.cu [127.0.0.1]


Nov  9 15:26:17 shannon sendmail[8649]: lA9KQHYt008649: 
[EMAIL PROTECTED], ctladdr=apache (48/48), delay=00:00:00, 
xdelay=00:00:00, mailer=relay, pri=30082, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (lA9KQHhY008650 Message accepted for delivery)


- Original Message - 
From: John Gunther [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Friday, November 09, 2007 03:16 PM
Subject: [PHP] Re: Sending Mails


All true. sendmail or a sendmail shell must be running. The sendmail 
command to use can be customized in the sendmail_path directive in the 
php.ini configuration file.


If you can't manually use sendmail to send an email, php can't either.

John Gunther

Alberto García Gómez wrote:
I want to use the mail() function but doesn't work so I have some 
questions:


1. Is necessary that sendmail must be installed in the server to use this 
function?

2. Is necessary that sendmail must be running to use this function?
3. Is necessary that sendmail must be proper configure to use this 
function?



Este correo ha sido enviado desde el Politécnico de Informática Carlos 
Marx de Matanzas.

La gran batalla se librará en el campo de las ideas



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





Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas

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



[PHP] php-pecl-session_mysql

2007-11-06 Thread Alberto García Gómez
I install php-pecl-session_mysql and I config my php.ini in this way

session.save_handler = mysql

but this error appear:

Warning: session_start() [function.session-start]: Cannot find save handler 
mysql in /var/www/mysite/core/users.php on line 45

I just folow the instructions in the session_mysql.ini config file.

Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas


[PHP] Regular Expressions

2007-11-06 Thread Alberto García Gómez
I'm a mess in regular expressions and I make this code:

$link = ereg_replace('ntilde;','n',$link); 
$link = ereg_replace('aacute;','a',$link);
$link = ereg_replace('eacute;','e',$link); 
$link = ereg_replace('iacute;','i',$link);
$link = ereg_replace('oacute;','o',$link); 
$link = ereg_replace('uacute;','u',$link);

I ask if is a way to make those lines into a single one but working as well as 
this piece. I'm thinking in increase those lines so will be wonderful if I can 
optimize the code.



Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas


[PHP] Allowed path in VHosts

2007-11-06 Thread Alberto García Gómez
Is there some directive that configure a vistual host to only see inside a 
path eg.: /var/www/users/user1




Este correo ha sido enviado desde el Polit�cnico de Inform�tica Carlos Marx 
de Matanzas.
La gran batalla se librar� en el campo de las ideas

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



[PHP] Disabling Functions And Clasess

2007-11-06 Thread Alberto García Gómez
Can I use -dissable_classes- and -dissable_functions- directives inside Apache 
virtual host configuration using php_value directive.



Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas


[PHP] Mail function doesn't work

2007-11-05 Thread Alberto García Gómez
What could happen that my mail function isn't working. I check twice my php.ini 
conf and it's fine. I test sendmail manually and it's OK. I also try to send 
mails with sendmail stoped and started and nothing happen

Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas


[PHP] Including GD inside HTML code

2007-11-01 Thread Alberto García Gómez
I trying to include some image generate for a function that use GD.

eg.:

function myfunct(){
[MY_CODE]
}

but when I call the function it generate me a lot of symbols, letters and 
numbers but no image.

WHAT CAN I DO?

PS.: I actually usgin a iframe to create the iomage in another .php page and 
place it using this tag.

Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas


[PHP] APACHE MOD_REWRITE

2007-10-31 Thread Alberto García Gómez

I have this URL

http://www.myserver.com/dir1/dir2/page.html

and I wish to rewrite the url using mod_rewrite to add a ~ after the first 
dir always, eg.:


http://www.myserver.com/~dir1/dir2/page.html

Please it's very important to make this ASAP

best regards 



Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas

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



[PHP] PHP5 under IIS6

2007-10-08 Thread Alberto García Gómez

Hi fellows:

I'm trying to mount PHP5 ( the last stable version from php.net) under a 
IIS6 (win2k3 SP2), and when I run the .msi and it finish it said that is not 
possible the configure httpd.conf, which is a very big mistake 'cause I'm 
specify that I use IIS6.


After that I try making a manual configuration and I recive a CGI error.

I need help ASAP. 



Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas

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



[PHP] Sessions vs MySQL

2007-09-28 Thread Alberto García Gómez
I'm seeking for some class to work with sessions against a mysql DB, please 
examples are welcome.



Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx 
de Matanzas.
La gran batalla se librará en el campo de las ideas

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



Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Alberto Ferrer

I gonna suggest something very cool: Apache Friends.

http://www.apachefriends.org/en/xampp-linux.html

Its the best option on lamp packs.

Regards.

2007/3/12, Jonathan Kahan [EMAIL PROTECTED]:

http://www.die.net/doc/linux/man/man8/yum.8.html

I checked the above page on 'Yum and see no up2date command as you point
out. However when I  tried update in the format suggested in the link, it
still gives a command not found error.



Brad Bonkoski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I think up2date is *not* up2date ;-)
 Google for 'yum' and all its flags for usage...

 -B

 Jonathan Kahan wrote:
 Hi all,

 I am attempting to start the mysql rpm in Red hat as a first step prior
 to downloading and activating the php-mysql rpm. I was attempting to
 follow steps based on the link below. the php rpm is loaded and activated
 as I have been able to execute php scripts. When I attempt to follow
 those directions, I get the below errors. Does anyone know why I got the
 below errors or can help me through this process?

 Thanks

 http://kbase.redhat.com/faq/FAQ_39_3633.shtm


 [EMAIL PROTECTED] var]# rpm -q mysql-server
 mysql-server-4.1.20-1.FC4.1
 [EMAIL PROTECTED] var]# rpm -q mysql
 mysql-4.1.20-1.FC4.1
 [EMAIL PROTECTED]  var]# up2date mysql
 bash: up2date: command not found
 [EMAIL PROTECTED]  var]# up2date mysql-server
 bash: up2date: command not found
 [EMAIL PROTECTED]  var]# ./up2date mysql
 bash: ./up2date: No such file or directory
 [EMAIL PROTECTED] var]# ./up2date mysql-server
 bash: ./up2date: No such file or directory
 [EMAIL PROTECTED]  var]# ./up2date mysql
 bash: ./up2date: No such file or directory
 [EMAIL PROTECTED]  var]#


 Kind Regards
 Jonathan Kahan

 
 Systems Developer
 Estrin Technologies, inc.
 1375 Broadway, 3rd Floor, New York, NY, 10018
 
 Email: [EMAIL PROTECTED]
 Web: http://www.estrintech.com
- Original Message -
From: Brad Bonkoski [EMAIL PROTECTED]
To: Jonathan Kahan [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Monday, March 12, 2007 4:30 PM
Subject: Re: [PHP] Installing php and mysql on linux


I think up2date is *not* up2date ;-)
 Google for 'yum' and all its flags for usage...

 -B

 Jonathan Kahan wrote:
 Hi all,

 I am attempting to start the mysql rpm in Red hat as a first step prior
 to downloading and activating the php-mysql rpm. I was attempting to
 follow steps based on the link below. the php rpm is loaded and activated
 as I have been able to execute php scripts. When I attempt to follow
 those directions, I get the below errors. Does anyone know why I got the
 below errors or can help me through this process?

 Thanks

 http://kbase.redhat.com/faq/FAQ_39_3633.shtm


 [EMAIL PROTECTED] var]# rpm -q mysql-server
 mysql-server-4.1.20-1.FC4.1
 [EMAIL PROTECTED] var]# rpm -q mysql
 mysql-4.1.20-1.FC4.1
 [EMAIL PROTECTED]  var]# up2date mysql
 bash: up2date: command not found
 [EMAIL PROTECTED]  var]# up2date mysql-server
 bash: up2date: command not found
 [EMAIL PROTECTED]  var]# ./up2date mysql
 bash: ./up2date: No such file or directory
 [EMAIL PROTECTED] var]# ./up2date mysql-server
 bash: ./up2date: No such file or directory
 [EMAIL PROTECTED]  var]# ./up2date mysql
 bash: ./up2date: No such file or directory
 [EMAIL PROTECTED]  var]#


 Kind Regards
 Jonathan Kahan

 
 Systems Developer
 Estrin Technologies, inc.
 1375 Broadway, 3rd Floor, New York, NY, 10018
 
 Email: [EMAIL PROTECTED]
 Web: http://www.estrintech.com




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





--
bet0x - Barrahome
http://www.barrahome.com.ar

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



Re: [PHP] template engine/template class

2007-03-05 Thread Alberto Ferrer

http://www.eframework.org/index.php has one, better than Smarty :P

Check docs

http://www.eframework.org/doc/
http://www.eframework.org/template-syntax/


2007/3/5, Ross [EMAIL PROTECTED]:

I am looking for a template class that will take a basic 2 column template I
have made and let the user

-change the page title
-add an header image
- enter the main body text
-save the file to a folder of their choice

Is there already a class out there that does this or similar. Smarty is far
too complex for this. It is not really an engine I am looking for but a good
class where all the user does is fill in a form and the page is generated.

Could do one myself but if there is already one out there why reinvent the
wheel?


R.

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





--
bet0x - Barrahome
http://www.barrahome.com.ar

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



[PHP] Teste - Sorry

2007-01-31 Thread Alberto Ferreira
Teste 

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



Re: [PHP] Running AMP from CD

2006-11-27 Thread Alberto Ferrer

www.apachefriends.org have a Lamp on CD project.

2006/11/27, Ryan A [EMAIL PROTECTED]:

Hello,

A little while back there was a discussion on running Apache,MySql and PHP from 
a CD... I can't seem to find that thread and i cant seem to find the links i 
had from that thread, so

Can anybody suggest/recommend a way to run our project from CD?
Our project is made in PHP 4 with a MySql backend... so far its been running on 
Apache..

I have found some commercial alternatives via google(PortableWebAp 
,dwebpro,microweb to name a few) but if I remember correctly the solution in 
the old thread was a freeware. The commercial solutions offer a lot of bells 
and whistles and inter platform compatability but all we need is for AMP to run 
on CD and on Windows 2000 onwards.

Any help appreciated, even if its a one line link, thanks in advance!
-Ryan


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.




--
bet0x - Barrahome
http://www.barrahome.com.ar

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



Re: [PHP] Copy of image - smaller

2006-05-15 Thread Alberto Ferrer

For that i recomend detect the MIME, my 2 cents:

function image_get_info($image) {
 $details = array();
 $data = @getimagesize($image);
 if (is_array($data)){
   $types = array(
   '1' = 'GIF',
   '2' = 'JPEG',
   '3' = 'PNG',
   '4' = 'SWF',
   '5' = 'PSD',
   '6' = 'BMP',
   '7' = 'TIFF',
   '8' = 'TIFF',
   '9' = 'JPC',
   '10' = 'JP2',
   '11' = 'JPX',
   '12' = 'JB2',
   '13' = 'SWC',
   '14' = 'IFF',
   '15' = 'WBMP',
   '16' = 'XBM'
   );
   $type = array_key_exists($data[2], $types) ? $types[$data[2]] :
'Tipo de Imagen No valida o Desconocida';
   $details = array('width' = $data[0],
'height'= $data[1],
'type'  = $type,
'mime_type' = $data['mime']
);
 }
 return $details;
}

i cutpaste :P
2006/5/15, Chris [EMAIL PROTECTED]:

Gustav Wiberg wrote:
 Hi there!

 When I upload a picture from a form, then I want to create a copy with a
 smaller image.
 For example: I upload a picture with dimensions 200x150 name 4.jpg. I
 also want a copy of this image but with the dimensions 100x75 pixels.
 I've tried this below, but I'm missing something I think... :-)

 I'm using PHP 4.x  (don't know exactly the vers.nr, but I can search for
 it if it is of importance)

First of all *run* to this thread and add some security checks to your
image uploading:

http://marc.theaimsgroup.com/?l=php-generalm=114755779206436w=2

Secondly, what does or doesn't happen with your code?

It looks fine at first glance but do you get an error? What do you
expect it to do and what does it actually do?

--
Postgresql  php tutorials
http://www.designmagick.com/

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





--
bet0x

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



[PHP] Searching for Duplicated records..

2006-04-03 Thread Alberto Ferrer
Hello all, how i search duplicates records on a TXT file ?

Thanks in Advance.

--
bet0x

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



Re: [PHP] Problems with SSI, Apache PHP!

2006-03-16 Thread Alberto Ferrer
I got only a test.shtml with this:

html
body
!--#include virtual=test.php --
/body
/html

and a test.php with:

?
echo 'Hello World';
?

PHP 4.4.2 , Apache 1.3.34 , nothing weird,

Compiled Options:

'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--prefix=/usr/local' '--with-xml' '--enable-bcmath'
'--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt'
'--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash'
'--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext'
'--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt'
'--with-mhash' '--enable-magic-quotes' '--with-mysqli'
'--with-mysql=/usr' '--with-openssl' '--enable-discard-path'
'--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf'
'--with-freetype-dir=/usr' '--enable-gd-native-ttf'
'--enable-versioning' '--with-xmlrpc' '--with-zlib'

here is my phpinfo: http://ns1.tutorhost.com/test.php

Thanks in advance for the help.

2006/3/16, Chris [EMAIL PROTECTED]:
 Alberto Ferrer wrote:
  i get segmentation fault with apache 1.3.34 , like this bug:
  http://bugs.php.net/bug.php?id=35029 , only change the apache version.
 
  The error is:
 
  [Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal
  Segmentation fault (11)
  [Thu Mar 16 03:33:08 2006] [notice] child pid 2120 exit signal
  Segmentation fault (11)

 We can't do much about segfaults. Post more information on that bug
 report and help the php guys work out what's going on.

 --
 Postgresql  php tutorials
 http://www.designmagick.com/



--
bet0x

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



[PHP] Problems with SSI, Apache PHP!

2006-03-15 Thread Alberto Ferrer
i get segmentation fault with apache 1.3.34 , like this bug:
http://bugs.php.net/bug.php?id=35029 , only change the apache version.

The error is:

[Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal
Segmentation fault (11)
[Thu Mar 16 03:33:08 2006] [notice] child pid 2120 exit signal
Segmentation fault (11)
[Thu Mar 16 03:33:08 2006] [notice] child pid 2112 exit signal
Segmentation fault (11)
[Thu Mar 16 03:33:08 2006] [notice] child pid 958 exit signal
Segmentation fault (11)
[Thu Mar 16 03:33:08 2006] [notice] child pid 957 exit signal
Segmentation fault (11)
[Thu Mar 16 03:33:09 2006] [notice] child pid 2127 exit signal
Segmentation fault (11)
[Thu Mar 16 03:33:09 2006] [notice] child pid 2126 exit signal
Segmentation fault (11)
[Thu Mar 16 03:33:10 2006] [notice] child pid 2128 exit signal
Segmentation fault (11)

Yy SHTML have a include to a script in PHP, with a connection to mySQL
, im using php 4.4.2

Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2635 mod_ssl/2.8.25
OpenSSL/0.9.7a

Thank
--
bet0x

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



[PHP] Lost variables

2004-11-24 Thread Alberto Brea
Perhaps. I always use the same phrase to open up an array.
foreach($myarray as $var=$val) { $$var= $val; }
You can also nest it into another foreach statement to extract from an
associative array.

Alberto




__
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es

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



[PHP] Help with parsing result code

2004-10-15 Thread Carlos Alberto Bazan-Canabal
Hi.

I'm setting up a credit card payment app. When I send the information
through the form I get a result similar to this:

NOT CAPTURED:00:428930479495:NA:1015:9755676331042890:1:1

This is the only data in the result page. 

I have never done parsing, and I have no idea of how to get this
information inerted into variables.

The result data is a series of data separated by ':'

Could anyone please give me a hint as of where to look for information
on how to do the parsing, or a short sample script?

And if also someone knows of a good reference manual on scraping and
parsing with PHP, I'd appreciate it.

Thx

Carlos.

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



Re: [PHP] Help with parsing result code

2004-10-15 Thread Carlos Alberto Bazan-Canabal
Thank you Matt and Ed.

I have solved the issue and started looking into parsing and regular
expressions.

Thx

Carlos.


On Fri, 15 Oct 2004 10:57:02 -0500, Matt M. [EMAIL PROTECTED] wrote:
  http://us2.php.net/manual/en/function.preg-split.php
 
  should do it
 
 
 also http://us2.php.net/explode


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



[PHP] Getting info off an HTTPS page

2004-10-15 Thread Carlos Alberto Bazan-Canabal
Hi,

I am working on setting up a VPOS system, and I need to read the
results of sending the CC information to the bank.

When sending the form I am doing it with HTTPS port 443 with POST
method in my form and application/www-form-urlencoded

When I get the results of my submission I get another https URL .
Since I send the form using POST, I get no params in the URL. BTW, GET
is not supported.

What I need to do is be able to read the results of that page so I can
parse them and have the machine understand what was the result of the
credit card charge.

Any idea of how I can get to save the results of that page into a variable?

Thanks!

Carlos.

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



[PHP] error when running commands via exec() in CLI-mode

2004-06-04 Thread Alberto Mucignat
I do this:
?php
$cmd = 'rsync -Razv file.php [EMAIL PROTECTED]::zone';
@exec($cms, $log, $ret);
?
when an rsync error occure, if I run this script by a web server I get 
no output (errors go correctly into $log and $ret), while running the 
script in a console environment I get errors in the standard output even 
if I suppress them with @.

anyone knows a workaround? is this a bug?
bye, alberto.
--
Imagination is more important than knowledge
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] SESSIONS SESSIONS SESSIONS

2004-03-12 Thread Alberto García Gómez
Friends:

I need a good example to create a session and navigate an entire site with this 
sessions. Also I need that sessions handle a three variables.
__
Atte.
Alberto García Gómez
Administrador Nodo Atenas
http://www.mtz.sld.cu/
Tel: 53-45-282212


[PHP] debugger listener

2003-12-22 Thread Alberto M.
php 4.3.0 + apache + linux suse 8.2

I tried to install xdebug (http://www.xdebug.org/install.php) as an 
precompiled module, but it seems not running when I did reload apache.
I mean, I can't see it in the module list in phpinfo() page.

Also, I don't know how to catch up events sent by debugger, may I need 
to build a tcp listener? Any hint about how to do it?

Bye, Alberto.

--
Imagination is more important than knowledge
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] debugger listener

2003-12-22 Thread Alberto M.
Alberto M. wrote:
php 4.3.0 + apache + linux suse 8.2

I tried to install xdebug (http://www.xdebug.org/install.php) as an 
precompiled module, but it seems not running when I did reload apache.
I mean, I can't see it in the module list in phpinfo() page.

Also, I don't know how to catch up events sent by debugger, may I need 
to build a tcp listener? Any hint about how to do it?

Bye, Alberto.

as usual, I answer myself:

http://www.xdebug.org/docs-settings.php

there are several options to set in php.ini file in order to get the 
xdebug work.

BTW I would know if someone has tried xdebug and has some hints.

bye, alberto.

--
Imagination is more important than knowledge
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] disable_functions problems

2003-12-16 Thread Alberto Ferrer
Hello, im testing the php_admin_value disable_functions froma Vhost in my Apache, and 
not works, is are set from Master (php.ini) works, but set via Apache vhost not works, 
any are using from apache php_admin_value disable_functions bla,bla,bla ?

-- 
--
 Alberto Ferrer
  [EMAIL PROTECTED]
 http://www.barrahome.org
JID: [EMAIL PROTECTED]
--
SNMP = Security? Not My Problem!

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



[PHP] Stop neurotic posting

2003-08-14 Thread Alberto Brea
If you allow me to make a comment, I think that perhaps the size of the list
makes is difficult for everybody to be aware of and stick by the guidelines.
In smaller lists this might be easier.
Maybe an idea could be if the organizers could send a message or reminder
(weekly perhaps?) reminding us of the main guidelines such as trying to put
meaningful titles in the Subject, doing research before posting, reminding
of the php.net manual and the url of the archives, and the like.
I hope this helps
Respectfully
Alberto Brea
http://estudiobrea.com



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



[PHP] Re: Refreshing

2003-06-30 Thread Alberto Ferrer
use pconnect?

--
--
Alberto Ferrer
[EMAIL PROTECTED]
  http://www.barrahome.org
--
Syntax Error in KITCHEN.H: COFFEE not found.
Stephen [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Hello,

I have a chat script. I want it to refresh the chat display area whenever
there is a new message posted, but not every 10 seconds or so. How could I
get the script to refresh only when there is a new entry into the database
table?

Also, this may not be PHP but...does anyone know how to stop the annoying
click on Internet Explorer when something refreshes?

With bubblegum in my shoe,
Stephen Craton
Senior Executive Web Developer
Mophus.com, Inc.





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



[PHP] suscripcion

2003-06-27 Thread Raúl Alberto Córdoba
  


-
Internet GRATIS es Yahoo! Conexión.
Usuario: yahoo; contraseña: yahoo
Desde Buenos Aires: 4004-1010
Más ciudades: clic aquí.

[PHP] MSWord attachment with mail()

2003-06-24 Thread Alberto Brea
Dear list,
What header must I use to send a MSWord attachment with mail()?
I have looked it up in the manual and on php.net but cannot find it.
Thanks anyone,
Alberto Brea
http://estudiobrea.com 


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



Re: [PHP] MSWord attachment with mail()

2003-06-24 Thread Alberto Brea
Thanks Chris, Dorgon and Esteban for putting me back on the track.

- Original Message -
From: Chris Hayes [EMAIL PROTECTED]
To: Alberto Brea [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 4:34 PM
Subject: Re: [PHP] MSWord attachment with mail()


 At 22:57 24-6-2003, you wrote:
 Dear list,
 What header must I use to send a MSWord attachment with mail()?
 I have looked it up in the manual and on php.net but cannot find it.

 for a cvs file aimed at excel i use


 if (strstr($_SERVER[HTTP_USER_AGENT],MSIE 5.5)) {$att = ;} else
{$att
 =  attachment;;}
 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);   // Date in
 the past
 header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);  // always
 modified
 header(Cache-Control: no-store, no-cache, must-revalidate);   //
HTTP/1.1
 header(Cache-Control: post-check=0, pre-check=0, false);
 header(Pragma: no-cache); //
HTTP/1.0

 header(Content-type: text/csv);
 header('Content-Disposition: inline;
 filename=Aanmeldingen_SENSE_symposium_2003.csv');
 echo $string_csv;



 for word i suppose one could use

 header(Content-type: application/msword);







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



Re: [PHP] exec() and passthru()

2003-06-19 Thread Alberto Ferrer
not is more easy use system ?
$output = system('/path/to/a.out');

--
--
Alberto Ferrer
[EMAIL PROTECTED]
  http://www.barrahome.org
--
Syntax Error in KITCHEN.H: COFFEE not found.
Jason Wong [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 On Friday 20 June 2003 01:56, Mignon Hunter wrote:

  I'm only subscribed to digest and found your reply in archives and
  couldnt figure out how to reply  :{
 
  Anyway, right now I'm just trying to get something to work.  The c exe
  is as follows:
  **
  #include stdio.h
  #define NAME Mignon
  int main(void)
  {
 
int q;
 
q = 5;
printf(Hello, %s,%d \n, NAME,q);
return 0;
  }
  *
 
  I'm trying to return the Hello, Mignon, 5 which is what's outputted on
  the command line.

 In that case what you want is shell_exec():

   $output = shell_exec('/path/to/a.out'); // note the whole command line
has
   // to be enclosed in '' or .
   echo $output;

 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Taxes are going up so fast, the government is likely to price itself
 out of the market.
 */




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



Re: [PHP] Re: php editor?

2003-06-18 Thread Alberto Ferrer
im use PHPcoder too, and the best :) http://devphp.sourceforge.net/ , and in
Linux Zend Studio :)

--
--
Alberto Ferrer
[EMAIL PROTECTED]
  http://www.barrahome.org
--
Syntax Error in KITCHEN.H: COFFEE not found.
Chris Sherwood [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 I use PHPCoder Pro and it works great... hook it into your php and apache
 engines and you can run and debug while coding


 - Original Message -
 From: Noel Wade [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 9:57 AM
 Subject: Re: [PHP] Re: php editor?


  My favorite little gem is a shareware program called Code-Genie
  (www.code-genie.com).  Its cheap, fast, a slim app, provides tons of
  useful little features, and has TOTALLY user-configurable text-coloring.
  You can specify a particular coloring scheme for each file extension, so
 it
  automatically picks the scheme for the type of programming you're
doing -
  very handy!  Comes with schemes for all of the most common / simple
  programming languages, plus plenty of user-made files for download, too!
 
  It doesn't have any real debugging features, nor can it do fancy things
 like
  track your custom object-functions and color them or present their
  arguments - but for a quick, simple, helpful tool - its just perfect!
 
  Take care,
 
  --Noel
 
 
 
  --
  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] Compile 4.3.2 Errors.

2003-06-01 Thread Alberto Ferrer
Im compiling the last vercion of PHP 4.3.2 and says this after finish of
compile.
The system is a Redhat 7.3, Apache 1.3.27.

ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/root/php-4.3.2/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is
dangerous, better use `mkstemp'



--
--
Alberto Ferrer
[EMAIL PROTECTED]
  http://www.barrahome.org
--
Syntax Error in KITCHEN.H: COFFEE not found.



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



[PHP] Re: problem with pop3 check

2003-06-01 Thread Alberto Ferrer
My english is bad, but see the code:

$mbox = imap_open ({localhost/pop3:110}INBOX, user_id, password);
The only way I could open a IMAP or POP3 conection into my server is, I hope
it helps  you$MAILSERVER={mail.midominio.cl:110/pop3/notls}; //Para POP3
$MAILSERVER={mail.midomino.cl:143/imap/notls}; //Para IMAP$mbox =
@imap_open ($MAILSERVER,$user,$pass) or die (No abrio);
- Other Complete Example For Imap --
$mbox = imap_open ({localhost:143}, username, password);

echo ph1Mailboxes/h1\n;
$folders = imap_listmailbox ($mbox, {your.imap.host:143}, *);
if ($folders == false)
echo Call failedbr\n;
else
while (list ($key, $val) = each ($folders))
echo $val . br\n;

echo ph1Headers in INBOX/h1\n;
$headers = imap_headers ($mbox);
if ($headers == false)
echo Call failedbr\n;
else
while (list ($key, $val) = each ($headers))
echo $val . brn;

imap_close ($mbox);

And you can look the manual, but this code is from the manual, have a loot
of examples ;)
--Alberto Ferrer
[EMAIL PROTECTED]
http://www.barrahome.org--Syntax
Error in KITCHEN.H: COFFEE not found.
Joe111 [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Hi
 I have been trying to get to know the imap functions for checking pop3
email
 account with php. i have had absolutely no luck. just cant get the script
to
 connect to the server.
 here is a sample:

 ?php
 $mbox = imap_open ({mail.hot.ee:110}, pop3testing, testing);

 if(!$mbox){echooffline;}
 else{echo online;}

 imap_close($mbox);
 ?

 it just loads and loads doesnt even give an error. could somebody
please
 look into it and see whats wrong. the account on hot.ee actually exists
 (un:pop3testing, pw:testing). it is an estonian free e-mail service
 provider. supports pop3 and the server should be mail.hot.ee, because
 outlook checks e-mails from mail.hot.ee without any problems.
 help please :)





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



[PHP] Self-filling login form

2003-04-03 Thread Alberto Brea
A question please:
I have a login form on (PHP 4.3.1 and Apache 1.3.27). When I click inside
the ID box, you can glimpse at some of the user IDs inside it for a fraction
of a second (similar to a drop-down menu), which shows an unauthorized
visitor some of the id values.
Worst of all, when you enter your ID the password automatically fills in,
giving free access to the unauthorized user.
Does anybody know why this happens? Something in the php.ini or httpd.conf
files perhaps?
Thanks for any comment

Alberto Brea


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



[PHP] chill out

2003-04-03 Thread Alberto Brea
May I grab this opportunity to thank you for the load I've learnt on the
list.
A little row every now and then is colorful and makes work less boring.
It also keeps you company if you are working alone.
Keep up any rude behavior, it's fun to watch.
The technical level is excellent and many contributions very generous
indeed, and I'm here to meet a group of programmers, not diplomats.
Cheers

Alberto Brea


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



Re: [PHP] Re: Creating graphs with PHP?

2003-03-20 Thread Alberto Brea
If all you need is a simple bar graph, you can:
1. make a 1-pixel gif
2. make a table with fixed-width tds on the same row (e.g. width 10 pixels)
3. in each td you put one gif with img src=xx width=10 height=xxx wherein the 
height is queried from your data source.
4. on the row below you put the day, month or whatever corresponding to the relevant 
gif
You can make it horizontal too.
If you want a line graph, you make a second transparent gif, make this the 
variable-height image, and put the visible gif at the top, so you make the line.
Hope this helps

Alberto Brea
http://estudiobrea.com 


[PHP] Spaces collapsed in database

2003-02-28 Thread Alberto Brea
Hi, list
I had certain information in a text file, which showed ok upon fopen() and parsing, 
but when I put it into a MySQL database, instead of echoing directly into the browser, 
the spaces in the strings collapsed, so that One Two  Three became OneTwoThree 
in the database table. When I retrieve this the spaces remain collapsed.
Can anybody tell me what I did wrong, or what can I do to prevent this from happening?
Please find the code below

Thank you,
Alberto

  // QUERY 1: INSERT RECORDS INTO TABLE contacts
  // DEFINE VARIABLES FOR QUERY 1
  $sex=$info[1];
  $lang=$info[2];
  $pretreat=$info[3];
  $fname=$info[4];
  $lname=$info[5];
  $posttreat=$info[6];
  $contabbr=$info[9];
  $persweb=$info[10];
  $idactiv=$info[11];
  $unsubscribe=$info[14];
  $ent=$info[7];
  $city=$info[13];
  $email=$info[8];
  $random=$info[14];

  // DEFINE QUERY 1
  $sql1= INSERT INTO contacts SET
   sex='$sex',
   lang='$lang',
   pretreat='$pretreat',
   fname='$fname',
   lname='$lname',
   posttreat='$posttreat',
   contabbr='$contabbr',
   persweb='$persweb',
   idactiv='$idactiv',
   unsubscribe='$unsubscribe',
   ent='$ent',
   city='$city',
   email='$email',
   random='$random',
   date= CURDATE();

  // RUN QUERY 1
  if(!mysql_query($sql1)):
   echo(Unable to add contact: . mysql_error() . br);
  else:
   echo(Contact added successfullybr);
  endif;



[PHP] Passing emails to database

2003-02-19 Thread Alberto Brea
Hi, list
Is there any way in PHP to pass the emails received automatically into a local MySQL 
database on the same machine (i.e. the fields datetime, from, to, message, 
subject, etc), without copying and pasting each message? Maybe by retrieving and 
parsing the Outlook Express files that keep the emails? (the e-mail is received by 
Outlook Express, and via browser from a Yahoo account).
Thanks for any help

Alberto



[PHP] Redirecting to PHP

2003-02-05 Thread Alberto Brea
Dear list,
My home page is index.html, that doesn't run PHP.
I also have index.php which shows the same content with PHP.
Can I do to automatically redirect a visitor from index.html to index.php?
TIA

Alberto



[PHP] Tutorial needed

2003-01-29 Thread Alberto Brea
Does anybody know of an online tutorial explaining how to access ODBC databases with 
PHP?
Thanks
Alberto



[PHP] fwrite() debugging

2002-12-31 Thread Alberto Brea
Could somebody please tell me what I'm doing wrong here?

The code is:
?php $filename= tables/contacts.txt;
$fd=fopen($filename, a);
fwrite($filename, xyz);
fclose($fd); ?

And I get the following error message:
Warning: fwrite(): supplied argument is not a valid File-Handle resource in 
c:\archivos de programa\apache group\apache\htdocs\visitrep\report_options.inc on line 
111

Thanks a lot in advance and happy new year!
Alberto Brea
http://estudiobrea.com



[PHP] Unable to set permissions

2002-12-26 Thread Alberto Brea
When I upload php and other files and set the permissions on my ISP's (CPanel) file 
manager screen, sometimes the new permissions are set, other times they reset back to 
644 without my knowing (so a visitor is unable to access the website, as the php 
scripts don't execute), and others the screen just refuses to save the new settings.
Could anybody tell me why is this?
Thanks in advance and merry Xmas and new year to everyone.

Alberto Brea



[PHP] mail() problem

2002-12-11 Thread Carlos Alberto Pinto Hurtado
i setting php.ini

[mail function]
;For Win32 only
SMTP = hermes.ica.gov.co

sendmail_from = [EMAIL PROTECTED]


i invoke

mail($to,$subject,$body,$headers);

if $to is [EMAIL PROTECTED] is perfect.
if $to is user@otherdomain generate error

the problem is when the content  $to is different at ica.gov.co eg. [EMAIL PROTECTED] 
function mail dont'n response.

can help me? 
Carlos Alberto Pinto Hurtado
IT ICA
(57 1) 2322181 
(57 1) 2324698
Movil.(57 3) 310 6184251



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




[PHP] fwrite()ing predefined variables

2002-12-10 Thread Alberto Brea
Hi,
Could somebody please tell me why I can't print pre-defined variables to a file with 
fwrite()?

The code I use is this:
 $filename = '../vlog.txt';
 $fd= fopen($filename, 'a');
  $a= date(YmdHi);
  $b= basename($PHP_SELF);
  $c= $HTTP_USER_AGENT;
  $d= $HTTP_HOST;
  $e= $_SERVER['HTTP_HOST'];
  $f= xxx;
  $g= yyy;
  fwrite($fd, $a#$b#$c#$d#$e#$f#$g\n);
 fclose($fd);

And the output I get in the target file is this:
200212101552localhost#xxx#yyy

Thanks a lot in advance

Alberto



Re: [PHP] fwrite()ing predefined variables

2002-12-10 Thread Alberto Brea
All these variables show on the browser quite well from a regular .php file, so they 
are still pre-defined, but I can't fprint() them to a text file. 



[PHP] redirect URL

2002-12-06 Thread Carlos Alberto Pinto Hurtado
I don't can redirect my page to new url 

please help me

Carlos Alberto Pinto Hurtado
IT ICA
(57 1) 2322181 
(57 1) 2324698
Movil.(57 3) 310 6184251



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




[PHP] Problems with header

2002-12-06 Thread Carlos Alberto Pinto Hurtado
I'm use 

header(Location: http://www.ica.gov.co/contratacion/RObs_borradores?control=1;);

but the answer is

Warning Cannont add header information - headers already send by (output started at 
G:\Intranet\common\mail.php:36) in G:\Intranet\common\mail.php on line 37

Carlos Alberto Pinto Hurtado
IT ICA
(57 1) 2322181 
(57 1) 2324698
Movil.(57 3) 310 6184251



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




RE: [PHP] Problem with functions

2002-12-05 Thread Carlos Alberto Pinto Hurtado
?
$username = victor;


function test() {
echo $GLOBALS[$username];
?

Carlos Alberto Pinto Hurtado
IT ICA
(57 1) 2322181 
(57 1) 2324698
Movil.(57 3) 310 6184251



-Mensaje original-
De: Victor Halla [mailto:[EMAIL PROTECTED]]
Enviado el: Wednesday, December 04, 2002 6:16 PM
Para: [EMAIL PROTECTED]
Asunto: [PHP] Problem with functions


Hi,

I have de following code for example


?php

$username = victor;


function test() {
echo $username;
}

?

If  I call the funcion test(), echo print nothing what's is going on ?

[]´s

[EMAIL PROTECTED]



__ Victor
Halla ICQ#: 114575440 Current ICQ status: + More ways to contact me
__



-- 
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] Get-type links won't complete querystring values

2002-12-04 Thread Alberto Brea
Hi everyone.

I have certain links for document navigation with a query string where one of the 
values doesn't fill, so the links don't work.

The document is a law navigated with pieces of text taken from an array, where the key 
is a 12-digit string. The key's first three figures identify each law title, the two 
next the chapter, the next two the section, etc.

The code with the problem is an include that shows a list of sections in each chapter. 
Each section name in the list is a get-type link to the relevant section contents.

Now, the generated URLs show incomplete, e.g. 
http://localhost/e_ley.php?incl=sptmlaw0navlinks=navsectit=03ch=02sec=
The variable $r doesn't fill the value for sec= so the link won´t work.

If I comment out the $r definition the page does show the list but the links don't 
work.
If I remove the // the page just won't show at all (error message).

My code so far is this:

?php
//PRINT TABLE OF CONTENTS FOR CURRENT CHAPTER
$heading=1.$tit.$ch.000;
print(centerb);
print($textos[$heading]);
print(/b/centerbr);

$keys= array_keys($textos);

foreach($keys as $h):
 $l=substr($h,3,2); //CHAPTER NUMBER
 $m=substr($h,1,2); //TITLE NUMBER
 $n=substr($h,8,4);
// $r=substr($h,5,2); //SECTION NUMBER
 $k=substr($h,7,1); //SECTION HEADING (NUMBER/TITLE/TEXT)
 $s=substr($h,8,2); //SUBSECTION NUMBER
 $t=substr($h,10,2); //LETTER ITEM NUMBER

 if($m==$tit  $l==$ch  $r==$sec  $n==):
  if($k==1):
   print(a href=$PHP_SELF?incl=sptmlaw0);
   print(navlinks=navsectit=$mch=$lsec=$r);
   print($textos[$h]);
   print(/a - );

  elseif($k==2):
   print($textos[$h]br);
  endif;
 endif;
endforeach;

?

Could anybody help?
Thanks in advance

Alberto Brea
http://estudiobrea.com 



[PHP] Keywords in includes

2002-11-22 Thread Alberto Brea
I am moving my website over to PHP but there are two things I'm not sure of.

First:
Do search engines find their keywords if they are in an include instead of the main 
PHP file? (strictly speaking, I think they are not really in the URL you gave them)
In other words, does it read the source code after it is output (which does contain 
the include contents)?
Just to be on the safe side, I left a redundant file.htm copy (apart from 
file.php) of the pages with best search engine results, as bait for the engines.
Is this unnecessary?

Second:
Also, I haven't changed over the home page, which is still all-html, because I'm 
dreaming that the host's PHP might fail or something. I imagine this is sheer 
paranoia, but could somebody please confirm if there is any security benefit in doing 
so?

Thanks
Alberto
http://estudiobrea.com




[PHP] php/mysql not mutually connected

2002-11-12 Thread Alberto Brea
I have php (as an apache module) and mysql up and running on Windows in the same 
computer, but they seem to be unconnected.
How do I configure php.ini, my.ini, etc for a php script to find and query a database 
in the mysql server?
Thanks for any help

Alberto Brea



[PHP] Please, help with Sourceforge's PHP command-line not working at all

2002-09-03 Thread Alberto


Hello,

I was suggested by a user at SF to write you to see if you could provide 
me some ideas of what is going wrong with the new PHP command-line at 
SourceForge.
I used to do some daily work in PHP and crontab at my site in SF but now 
it is not working any longer.
I think that it has started recently, when SF upgraded all their system.
There is an error code that says that it cannot load module 'mm' at line 
0, or something like that.
If it is a common mistake may be you are informed of the way of solving it.
I should be considered a newbie at PHP, but I will stil try to look at 
the PHP site for some news about 'command-line (CLI) binary'.
I feel that this is the starting of one of those famous troubleshooting 
quests :-( .
TIA
:-)
-- 

Alberto Adrián Schiano
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Get your FREE e-Book of Life at:
http://bol.sourceforge.net/on-line/BookOfLife.php




Re: [PHP] Cookies - good or bad???

2002-07-18 Thread Alberto Serra

ðÒÉ×ÅÔ!

PHPCoder wrote:
 application useless unless I code a plan B into my code; meaning I can 
 just as well NOT use cookies from the start...
 catch 22 dejavu...
 What are the general feeling out there amongst developers about the use 
 of cookies?
--snip--
 I gather that 
 the alternative url method is not 100% the same as the cookie method 
 inthat it doesn't work with IFRAMES etc. Leaving me to think that there 
 will potentially be people out there that will NOT be able to use the 
 application, that could lead to messy discussions between developer and 
 client...

We use but one cookie, for returning user recognition. That is, the sort 
of info your soft can survive without. As for passing values on the GET 
channel to iframes, we do it all the time and have never seen a single 
problem.

Problems with iframes are in that you consciously loose all users 
working on Netscape 4 (once you have 7 interrelated iframes on a window 
you cannot really expect to have 7 indipendent windows open *and* your 
site still usable. Lynx people are cut out too. If you want to support 
*everybody* you should work one one single page.

It's a customer's choice, obviously. Most customers do not give a damn 
about minorities (and so do not want to increase budgets to develop an 
alternate solution that will address a minor community).

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




[PHP] spawning scripts to different graphical targets

2002-07-18 Thread Alberto Serra

ðÒÉ×ÅÔ!

Is there a way I can decide where to target my output from server side?

suppose my page has two iframes

+---++---+
! A !! b !
+---++---+

while executing a script that is called by A can I spawn another script 
that will output to b? And no, I cant' use any Jscript, but I do know 
from server side what my target names are (A and b, that is).

Bear in mind that A and b might be even different windows, but I'd more 
than happy even if it worked with iframes on a single window.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] spawning scripts to different graphical targets

2002-07-18 Thread Alberto Serra

ðÒÉ×ÅÔ!

Martin Clifford wrote:
 a href=content.php?show=TOC target=bClick here to see the content/a

Looks like I was not clear in my question :) This way you just redirect 
*all* the outoput to another target. I need to output at more targets at 
the same time with one link. That is, since links cannot accept multiple 
targets, having my script spawn out a second script that will output to 
the second (third, and so on) target.

 The same applies to JavaScript.

Can't use Jscript at all in this context. The onload event on frame A 
would do fine, but what if jscript is not there? Besides, having this 
based an an Onload chain makes it quite slow and the user has the 
impression that only A is changing until the A load process is not over. 
Since b is almost always some sort of menu, this makes pages look weird 
for some seconds on slow connections (that is, one page has the wrong 
menu) I need something that will clear and reload both iframes at the 
same time with one single click (and no Jscript).

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

 
Alberto Serra [EMAIL PROTECTED] 07/18/02 03:12PM 

 ??!
 
 Is there a way I can decide where to target my output from server side?
 
 suppose my page has two iframes
 
 +---++---+
 ! A !! b !
 +---++---+
 
 while executing a script that is called by A can I spawn another script 
 that will output to b? And no, I cant' use any Jscript, but I do know 
 from server side what my target names are (A and b, that is).
 
 Bear in mind that A and b might be even different windows, but I'd more 
 than happy even if it worked with iframes on a single window.

@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Cookies - good or bad???

2002-07-18 Thread Alberto Serra

ðÒÉ×ÅÔ!

Analysis  Solutions wrote:

 What increased cost?  If someone does the right thing in the first place,
 there's no cost.  The developers are either gettting paid to develop
 something that works right in the first place or they're getting paid to
 develop something that doesn't.

LOL, we are all but prostitutes, my dear :) we get paid to do exactly 
what the customer wants and *how* he wants it to be done. As for myself 
there are *many* of my customers choices that I would not use on a site 
of mine, but once I have written them a formal letter saying why I 
suggest doing something else in instead and have got a formal receipt I 
feel no longer interested in whatever they decide. I am only interested 
in another sort of *how*, that is *howmuch* :)

 Let's use your Iframes example.  My client was using them.  I replaced 
 such with proper layout for local content and importing remote content 
 through implode('', file()).  How does that cost more?

Yes, since you have to replace something that is already in place. It 
means you spend mantime to do it. Besides, they love iframes, so let's 
give them iframes. All they want is a scrolling bar *within* a fixed 
graphical frame, and only an iframe can do that.

 Anyway, cutting out potential long term revenue by alienating potential 
 customers is a bad business decision.

A one year long log shown that we are talking about 0.2% of their 
potential audience (and we include *my* verifications, which amounts to 
half of the events). Such decisions are not taken just like that. They 
watched the data and decided that 0.2% isn't worth a dime (and a minute) 
of theirs. It's their right to decide it.

Site targets a very specific audience (that is, the dental market). I 
don't think many a dentist will surf on Lynx, personally. And dentists 
just love to show their money, so I cannot think of a dentist using 
Netscape 4 and a 640x480 monitor.

I do (sometimes), you do, but we belong in a minority. Linguistic 
minorities make much more profit than browser minorities will ever do, 
simply because they make larger numbers. Having a site translated in 
french is making *much* more money than having it work on Lynx, believe 
me :) The good thing for them to do is have their site translated in as 
many languages as they can. That's from a profit-oriented point of view 
(mine too, since I sell language repositories as well) :) Europe is 
*not* america. Browsers here aren't a commercial issue, but local 
cultures are.

After all, if you and I are clever enough to use Lynx, we are also 
clever enough for us to download Mozilla and surf like standard people 
do, right? :)

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Loading a File into Variable - How??

2002-07-18 Thread Alberto Serra

ðÒÉ×ÅÔ!

Monty wrote:
 But it returns nothing. If I use readfile() the file contents is displayed,
 but, what I really want to do is store it in a string variable, not output
 it directly. How can I do this?

Look 4 implode() in the function list

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Alberto Serra

ðÒÉ×ÅÔ!

[EMAIL PROTECTED] wrote:
I feel the idea is not accurate. My ip address (a static one from my 
isp) would remain the same if I went to ADSL from my current 
dial-up access.

HTH
Chris
 
 
 Yes. And how about all corporate networks? If I'm accessing your site from
 our office I would get the low-speed version until you added our domainname
 to your list. Then what if I connect to our modem-pool from home... Then you
 wouldn't know I connected through a modem.
 
 And my ISP at home doesn't have anything in their dns-names to differentiate
 adsl from dial-up users.
 Just my thoughts...
 Regards
 Joakim Andersson

Yes, although the problem of determining users' bandwidth *is* real, I 
guess solution is not to be found in whatver IP address processing you 
might do.

But you might consider sampling your actual communication, like sending 
the browser a sample document of fixed length that will execute some 
answer action from the browser. If you can time the lenght of this loop 
you can have a rought idea of what the user bandwidth is at the moment.

Besides, no matter what your bandwidth to your ISP is, connection 
performance is influenced by server bandwidth as well. So I guess the 
only reliable factor would be some *real* measure. Which is far from 
being absolute, as the network continuously varies its state. Probably 
you should repeat this step over and over in time to get some average 
valuable value, that you could then use (for example) to reprocess 
images on the fly and have output graphic resolution degrade with 
connection quality to keep speed close to constant (just an idea, not 
that I'll try to do that very soon) :).

Still your test must take the most minimal transmission load ever 
because it would add up and further lower the bandwidth of those who are 
sitting on a poor connection. Maybe you could add it to the banners. It 
could serve both as an okay, printed mark *and* a performance 
benchmark. Just have the timestamp recomputed on an invisible iframe (or 
have something sent along within the link the next time you load a 
banner, it depends on how quick you need an answer).

Won't work for *all* browsers, but say 90% of your users will give you 
the data you look for. You'll have a default strategy that appies when 
no answer comes, of course.

For those having banners sent out at regular intervals the average value 
would be reasonably close to the truth, and with little overhead. Of 
course you would need to take off the graphical load (size of the image) 
from your *packet* dimension, when computing the result.

Just my 2 kopeki :)

ðÏËÁ
áÌØÂÅÒÔÏ
óÅÒÒÁ


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] I can't echo object variables

2002-07-16 Thread Alberto Serra

ðÒÉ×ÅÔ!

Michael Zornek wrote:
 We all know this works:
 
 echo p$someVar;
 
 However this does not:
 
 echo p$db-field('name_long');
 
 I know this slight variation will make it work:
 
 echo p . $db-field('name_long');
 
 But it's cumbersome .. Anyway to get the first way to work?
 
 ~ Mike

In your example you try and execute a method within a quoted string. 
That would not work even with a traditional function call, AFAIK.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Classes vs. Functions

2002-07-16 Thread Alberto Serra

ðÒÉ×ÅÔ!

Martin Clifford wrote:
 Could someone please explain the difference between classes and functions
 and how to use a class. 

Well, that's a 1 billion $$ question. I don't think one can fully grasp 
that difference by reading an email. I strongly suggest you to buy 
yourself a book about OOP and have a go at it. That is, if you really 
care about knowing.

Whether you should like OOP or not is a religious matter, so I will not 
enter the field. OOP has its pluses and its minuses. It's a technique, 
not an ultimate truth, although it is often presented as such. And as 
any technique, it can do wonders and it can do plain bull**t when not 
properly used.

Nowadays 100% of my work is OOP based, but I worked some 15 years on 
functions and I cannot blame those who keep working that way. There are 
reasons for doing it and reason for not to do it. Get yourself a good 
clear book, then make a decision.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Does not work

2002-07-15 Thread Alberto Serra

ðÒÉ×ÅÔ!

Saci wrote:
 Who cares about privacy on my own company Intranet ?

Anyone not willing to show where they has been surfing on the net to any 
unexperienced bycomer. Youu may read the history, but you just have *no* 
warranty that it will not be cleared at runtime.

Since you have control on the machines (which you should have said at 
the beginning to have people help you) you'd be better off by having 
them configured to actually give the HTTP_referer string to Apache. It 
would be much more solid.

Besides, there *are* international laws concerning privacy at work, so I 
am not sure a determined employee could not getting your company into 
trouble because of your watching what he is doing.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




[PHP] Tales of brave Ulysses?

2002-07-15 Thread Alberto Serra

ðÒÉ×ÅÔ!

I just got this. Not sure whether it's the stupidest commercial I ever 
seen or a new virus (as you see in the headers it stepped thru the check 
with no warnings), or just a joke.

I'd say it's a joke, as nobody would add anything clearly stating itself 
as decrypt-password.exe, but I will not make any experiments on my box.

Looks like it didn't have any effect on a text-based email running on a 
Linux box, but those of you running Windows might be careful in opening 
any such stuff. I'll never have HTML enabled on email mainly because of 
this.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

---

 From - Mon Jul 15 12:20:25 2002
X-UIDL: 2828
X-Mozilla-Status: 0011
X-Mozilla-Status2: 
Return-Path: [EMAIL PROTECTED]
X-Sieve: cmu-sieve 2.0
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Mon, 15 Jul 2002 07:54:27 +0300
Received: from avcheck by mail.gala.net with antivirus-scanned (Exim 
3.22 (GalaMail))
id 17TxsR-0001za-00
 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 07:54:27 +0300
Received: from ns.gala.net ([194.183.188.131] helo=relay.gala.net)
by mail.gala.net with esmtp (Exim 3.22 (GalaMail))
id 17TxsQ-0001z6-00
 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 07:54:26 +0300
Received: from public-smtp.telkom.net.id ([202.134.0.35] 
helo=out-mta2.plasa.com)
by relay.gala.net with esmtp (Exim 3.35 (GalaMail))
id 17TxSm-0004ON-00
 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 07:27:58 +0300
Received: from smtp.telkom.co.id ([192.168.17.123])
by out-mta2.plasa.com with esmtp (Exim 4.02)
id 17TxMG-000tqP-00
for [EMAIL PROTECTED]; Mon, 15 Jul 2002 11:21:12 +0700
Received: from web3.telkom.co.id ([192.168.17.34] helo=AFRICA)
by smtp.telkom.co.id with smtp (Exim 4.02)
id 17TxFT-0005yx-00
for [EMAIL PROTECTED]; Mon, 15 Jul 2002 11:14:11 +0700
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Your password!
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary=L1db82sd319dm2ns0f4383dhG
Message-Id: [EMAIL PROTECTED]
Date: Mon, 15 Jul 2002 11:14:11 +0700
X-Envelope-To: [EMAIL PROTECTED]

--L1db82sd319dm2ns0f4383dhG
Content-Type: text/html;
Content-Transfer-Encoding: quoted-printable

HTMLHEAD/HEADBODY
FONT COLOR=#FF
bATTENTION!/bbrbr
You can accessbr
bvery important/bbr
information bybr
this passwordbrbr
bDO NOT SAVE/bbr
password to diskbr
use your mindbrbr
now pressbr
bcancel/bbrbr
(Charindra P)/font/BODY/HTML
iframe src=3Dcid:W8dqwq8q918213 height=3D0 width=3D0/iframe

--L1db82sd319dm2ns0f4383dhG
Content-Type: audio/x-midi;
name=decrypt-password.exe
Content-Transfer-Encoding: base64
Content-ID: W8dqwq8q918213

here it followed the decrypt-password.exe code...


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Does not work

2002-07-14 Thread Alberto Serra

ðÒÉ×ÅÔ!

Saci wrote:
 // HTTP_REFERER as a feature. In  short, it cannot really be trusted.
 
 Anybody know how to do that using JAva history with PHP together , or any
 other methode that works and can be trusted.

Thank god no method can be trusted :) History even less the the 
referrer. Just think of the frequency at which people in their offices 
clear it to avoid bosses seeing where they surfed while they were 
supposed to work...

You'll never get a secure method, and if you do I'll personally report 
you to the authority for protection of privacy :) Marketing dotcoms 
would just love to do it, but fortunately it cannot be done :) Relax, 
you can live without knowing where some of the guys came from. Most 
won't mind telling you. But I just cleared my history immediately after 
reading your msg :) Pavlovian reaction ;)

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] (Exact) Difference between - and ::

2002-07-14 Thread Alberto Serra

ðÒÉ×ÅÔ!

Micha wrote:
 Hi,
 
 I would like to know the exact difference between - and ::.
 I know that I can use as class directcly by using :: but I still don't
 know the exact meaning
 So why do they use in Example 8 on
 http://www.php.net/source.php?url=/zend2_example.phps $this-id =
 self::$id++ and not self::id++ or $this-id++ ... ?
 

Some OO languages (notably smalltalk does it) name a difference between 
Class methods (and variables) and instance variables. What is class 
can be used and executed even when lacking any actual instance of the 
class.

PHP has not fully implemented this model (we miss class variables, that 
is, a value that is common and general to all instances of a given 
class) but does have a bit of it.

So :: is mainly used to execute a method without needing to create an 
instance for it. If your class Printer has a method 
changeCartridge() you can use Printer::changeCartridge() without the 
need of any prior
$myPrinter = new Printer()

That is, you use a class as a common library. This has a limitation in 
that you cannot dinamically say $myclass::changeCartridge(), while you 
can say:

$a = printer;
$p = new $a();
$p-changeCartridge();

The operator :: cannot address internal variables directly like - does 
for the simple reason that no variable exists, in the absence of the 
instance. Which is why you declare $ signs. :: operator is also handy 
when you need to call an overriden method. By saying parent::myMethod() 
you call your parent's method, while $this-myMethod would execute the 
locally redeclared code.

- operator can be read (maybe it must be read, I don't know) as 
belongs to. So this-a means the $a that belongs to $this (the 
object in which you are executing class code). - obviously only applies 
to single instances and not to classes.

Hope it was clear.


ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] hello the list

2002-07-13 Thread Alberto Serra

ðÒÉ×ÅÔ!

Nicolas GUILLOU wrote:

You may either write:

 echo td bgcolor='$bgcolor'font face=Verdana size=1b$cd_id/b/font/td;

or

 echo td bgcolor=.$bgcolor.font face=Verdana 
size=1b$cd_compositeur/b/font/td;

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] objects in an array

2002-07-13 Thread Alberto Serra

ðÒÉ×ÅÔ!

Alexander Ross wrote:
 I have an array filled with objects.  Each object has a method called
 display.
 
 I have
 
 $var = $arr[0];
 $var-display();
 
 but I keep getting an error.  What am I doing wrong?
 (I do a print_r of the array immediately before this code and there is an
 object at array[0])

What classes? Which error? Can't say anything with the scarce info you 
gave in.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Newbie question

2002-07-13 Thread Alberto Serra

ðÒÉ×ÅÔ!

Cal Evans wrote:
 ++ is an incrementor. 

He may also consider the position of the inc/decrementor.
Example (note that the first element of an array has index 0):

$a = Array(1,2,3,4,5);
$i = 1;

executing

echo $a[++$i]
will output
3 2

echo $a[$i++]
will output
2 2

In both cases $i gets incremented, but the value used to access the 
array might be before or after the increment takes place, according to 
the incrementor (or decrementor, if you use --) position. A subtle, but 
often very handy nuance.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] how to know upload progress status

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

John Holmes wrote:
 Not possible with HTTP, as far as I know. The file is simply sent,
 there's no communication back and forth.
 
 ---John Holmes...

That's from within a single script. But it becvomes possible if you have 
a page like this

+---+
! +---+ !
!  main   ! c ! !
! +---+ !
+---+

where main is executing the upload and c runs by metarefresh a second 
script that watches how the temp file is growing on the server. So the 
guy is right in his second try to it.

Sadly the $_FILES variables will be available only after the upload is 
completed, so in order to have that up and running he will also need to:

1) create a uniquely identified dir to which only that user upload will 
be sent (that's done when dynamically creating the upload form)
2) pass the dir name along to the monitoring script.
3) clear the directory on upload successful completion
4) periodically clear the amount of temporary dirs that have remained on 
the server as a result for process failures.

If all you do is managing file uploads all the time you might want to 
limit your number of concurrent uploads by creating a pool of TMP dirs 
that you will share among users. When they are all got your users have 
to wait, but you don't freak out because of an exponential growth of 
abandoned dirs.

It *is* complicated. But if you really have to do it... I wish you not 
to need it, anyway.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] mysql question

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!
John Holmes wrote:
 Gesundheit
*if* that was on Oracle *and* the table was big you'd notice that your
performance goes down. Don't ask me why. And I never checked it on
MySql. But watch out for betweens. Check them.
 
 Yes, good point. I don't know if it matters in MySQL either, but always
 test your queries and see which is faster. EXPLAIN may come in handy
 here. I don't see why it would be different, it seems like both would be
 interpreted the same...

Most PHP apps underlying storage simply does not reach the dimensions 
needed for the difference to show up (that is, when rows come in hundred 
of thousands and you have a fairly good normalized data structure, say 
at least in the third form). Yest if you don't normalize data you might 
see it degrade when you are just in the pale realm of thousands.

For what I could make out of it myself, it has to do with the fact that 
an SQL macro instruction (if you pardon the use of the macro term in 
this context) needs to be translated to some set of and...or clauses 
before the engine can actually execute it. Some engine does the 
translation on a per row basis, which is why they can end-up killing 
your performance.

That's just my own fantasy about it, no such assertion is in *any* docs 
that I saw. But if it was done just once the size of your query set 
should be irrilevant to performance, methinks.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




[PHP] Weird :: behaviour

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

?php
class a {
   function test() {
 return 1;
   }
}

class b {
   function test() {
 return 2;
   }
}

$myclass = 'a';
echo $myclass::test();
?

This will not work. It will produce in instead a:
parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ',' or ';'

Funnily enough, the NEKUDOTA part looks slavian (sort of nowhereToGo, 
not russian, maybe it's polish), so I suspect it means it cannot resolve 
a parametrized call. It might be a coincidence.

Everything else *does* support calling class methods by dynamically 
referencing a class name. For those working with plugins this a 
*serious* minus. Right now I found a way not to need the call, but 
please let me know if you ever met this thing.

For those who aren't into OOPHP the :: operator is supposed to execute a 
function call on a class, instead of doing it on an instance. So you do 
not need to create an instance and can use a class as a normal library 
when you need to do so. But this way your plugin classes cannot be used 
as libraries.

Static calls like a::test() or b::test() will work as expected.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Emulating Java Exceptions

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Garland Foster wrote:
 Hi All,
 
 I'm porting Java Code to PHP, my question is: What is the best approach 
 to emulate Java exceptions in PHP4? (I know ZE2 adds exceptions but I 
 can't wait).

If the exceptions you have to manage are code generated at runtime you 
actually may simply write your own manager. Have a root class  with a 
method called

Function exception($yourparms) {
   treat exception here;
}

Game over, since everybody inherits from your root class you can manage 
whatever you want your own way. It's objects, so work in OO and forget 
about java lingo.

Mind you, it won't manage a parse error, that's for sure.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Final Year Computer Science Project involving PHP

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Martin Clifford wrote:
 If completely developing a fully functional and optimized E-commerce site isn't good 
enough, 
I don't know what is.  I can understand how it may not necessarily be innovative 
(though it could 
have innovative features), but designing such a site would prove to anyone I know 
that you have a 
great knowledge of the language the site was created in.

The uni env tends to rate real life as vulgar :) I suggest you 
concentrate on demonstrating something more cultural. It will be of no 
use in real life but it's going to get you good grades, which is what 
you mostly need at the moment, right?

Something like an automatic translator from Klingon to Elvish will do. I 
AM SERIOUS AND SOBER, keep reading. Just make sure your implemented 
versions of Klingon and Elvish have sufficiently *mad* grammars to allow 
some linguist to step in and join the project team. You may wanna check 
W3c docs about the two x-languages in question. They *do* exist.

At that point you'll be doing a cross-speciality work, none of your 
tuitors will have the skills required to judge the project without 
insulting a collegue and they will be all forced to give you guys good 
grades just to get rid of the problem ASAP.

If Klings and Elves won't do (which I doubt, since Tolkien is still 
a-la-page) you may wanna protect some linguistic minority in the 
Amazonas or in the deepest parts of the central Siberian plains... Won't 
keep you from killing them by printing your work on the paper made with 
their trees, but it will look s politically correct ;)

You think I'm joking? I am not. But if you miss the guts to go straight 
and cheat them, then make a Linux online updater that will work. What? 
You like Klingon better? I had no doubts :)

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Emulating Java Exceptions

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Garland Foster wrote:
 Alberto,
 
 I might have expressed the problem wrongly, if you have lets suposse you 
 have:
 $obj = new foo();
 $obj-some();
 And some might return an exception object.
 
 The problem is that some may call a lot of other methods from foo and I 
 don't want to check if the return value of each method call is an 
 exception.
 
 Example:
 
 function some() {
   $x = $this-other_method();
 }
 
 If other_method produces an exception then I want the exception returned 
 directly to the some caller without the need to check in the Some 
 method if other_method returned a normal x or an exception object...

Well, *what* exactly you will do depends on your class architechture 
(which I don't know). But I suppose you want your exception to behave as 
an object, while parameters (and returned values) are mostly scalars.

So, you either
1) avoid using scalars at all and spend some time in implementing the 
base classes you need to emulate scalars (after that you can just do 
what you asked for as all types will be consistent and you are basically 
writing smalltalk code, and also performing like a sleeping polar bear 
accordingly). I'd never do that, personally.
2) create an exception server (as we do) to whom you delegate all 
exception management. When you create a new instance of *any* class of 
yours you pass it in the constructor a reference to this exception 
server and from then on you can have your exception solved by 
themselves, while your methods still do not break the chain and continue 
to return whatever they needed to return (that is, mostly quick scalars).

It's going to take you months of careful planning, though (as always 
when playing with classes) and 99% of what you do depends on what you 
really need. You probably will need to register your client ($obj in 
your example) on the server when you issue the call, so that client and 
server can talk on a peer-to-peer basis, but that again is an 
architecture dependant issue.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] PHP and ORACLE

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

I hope you are not really living in the early 70's, are you?

Ricardo Fitzgerald wrote:
 Hi,
 
 I started with PHP and MYSQL a while ago and now I've been involved in
 a huge database project with ORACLE. 

Have the Oracle box do most of it. Make sure that:
1) there is  a well defined API for external application (including your 
PHP client) to access data. This *must* written an paper and documented. 
No code writing prior to this.
2) all about referential integrity is done within Oracle
3) use triggers and SPs to enforce data consistency (handle with care, 
they load the db server if used unproperly)
4) find a good DBA to maintain the system (Oracle can degrade quite 
dramatically if not properly maintained)
5) interact very little with the DB, to avoid loading its server. (That 
is, call an SP, get the result set from a tmp table)
6) avoid locking as much as you can
7) Prey the current Oracle bugs are not too evil.
8) get ready to say good bye to your vacations.
9) ask for a paycheck raise

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] problem with cookies and some browsers

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Andy wrote:
 I am wondering if there is a possiblity that some browsers like IE 5.1 do
 not accespt cookies by default. 

No, it's that they do not accept standards by default :) Try this and 
have M$ go to hell:

// send/refresh cookie
  $time = mktime()+ $lifeInDays*86400;
  $date = date(l, d-M-y H:i:s, ($time));
  header(Set-Cookie: YourCookie=YourValue; expires=$date GMT);

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Advice needed

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Mike Tuller wrote:
 The hardwareID is created in MySql when the information entered for the hardware is 
submitted, which hasn't been done yet.

You don't need it immediately. Just have a progressive key (like 
1,2,3,4...) stored in a hidden field along with the new info you are 
getting. Once you'll process the final result you will substitute it 
with the values assigned by your DB engine. Sort of temporary primary 
key, if you want :)

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




[PHP] Librep (yes it's definitely OT)

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Sorry, got no time to surf around for a Linux list, so please answer 
privately since this is totally OT.

I am running gnome on top of rh 7.1, since I upgraded to librep 0.15.1 
and sawfish 1.0.1 I need to reinstall librep once a week.

Apart from the annoying fact in itself, when rep goes astray it simply 
blocks everything (even ctrl-alt-bspace won't kill X anymore), so that I 
have to switch the power down and end up having to run fsck to repair my 
filesystem afterwards. Not a pleasant situation indeed.

Anyone can give me a suggestion about it? Any help would be appreciated, 
Ineed to finish my job and go on vacation, I can risk having to 
reinstall my machine from scratch at every step I take :(

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Advice needed

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Mike Tuller wrote:
 So I would have the progressive key inside the addvolume window? Can you
 explain how to go about doing this?

How you organize your HTML output should *never* interfere with the way 
you organize your data, they are two different things and must be kept 
well separated. In a perfect world design, process flow and datamodeling 
should be free to evolve without stepping into each other's way. It's 
obviously impossible to fully meet this condition in the real world, but 
one should always try and get as close to it as he can.

Just do this:

Think of your data as a temporary table, in which you have two keys:
1) the real key, whenever available (will be blank on the stuff you 
haven't written in the database yet)
2) a progressive key, assigned by your php scripts by some means

You just have the two keys constantly in your forms as hidden fields, so 
that at process time you can still tell which is which when it comes to 
relations, even if you do not have an already established relation 
system (which is the case on new data).

So:
you load your hdw components, they all have a db id already, so your 
dataset will look like this:

1) hdw 1, its real id, your own internal key (say 1), rest of the data
2) hdw 2, its real id, your own internal key (say 2), rest of the data
...

you add a new component and save the result on a temporary table, now 
your temporary dataset is:

1) hdw 1, its real id, your own internal key (say 1), rest of the data
2) hdw 2, its real id, your own internal key (say 2), rest of the data
3) hdw new, no real id, your own internal key (say 3), rest of the data
...

You add a new volume and stock the data on a second temporary table, 
which contains:

1) vol 1, no real id, your own hdw internal key (should be 3 since you 
are adding to the last new hdw), your own internal volume id (say 1), 
rest of the data

You can repeat this step all over as much as you want (like fully 
building up a number of new disks, volumes or whatever), and have it as 
multilayered as you want (it will just take as many temporary tables as 
are the real tables involved).

Once your user finally reviews his/her data (say you entered a totally 
new system, reviewed it and felt satisfied with it) he will have a 
fire button somewhere.

At this point your final script just takes the data off the temporary 
tables and uses them to build the real thing.

Notice that this way you also sort of implemented a transaction. Not a 
real one, since it will not protect you if your final script fails at 
runtime. Yet you can be sure no unconsistent data from unterminated 
sessions will ever enter your stable datamodel, and that's were 99.99% 
of the risk would come from.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] checkboxes / form elements

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Analysis  Solutions wrote:
 On Fri, Jul 12, 2002 at 10:59:00PM -0400, Blue Presley wrote:
 
Hello.  I have a form that I would like to use checkboxes.
... snip ...
I've been told that if I want to manipulate each
one then I should use 'name=checkbox[]' and make an array out of it.  okay,
fine.  but how do i access them in my PHP script? I know I have to use the
$_POST[] array, but this creates a multidiminsional array, yes? do i access
it like $_POST[checkbox[1]]?? or $_POST[checkbox][1]??
 
 
 The latter.  But note, if a box isn't checked, it's not going to be 
 sent, so won't be in the array.
 
form
input type=checkbox name=StateID[] value=32 / NV
input type=checkbox name=StateID[] value=33 checked / NH
input type=checkbox name=StateID[] value=34 checked / NJ
/form
 
 In this case $_POST['checkbox'][0] would be 33 and ...[1] would be 34.
 
 Sometimes it's handy to identify the key upfront:
 
form
input type=checkbox name=StateID[32] value=608 / NV
input type=checkbox name=StateID[33] value=2 / NH
input type=checkbox name=StateID[34] value=40 checked / NJ
/form
 
 That would yield $_POST['checkbox']['34'] = 40.
 
 A nice way to handle incomming checkboxes is this:
 
while ( list($Key, $Val) = each($checkbox) ) {
   #  do what you need to do...
   #  for example, show what was sent...
   echo br /$Key = $Val\n;
}

Just one thing, as someone noted a week ago or so, you can't use the [] 
syntax *and* javascript. If you also need to process your checks from 
jscript side you shall resort to some older method and have your 
variables called like

input type=checkbox name=StateID_32 value=608 / NV
input type=checkbox name=StateID_33 value=608 / NV

then process it with variable variable names (the $$ syntax).

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Inheritance

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Jason White wrote:
 I have a class Foo{} which has a method Print().
 I have another class FooBar{} which extends Foo{} and has its own method
 Print().
 
 How do I invoke Foo{}'s Print() method from within FooBar{} once its been
 overridden?

parent::print();

if you have multilayered inheritance you may explicitely say which 
ancemtor class you are calling, like foo:print().

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Inheritance

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

 if you have multilayered inheritance you may explicitely say which 
 anceStor class you are calling, like foo::print().

two typos in a few words are definitely too much, sorry :)

BTW, although almost all class specification is dynamic you cannot 
dynamically specify a class name in fron of the :: operator. A bug, most 
probably.

$myclass = 'foo';
$myclass::print();

will produce a weird parse error.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] mysql question

2002-07-11 Thread Alberto Serra

ðÒÉ×ÅÔ!

1LT John W. Holmes wrote:
 How about
 
 SELECT * FROM table WHERE $current_shot BETWEEN start_shot AND end_shot

*if* that was on Oracle *and* the table was big you'd notice that your 
performance goes down. Don't ask me why. And I never checked it on 
MySql. But watch out for betweens. Check them.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Re: header()

2002-07-11 Thread Alberto Serra

ðÒÉ×ÅÔ!

 Richard Lynch wrote:

 You can't upgrade somebody's stupid IE browser to Mozilla just by sending
 them a new User-Agent header, no matter how attractive a solution it 
 might seem :-)

LOL sounds like having a supermodel pic sticked on the face of any girl 
you don't like :) Or boy, for what it matters :) Just make sure your 
glue holds properly :) Reality is not *that* virtual, yet...

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] mysql question

2002-07-11 Thread Alberto Serra

ðÒÉ×ÅÔ!

Alexander Ross wrote:
 I realize this isn't a php question, but I figured that someone here knows
 of a good mysql newsgroup and in the mean time someone here probaby knows
 the answer to my question.
 
 Can I set up a query like this:
 
 select * from table where start_shot = $current_shot and end_shot =
 $current_shot
 
 note everything will be of type INT

Yes, you can, providing that those fields would exist and be of a 
comparable type.
Just one question, wasn't it quicker to just give it a try? :)

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] MAIL FROM NO ONE

2002-07-11 Thread Alberto Serra

Chris Knipe wrote:
 On Thu, Jul 11, 2002 at 02:29:11PM +0200, vins wrote:
 Allot of SMTP servers does quite a bit of sanity checking on the headers
 received from an email message.  

Not in the west. They are too busy allowing in the commercial spam they 
are sending themselves. Otherwise you'd never be reading mail from a 
server called Lena.tut, as you are right now. And thank god they are 
not, since our ISP as a *lousy* SMTP service and I have to resort to 
this to make sure I can keep on working.

What I do not understand is why you would need to build anything to bomb 
the guy. Just make sure you get an ISP that cannot track the phisical 
call (here many are still on protostoric pulse stations, you can find 
that somewhere at your place too, pretty sure).

Then invent yourself a server name and run straight from sendmail, over. 
  All you need is a temporary account from a dial-up. You are not 
robbing a bank, so nobody will look for you (your abuse.somewhere.co.za 
will say they never knew anybody, just like they said from norway and 
they will keep on drinking their beers).

Personally I would not be cruel to anyone that has been already that 
mistreated by Mother Nature. Let him live with himself, it's the worst 
you can do to him. We got rid of Erik, but he never will :) *that* makes 
me happy.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Development Tools

2002-07-11 Thread Alberto Serra

ðÒÉ×ÅÔ!

Martin Clifford wrote:
 I usually always have my content dynamically generated by functions, 
 or displayed in include files.  I'm not a  fan of cluttering up my 
apps with content.

me neither. You can mix up code and content only as long as you work 
alone. But in most project (even very small ones) design resources and 
coding resources are not the same person, as design is largely a matter 
of customer taste, while proper coding is not.

Sometimes you have two people that are *far* from each other. Sometimes 
they do not even have a common language. So the less they need to 
interact, the better.

Besides, if the two things are well separeted you can port an 
application from one design to another with little effort. Sort of 
changing skin to a site. But you are attempting suicide when you do 
that on a site that mixes the two components.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Re: cookie ?

2002-07-11 Thread Alberto Serra

ðÒÉ×ÅÔ!

 The stuff about using time/directory is an IE bug.
 You can supply *BOTH* time and directory, but not just time.
 This is not the way the Cookie spec reads, but Microsoft never reads specs
 properly, much less implements them properly, mostly on purpose.

Not sure I am saying the truth but I'd say Mozilla 1.1 alpha does the 
same. I stepped thru it while I was (am) in a hurry, so I just sent the 
headers in instead and everything worked out. But setcookie() 
appearantly did not.

Maybe someone else did investigate a bit more. Maybe it was my code 
being broken. It's just a suspect.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




  1   2   3   >