[PHP] How to determine a function's outer context?

2002-07-03 Thread Alberto Serra
Hi! suppose we have this: class utility { function general_purpose($parm) { some_process or die("classname::callerfunction error with parm $parm") ; } } class someclass { var $utility; function someclass() { $this->utility = new utility; } function do_some

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

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > Jean-Christian Imbeault wrote: >> In general how does one go about hardening a PHP script. i.e. making >> it as "hacker-proof" as possible There is no such thing as a 100% secure solution (this applies to everything running on a computer, PHP included). But basically you

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > How do sessions help against this? Well, they don't solve the problem > entirely, of course, but the unique ID you pass around won't be the same > unique ID *every* time that user visits the site. So, you at least have > a good chance of making the window of time that a

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
CM wrote: > What do you do if you have a huge form that you want broken up into several > different forms but each time the submit button is pressed the info is saved > to the sql table. > > Do you just create the table on the first form submit and then on each > subsequent form you just update t

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > > These are just some ideas, mind you. Many people (you sound like such a > person) can develop their applications quite securely once they can step > back and see the big picture and follow a few general guidelines, such > as not trusting data from the client. In this

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Jason Wong wrote: > On Thursday 04 July 2002 09:09, Chris Shiflett wrote: > > >>As a caveat to Mr. Serra's suggestion, remember that there are *many* >>users who will go through an IP masquerading gateway or proxy, so their >>IP may fluctuate, even though they are actively browsing. For this >>r

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Miguel Cruz wrote: > > I'd suggest ignoring IP altogether and focusing on other tactics. There > are just too many pitfalls in trusting IPs and too much user annoyance > possible from not trusting them. Well, the way I made it admins get emailed each every time a user gets refused because of

[PHP] how to get calling method identity?

2002-07-03 Thread Alberto Serra
Hi! I already made this question, but probably I kinda made it in obscure terms. Trying to get clearer. let's look at this: function utility() { } Class a { function some_method() { utility(); } } now, how can utility know that it's being called by a::some_method()? What I nee

Re: [PHP] Strange MySQL Query Problem

2002-07-03 Thread Alberto Serra
eat pasta type fasta wrote: > $result = mysql_query("SELECT some_id, some_description, some_feature > FROM '$pop-up1' WHERE some_description LIKE '%$texfield%' AND > some_feature LIKE '%$pop-up2'"); have this query echoed to video and then cut it and paste it to mysql terminal. Most probably

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? Looks like Apache does no

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
Uwe Birkenhain wrote: > Hi everybody on this rainy morning! Rainy!? It's damn hot in Kiev :) > My problem: > I give the user a form with a list of options with checkboxes. > The list is long and not predictable - the values change always. > I want to put the checked values (or all, that doesn't

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

2002-07-04 Thread Alberto Serra
Wilbert Enserink wrote: > Later on in my script I'm calling the value of this column with php. > $query="select * from tblA LEFT JOIN "; it's been said over and over :) NEVER EVER write a select * query... use syntax Select a.column1, a.column2, b.column1 from tbl1 as a,

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 italian as of original nationality) and the

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

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Warning: PostgreSQL query failed: ERROR: Invalid EUC_JP character > sequence found (0x8140) in /www/htdocs/test.php on line 31 > > So I assumed that I should first convert user input into EUC-JP. Now, let's make sure we have a clear background: 1)

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! As for deciding what your user language/charset requests are (in terms of his/her browser settings) you might use this function // this function remains unchanged. It returns an array // 0 : negotiated charset // 1 : negotiated lancode function negotiated_langset()

Re: [PHP] Re: PHP and Object-Orientated Programming

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Manuel Lemos wrote: > Hello, > > On 07/08/2002 06:56 PM, Cm wrote: > >> I have a medium sized project that I'm started in PHP and mySQL. I >> think an >> object-orientated approach may be the best to reduce the amount of code. >> My question is if I'm using PHP should I even try to do

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Impossible, though it would be nice. Postgres can only accept one > charset for it's input not multiple. I hope you mean one charset per language. Otherwise I can just cancel POstgres from my list of usable engines. But yes, it can't be just one. >> *c

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! > Jean-Christian Imbeault wrote: >> My page is always in the same charset, the problem is that the user >> input might not be ... Okay, I went thru a bit of docs on the japanese multibyte problem and got some surface understanding of the problem. Yes, since char dimensions are going to

