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

2002-09-03 Thread Alberto
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://b

[PHP] CLASSES AND OBJECTS..

2001-04-14 Thread alberto
Anyone know if one day PHP will support multiple inheritance? I think it's very important... For example, will PHP support this code: class A extends B, extends C { } where B and C are classes? Thanks! Alberto -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] R: [PHP] CLASSES AND OBJECTS..

2001-04-14 Thread alberto
Yes... Becouse in some large projects, it's very hard to wok with a single level inheritance... i think that PHP is a very good language and come better every day... so i hope in the future programmers can use multiple inheritante with classes in PHP. Thank for the answer Alberto &quo

[PHP] Problems with TTF

2001-10-24 Thread Alberto
Warning: Could not find/open font in /sdr/httpd/Prisa/DATA/private/libs/graficos/intradia.php on line 57 Line 57: ImageTTFText ($O_imagen, 11, 0, 10, 20, $O_colorValor, "arial.ttf",$s_Valor); arial.ttf is into the same dir. Any ideas? that file has read permissiones for everyone. -

[PHP] gray square using imagecopyresized

2001-10-25 Thread Alberto
That's my call: imageCopyResized ($O_imagen, $O_relleno, 0, 0, 0, 0, 83, 62, 174, 83); If I do imagePNG($O_relleno); I can see the correct image, but when I do imagePNG($O_relleno); after imageCopyResized I see that it has copied a gray filled square (with correct

[PHP] GD Copying Images

