Re: [PHP] Form call a function on submit

2001-08-05 Thread Michael Hall
AFAIK the function would always need to exist inside a php file. That file doesn't necessarily need to be a `page' (ie. print any HTML). Just make the ACTION of the form point to the file with your function in it (or a call to the function). Mick On Mon, 06 Aug 2001, Richard Kurth wrote: > Is i

Re: [PHP] spell checker

2001-08-05 Thread Michael Hall
Justin: IMHO it would be very difficult to build/use a reliable spell checker that worked automatically. Natural languages are just too complex and ambiguous. Look at how often something like Word or Star Office gets things wrong. 'Hare' is not spelled wrong unless you meant to write 'hair', for

[PHP] Form call a function on submit

2001-08-05 Thread Richard Kurth
Is it possible to have a form submit button call a function. Like for updating a record in a database or for deleting data. Rather than a new page or with PHP_SELF Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] age

2001-08-05 Thread Jan Wilson
* Jon Yaggie <[EMAIL PROTECTED]> [010805 16:35]: > does any one know where i can get a script that will convert a > birthdate in to an age. i have one half written however i have > incounter difficulties with dealing with leap years. perhaps soem > one would know the solution . .. or just a pr

Re: [PHP] spell checker

2001-08-05 Thread David Robley
On Mon, 6 Aug 2001 12:02, Justin French wrote: > Hi, > > I know this is a biggie, but has anyone attempted to write a > spell check (preferably english) in PHP? > > I'd LOVE something that can spell-check user-submitted text > somehow, becuase I'm writing a fully dynamic news-based site, > and th

Re: [PHP] spell checker

2001-08-05 Thread Rasmus Lerdorf
http://php.net/pspell On Mon, 6 Aug 2001, Justin French wrote: > Hi, > > I know this is a biggie, but has anyone attempted to write a > spell check (preferably english) in PHP? > > I'd LOVE something that can spell-check user-submitted text > somehow, becuase I'm writing a fully dynamic news-bas

Re: [PHP] Re: fopen a URL with = in it

2001-08-05 Thread Corey Chapman
Ya, I may have to.. I can't seem to get this to work. > I think it's time for you to submit a bug report at http://bugs.php.net > unless one of the developers expressly described why it shouldn't work... > > -- > WARNING [EMAIL PROTECTED] address is an endangered species -- Use > [EMAIL PROTEC

RE: [PHP] Premature end of script headers:

2001-08-05 Thread Jason Murray
> Hello All, > writing to a flat file I am getting 500 error with Apache. I > know the path is correct and when I delete the file.txt and try > to write to it. A new file is created but no writing. What does > Premature end of script headers: mean? It usually means the execution of the script

[PHP] Premature end of script headers:

