Re: [PHP] redirect pages

2001-02-26 Thread David Robley
having using > > if ($update) { > $result=foo; > echo ""; > } > > but to no avail .. > > any suggestions ? > > Peter Houchin if ($update) { $result=foo; header("page.php"); } and make _absolutely_ sure that your script doesn

Re: [PHP] redirect pages

2001-02-26 Thread David Robley
On Tue, 27 Feb 2001 15:15, David Robley wrote: > On Tue, 27 Feb 2001 14:58, Peter Houchin wrote: > > > can some one offer a suggestion please ... i have a > > > > if ($update) { > > $result=foo; > > } > > > > in that if statement i want to redirect

[PHP-CVS] cvs: php4 /ext/midgard article.c attachment.c calendar.c element.c event.c eventmember.c file.c group.c host.c image.c mail.c member.c mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard.c oop.c page.c pageelement.c pagelink.c parameter.c person.c preferences.c preparser.c sitegroup.c snippet.c snippetdir.c style.c topic.c

2001-02-27 Thread David Guerizec
davidg Tue Feb 27 17:00:40 2001 EDT Modified files: /php4/ext/midgard article.c attachment.c calendar.c element.c event.c eventmember.c file.c group.c host.c image.c mail.c member.c mgd_article.h

[PHP-CVS] cvs: php4 /ext/midgard attachment.c

2001-02-28 Thread David Guerizec
davidg Wed Feb 28 07:50:06 2001 EDT Modified files: /php4/ext/midgard attachment.c Log: function reference: attachments Index: php4/ext/midgard/attachment.c diff -u php4/ext/midgard/attachment.c:1.6 php4/ext/midgard/attachment.c:1.7 --- php4/ext/midgard/a

Re: [PHP-CVS] cvs: php4 /ext/vpopmail .cvsignore CREDITS Makefile.inconfig.m4 php_vpopmail.c php_vpopmail.h

2001-03-01 Thread David Croft
lity with the library's existing naming convention? David -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Declaring SERVER-WIDE Variables

2001-03-01 Thread Michael David
rying ALL of this data with each user is a waste of resources, and will require more database calls than needed. If anyone has ANY ideas, PLEASE share them! :) Regards, Michael --- Michael David The Miller Group Web-based software for Schools http://www.miller-group.net -- PHP General Mailing

[PHP] help parsing data files

2001-03-02 Thread Walgamotte, David
Php is not parsing .data files, I have the following in Apache config. AddType application/x-httpd-php phtml php php3 data Thanks, David

RE: [PHP] strip ^M's ??

2001-03-02 Thread Walgamotte, David
use the dos2unix utility -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 11:43 AM To: PHP User Group Subject: [PHP] strip ^M's ?? Hello, I am making a PHP script that upload formmail into people web directory with all the settings easily

[PHP] Re: server side cookies

2001-03-02 Thread Michael David
kies in php? Or can you point me to a link on how to do this. Please note that I am not asking how to set client side cookies. Thanks, Jeff --- Michael David The Miller Group Web-based software for Schools http://www.miller-group.net -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Declaring SERVER-WIDE Variables & UNSERIALIZE overhead

2001-03-02 Thread Michael David
stems may be Windows clunkers, where SHMEM isn't an option. I'm going to have to send a message/feature request to the developer list as well.. maybe they'll have more insight, or will be able to run with my request/tell me why it's bad. --- Michael David The Miller Group Web-b

RE: [PHP] Connection error

2001-03-02 Thread David Smith
Try this... You need to set a variable for the connection. Also you might be careful when sending examples of your code as you have given everyone on this list your username/password to your database. "; exit; } ?> -Original Message- From: Shaohua Qu [mailto:[EMAIL PROTECTE

RE: [PHP] MySQL Create Table Problem