2001-10-26 Thread Alberto
I have 2 images, and I want to copy/reescale a block from image A to image B, when I do it (imagecopyresized) I get a gray square on image B, I think that the problem is palette colors, how can I copy palette from image A to image B? Thnx -- PHP General Mailing List (http://www.php.net/

Re: [PHP] GD Copying Images

2001-10-26 Thread Alberto
Where can I get that code for PHP 4.0.6? I added to ./ext/gd/gd.c /* {{{ proto int imagecopyresizedbicubic(int dst_im, int src_im, int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h) Copy and resize part of an image */ PHP_FUNCTION(imagecopyresizedbicubic) { z

[PHP] Parse Error

2001-10-29 Thread Alberto
Parse error: parse error, expecting `T_VARIABLE' in /sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18 http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] DB wrapper

2001-10-30 Thread Alberto
Any1 knows about a good class for DB abstraction? I need some scripts to work with mysql/pgsql. Thnx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAI

[PHP] header("Location:);

2001-10-30 Thread Alberto
Ok, it works fine for me, i can redirection, but I don't want the browser to load another page, I want to IF A THEN RUN A.PHP, IF B THEN RUN B.PHP, I know i can use include('a.php') or require('a.php') but I'm sure theres a way to say php parser to run one or another script without "changing URL"

[PHP] Timestamps operations

2001-08-24 Thread Alberto
I have 2 timestamps like mktime(0,0,0,10,10,2001) and mktime(0,0,0,9,9,2001), I want to know how many days are from timestamp1 to timestamp2 or how many hours, or how many seconds, thnx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

[PHP] Variable declaration

2001-09-26 Thread Alberto
I want PHP parser to warn/fail when I try to use a variable not declared before. Like "Option Explicit" on ASP/VBA. Thnx in advance :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Variable declaration

2001-09-27 Thread Alberto
And I get no warning about $Test not being declared before (like C declaration). Any1 has an example about forcing variable declaration? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Error compiling PHP

2001-09-27 Thread Alberto
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --prefix=/us r/local/php --enable-ftp --with-gd --with-pgsql Works OK then Make and I get: /bin/sh /home/soft/src/php-4.0.5/libtool --silent --mode=compile gcc -I. -I/home/soft/src/php-4.0.5/ -I/home/soft/src/php-4.0.5/main -I/home

[PHP] PostgreSQL connection problems

2001-09-27 Thread Alberto
Warning: Unable to connect to PostgreSQL server: No pg_hba.conf entry for host myhost, user myuser, database mydb in /path/to/principal.php on line 27 that's $bdConexion = pg_connect ("host=".$bdHost." port=".$bdPuerto." dbname=".$bdBD." user=".$bdLogin." password=".$bdPassword); PHP is alrea

[PHP] Get-type links won't complete querystring values

2002-12-04 Thread Alberto Brea
"); print("$textos[$h]"); print(" - "); elseif($k=="2"): print("$textos[$h]"); endif; endif; endforeach; ?> Could anybody help? Thanks in advance Alberto Brea http://estudiobrea.com

[PHP] fwrite()ing predefined variables

2002-12-10 Thread Alberto Brea
$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] Unable to set permissions

2002-12-26 Thread Alberto Brea
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] fwrite() debugging

2002-12-31 Thread Alberto Brea
; Thanks a lot in advance and happy new year! Alberto Brea http://estudiobrea.com

[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] 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] Passing emails to database

2003-02-19 Thread Alberto Brea
e 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] Spaces collapsed in database

2003-02-28 Thread Alberto Brea
n 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 $s

[PHP] Stop neurotic posting

2003-08-14 Thread Alberto Brea
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

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

2003-03-20 Thread Alberto Brea
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] Self-filling login form

2003-04-03 Thread Alberto Brea
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

[PHP] chill out

2003-04-03 Thread Alberto Brea
t 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

[PHP] Compile 4.3.2 Errors.

2003-05-31 Thread Alberto Ferrer
e `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 unsubscri

[PHP] Re: problem with pop3 check

2003-06-01 Thread Alberto Ferrer
s = imap_headers ($mbox); if ($headers == false) echo "Call failed\n"; else while (list ($key, $val) = each ($headers)) echo $val . "n"; imap_close ($mbox); And you can look the manual, but this code is from the manual, have a loot of examples ;)

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

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

[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

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

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

[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] Keywords in includes

2002-11-22 Thread Alberto Brea
7;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] How to determine a function's outer context?

2002-07-03 Thread Alberto Serra
eters? Apart from leading to more compact code writing this would avoid typo errors and give a more accurate tracing system. I am sure it can be done, but I cannot figure out how to do it myself. Thanks Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ Lo

Re: [PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Alberto Serra
a very secure application. Many people focus only on securing the > environment, but writing secure code is often much more important. Words of wisdom! and actually about 75% of the code you write is dedicated to this very job, if you re

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
tting it from and you are 100% sure the guy is who he says to be. There is one side-effect, though. Users on unstable dial-up lines do lose their sessions when they get disconnected and call again. It may have an impact on sales. Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > Alberto Serra wrote: >> If you want to avoid even this small window, just store on a db file >> the session numbers you give away, along with the IP address of the >> user who got it. Then when you get a new request for that session >> chec

Re: [PHP] Multiple Forms and 1 SQL table

2002-07-03 Thread Alberto Serra
n the input process you are managing). This way your real table stays compact and DB performs much better. Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My Mi

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
g to my annoying questions :)) I made sure you got credited for this on the source docs. Thanks again :) Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
ve this configurable just as the time-out interval. So local admins may decide on their own which level of security they want to apply to their sites. Thanks for helping :)) Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
al sites will set the check IP rule to 0 but in case someone wants a strict check he can configure the system to do so. I guess this will fit everybody. And of course we do have all the other stuff, so even without IP checks the systems remain pretty secure. Thanks for hel

[PHP] how to get calling method identity?

2002-07-03 Thread Alberto Serra
of knowing which method was executed when the event occurred. Any idea? Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ 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

Re: [PHP] Strange MySQL Query Problem

2002-07-03 Thread Alberto Serra
it and paste it to mysql terminal. Most probably you'll find out that it's an uppercase/lowcase problem. Unlike Oracle Mysql IS case sensitive on tablenames and columnnames. Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me,

Re: [PHP] Help!