2001-08-05 Thread Gary
Hello All, writing to a flat file I am getting 500 error with Apache. I know the path is correct and when I delete the file.txt and try to write to it. A new file is created but no writing. What does Premature end of script headers: mean? TIA Gary -- PHP General Mailing List (http://www.php.n

[PHP] spell checker

2001-08-05 Thread Justin French
Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based site, and the only downfall to the site could be bad content, since it

[PHP] Problems...

2001-08-05 Thread Marius Pertravčius
Sveiki, php-general, I have win32, apache, PHP 4.0.6. I want to work with graphic files (GD). There is lines in my php.ini: extension_dir = c:\php\extensions extension=php_gd.dll I have this script: But nothing hapens Where am I making a mistake? Help

Re: [PHP] project management scripts?

2001-08-05 Thread Andreas D. Landmark
At 02.08.2001 21:12, Daniel Goldin \(E-mail\) wrote: >Anybody know of any good project management scripts? Nothing too bloated. >Just a good simple way to organize projects and groups remotely. I've found >phpGroupware to be unwieldy and slow. Freshmeat certainly does... http://freshmeat.net/se

Re: [PHP] Limit records/ prev/next links

2001-08-05 Thread pierre-yves
Salut, I have 1 little classe that does what you need here, http://www.pywebsolutions.com/source.php py - Original Message - From: "Steph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 05, 2001 6:56 PM Subject: [PHP] Limit records/ prev/next links > Hi all! > > Im

[PHP] pursing a text file

2001-08-05 Thread Richard Kurth
I am trying to pull a txt file into this purser so that it will add the data to the variables. Now the code below works if I just add an echo $message inside the while loop. But this is not what I want to do. I what it to run the while loop and after it is done pass the whole message to the mail p

Re: [PHP] Limit records/ prev/next links

2001-08-05 Thread Richard Kurth
Hello Steph, there is a real good example of what you what to do at phpbuilder.com http://www.phpbuilder.com/columns/rod2221.php3 You might have to tweak it a little But it does work Sunday, August 05, 2001, 3:56:38 PM, you wrote: Steph> Hi all! Steph> Im working with PHP and MySQL and I

[PHP] Limit records/ prev/next links

2001-08-05 Thread Steph
Hi all! Im working with PHP and MySQL and I need to limit my records like 10 per page and Id like to have some sort of navigation like this: 1 2 3 Any takers? Steph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Re: syntax help~~~

2001-08-05 Thread Arcadius A.
Hello ! We could keep things simpler ... Why not give a try to this ?: $watchlist_query = mysql_query( "Create Table $temp ( WId int Not Nullauto_increment, QId int not null, Primary Key (WId) )" ) or die ("Error ! Cannot create table !" . mysql_error() ); Hope it would work :o) (At least th

[PHP] using placeholders and db results

2001-08-05 Thread Matthew Delmarter
Here is an example of my code: $text = "Hi ##firstname## ##lastname##,"; $text = ereg_replace("##([^#]+)##", $row->."\\1", $text); $row-> is a result of using mysql_fetch_object. I would expect it to replace ##firstname## and ##lastname## with the value of $row->firstname and $row->lastname

[PHP] is there a performance hit using flush() ?

2001-08-05 Thread Matthew Delmarter
I am looping through a few thousand records and would like to display the results every loop. Eg: while($row = mysql_fetch_object($sql)): echo "Hi $row->name"; flush(); endwhile; A simple example - but you see what I am trying to achieve. Perhaps a more realistic example is displ

[PHP] field sizes

2001-08-05 Thread Matthew Delmarter
Hi all, I am curious about how to best define the size of fields in mysql. Is there some size that are better used than others? For example without thinking about it to much I would tend to size fields in multiples of 10 - 20, 50, 100, 200 etc... Is this the best answer? Regards, Matthew Delma

Re: [PHP] Spot the difference?

2001-08-05 Thread Kyle Smith
ok, umm... you got that in pence cause im english just kiddin so what resources did you use to learn php? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 - Original Message - From: <[EMAIL PROTECTED

Re: [PHP] project management scripts?

2001-08-05 Thread Meir Kriheli
On Thursday 02 August 2001 23:12, Daniel Goldin \(E-mail\) wrote: > Anybody know of any good project management scripts? Nothing too bloated. > Just a good simple way to organize projects and groups remotely. I've found > phpGroupware to be unwieldy and slow. >From a quick search at freshmeat.net

Re: [PHP] Re: Minutes between tow dates

2001-08-05 Thread Christian Reiniger
On Saturday 04 August 2001 00:02, Richard Lynch wrote: > Something like: > > select date_format('unix-timestamp', yoursessiontimestampcolumn) from > sessiontable; SELECT UNIX_TIMESTAMP(yourtimestampcolumn) AS thetime FROM sessiontable; could be a bit faster -- Christian Reiniger LGDC Webmaster

Re: [PHP] age

2001-08-05 Thread Tim
I've been using this one, which is probably close enough for government work ;) It calculates to a one-month resolution. // Calculates elapsed years between fdate and tdate. // The default for "to date" is today. function elapsed_years($fdate, $tdate=0) { if ($tdate == 0) {

Re: [PHP] syntax help~~~

2001-08-05 Thread Coconut Ming
Hi.. It is not workable too... thanks. "Andreas D. Landmark" wrote: > At 05.08.2001 12:49, Coconut Ming wrote: > >Hi > > I am having the problem in the coding below > > > > > > >mysql_connect('localhost','123','123') or die ("Unable to connect to SQL > >Server"); > >mysql_select_db('Hel

Re: [PHP] 404's and requesting page

2001-08-05 Thread Tim
Ah, yes. You are correct about the $REDIRECT_URL thing. I was looking at some old code I had to deal with this and mis-read it. :) I use ErrorDoument just as you describe. I just tried this, and on my system $HTTP_SERVER_VARS["REQUEST_URI"] contains the URI that generated the error. If your 4

Re: [PHP] age

2001-08-05 Thread Corey Chapman
Here's something I use for a date string that looks like mm/dd/ to turn the date into an age from the current date. $age = explode("/", $bdate); $userage = date("Y") - $age[2]; if($age[0] > date("m") || ( $age[0] == date("m") && $age[1] > date ("d"))) { --$userage; } if($userage > 50) { $use

Re: [PHP] 404's and requesting page

2001-08-05 Thread Tom Carter
Thanks for the advice Tim, however it didn't work. Neither of the statements in your mail were set ... I trued $REDIRECT_STATUS and that was set to 401 (even tho that doc wasn't capturing that error) and $REDIRECT_URL was set to the path of the file handling the errors. Is there some other apache

Re: [PHP] How To?

2001-08-05 Thread Michael Quinn
Could be! I assumed the literal meaning of proxy (by way of). Although I guess he will be the only one to ever know.;) -- 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 administrat

