[PHP] Re: classes v. functions

2003-07-19 Thread Sam Baum
Hi, am Friday 18 July 2003 23:08 schrieb Andu: > This may show my ignorance or my refusal to take for granted something I > don't fully understand but I have a hard time figuring out the advantage > of using classes as opposed to just functions. I am certainly new to php > and at first sight clas

[PHP] caching question

2003-07-19 Thread Jean-Christian IMbeault
I am using Apache 1.3.27 and PHP 4.3.3.RC1 and someone has told me that my web page cannot be cached but I cannot figure out why. My friend tells me my pages all keep sending this in their headers: Cache-Control: post-check=0, must-revalidate, no-store, no-cache, pre-check=0 But I can't figure

[PHP] Re: classes v. functions

2003-07-19 Thread Jean-Christian IMbeault
I am sure someone will call this heresy, but if you really want OO don't (Bdo it in PHP. If you are new to OO and start with PHP you will do (Byourself a grat disfavour. OO programming in PHP is still not ready. If (Byou try and program in OO in PHP you have to learn all of it's (Bshortcomings

[PHP] Re: caching question

2003-07-19 Thread Jean-Christian IMbeault
Found somewhat of an answer here http://www.mnot.net/cache_docs/: (B (B"By default, objects processed by PHP are not assigned validators, and (Bare therefore uncacheable" (B (BJean-Christian Imbeault (B (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: htt

Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25

2003-07-19 Thread Philip J. Newman
thanks - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 06, 2003 7:06 PM Subject: Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25 > On Sunday 06 July 2003 14:59, Håkon Strandenes wrote: > > This is not my server, so

[PHP] HOW TO -- ARRAY UPDATE MYSQL

2003-07-19 Thread Suresh Babu.A [Support]
HI ALL, I want to update a mulitple row from a HTML Table to MYSQL Database. L1 V1 T1 L2 V2 V2 L3 V3 V3 Any help in this regard is much appreciated. Suresh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] classes v. functions