2001-03-02 Thread David Smith
Quick example... CREATE TABLE user ( userid int(10) unsigned DEFAULT '0' NOT NULL auto_increment, usergroupid smallint(5) unsigned DEFAULT '0' NOT NULL, username varchar(50) NOT NULL, password varchar(50) NOT NULL, email varchar(50) NOT NULL, parentemail varchar(50) NOT NULL,

Re: [PHP] Change the Input to st different..

2001-03-04 Thread David Robley
gt; erdinc.. Have a look in the String Functions section of the manual. In particular, substr_replace, str_replace or strtr. Also the Regular Expressions section if you want more complex replacement capabilities. -- David Robley| WEBMASTER & Mail List Admin

Re: [PHP] mail problem

2001-03-04 Thread David Robley
lain; charset=iso-8859-1\nContent-Transfer-Encoding: 64bit" ); > <--- end of snip---> > > > any help would be greatful :) > Peter Houchin > Sun Rentals > [EMAIL PROTECTED] > Two things that may or may not be part of your problem; first, if there is already

Re: [PHP] dealing with no record

2001-03-04 Thread David Robley
uff...to display record found > ... > *** > what am I suppose to do if I also want the code to be able to deal with > the case that no record found and redirect user to other page? Jack $query="select name from foo"; $result= mysql_query($query); if(mysql_num_row

Re: [PHP] comparing values

2001-03-05 Thread David Robley
> > check_hackers($sourcefile, $filelist); > > Can somebody tell me why this is not return $sourcefile = "source.inc" > what am I doing wrong. > Can you please reply to [EMAIL PROTECTED] PLEASE PLEASE PLEASE Um, you aren't assigning the result of the function t

Re: [PHP] config question

2001-03-05 Thread David Robley
to displays the PHP config options so i can show > this mofo that they are off > > - Peter phpinfo() -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet

Re: [PHP] removing characters

2001-03-05 Thread David Robley
ate. > > Thanks, > Robert > p.s.-- I have ordered the Friedl book on Regular Expressions. Hoping it > will enlighten me for the future My suggestion would be to not create the empty reference in the firast place :-) Before starting your loop (but after checking there is somethin

[PHP-CVS] cvs: php4 /ext/midgard mgd_internal.h midgard.c

2001-03-06 Thread David Guerizec
davidg Tue Mar 6 09:56:17 2001 EDT Modified files: /php4/ext/midgard mgd_internal.h midgard.c Log: added ability to break tree walking Index: php4/ext/midgard/mgd_internal.h diff -u php4/ext/midgard/mgd_internal.h:1.8 php4/ext/midgard/mgd_internal.h:1.9

Re: [PHP] MIME and headers

2001-03-06 Thread David Robley
s URL is an index of all the RFCs (big document ~400Kb) http://mirror.aarnet.edu.au/pub/rfc/rfc-index.txt -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| htt

Re: [PHP] MySQL help URGENT

2001-03-06 Thread David Robley
files in the particular directory or -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH

Re: [PHP] Installation on RH6.2: help!

2001-03-06 Thread David Robley
at you don't get that stuff by default - there is another RPM with mysql source and library stuff in it. If you don't need any other mysql related stuff you could try using the php builtin mysql support by using just --with-mysql and not specifying a path. -- David Robley

RE: [PHP] email with multiple records

2001-03-07 Thread David Smith
ckRman2"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wrote a small script like a email list only when I run it with 3 emails. The first record gets his info, 2nd get his plus first, 3rd get his plus 2nd and 1st. Why is it doing this? Da

RE: [PHP] email with multiple records [code included]

2001-03-07 Thread David Smith
pient = "$email <$email>"; $subject = "$subject"; $message = "$message"; $headers = "From: David Smith <[EMAIL PROTECTED]>\n"; mail($recipient, $subject, $message, $headers); echo "Message Sent to $email!"; } }

RE: [PHP] htaccess

2001-03-07 Thread David Smith
Try this: -Original Message- From: Jason Jacobs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 4:09 PM To: [EMAIL PROTECTED] Subject: [PHP] htaccess Hey folks. I have another htaccess question. I have an entire folder set up to require authentication. It's in an htacces

[PHP] do..while(0) not staying true

2001-03-07 Thread David Minor
hile ($i = $i);" and everything worked fine. What am I doing wrong? Thanks, David Minor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] populate select box with contents of a file?

2001-03-07 Thread David Robley
o > to figure this one out? The directory functions - there are some simple samples in readdir() - and is_file and is_dir may be useful -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.

Re: [PHP] mysql_fetch_array()

2001-03-07 Thread David Robley
variables. while ($row=mysql_fetch_array($sql_result)) { extract($row); echo ""; echo "$field"; \\ or whatever the field is called echo ""; echo "Get it"; echo ""; echo ""; } -- David Robley| WEBMASTE

Re: [PHP] News Server (news.php.net)

2001-03-07 Thread David Robley
appropriate places. > > Yasuo Ohgaki It _is_ mentioned on the support page, just below the mailing list information - at least on the new site and I'm sure it was there before. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES

Re: [PHP] test - can someone please reply?

2001-03-07 Thread David Robley
On Thu, 8 Mar 2001 16:32, [EMAIL PROTECTED] wrote: > this is a test for echo. this is a test for echo. .ohce rof tset a si siht -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ A

Re: [PHP] test - can someone please reply?

2001-03-07 Thread David Robley
the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: Sorry, no mailbox here by that name. (#5.1.1) -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://w

[PHP-CVS] cvs: php4 /ext/midgard article.c mgd_session.h session.c session.sql

2001-03-08 Thread David Guerizec
tra1, string extra2, Index: php4/ext/midgard/session.c +++ php4/ext/midgard/session.c /* $Id: session.c,v 1.1 2001/03/08 10:25:15 davidg Exp $ Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]> Copyright (C) 2000 The Midgard Project ry Copyright (C) 2001 David Guerizec, Aurora SA <[EM

[PHP-CVS] cvs: php4 /ext/midgard README.session config.m4.session session.modules.c

2001-03-08 Thread David Guerizec
davidg Thu Mar 8 02:39:32 2001 EDT Added files: /php4/ext/midgard session.modules.c README.session config.m4.session Log: More on session installation. Index: php4/ext/midgard/session.modules.c +++ php4/ext/midgard/session.mo

[PHP-CVS] cvs: php4 /ext/midgard README.session

2001-03-08 Thread David Guerizec
davidg Thu Mar 8 02:42:33 2001 EDT Modified files: /php4/ext/midgard README.session Log: Corrected the README.session Index: php4/ext/midgard/README.session diff -u php4/ext/midgard/README.session:1.1 php4/ext/midgard/README.session:1.2 --- php4/ext/midg

[PHP-CVS] cvs: php4 /ext/midgard README.session

2001-03-08 Thread David Guerizec
davidg Thu Mar 8 02:44:27 2001 EDT Modified files: /php4/ext/midgard README.session Log: Forgot to talk about the session table Index: php4/ext/midgard/README.session diff -u php4/ext/midgard/README.session:1.2 php4/ext/midgard/README.session:1.3 --- php

[PHP-CVS] cvs: php4 /ext/midgard config.m4

2001-03-08 Thread David Guerizec
davidg Thu Mar 8 02:49:18 2001 EDT Modified files: /php4/ext/midgard config.m4 Log: Midgard experimental functions support was not displayed correctly in ./configure Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.10 php4/ext/midga

Re: [PHP-CVS] cvs: php4 /win32 README.txt

2001-03-08 Thread David Croft
shouldn't that be php-windows-subscribe? On Thu, 8 Mar 2001, Zeev Suraski wrote: > zeev Thu Mar 8 02:43:52 2001 EDT > > Modified files: > /php4/win32 README.txt > Log: > Point people to the Windows mailing list... > > > Index: php4/win32/README.txt > diff -u php4/win3

Re: [PHP] Qmail problem

2001-03-08 Thread David Robley
$ ls -l /usr/sbin/sendmail lrwxrwxrwx 1 root root 23 Aug 28 2000 /usr/sbin/sendmail -> /var/qmail/bin/sendmail* ~$ ls -l /usr/lib/sendmail lrwxrwxrwx 1 root root 18 Jul 12 2000 /usr/lib/sendmail -> /usr/sbin/sendmail* sendmail_path = /usr/sbin/sendmai

[PHP-CVS] cvs: php4 /ext/midgard article.c

2001-03-09 Thread David Guerizec
davidg Fri Mar 9 04:06:27 2001 EDT Modified files: /php4/ext/midgard article.c Log: Fixed typo. Index: php4/ext/midgard/article.c diff -u php4/ext/midgard/article.c:1.12 php4/ext/midgard/article.c:1.13 --- php4/ext/midgard/article.c:1.12 Thu Mar 8 0

[PHP-CVS] cvs: php4 /ext/midgard article.c

2001-03-09 Thread David Guerizec
davidg Fri Mar 9 04:16:58 2001 EDT Modified files: /php4/ext/midgard article.c Log: still a typo Index: php4/ext/midgard/article.c diff -u php4/ext/midgard/article.c:1.13 php4/ext/midgard/article.c:1.14 --- php4/ext/midgard/article.c:1.13 Fri Mar 9

[PHP-CVS] cvs: php4 /ext/midgard sitegroup.c

2001-03-11 Thread David Guerizec
davidg Sun Mar 11 06:36:43 2001 EDT Modified files: /php4/ext/midgard sitegroup.c Log: Added missing parameter. Index: php4/ext/midgard/sitegroup.c diff -u php4/ext/midgard/sitegroup.c:1.7 php4/ext/midgard/sitegroup.c:1.8 --- php4/ext/midgard/sitegroup.c:

[PHP-CVS] cvs: php4 /ext/midgard attachment.c

2001-03-11 Thread David Guerizec
davidg Sun Mar 11 07:40:03 2001 EDT Modified files: /php4/ext/midgard attachment.c Log: added missing conversion. Index: php4/ext/midgard/attachment.c diff -u php4/ext/midgard/attachment.c:1.8 php4/ext/midgard/attachment.c:1.9 --- php4/ext/midgard/attachm

[PHP-CVS] cvs: php4 /ext/midgard attachment.c config.m4 config.m4.session

2001-03-11 Thread David Guerizec
davidg Sun Mar 11 15:30:36 2001 EDT Modified files: /php4/ext/midgard attachment.c config.m4 config.m4.session Log: added PHP_SUBST(MIDGARD_SHARED_LIB) to dynamically link against libmidgard in config.m4 removed debug info in attachments Index: php4/ex

[PHP-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-11 Thread David Guerizec
davidg Sun Mar 11 15:45:58 2001 EDT Modified files: /php4/ext/midgard config.m4 config.m4.session Log: fixed misplaced PHP_SUBST Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.12 php4/ext/midgard/config.m4:1.13 --- php4/ext/midgard

Re: [PHP] Mailing List

2001-03-11 Thread David Robley
the list: To contact the list administrators, e-mail: [EMAIL PROTECTED] -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/

Re: [PHP] RegExp help..

2001-03-11 Thread David Robley
o: $month = substr($filename,0,2); $year = substr($filename,4,2); Then you have the string values for month and year in the respective variables. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://w

Re: [PHP] Good Free PHP Editor?

2001-03-11 Thread David Robley
inks page and scroll down til you find PHP Scripts and Programs - follow the link for editor information by the ton. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http:

[PHP-CVS] cvs: php4 /ext/midgard article.c

2001-03-12 Thread David Guerizec
davidg Mon Mar 12 02:19:37 2001 EDT Modified files: /php4/ext/midgard article.c Log: added NULL-check Index: php4/ext/midgard/article.c diff -u php4/ext/midgard/article.c:1.14 php4/ext/midgard/article.c:1.15 --- php4/ext/midgard/article.c:1.14 Fri Mar

Re: [PHP] Kick one of these darn elements out of my array, I aint having it!

2001-03-12 Thread David Robley
ook at the array functions, it seems like array_splice might do the trick. It's PHP4 only, though. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://au

Re: [PHP] PHP (re)install problems

2001-03-12 Thread David Robley
che\htdocs\bkhtml\movies.php on line 22 > > > > This is line 22 of movies.php: > > > > print " > action=\"movies/mysql_moviedb_search.php?Titlesearch=$Titlesearch\">\ > >n"; > > are you sure your variable is capitalized previously? Check th

Re: [PHP] Mailing List

2001-03-12 Thread David Robley
On Mon, 12 Mar 2001 19:41, Peter Sabaini wrote: > On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote: > > On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote: > > > Ok, I've tried time and time again to unsubscribe from php.net's > > > mailing list uni

Re: [PHP] includes

2001-03-12 Thread David Robley
d fgets to read from the file. > > include() will parse it and execute it. > > All I want to do is include it raw... any ideas? > > Rick Readfile() might do what you want. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDI

Re: [PHP] copying mysql db files

2001-03-12 Thread David Robley
xtra moment or two and use mysqldump just in case the data files aren't exactly the same. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.fl

Re: [PHP] includes

2001-03-12 Thread David Robley
tual content of the file, for whatever reason. Say one were building a routine to do a showsource, for instance. That's not what you are doing, is it Rick? -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinde

Re: [PHP] Problem with apostrophes!!

2001-03-12 Thread David Robley
ur case. Note that you are going to have to strip the slashes when displaying data from the DB - the command is not surprisingly called stripslashes. What has possibly happened is that you have different settings in the ini file on your current server for one of the magic-quotes settings. --

Re: [PHP] php & java problem

2001-03-12 Thread David Robley
ions\;C:\jdk1.3\jre\bin\" > java.library=C:\jdk1.3\jre\bin\classic\jvm.dll > extension=php_java.dll Check your log files, especially the error file as there may be clues there. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJU

[PHP-CVS] cvs: php4 /ext/midgard preparser-scanner.l

2001-03-12 Thread David Guerizec
davidg Tue Mar 13 00:03:08 2001 EDT Modified files: /php4/ext/midgard preparser-scanner.l Log: Fixed a bug that prevented the preparser to expand any Midgard syntax formatter after a //-style comment anywhere in the page. Index: php4/ext/midgard/preparse

[PHP-CVS] cvs: php4 /ext/midgard preparser-scanner.l

2001-03-13 Thread David Guerizec
davidg Tue Mar 13 04:19:41 2001 EDT Modified files: /php4/ext/midgard preparser-scanner.l Log: fixed bug http://www.midgard-project.org/bugs/?id=135 Index: php4/ext/midgard/preparser-scanner.l diff -u php4/ext/midgard/preparser-scanner.l:1.6 php4/ext/mi

Re: [PHP] $HTTP_POST_VARS

2001-03-13 Thread David Minor
've tried using 'unset($HTTP_POST_VARS[update]);' at the end of the script after the var has been used and reprintingg the HTTP_POST_VARS array which shows that it was unset, but on resubmission of the form, it reappears! losing hair, David Minor on 3/8/01 5:45 PM, [EMAIL PROT

Re: [PHP] PHP | MySQL Search

2001-03-13 Thread David Bouw
D is 2 and PriceID is 3 AND (only) where the facilityID is 1 or 5.. But you want everything with CountryID is 2 and PriceID is 3 OR when the facilityID is 1 or 5 Hope this helps.. Bye Bye David > Hya'll, > > I've got a lit

Re: [PHP] Search & display *.txt files in dir

2001-03-13 Thread David Robley
ay? Anyhow, see the example for readdir; you just need to expand the second example with a test (regex, substr, whatever) that tests for .txt on the end of the filename. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://w

Re: [PHP] Multi-Step Script

2001-03-13 Thread David Robley
assign values to the Submit button as required and check the value of the Submit variable to determine what your next action might be. Couple this with some includes also based on the Submit value and voila. -- David Robley| WEBMASTER & Mail List Admin

Re: [PHP] Server side maps

2001-03-13 Thread David Robley
ndler imap-file map' which apparently allows you to use server-parsed imagemap files. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu

Re: [PHP] Help please

2001-03-14 Thread David Robley
IL PROTECTED] Check out this link - may be the answer you are looking for. http://http://mirror.aarnet.edu.au/pub/mysql/doc/C/a/Cannot_initialize_character_set.html -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES |

Re: [PHP] Array help

2001-03-14 Thread David Robley
t have to play around with assigning all the elements bar the last of your original array to a new array. -- Please don't hit Reply to respond - use this address instead: [EMAIL PROTECTED] Local SMTP server is creatively munging domains!!! David Robley| WEBMASTER &am

Re: [PHP] Creating Files Windows vs Unix

2001-03-14 Thread David Robley
the webserver user to read and write if you wish to create files. Also the directory structure must at least allow access down the tree to the point where you are working. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://

RE: [PHP] php or Mysql for DATE?

2001-03-14 Thread David Smith
Try using which formats the same as MySQL... -Original Message- From: Dhaval Desai [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 2:19 AM To: [EMAIL PROTECTED] Subject: [PHP] php or Mysql for DATE? I want to have a posting column wherein people can post their messages an

Re: [PHP] Creating Files Windows vs Unix

2001-03-14 Thread David Robley
hat as a variable you may get unexpected results? I think that $answerFile might contain the value '.txt' Try echoing it and see [I'm off home now.] -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://w

Re: [PHP] Not Looping...

2001-03-14 Thread David Robley
s_result); > > ?> > > > $invoices["date"] ?> > $invoices["amount"] ?> > SIZE="2"> > Check out the example in the manual for mysql_fetch_array, using a while loop. Also see extracrt to save a bit of

Re: [PHP] php or Mysql for DATE?

2001-03-14 Thread David Robley
es and how some can be automatically updated. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAI

[PHP-CVS] cvs: php4 /ext/midgard snippet.c

2001-03-15 Thread David Guerizec
davidg Thu Mar 15 01:09:58 2001 EDT Modified files: /php4/ext/midgard snippet.c Log: Snippet author is a string. Index: php4/ext/midgard/snippet.c diff -u php4/ext/midgard/snippet.c:1.7 php4/ext/midgard/snippet.c:1.8 --- php4/ext/midgard/snippet.c:1.7

[PHP] gmmktime() woes

2001-03-15 Thread David G.
sult for both cases. I'm using the php4.0.5 release from www.php4win.de along with an Apache server on Win2K. I was also seeing this bug in a previous php4 stable release and thought it had been fixed. Perhaps not... -david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] php editors

2001-03-15 Thread David Robley
d then follow the link PHP Editors List A comprehensive list of editors you can use to edit PHP programs It would probably be nice if this were in the FAQ - if anybody ever read the FAQ :-) -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES |

Re: [PHP] FAQ

2001-03-15 Thread David Robley
list like that. If the 'newbies' all go to the 'inexperienced' list, from whence do they gain wisdom? And then the 'newbies' learnn about the 'experienced' list and go there and we're back to square one. :-) Check the archives for _extended_ discussion

Re: [PHP] $REDIRECT_ERROR_NOTES

2001-03-15 Thread David Robley
value doesn't seem to be set. And its not in any of the > HTTP_ENV_VARS or HTTP_SERVER_VARS. > > I know the answer will be something simple but I cant seem to find much > help anywhere. Any help or push in the direction of a useful web page > would be nice. > > Paul Chec

Re: [PHP] $REDIRECT_ERROR_NOTES

2001-03-15 Thread David Robley
b site, some URLs have been changed. Try using the Quick Search option above or our Search Page to locate the document you are seeking. '; } else { echo ''; } ?> Program and proceedings of the 3rd International Conference on Injury Control and Prevention (3I

Re: [PHP] how fast is php

2001-03-15 Thread David Robley
dy On which machine? Under how much load? Using what operating system? Write a script that does what you want and put a timer on it. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet

Re: [PHP] Undefined Variable

2001-03-18 Thread David Robley
aised. > > How can I revert PHP behavior to 'no-error' with undeclared variables? > > Many thanks in advance, > > Jorge Alvarez > PHP4 new user You may need to play around with the value of error_reporting in your php.ini file. -- David Robley

Re: [PHP] just wondering ....

2001-03-18 Thread David Robley
ng to the manual. So you could do something like $mail = mail(values); if ($mail){ do this } else { error } But as has been pointed out above, a return of TRUE only means that mail() has handed the data off to something else, which something else may or may not succeed

RE: [PHP] TraceRoute

2001-03-18 Thread David Smith
This would be because his email shows [EMAIL PROTECTED] Hint the -nospam at the end. I don't know why people do this and then ask for help because when someone offers the help the email bounces... David Smith -Original Message- From: Henrik Hansen [mailto:[EMAIL PROT

Re: [PHP] unable to fine /htdocs on my linux machine :(

2001-03-18 Thread David Robley
her an Apache question, but. It will depend on how you configured Apache as to where or even whether you will find the htdocs directory. For clues, check your httpd.conf file and look under ServerRoot and DocumentRoot. -- David Robley| WEBMASTER & Mail List Admin RE

[PHP] Re: Privilege system of Mysql...

2001-03-19 Thread David Bouw
eans that newly created DB's should later be added.. This is though very secure, but I am wondering if there is a way to: allow EVERYTHING but the following in stead of allow NOTHING but the following Bye Bye David > have you tried the GRANT syntax? > maybe this helps > take a look a

[PHP-CVS] cvs: php4 /ext/midgard php_midgard.h.in

2001-03-19 Thread David Guerizec
davidg Mon Mar 19 03:54:31 2001 EDT Modified files: /php4/ext/midgard php_midgard.h.in Log: fixed bad #endif syntax Index: php4/ext/midgard/php_midgard.h.in diff -u php4/ext/midgard/php_midgard.h.in:1.2 php4/ext/midgard/php_midgard.h.in:1.3 --- php4/ext/m

[PHP-CVS] cvs: php4 /ext/midgard config.m4

2001-03-19 Thread David Guerizec
davidg Mon Mar 19 04:38:35 2001 EDT Modified files: /php4/ext/midgard config.m4 Log: fixed a compatibility problem with 4.0.4 Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.16 php4/ext/midgard/config.m4:1.17 --- php4/ext/midgard/co

[PHP-CVS] cvs: php4 /ext/midgard config.m4.session

2001-03-19 Thread David Guerizec
davidg Mon Mar 19 04:41:20 2001 EDT Modified files: /php4/ext/midgard config.m4.session Log: fixed compilation with php-4.0.4 Index: php4/ext/midgard/config.m4.session diff -u php4/ext/midgard/config.m4.session:1.6 php4/ext/midgard/config.m4.session:1.7 -

Re: [PHP] TraceRoute

2001-03-19 Thread David G.
problem here. -david ""David Smith"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > This would be because his email shows [EMAIL PROTECTED] Hint > the -nospam at the end. I don't know why people do this and the

[PHP] Why not 'file_exists()' for URLs?

2001-03-19 Thread David G.
recently posted and answered. Thanks, david -- In a Norwegian cocktail lounge: Ladies are requested not to have children in the bar. -- 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

Re: [PHP] HELP insert still dosn't work

2001-03-19 Thread David Robley
word not found where > expected -- while processing OCI function OPARSE) in test2.php on line > 40 > > line40 is parse line > > plaese help is very urgent > rudi I'm not an Oracle person, but it sounds like you may have a syntax error in your SQL. Try echo-ing $query and see

[PHP-CVS] cvs: php4 /ext/midgard config.m4 php_midgard.h

2001-03-19 Thread David Guerizec
davidg Mon Mar 19 15:37:03 2001 EDT Modified files: /php4/ext/midgard config.m4 php_midgard.h Log: Fixed the build (hope so). Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.19 php4/ext/midgard/config.m4:1.20 --- php4/ext/midgard/co

[PHP-CVS] cvs: php4 /ext/midgard php_midgard.h.in

2001-03-19 Thread David Guerizec
davidg Mon Mar 19 15:39:10 2001 EDT Removed files: /php4/ext/midgard php_midgard.h.in Log: deleted unneeded file -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] Simple PHP 4 and MySQL question about query

2001-03-19 Thread David Robley
$table WHERE id=$id"); Then you can use mysql_fetch_array to get row[s] containing an array of all the fields (one!) in your query, and then use extract to put the field values in a variable named as the field. (The example for mysql_fetch_array shows another way of displayin

Re: [PHP] [Q] double quote(") is auto-transformed into (\")!

2001-03-19 Thread David Robley
value to the other php page through get/post again. > > Can I turn off this feature? Yes, but you risk unexpected results by not escaping. It is controlled by the value of magic_quotes_gpc in yor php.ini file. Consider instead using stripslashes to remove the slashes

Re: [PHP] eregi not working???

2001-03-20 Thread David Robley
se title tag is spread over multiple lines */ $title = eregi_replace(10, "", $title); $title = eregi_replace(13, "", $title); if( (empty($title)) || (strtoupper($title) == "")): $title = 'Research Centre for Injury Studies';

Re: [PHP] How do I check a php3 file.

2001-03-20 Thread David Robley
ne) then you can do /path/to/php.cgi [file] -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University,