[PHP] age

2001-08-05 Thread Jon Yaggie
does any one know where i can get a script that will convert a birthdate in to an age. i have one half written however i have incounter difficulties with dealing with leap years. perhaps soem one would know the solution . .. or just a premade script is fine $test = strtotime ("January 12,

[PHP] xml_set_object() ?!?

2001-08-05 Thread Regenfeld
Why is that not working: class XML { var $parser; var $Dummy; function XML() { $this->parser = xml_parser_create(); xml_set_object($this->parser,&$this); xml_set_element_handler($this->parser,"tag_open","tag_close"); } function getDummy() {

Re: [PHP] magazine-subscription

2001-08-05 Thread rm
This might give you a start http://sourceforge.net/projects/props/ --- Chetan Ganpati <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know of a tool to handle an online > magazine and the magazine-subscriptions? > > Thanks, > Chetan. > > __

Re: [PHP] magazine-subscription

2001-08-05 Thread Corey Chapman
Nope.. we are writing our own to handle our Ezine. Best bet is to work on a mysql/php system, unless you can find one. > Hi, > > Does anyone know of a tool to handle an online > magazine and the magazine-subscriptions? > > Thanks, > Chetan. > > _

[PHP] magazine-subscription

2001-08-05 Thread Chetan Ganpati
Hi, Does anyone know of a tool to handle an online magazine and the magazine-subscriptions? Thanks, Chetan. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General

Re: [PHP] 404's and requesting page

2001-08-05 Thread Tim
$HTTP_SERVER_VARS["REDIRECT_STATUS"] will be "404" (or "403" if you trap those too). $HTTP_SERVER_VARS["REDIRECT_URL"] will be the requested URL that caused the error. - Tim http://www.phptemplates.org On 05 Aug 2001 18:46:04 +0100, Tom Carter wrote: > I'm using an apache directive to redirec

php-general Digest 5 Aug 2001 18:04:29 -0000 Issue 798

2001-08-05 Thread php-general-digest-help
php-general Digest 5 Aug 2001 18:04:29 - Issue 798 Topics (messages 61308 through 61341): How to ? 61308 by: Alawi Albaity 61317 by: Alawi Albaity 61321 by: Michael Hall 61322 by: Andreas D. Landmark 61325 by: Andreas D. Landmark 61326 by: Mic

RE: [PHP] newest PHP compile won't see pg_connect()

2001-08-05 Thread Dan Troxell
Thanks, my postgres version was a typo, it's actually v-6.5.2 but your advice on the upgrade is greatly appreciated! ... and I fixed the problems: pg_connect() wouldn't run because of a pathing problem when I compiled PHP ("--with-pgsql=" was pointing to the wrong directory, duh.), the "froze

[PHP] 404's and requesting page

2001-08-05 Thread Tom Carter
hi all, I'm using an apache directive to redirect 404's to one of my own pages, and i was wondering it is possible find out what the request was that caused 404. I've examind all the global vairables etc, nothing I can see there. If the 404 came from a link then I can find out the page with the

RE: [PHP] Re: Does PHP scripts always finish, or are they halted if the web page loading is halted?

2001-08-05 Thread Kees Hoekzema
Hey, read: http://www.php.net/manual/en/function.ignore-user-abort.php for more information :) - Kees > -Original Message- > From: Matt Rogers [mailto:[EMAIL PROTECTED]] > Sent: Sunday, August 05, 2001 7:49 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Does PHP scripts always finish,

[PHP] project management scripts?

2001-08-05 Thread Daniel Goldin \(E-mail\)
Anybody know of any good project management scripts? Nothing too bloated. Just a good simple way to organize projects and groups remotely. I've found phpGroupware to be unwieldy and slow. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

[PHP] Re: Does PHP scripts always finish, or are they halted if the web page loading is halted?

2001-08-05 Thread Matt Rogers
I believe you have no need to worry. PHP is a server-side scripting language. The server opens the PHP file, runs it, and then spits out HTML to the browser, it doesn't run it _as_ it sends it out. .. And if I'm wrong, I would expect an expert to correct me on this. =) ---

[PHP] Re: php-4.0.6 compile errors

2001-08-05 Thread hunter
I have been trying to complete this compile on a redhat-7.1 linux-2.4.3 server running apache-1.3.20 and when i compile in --with-imap i get the following trying to restart apache: ~/temp/php-4.0.6# /etc/rc.d/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: Syntax error on line 257 o

RE: [PHP] web hosting

2001-08-05 Thread Kurt Lieber
Check out Pair.com. Very stable and powerul. You can compile any version of PHP4 (cgi) to your heart's content. www.pair.com > -Original Message- > From: Damiano Ferrari [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 04, 2001 9:27 PM > To: [EMAIL PROTECTED] > Subject: [PHP] we

RE: [PHP] chmod

2001-08-05 Thread Ben Bleything
Chmod -R 77x test The 'x' in the above statement is the world-permissions... Execute is worth 1, Write is worth 2, Read is worth 4. If you add up the numbers for the permissions you want, you get the result, so 775 would be full access for owner and group, and read/execute for world. Hope thi

[PHP] Parsing question from newbie

2001-08-05 Thread Craig Westerman
I found this little script called grab'n & pars'n on the net. It looks like it could be very useful to learn how it does what it does. While studying it I came up with a question. http://www.php.net'; $lines_array = file($url); $lines_string = implode('', $lines_array); eregi("(.*)", $lines_strin

Re: [PHP] web hosting

2001-08-05 Thread Alex Piaz
At 23:26 4/8/2001 -0500, Damiano Ferrari wrote: >Since I am tired of switching from one web host to another because of the >limitations that are imposed... does anybody know of a host provider that >supports PHP & MySQL and that, differently from my current host, will also >allow me to upload file

[PHP] Cant load MSSQL extension (Win, PHP, Apache)

2001-08-05 Thread Phil
Hi everybody, If I edit the php3.ini and activate a extension, I can see the effect with the function phpinfo(). This works with all extensions, exept mssql.dll and mssql70.dll. What am I doing wrong?? I dont think this is a general problem!! And, ladies and gentleman, I need help... thx!! --

Re: [PHP] How to ?

2001-08-05 Thread Andreas D. Landmark
At 05.08.2001 15:04, Michael Quinn wrote: >I assume you mean using controls in one browser window to navigate >other open windows? Like a remote control! DHTML is the answer. > >Maybe! By mentioning proxy, I assumed he was looking for a code-sniplet that grabs a webpage and sends it to the user,

Re: [PHP] How to ?

2001-08-05 Thread Michael Quinn
I assume you mean using controls in one browser window to navigate other open windows? Like a remote control! DHTML is the answer. Maybe! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] How to ?

2001-08-05 Thread Andreas D. Landmark
At 05.08.2001 13:23, you wrote: >Alawi: > >Generally speaking, this is a friendly list and people like to help if >they can. >But it is not clear what you are asking for. >You need to give more detail or ask your question in another way. >Is this a PHP question? > >Mick This is very much a php q

[PHP] veuillez m'inscrire dans la liste

2001-08-05 Thread said el maataoui
merci _ Le journal des abonnés Caramail - http://www.carazine.com -- 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 administ

Re: [PHP] syntax help~~~

2001-08-05 Thread Andreas D. Landmark
At 05.08.2001 12:49, Coconut Ming wrote: >Hi > I am having the problem in the coding below > > >mysql_connect('localhost','123','123') or die ("Unable to connect to SQL >Server"); >mysql_select_db('Helpwatch') or die ("Unable to select database"); > >$temp = $username."watch"; >$watchlist_query

Re: [PHP] How to ?

2001-08-05 Thread Andreas D. Landmark
At 05.08.2001 12:24, Alawi Albaity wrote: >how can i to make my page as a browser for another >pages > >i mean i want as a proxy > >how can i do that ? I remember I did some thing like that a long time ago (to get around those nasty blocks that libraries-schools-colleges-unis-whatever uses), bas

Re: [PHP] How to ?

2001-08-05 Thread Michael Hall
Alawi: Generally speaking, this is a friendly list and people like to help if they can. But it is not clear what you are asking for. You need to give more detail or ask your question in another way. Is this a PHP question? Mick On Sun, 05 Aug 2001, Alawi Albaity wrote: > how can i to make m

Re: [PHP] New lists (was [PHP] Attitude of B van Ouwerkerk)

2001-08-05 Thread Andreas D. Landmark
At 04.08.2001 17:27, Joel Ricker wrote: > > Similarly the FAQ is easy to find, and I do believe the words "support" > > suggest where help may be found. > >Actually my suggestion would be to take a page from way the Python lists are >and call it tutor or PHP-tutor. I'd second this suggestion, the

[PHP] syntax help~~~

2001-08-05 Thread Coconut Ming
Hi I am having the problem in the coding below So.. in the above coding. I need to create a table. The table name should be a user-define name + "watch" I acquire the $username correctly and the variable $temp is working fine when I try to echo the value of it. Just say. I enter my username a

[PHP] chmod

2001-08-05 Thread Manu Verhaegen
I have the following question : I have a directory on my ftp server and i want give access to this directory by usergroup ( the name of the group is test ) We have do the following : % vadduser user Configuration -- Username: test Password: test Fullname: test U

[PHP] How to ?

2001-08-05 Thread Alawi Albaity
how can i to make my page as a browser for another pages i mean i want as a proxy how can i do that ? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailin

Re: [PHP] web hosting

2001-08-05 Thread Damiano Ferrari
Thanks Boaz, This host is actually quite impressive. Damiano "Boaz Yahav" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Check out : http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm This is your one stop shop for hosting. WeberDev.com is hosted

Re: [PHP] web hosting

2001-08-05 Thread Damiano Ferrari
Obviously, dedicated hosting is something that I am considering. But given that the application I am writing won't be ready for at least 3 months, I'd feel a bit stupid to spend $300+/month when the only user will be me and maybe another person. Furthermore, my current web host sys admin stated th

Re: [PHP] web hosting

2001-08-05 Thread Tim
If you want the freedom to do anything you want to your very own server (i.e. not shared with a bunch of other people) then something like http://www.rackspace.com is an alternative (although it costs more :). - Tim On 04 Aug 2001 23:26:44 -0500, Damiano Ferrari wrote: > Since I am tired of swit

RE: [PHP] web hosting

2001-08-05 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm This is your one stop shop for hosting. WeberDev.com is hosted there and I can tell you that their service is amazing. They are fast, reliable and more than anything, very professional (specially in PHP / MySQL). Sincere

[PHP] To the question about scripts running after a connection close...

2001-08-05 Thread terrence chay
I'm sorry, I accidentally deleted the original e-mail. By default the script will keep running even after a user presses the stop button on their client. This can be determined by using ini_get('ignor_user_abort') and checking the value. (NB: I'm not sure what the value is, the