2003-07-19 Thread Tom Rogers
Hi, Saturday, July 19, 2003, 7:08:55 AM, you wrote: A> This may show my ignorance or my refusal to take for granted something I A> don't fully understand but I have a hard time figuring out the advantage of A> using classes as opposed to just functions. I am certainly new to php and A> at first

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Ryan A
Hi, I myself never really create classes to use in my projects, if I ever use classes its only because they come from someone else (eg phpclasses.org), I find using the non OO approach much easier to understand. Just my 2 cents. Cheers, -Ryan - Original Message - From: "Sam Baum" <[EMAIL

[PHP] affiliate program

2003-07-19 Thread Ryan A
Hi, Can anyone recomend a good affiliate program please? I have found a couple at hotscripts/scriptSearch and google but I dont know which one is really good (and free :-D ) depending on your experience...which one would you recomend? The program is for sites selling software and memberships (non p

[PHP] dbx module - limit

2003-07-19 Thread Sebastian Erlhofer
Hello, fist, I want to introduce myself. I am 24 years old, studying media science in Germany (Trier) and working with PHP for 5 years now. My question is about the dbx module in PHP. Is there any possibility to use it with mysql-command: LIMIT? There are similar commands vor postgres etc. but I

[PHP] what is the problem?

2003-07-19 Thread pehepe php
form.php is this: takeform.php is this: these codes are running at my hosting but it couldn't run on my computer. I tried on pws, apache, php 4.0.4, php 4.2.2 and php5 but it didn't work. why i couldn't run it? please help me! ___

Re: [PHP] what is the problem?

2003-07-19 Thread Chris Knipe
> form.php is this: > > > > Learn to code html ;) > takeform.php is this: > > echo $sentence; > ?> echo $_POST['sentence']; > these codes are running at my hosting > but it couldn't run on my computer. I tried on pws, apache, php 4.0.4, php > 4.2.2 and php5 but it didn't work. > > why i

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Curt Zirzow
Sam Baum <[EMAIL PROTECTED]> wrote: > Hi, > > am Friday 18 July 2003 23:08 schrieb Andu: > > > This may show my ignorance or my refusal to take for granted something I > > don't fully understand but I have a hard time figuring out the advantage > > of using classes as opposed to just functions. I

Re: [PHP] what is the problem?

2003-07-19 Thread John Manko
just a few more tips. the following ensures that an form input field by the name of 'sentence' is actually sent via method=post, otherwhile you can escape it. this is good for low level script integrity if( isset($_POST['sentence']) ) echo $_POST['sentence']; you might want to also look into th

Re: [PHP] running a php script in /cgi from /web

2003-07-19 Thread Dale Walters
Tom Rogers wrote: Hi, Saturday, July 19, 2003, 10:31:04 AM, you wrote: DW> Folks, DW> I've searched through the archives of the general mailing list and DW> cannot find the answer to my question. My web hosting service requires DW> ALL scripts run from /cgi. I've tried putting and

Re: [PHP] caching question

2003-07-19 Thread Curt Zirzow
Jean-Christian IMbeault <[EMAIL PROTECTED]> wrote: > I am using Apache 1.3.27 and PHP 4.3.3.RC1 and someone has told me that > my web page cannot be cached but I cannot figure out why. My friend > tells me my pages all keep sending this in their headers: > > Cache-Control: post-check=0, must-rev

Re: [PHP] what is the problem?

2003-07-19 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sat, 19 Jul 2003 at 15:25, lines prefixed by '>' were originally written by you. Two things... > > > Your input does not have a name attribute. > . > takeform.php is this: > echo $sentence; > . This line of c

Re: [PHP] HOW TO -- ARRAY UPDATE MYSQL

2003-07-19 Thread Curt Zirzow
Suresh Babu.A [Support] <[EMAIL PROTECTED]> wrote: > > HI ALL, > > I want to update a mulitple row from a HTML Table to MYSQL Database. > > L1 V1 T1 > L2 V2 V2 > L3 V3 V3 Can you expand on this a little more, it's a bit vague. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] classes v. functions

2003-07-19 Thread Andu
Thanks to all for your input. Regards, Andu Novac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with UPDATE command...

2003-07-19 Thread Tony Tzankoff
Here is the code I am trying to implement... update table set col1=value where condition=true and condition=true order by col2 desc, col3 desc limit 1; The UPDATE command does not seem to support the ORDER BY part despite it being listed in the instructions on the mysql.com website. Is there any

Re: [PHP] Help with UPDATE command...

2003-07-19 Thread John Manko
what error message are you getting? mysql_error() and mysql_errno() Tony Tzankoff wrote: Here is the code I am trying to implement... update table set col1=value where condition=true and condition=true order by col2 desc, col3 desc limit 1; The UPDATE command does not seem to support the ORDER

Re: [PHP] Help with UPDATE command...

2003-07-19 Thread Jon Haworth
Hi Tony, > The UPDATE command does not seem to support > the ORDER BY part despite it being listed in the > instructions on the mysql.com website. This is only supported in versions 4 and above - if you're using 3.23 you can get away with LIMIT in your update queries, but not ORDER BY. Cheers Jo

RE: [PHP] Enough is Enough.......

2003-07-19 Thread Beauford.2005
Done. You must have read my mind. I just finished putting the whole thing in MySQL - since I am using it anyway to hold all my other data it was easy to do. Took me about 45 minutes to do this as opposed to a week with the other, and it still didn't work. I'd still be curious to why the other is di

RE: [PHP] Still problem with files

2003-07-19 Thread Beauford.2005
These files were already done from last year, so I figured I would just carry on with them. Last year they did not have to be manipulated - so it wasn't a big deal. I have since changed the whole thing and am now using a database (took me a whole 45 minutes), which I was using anyway to hold all my

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Sam Baum
Hi there, am Saturday 19 July 2003 16:30 schrieb Curt Zirzow: > Sam Baum <[EMAIL PROTECTED]> wrote: >> Hi, >> >> am Friday 18 July 2003 23:08 schrieb Andu: >> >> > This may show my ignorance or my refusal to take for granted something >> > I don't fully understand but I have a hard time figuri

php-general Digest 19 Jul 2003 17:00:06 -0000 Issue 2185

2003-07-19 Thread php-general-digest-help
php-general Digest 19 Jul 2003 17:00:06 - Issue 2185 Topics (messages 155869 through 155899): Re: Securing File Uploads Was: Is it possible to test an uploaded file to check the type? 155869 by: Jason Wong 155872 by: Gerard Samuel 155873 by: Curt Zirzow Re: Still p

[PHP] else needed?

2003-07-19 Thread Larry Brown
On if statements, I periodically don't want anything to happen if the requisite is not met. In most cases just writing the statement in the format if (this) { do that; } and nothing more will work. However, I periodically get weird results with this and found the only fix was to do a... if (this)

Re: [PHP] else needed?

2003-07-19 Thread Curt Zirzow
Larry Brown <[EMAIL PROTECTED]> wrote: > On if statements, I periodically don't want anything to happen if the > requisite is not met. In most cases just writing the statement in the > format if (this) { do that; } and nothing more will work. However, I > periodically get weird results with this

[PHP] Question about Include_once

2003-07-19 Thread Al
Does file called by "Include_once" stay with the client's session or just for operations in the page where it is stated? For example, assume I have one file that contains several functions, then if use "include_once('functions.php')" on several pages, does the server reload the file for every

[PHP] MySQL datetime extraction

2003-07-19 Thread Yasir Malik
Given a date in MySQL datetime format, how do I extract the elements? That is get the month, day, year, hour, ... Thanks, Yasir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about Include_once

2003-07-19 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sat, 19 Jul 2003 at 19:15, lines prefixed by '>' were originally written by you. > Does file called by "Include_once" stay with the client's session or > just for operations in the page where it is stated? just for operations in the page wher

Re: [PHP] MySQL datetime extraction

2003-07-19 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sat, 19 Jul 2003 at 19:16, lines prefixed by '>' were originally written by you. > Given a date in MySQL datetime format, how do I extract the elements? > That is get the month, day, year, hour, ... > Thanks, > Yasir Bit off topic for this li

Re: [PHP] MySQL datetime extraction

2003-07-19 Thread Yasir Malik
What list do I go to? I just want store the elements into some variables in PHP. Yasir On Sat, 19 Jul 2003, David Nicholson wrote: > Date: Sat, 19 Jul 2003 19:22:25 +0100 > From: David Nicholson <[EMAIL PROTECTED]> > To: Yasir Malik <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP]