[PHP] Postgres and chinese, korean, japanese charsets

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Alberto Serra wrote: >> I hope you mean one charset per language. Otherwise I can just cancel >> POstgres from my list of usable engines. But yes, it can't be just one. > > I'm no pgsql expert but I think that yes, it w

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Worry and worry a lot ... I already do :( The most terrorizing thing is that desolating "There are no user contributed notes for this page." that appears almost on every function in the online manual. And the fact that there is no pointer for people in

Re: [PHP] Re: mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Found my problem.There was no problem. I was trying to test my code by > displaying the INPUT and OUTPUT in a web browser. I forgot to realize > that my input and oupts were in different encodings. > Now THAT'S NEWS! :) Okay, just put the SPAN thing arou

Re: [PHP] Re: Postgres and chinese, korean, japanese charsets

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Don't know the answer to your question exactly but how about > transforming all user input into something like unicode/UTF-8 (or > UTF-16) and *then* putting it into the DB? > > That way all the DB input has the same charset. That was my first idea, ye

Re: [PHP] Re: mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! > Can you explain that SPAN thing a bit more. You said to use: > > your text > > I can understand the charset param but what is the lang param used for? Basically it might even be useless. But id does not harm to use it. Like this: this text uses the header charset language setti

Re: [PHP] Re: mbstring: Japanese conversion not working for me

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! > > 2 : 111??1235 > language codes are zh = chinese ko = korean ja = japanese the charset codes must be fully specified, such as ISO-2022-JP (the one you are using yourself) SHIFT-JIS EUC-JP otherwise it will make no sense to your browser. Usually looking at wh

Re: [PHP] Re: mbstring: Japanese conversion not working for me

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > I tried EUC-JP and ISO-2022-JPand neither worked. Ah well ... so much > for a nice idea quick hack to displaying multiple charsets at once. They should. I checked out w3c.org at that and it definitely should. No exception for japanese mentioned anywhere

[PHP] Somehone having a problem to write to the list

2002-07-09 Thread Alberto Serra
To the *list* *maintainers*: this guy says he is registered but cannot write to the list. So he wrote me in instead. úÄÒÁ×Ï! (it's like that, right?) Djurovski Dejan wrote: > $aDBLink=@mysql_connect("$host", "$user", "$password"); > mysql_select_db("$db", $aDBLink); you might want to take the

Re: [PHP] Stupid install ???

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Hopp3r wrote: > I have installed PHP4.2.1 and when I open a browser to look at a test php > page? all I see is the php code, not the output of phpinfo(). I know it is > something small that I have overlooked. Can someone help? Please??? > Yes, you forgot reading the instructions :) You

Re: [PHP] "Invalid content" using FastTemplates

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! PeterV wrote: >> Warning: Invalid content of \{\} in >> /home/httpd/includes/fasttemplate.class.php on line 199 You are on windows, aren't you? I remember seeing such a thing some two years ago. It vanished after php reinstallation. After that I did the right thing and had microsoft

Re: [PHP] Script File Permissions

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Chris Earle wrote: > So my question is this: how do I get my script to have permissions to write > or append to any file? Ask your sysadmin (I can almost bet the answer will be NO, I have to tell you). Apache should be running on your system as user nobody, and most probably does NOT

Re: [PHP] passing objects in url

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Alexander Ross wrote: > If $this is an object, can I have the following link? > > Process > > Will the URL become too long? Will teh info get passed correctly? thanks > 99% you are right, it will definitely be too long for a GET. Besides, before writing the process_this.php?this=$th

Re: [PHP] passing objects in url

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Marek Kilimajer wrote: > This won't work, you must register it within a session, just remember to > declare the class befor session_start() This can be pretty risky if your object contains references to external objects. Works okay for insulated instances, though. Yet I would suggest

Re: [PHP] Cookies

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Varsha Agarwal wrote: > Hi, > Can anyone tell me what a cookie is in simple language > with an example?? > -Varsha A web connection is made by two machines: 1) the server, where the site is 2) the client, that is, the machine at which sits the user Once the client sends a request fo