Re: [PHP] ...And removing one line only?

2001-03-20 Thread David Robley
file Then you might copy the temp file over the original, or whatever else you want to do with the files. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet|

Re: [PHP] PHP/MySQL & Control Structures -> if (mysql_query())

2001-03-20 Thread David Robley
_array[ be $sameIP_array[ ? Consider using extract; if nothing else it makes code easier to read :-) > If the database already has entries which have been submitted from the > same IPAddress, I'd like to have those names and numbers listed. > > The previous version of this code

Re: [PHP] PHP/MySQL & Control Structures -> if (mysql_query())

2001-03-20 Thread David Robley
On Wed, 21 Mar 2001 16:15, Mike Gifford wrote: > Hi David, > > I counted the number of rows using mysql_numrows(), but I've been told > that count() is way faster. Unfortunately, I can't seem to get count > working.. Any ideas? > > echo mysql_numrows(mysql_query

Re: [PHP] Newsletter kindaa thing

2001-03-20 Thread David Robley
u could use your database to build a 'subscription list' for something like majordomo. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.

Re: [PHP] PHP post

2001-03-20 Thread David Robley
://marc.theaimsgroup.com/?l=php-general&m=97813345106366&w=2 -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/

[PHP] File open Question?

2001-04-16 Thread David Serrano
Can you open a simple text file and store each line of that file in it's own part of an array? -David Serrano -- 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 administrato

<    8   9   10   11   12   13   14   15   16   17   >