Re: [PHP] MySQL datetime extraction

2003-07-19 Thread John W. Holmes
Yasir Malik wrote: Given a date in MySQL datetime format, how do I extract the elements? That is get the month, day, year, hour, ... You could do it in the query using DATE_FORMAT(), MONTH(), YEAR(), etc. You can do it in PHP by sending the MySQL timestamp through strtotime() and then using date(

Re: [PHP] Re: classes v. functions

2003-07-19 Thread olinux
I'm quite new to OOP myself, but these two articles helped my understanding a lot See the sidebar - Classes and Object Oriented Programming http://webreference.com/perl/xhoo/php1/5.html Taking PHP the OO way http://phpmag.net/itr/online_artikel/psecom,id,284,nodeid,114.html olinux --- Sam Bau

[PHP] TESTERS Needed!

2003-07-19 Thread Mark Clarkstone
Hey Guys I need People to test out My Program, Mini serve to find out more go to www.mini-networks.uni.cc Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] osCommerce and modifications

2003-07-19 Thread olinux
you should check out http://www.x-cart.com Their pro cart looks like it will handle what you want. Not free, but you do get the source code. Plus it uses smarty (smarty.php.net). Right now I am working on an osCommerce project and while it is a great project I cannot believe it has come so far wi

Re: [PHP] TESTERS Needed!

2003-07-19 Thread Andu
--On Saturday, July 19, 2003 20:02:52 +0100 Mark Clarkstone <[EMAIL PROTECTED]> wrote: Hey Guys I need People to test out My Program, Mini serve to find out more go to www.mini-networks.uni.cc The black text on dark-blue background is really inviting, did you try black on black?? Thanks -

Re: [PHP] MySQL datetime extraction

2003-07-19 Thread Yasir Malik
Thanks. Here's how I did it: $str = "2003-12-13 12:23:34" $b = localtime(strtotime($str), 1); printf("seconds: ".$a["tm_sec"]."\n"); On Sat, 19 Jul 2003, John W. Holmes wrote: > Date: Sat, 19 Jul 2003 14:28:00 -0400 > From: John W. Holmes <[EMAIL PROTECTED]> > To: Yasir Malik <[EMAIL PROTECTED]>

