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 v

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 tru

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 +---+ ! +---+ ! ! mai

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

[PHP] Weird :: behaviour

2002-07-12 Thread Alberto Serra
ðÒÉ×ÅÔ! 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.

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 simpl

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

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

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

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

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 gettin

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

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 separa

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

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 multilaye

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 f

Re: [PHP] hello the list

2002-07-13 Thread Alberto Serra
ðÒÉ×ÅÔ! Nicolas GUILLOU wrote: You may either write: > echo "$cd_id"; or > echo "size=1>$cd_compositeur"; ðÏËÁ áÌØÂÅÒÔÏ ëÉÅ× @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT

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

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 ge

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

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

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

[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

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 offi

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

2002-07-16 Thread Alberto Serra
ðÒÉ×ÅÔ! Michael Zornek wrote: > We all know this works: > > echo "$someVar"; > > However this does not: > > echo "$db->field('name_long')"; > > I know this slight variation will make it work: > > echo "" . $db->field('name_long'); > > But it's cumbersome .. Anyway to get the first way to wo

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

Re: [PHP] Good instruction for installing webserver using RPM andtar.gz files???

2002-07-18 Thread Alberto Serra
ðÒÉ×ÅÔ! Scott Fletcher wrote: > I'm pretty used to installing OpenSSL, Mod_SSL, Mcrypt, cURL, PHP and Apache > with all of them in tar.gz files. Now I'm experiementing it on the Linux > and mySQL. Never tried it on both Linux and mySQL before. In my very limited Linux experience I found out th

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

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

Re: [PHP] spawning scripts to different graphical targets

2002-07-18 Thread Alberto Serra
enu) 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 w

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

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 ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× @-_=}{=_-@-_=}{=_-@-_=}{=_-

<    1   2