Re: [PHP] PHP vs. Java

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! IMHO java is to be avoided. fullstop. Still, it might be unavoidable from a commercial point of view. In that case, you should avoid being involved in the project and let the marketing dept have their fun on their own. There's a lot of pleasantly paid jobs that won't kill your nerves

Re: [PHP] Script File Permissions

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Chris Earle wrote: > Thank you for the reply (I don't speak or read Russian if that's what that > other stuff is). It is, but it's nothing more than "hello" and my signature, so you did not miss any basic content :) > I forgot to mention that the server is a Win2k server with > IIS 5

Re: [PHP] $_REQUEST???

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Patrick Teague wrote: > Hello, > > Considering all of this... Would it be better simply to turn > register_globals = On if the vast majority of the stuff you have on your > site is simple search engine type stuff and/or GET variables? Well, such stuff needs NOT security, nedless to say

Re: [PHP] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

2002-07-09 Thread Alberto Serra
ðÒÉ×ÅÔ! Daniel Negron/KBE wrote: > Is this retaliation ? People are so stupid they cannot even understand that we will simply filter him out of our mail right to trash bin :) I'm just sorry Mozilla is missing an autoresponder. I would have him mailed back with some HUUGE .doc any time he writ

Re: [PHP] (OT) Our Spam Friend

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! Brian McGarvie wrote: > we should make a script that constantly emails him single characters and all of us >run it in a back ground process ;) He is lucky we have all to much to do in our lives anyway :) But if anyone has got spare time... the guy's mailbox (unlike most russian public

Re: [PHP] Generate a file

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! Phillip S. Baker wrote: > Now if that is cool, how would I get the data into the downloaded.xls > file to have this work? 1) Save the data as a comma-separated list (pap.data.csv). 2) make an excel macro that will load it into a preexisting sheet and treat it 3) put the macro as the au

[PHP] Operator missing?

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! in PHP we have a set of comparison operators going like $a == $b (has same value) $a === $b (has same value and type) shouldn't we have also something like $a =&= $b (is same instance)? Maybe we already have it and I just don't know about it. Is that so? Because of the copy/reference m

Re: [PHP] strange php output

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! Calvin Spealman wrote: > if (!$page=="datetime") // Not using index.php > { > include("header.php"); > } > ?> > > this code works when datetime.php is included by index.php, but on its > own the script just outputs . Even ignoring > the xhtml code outside the php

Re: [PHP] cookie ?

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! [EMAIL PROTECTED] wrote: > hi all, > (yes it's me again) > i've got an other problem. > i've got an login system, and it has to put an cookie, but it seems he > doesn't do it. 1) users may block your cookie. 2) browsers (they often do) may not respond properly to a setcookie() comma

Re: [PHP] strange stuff in a class

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! > > class test { > function test() { > $globals['test2'] = &$this; > } > } > > $test1 = new test(); > > ?> > > The problem hier is that $globals['test2'] is a copy of $globals['test1'] not a > references. It is, but you are looking in the wrong direction. the co

php-general@lists.php.net

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! when your instances contain references and you prepare ther references in the constructor, you should remember to call the *new* function with an &. Otherwise all you get is a copy, and all the references you prepared are invalid. use *new and all you trouble vanishes away :) ÐÏËÁ á

Re: [PHP] Development Tools

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! gEdit rulez! :) well, I seldom make files any bigger than a couple of scrolls, so... much depends on your programming style. And habits. But I am with Uwe. Nothing like a plain text editor. Maybe I am just too old to understand novelty LOL ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× @-_=}{=_-@-_=}{=_-@-_=}{=_-

Re: [PHP] SQL field problem

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! [EMAIL PROTECTED] wrote: > You see that all entries are not unique.So i want to list as output all entries but >only once.If the word "Dark" is in the table 6 times php should output dark only 1 >time. > How should i solve this problem ? select distinct and RTFM :) ÐÏËÁ áÌØÂÅÒÔÏ ëÉ

Re: [PHP] Dumb session / cookie / password questions

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! Martin Clifford wrote: > Firstly, you should ALWAYS use an encryption algorithm for passwords. > For my site, I used md5() and match with that. > That way, even if someone does get a hold of the encrypted password, it's not in their best interest > (or maybe it is, if they're bored) t

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

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

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 <= $cu

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'

  1   2   >