Re: [PHP] TESTERS Needed!

2003-07-19 Thread Andu
--On Saturday, July 19, 2003 15:23:31 -0400 Andu <[EMAIL PROTECTED]> wrote: --On Saturday, July 19, 2003 20:02:52 +0100 Mark Clarkstone <[EMAIL PROTECTED]> wrote: Hey Guys I need People to test out My Program, Mini serve to find out more go to www.mini-networks.uni.cc The black text on dark-

Re: [PHP] TESTERS Needed!

2003-07-19 Thread John W. Holmes
Andu wrote: --On Saturday, July 19, 2003 20:02:52 +0100 Mark Clarkstone <[EMAIL PROTECTED]> wrote: Hey Guys I need People to test out My Program, Mini serve to find out more go to www.mini-networks.uni.cc The black text on dark-blue background is really inviting, did you try black on black?? A

[PHP] Re: TESTERS Needed!

2003-07-19 Thread Mark Clarkstone
If any one finds any bugs or anything please let me know! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: TESTERS Needed!

2003-07-19 Thread John W. Holmes
Mark Clarkstone wrote: If any one finds any bugs or anything please let me know! Got this: Warning: readfile(content/subcats/Products.html): failed to open stream: No such file or directory in /home/britspy/public_html/mnet/index.php on line 76 -- ---John Holmes... Amazon Wishlist: www.amazon.

[PHP] MYSQL Client Flags

2003-07-19 Thread John Manko
I was interested in how to determine the number of rows matched on an update, even if they weren't updated. The reason for this was mysql_affected_rows() returns the number of rows affected, which my not be the number of rows matched by the query (see the manual). So, I came accross a post in

Re: [PHP] Re: TESTERS Needed!

2003-07-19 Thread John Manko
the the following table, when you onmouseover the MSN addy, the enlargement of the font size changes the table width, and it does restore on onmouseout: _*Stats*_ Style: Devil's Bloom Host: www.BritneySpy.com Projects: 3 Hits 321 MSN [EMAIL PROTECTED]

[PHP] PHP / mcrypt compile

2003-07-19 Thread Tom Ray [Lists]
Ok, I've never done this before so I want to double check before I do it. I'm running RH 7.3 and PHP was installed as a RPM. Now I've just installed libmcrypt. My question is when I go to recompile PHP can I just run the PHP configure file as "configure --with-mcrypt[=DIR] --disable-posix-threa

[PHP] nedit - previw html/php in browser

2003-07-19 Thread Andu
For those using Nedit with php/html here's a macro which will open a browser window and previw your script (Linux): file = $file_path $file_name file = replace_in_string(file, "/path_to_your_server_root/htdocs/", "") in_browser="mozilla -remote 'openURL(localhost/" file " ,new-window)'" " >& /de

[PHP] Setting total db size to a variable.

2003-07-19 Thread Jason Martyn
I have a question in regards to finding the total db size and setting it to a variable. How would I go about this?

[PHP] Sending email with the windows version of php

2003-07-19 Thread Ivan Carey
hello, My client is wanting to transfer their web site from a system that uses: freebsd, apache, mysql and php, to a windows based hosting service. So I was wondering if the Windows version of PHP sends e-mail with the same commands as Sendmail or do I have to re-write the scripts. Or can you t

Re: [PHP] Sending email with the windows version of php

2003-07-19 Thread Curt Zirzow
Ivan Carey <[EMAIL PROTECTED]> wrote: > hello, > > My client is wanting to transfer their web site from a system that uses: freebsd, > apache, mysql and php, to a windows based hosting service. > Did you tell them this is a bad idea. > So I was wondering if the Windows version of PHP sends e-m

Re: [PHP] Setting total db size to a variable.

2003-07-19 Thread Curt Zirzow
Jason Martyn <[EMAIL PROTECTED]> wrote: > I have a question in regards to finding the total db size and setting it to a > variable. This is rather vague in several aspects. Please expand on your question with more details, otherwise it makes it hard to help with with your question. > > How woul

[PHP] Passing value back to SWF