2002-07-04 Thread Alberto Serra
tion/x-httpd-php .php3 AddType application/x-httpd-php-source .phps have fun :)) Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ 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

Re: [PHP] Help!

2002-07-04 Thread Alberto Serra
> John Lazos wrote: > >> and i put the file in my htdocs directory i restarted apache and when >> i'm trying to access the page http://localhost/hello.php as a result >> i'm getting the contents of the file hello.,php > > > >> What is wrong is my apache able to display php pages? > > > Loo

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Alberto Serra
es the problem. I've been using this for ages and it never gave me problems. Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ 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

Re: [PHP] mysql/php how to retrieve the right column with 2 columnsof the same name

2002-07-04 Thread Alberto Serra
column1 from tbl1 as a, tbl2 as b where . and you'll never get in trouble :)) Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw

Re: [PHP] $_COOKIE

2002-07-05 Thread Alberto Serra
Scott Fletcher wrote: > I have a question! Since the $_COOKIE is on the server side, not on the > client side. So, will the use of hte $_COOKIE be affected when the user's > browser disabled the cookie? I do not know how the $_COOKIE on the server > side work or get the information from. > > T

Re: [PHP] $_COOKIE

2002-07-05 Thread Alberto Serra
your order. Or willing to, since users may disable cookies. Sort of blind date, but the girl may actually not show up later... 99% she will, but you should not count on it. ðÏËÁ áÌØÂÅÒÔÏ ëÉÅ× > > "Alberto Serra" <[EMAIL PROTECTED]> wrote in message > [EMAIL PRO

Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! > Because! LOLOL okay. You can use this javascript stuff, it's more accurate and does not get fooled by the rubbish people write in their user_agents // This function attempts to determine visitor's spoken language // //

Re: [PHP] total (slightly OT)

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! watch out mysql (or whatever db you have) for SUM() and AVG functions, make sure you understand what a GROUP BY clause is. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× [EMAIL PROTECTED] wrote: > Hey everyone, > Am working late as usual before the weekend and so I fear i'm a bit braindead! > Anyway,heres my prob

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! That's interesting. I actually never used Postgres on production environments, so... How often does it melt? And is there a known reason or it's just a matter of *luck*? My opinion is that Mysql is after all nothing more than an ISAM file system, which can be queried by SQL. And it's

Re: [PHP] Re: PHP for AIX.5.1

2002-07-05 Thread Alberto Serra
Scott Fletcher wrote: > Yea, it use the Linux Kernel. I had to download RPM stuffs from IBM. It > can not be from Red Hat or any other. IBM take the source code and put it > into RPM. IBM kept making error message about some RPMs, so that is why I > went back to non-linux kernal AIX. > ðÒÉ×Å

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Alberto Serra
Lazor, Ed wrote: > I saw that Microsoft has a Certificate Authority server package that allows > you to create your own key. Is there a way to do this in linux? In this > particular instance, it's me accessing my own web site. I'd like to encrypt > the session and I'm don't need someone to conf

Re: [PHP] localhost - passing variables

2002-07-05 Thread Alberto Serra
Tony Tzankoff wrote: > Is it possible to pass variables in PHP on the localhost server? Is there > some kind of setting or something that I need? I am new to this and am not > sure how to go about this. When I upload to a server, the script I have > works just fine; but when I work on it locally,

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Alberto Serra
Miguel Cruz wrote: > Yup. You'd think that the browser developers would come up with a way to > indicate this (mouse pointer turning to a lock when hovering over a submit > button, etc.). > ðÒÉ×ÅÔ! Yes, it's a GREAT idea! would make our HTTPS processing traffic much better (that is, quicker

Re: [PHP] Stored Procedures

2002-07-05 Thread Alberto Serra
David Busby wrote: > List, > I'm using a postgres datbase for my PHP project, how do I make > stored procedures? Or if no SPs then what would be recomendation for > building simple/reuseable "Put" and "Get" procedures for my data? > > /B > > ðÒÉ×ÅÔ! Stored procedures ARE much better, (

Re: [PHP] ./configure with register_globals turned on?

2002-07-05 Thread Alberto Serra
Scott Fletcher wrote: > I tried following all of your suggestion and so far, still the same. I > tried changing other feature in the php.ini and check the phpinfo and found > that they haven't changed either. So, the problem lie with the file path in > finding the php.ini file. I only have one

Re: [PHP] I am probably dumb but why isn't this inserting stuff intomy DB?

2002-07-05 Thread Alberto Serra
JJ Harrison wrote: > Attached is the file. > ðÒÉ×ÅÔ! No attachment came :( ðÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ 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

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Alberto Serra
: > -Original Message- > >>From: Alberto Serra [mailto:[EMAIL PROTECTED]] >>Sent: Friday, July 05, 2002 8:54 PM >>Cc: [EMAIL PROTECTED] >>Subject: Re: [PHP] HTTPS vs. HTTP ? > > >>Besides, using an HTTPS server implies >>(correct me if I am w

Re: [PHP] I would like to ask about Photo Upload in mysql and reteiveproblem .

2002-07-05 Thread Alberto Serra
Jimmy Lam wrote: > Dear all , > > I am a new bie here and I would like to know more about coding in upload photo >file > > Jimmy > ðÒÉ×ÅÔ! just read the online manual. Everything is quite clear there about all sorts of uploads. Examples included. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@

Re: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! > gh> ; Whether or not to enable the dl() function. The dl() function does NOT > gh> work > gh> ; properly in multithreaded servers, such as IIS or Zeus, and is > gh> automatically > gh> ; disabled on them. > gh> enable_dl = On Solution is self-evident: format your hard-disk and

Re: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! Miguel Cruz wrote: > I can't believe it! I totally forgot it was Ivan Kupala Day! Now that's too bad :)) You missed a great chance to party :))) Well, just as much as I did... :( BTW, I better not say anything about Unix anymore... as soon as I sent that mail Mysql died :(( Looks like

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! > Any suggestions on how to do this? Yes, 1) *DO* look around and find yourself some text about normalization. I mean, paper. Something you can hold in your hands without rushing to try-and-code it. Then get yourself a sigarette (if you are a smoker) and spend two hours of your lif

[PHP] Charset/language request headers

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! I am not too familiar with the way language and charset requests are coupled by browsers. After processing the headers I get this two arrays (based on my personal Mozilla settings). charset -> Array ( [0] => KOI8-R [1] => utf-8 [2] => * ) language -> Array ( [0] => ru [1] => en [2] =>

[PHP] Charset/language request headers. Yes, it's true :(

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Doing multiligual sites presumes you can somehow understand what the client expects from you. Browsers all are full of language settings, but... The HTTP specification is very little language negotiation oriented in itself (this is probably a consequence of its having started out in a

Re: [PHP] mail help, and php.ini help.

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Greg Scotts wrote: > $to # > $from # > $subject # > $message # > mail($to, $from, $subject, $message) It always worked for me... you obviously checked variable content, did you? And I am not sure I got you right. Mail gets sent, it's just the sender address being wrong? > Also, i was

Re: [PHP] help help help!!!!!!pls........

2002-07-06 Thread Alberto Serra
Balaji Ankem wrote: > I have multiple check boxes ...and I gave the single name to all check > boxes. > > If I post to my php script I am not getting all the values as an > array.I am getting only one value(last value). Correct. Since they are all named in the same way, the last one

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Pekka Saarinen wrote: > Also, many virtual hosts share MySQL server(s), so offering a choice to > use PHP for pagination and sorting on "own server RAM/CPU" may by > beneficial. I also believe that anything that produces less load to > MySQL is good. Absolutely true. First time a cust

Re: [PHP] issue with script after php upgrade

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Jamie Novak wrote: > http://myserver/index.php?dir2=somedirectory > > In 4.1.2, if I echo $dir2 at the beginning of the script just for > testing, it will echo the value of the variable without issue. In > 4.2.1, the variable never appears to get set at all, although it does > show up j

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Chris Shiflett wrote: > Richard, >> Do you really believe that for $200 (or $119, or $500) that they "proven" >> themselves trustworthy? LOL no, I don't. As a matter of fact crooks usually have more money in their pockets than honest people do, so it's highly possible that a crook will

Re: [PHP] Thanks

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Probably a stupid question. Is there anyway to force POSTing a form from the refresh META? IMHO that is NOT possible, but maybe I am wrong. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M

[PHP] Posting with refresh META

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Sorry, I forgot writing a intelligible subject on previous posting :( So I repeat. Probably a stupid question. Is there anyway to force POSTing a form from the refresh META? IMHO that is NOT possible, but maybe I am wrong. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=

[PHP] Привет!

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! I detach this from current thread as it has nothing to do with it :) now: ðÒÉ×ÅÔ! means "hello" (pronounce "preevjet", accent goes on je) ÐÏËÁmeans "bye" (pronounce "paka" accent on last a) The rest is just my name (Alberto, I am ital

Re: [PHP] Thanks

2002-07-06 Thread Alberto Serra
B.C. Lance wrote: > not from meta refresh. but javascript could do that. set a timeout that > will fire the submit event after 2 seconds. that will work. > > b.c. lance > ðÒÉ×ÅÔ! I already have that and it works fine. The problem is when jscript is not working (or missing). I was trying to b

Re: [PHP] Thanks

2002-07-06 Thread Alberto Serra
B.C. Lance wrote: > you might wanna fire that javascript using onload from the body tag. > that kinda assure the page is loaded successfully before the event takes > off. ðÒÉ×ÅÔ! It is there already. My problem is to do it something that will save my *ss in case jscript is *NOT* there. So it

Re: [PHP] Thanks -> Actually POSTING without javascript

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! B.C. Lance wrote: > hm... how about sticking couple of iframes that will load the piece of > javascript and have each of the javascript in the iframe firing at > different time? i suppose at least 1 copy of javascript will be there to > do the intended work. I realize I was being obsc

Re: [PHP] Having more problems

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Shiloh Madsen wrote: > > $LoginDB=@mysql_connect($dbhost, $dbuser, $dbpass); > if (! $LoginDB) { > print "Unable to connect to the database server at this time."; > exit(); > } else { This can be just: $LoginDB=@mysql_connect($dbhost, $dbuser, $dbpass) or die('Unable to connect t

Re: [PHP] Linked drop down selection lists and dynamically generatedlinks

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Peter Goggin wrote: > Can this be done using only PHP or do I need to use Javascripts? managing this in PHP should be considered *only* when jscript is not available. It's a matter of load distribution. When doing client server applications (like the web is) you shall always remember

Re: [PHP] Thanks -> Actually POSTING without javascript

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! > an image of brintney spear and a text on it telling the user to click on > sounds appealing to you? ;) LOLOL yes, something like that :) when the second execution fails (that is, the refresh META sends back no data on the POST channel) we show the user a form with the local logo,

Re: [PHP] Mailing all the elements of a form

2002-07-06 Thread Alberto Serra
Jeremy Bowen wrote: > Hey, > > I have looked in PHP manual but I cannot seem to find what I am looking for. > > I have a very large form that I need to be able to mail. I just don't want > to have to code all of the field into my mail() function. > > Thanks, > > Jeremy > > ðÒÉ×ÅÔ! *IF* the

Re: [PHP] Linked drop down selection lists and dynamically generatedlinks

2002-07-06 Thread Alberto Serra
Naintara Jain wrote: > this is of course, keeping in mind, that your backend (database data) is not > changing every few seconds. If you are dealing with dynamic data, such that > the list options might be changing at every moment then you would need the > latest database data and PHP would need t

Re: [PHP] Problem with SQL query

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! > I can't figure out what is wrong with this: > > $query = "select count(*) as monthly_views from visitors group by > extract('year', time), extract('month', time) order by monthly_view desc > limit 1"; AFAIK this is no ANSI SQL, which is why is not portable. Your query should really

Re: [PHP] Problem with SQL query

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! I forgot to add: SELECT extract('year', time), extract('month', time), count(*) as monthly_views FROM visitors group by extract('year', time), extract('month', time) order by monthly_view desc limit 1 I take it that you have a *monthly_view* column in your table

Re: [PHP] Splitting up a timestamp?

2002-07-07 Thread Alberto Serra
Tony Harrison wrote: > Hi. I please need some help with converting a MySQL timestamp into something > easily read. Any help at all is most appreciated, thanks. > ðÒÉ×ÅÔ! use DATE_FORMAT. (it's a MYSQL function, not a PHP one). Look for it in the online MySQL manual. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× --

Re: [PHP] inserting linebrakes in multisite forms

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! andy wrote: > One Form has a textfield, I submit it to another html site where there is > another form with a textfield. Inside this textfield I place a hidden field > with the value of the field from page 1 then I submit to the actual php site > inserting the values into a db. So, let's

Re: [PHP] About submitting multipart.forms

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! MG Lim wrote: > has anyone met with this problem.. using IE to submit multipart forms. in > text fields if there is "&" ... all text after it will disappear..quite a > nuisance when submitting yes, all dangerous chars should be substituted. Like " for the " symbol. It's not just IE, it'

Re: [PHP] transporting variable via post to another site

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! andy wrote: > Everything works fine exept of error handling. Which means if a user wants > to go back from step 2 to one and has already filled in some data in site 2 > he will loose this data for sure. It is not possible to transport the data > via get anymor because the text is way to l

Re: [PHP] transporting variable via post to another site

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! andy wrote: > sorry maybe I did explain it not good enough. > > The problem is that if a user has entered data in form 2 goes back to form 1 > and forward to form 2 again, the data he entered once in form 2 is lost. And > I do not find a way how the get the data out of form 2 because th

Re: [PHP] Problem with SQL query

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! Mark Charette wrote: > LIMIT was not included in the SQL92 SQL standards and very few vendors > implement all of SQL99; the use of ANSI standards to promote "portable" > programs has always been beset by this kind of problems. Yes, and vendors just love to have proprietary standards to p

Re: [PHP] flip function

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! > I've tried with create function, for example: > > function flip($f,$arg) { > return create_function('$y','return '.$f."($arg".',$y);'); > } > > But if you use flip("foo",$o1) where o1 is an object then it won't work. Never tried that on Haskell coding, but it did solve most of my t

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! >> Chris Shiflett wrote: > it is very misleading and would indicate that I > have very little knowledge about PKI systems, Come on, nobody here would ever think of that. Especially since most of us (put me as first one in the list) should know much more about PKI ourselves before jud

[PHP] MING

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! has anyone been using MING extension in a production environment? Is it robust? ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ 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 A

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! This is for Chris and Miguel and all the people who threw in infos. I just wanted to thank you all :) It's been really useful, and yes Chris, I guess you should post an explanation of the process somewhere. Most of us are prepared to use HTTPS but we can hardly explain our customers (

Re: [PHP] is their a jobs mailing list?

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Peter wrote: > I think a mailing list would be ... I think the basic question is WHERE this thing will be. HOW it works becomes a secondary decision, once you know whether it makes sense to spend time on the project or not. IF php.net wants to add up a job-oriented location this makes

Re: [PHP] $_REQUEST???

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Scott Fletcher wrote: > Can the $_REQUEST be trusted?? The documentation said it is the combination > of $_GET, $_POST, $_COOKIE & $_FILE. If the PHPSESSID is found in > $_REQUEST, I can tell it is from $_COOKIE. I wonder if the PHPSESSID can be > stored into $_REQUEST if hte $_COOKIE

  1   2   3   >