2003-07-19 Thread Dan J. Rychlik
I have a swf file that I have created with a appropriate loadvarnum() function. I have created a $statusmsg dynamic text field. When I execute my script with a button action I am able to This works fine. print "&statusmsg="."Passing value"; But when I print "&statusmsg=". $testvariable; Re

Re: [PHP] Setting total db size to a variable.

2003-07-19 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sun, 20 Jul 2003 at 00:42, lines prefixed by '>' were originally written by you. > I have a question in regards to finding the total db size and setting > it to a variable. > How would I go about this? For mysql this will do the trick... $inf

[PHP] Segfault on 4.1.2 on RH 7.2

2003-07-19 Thread Roger B.A. Klorese
Yes, yes, I know it's ancient -- but it's also what's out there for RPMs, and if I need to go to source I will, but for now... One single installation of gallery on our site -- a HUGE one -- consistently kills PHP. Here's a trace -- any useful info here? #0 chunk_realloc (ar_ptr=0x40349300, o

Re: [PHP] The stupidest question of the month.

2003-07-19 Thread Juan Nin
From: "René Fournier" <[EMAIL PROTECTED]> > I need to write a little program that opens and maintains a TCP socket > connection to a server across the Internet. This little program would > wait for messages from the server it's connected to, then record those > messages and send a kinda of acknowl

Re: [PHP] else needed?

2003-07-19 Thread Juan Nin
From: "Larry Brown" <[EMAIL PROTECTED]> > On if statements, I periodically don't want anything to happen if the > requisite is not met. In most cases just writing the statement in the > format if (this) { do that; } and nothing more will work. However, I > periodically get weird results with thi

Re: [PHP] Setting total db size to a variable.

2003-07-19 Thread Juan Nin
From: "Curt Zirzow" <[EMAIL PROTECTED]> > > I have a question in regards to finding the total db size and setting it to a variable. > > This is rather vague in several aspects. Please expand on your question > with more details, otherwise it makes it hard to help with with your > question. I thin

Re: [PHP] Segfault on 4.1.2 on RH 7.2

2003-07-19 Thread Curt Zirzow
Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: > Yes, yes, I know it's ancient -- but it's also what's out there for > RPMs, and if I need to go to source I will, but for now... hmm.. yeah you might want to upgrade to a newer version. > #1 0x402959e2 in __libc_realloc (oldmem=0x8343c80, bytes=3

Re: [PHP] Segfault on 4.1.2 on RH 7.2

2003-07-19 Thread Roger B.A. Klorese
Curt Zirzow wrote: Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: Yes, yes, I know it's ancient -- but it's also what's out there for RPMs, and if I need to go to source I will, but for now... hmm.. yeah you might want to upgrade to a newer version. Well, yes. But I'm afraid of the up

Re: [PHP] Segfault on 4.1.2 on RH 7.2

2003-07-19 Thread Curt Zirzow
* Thus wrote Roger B.A. Klorese ([EMAIL PROTECTED]): > Curt Zirzow wrote: > > >Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: > > > > > >>Yes, yes, I know it's ancient -- but it's also what's out there for > >>RPMs, and if I need to go to source I will, but for now... > >> > >> > > > >hmm.. ye

Re: [PHP] classes v. functions

2003-07-19 Thread Justin French
Whether it's the right move or not, I've put off my learning of PHP classes and OOP methods until PHP5.x, so I guess the time in near :) However, *especially* if you're the only programmer on a project, you can take the ideas & benefits behind OOP (for me, having clear, clean code that can be r

Re: [PHP] URL correctimizer ... how to make one?

2003-07-19 Thread Justin French
I think you should attempt to detect a VALID url, rather than attempting to correct human errors. You're guaranteed not to think of every possible mistake, so IMHO, you're approaching it the wrong way. Put the responsibility back on the user to write a valid URL, and alert them to invalid URLs

Re: [PHP] locking to domain

2003-07-19 Thread Justin French
Start with: have a look through the array, to find the values you need to test on... something like $_SERVER['HTTP_HOST'] => mydomain.com is what I would use, but your srver may do different things. So, then we can test/compare that value to the one you're allowing: Of course, what's stop

Fw: [PHP] Setting total db size to a variable.

2003-07-19 Thread Jason Martyn
Theres a problem with the SQL query. It fails? I tried removing the " = '$tablename' " however, then the mysql_fetch_array cannot save the result set. I guess my basic question is how do I query the SHOW TABLE STATUS for a specific table in a specific database. <-- Forgot to post this earli

[PHP] Forms and PHP

2003-07-19 Thread Jason Giangrande
I have a question about forms and PHP. Here's what I'm looking to do. I'm trying to set up a spell checker that checks text entered in a form, but I want the check results to show up in a different window so that the user can change the misspelled words if they'd like. In other words, I want to

RE: [PHP] Forms and PHP

2003-07-19 Thread Chris Hubbard
Not sure why you don't want to submit the form. But if you really really don't want to "submit the form" then you have to use javascript. If you're willing to submit the form, then this is relatively simple, depending on how you want to display the data. if you're willing to submit, then step thro

Re: [PHP] Forms and PHP

2003-07-19 Thread Justin French
This is done with javascript... without getting too off topic... JS can get the contents of the textarea, and submit it via get (maybe post as well) to another (pop-up) window. the pop-up window can highlght misspelled words, and even make dynamic changes to the content in the first window. i

Re: [PHP] Forms and PHP

2003-07-19 Thread Curt Zirzow
* Thus wrote Justin French ([EMAIL PROTECTED]): > This is done with javascript... without getting too off topic... JS can > get the contents of the textarea, and submit it via get (maybe post as > well) to another (pop-up) window. the pop-up window can highlght > misspelled words, and even make

php-general Digest 20 Jul 2003 05:06:33 -0000 Issue 2186

2003-07-19 Thread php-general-digest-help
php-general Digest 20 Jul 2003 05:06:33 - Issue 2186 Topics (messages 155900 through 155941): else needed? 155900 by: Larry Brown 155901 by: Curt Zirzow 155929 by: Juan Nin Question about Include_once 155902 by: Al 155904 by: David Nicholson MySQL da

Re: [PHP] Forms and PHP

2003-07-19 Thread Jason Giangrande
Thanks guys. I think I'll try it first as Chris suggested and see how that goes. Thanks again. Jason On Sun, 2003-07-20 at 00:55, Justin French wrote: > This is done with javascript... without getting too off topic... JS can > get the contents of the textarea, and submit it via get (maybe post

Re: [PHP] Setting total db size to a variable.

2003-07-19 Thread Curt Zirzow
* Thus wrote Jason Martyn ([EMAIL PROTECTED]): > I have a question in regards to finding the total db size and setting it to a > variable. > > How would I go about this? http://www.mysql.com/doc/en/SHOW_TABLE_STATUS.html Curt -- "I used to think I was indecisive, but now I'm not so sure." --

Re: [PHP] URL correctimizer ... how to make one?

2003-07-19 Thread Curt Zirzow
I know this isn't your code but... * Thus wrote Justin French ([EMAIL PROTECTED]): > [...] > > // test the URL > // it's important that you dont put http:// or it will not work > // the 2nd paramater is how long to test the URL b4 timing out > $found = fsockopen($url, 10); $found = fsockopen($ho

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Simon Fredriksson
I've been working like that for about two years and just recently I got enlighted in the use of classes. I've built a few sites and after a while on each of them I run into a problem. Say I wanna add a meta-refresh tag or send a cookie; with my earlier code, that brought out hell... more or les

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Curt Zirzow
* Thus wrote Simon Fredriksson ([EMAIL PROTECTED]): > [...] > just got confused. Then, suddenly I got some class for something, > checked out the code and my brain just snapped. "aaah, THAT's how it's > done!". It wasn't well documented, just nicely structured and easy to > read and understand.

Re: [PHP] Re: classes v. functions

2003-07-19 Thread Andu
--On Sunday, July 20, 2003 07:53:20 +0200 Simon Fredriksson <[EMAIL PROTECTED]> wrote: I've been working like that for about two years and just recently I got enlighted in the use of classes. The main reason I started this thread is that since I'm just beginning with php I thought I might as w

[PHP] list server problem

2003-07-19 Thread Andu
Is it just me getting some messages 3 times? I also noticed that there is no Reply-To in the headers so every time I want to reply to the list I have to copy/paste the list's address, clicking the Reply button would send my message to the poster, not the list. I guess others are having the same p