Re: [PHP] Including files without loosing my string

2001-09-25 Thread David Robley
On Tue, 25 Sep 2001 17:01, Bård Tommy Nilsen wrote: > Hello ! > > I am trying to keep my string after including av file. > > file1.php: > (accessed with file1.php?id=1) > > include 'index.php'; > > function func() { > echo "buddy"; > } > ?> > > index.php: > echo "Hello"; > if (function_exists('f

Re: [PHP] select based on time/date

2001-09-24 Thread David Robley
MTB > http://extreme.nas.net And, as someone recently pointed out in response to a similar suggestion I made, there is a mysql DATE_FORMAT function that will do the same thing without the CONCATS. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] A simple PHP form not working

2001-09-24 Thread David Robley
.php > > mail("[EMAIL PROTECTED]", "Feedback Form Results",$message, "From: > $email"); > ("Location:thankyou.html"); > ?> Line 2 appears to be the mail() function - have you correctly configured the mail section of your php.ini? -- David Robley Techno-

Re: [PHP] Receiving mySQL result from remote server?

2001-09-24 Thread David Robley
ave permissions for the remote host/user/password, of course. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA "Ignore the first three turnings," said Tom forthrightly. -- PHP G

Re: [PHP] Mysql check

2001-09-24 Thread David Robley
-+-----+ > 1 row in set (0.00 sec) > > > It therefore appears that MySQL/the table is shorting out and killing > the query before it's really executed. > > I'm not on any mailing lists for MySQL, but I'll try checking their web > s

Re: [PHP] Individual Lines of TEXT

2001-09-24 Thread David Robley
individual lines of this text file and store them into a mysql > database line by line. > > Cheers Yes - have a look at the filesystem functions to get the lines of the file; you could use fopen()/fgets() to return a line at a time or even just file() to return all lines as elements of

Re: [PHP] Why this error to this newsgroup?

2001-09-24 Thread David Robley
iting to "/var/spool/mail/dtt" > > > ------ > > > > > > This just started, I believe, this week. Is there some kind of an > > > auto-responder that isn't working correctly? > > > > > > > > > -- > > > Gaylen

Re: [PHP] Run or execute a php cript within a php cript.

2001-09-20 Thread David Robley
; > Thanks all, > > Yours Hans. include() them? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA "This is my favorite chinese soup," Tom said wantonly. -- PHP General Mailing List (ht

Re: [PHP] Variable conversion problem

2001-09-20 Thread David Robley
eciated. > Thanks. > > Neil Silvester > Webmaster / Systems Administrator > Heat and Control Inc. There are several possible solutions here, starting with seting a default selection in your dropdown so you avoid the problem. Otherwise you could test whether the dropdown value i

Re: [PHP] Possibly undocumented operators.

2001-09-20 Thread David Robley
ce > tables, but they appear to be outdated. Where can I find a complete > and accurate operator precedence table? > > CW The manual? http://www.php.net/manual/en/language.operators.precedence.php for operator precedence and http://www.php.net/manual/en/language.oop.php for classes and o

Re: [PHP] MySQL Connectivity test

2001-09-20 Thread David Robley
idn't work stuff here" > } else { > // Continue with whatever it was I was doing. > } > > would that work as I expect it to? > > thanks! > > Jason > Here is what I use, called as an include file: -- David Robley Techno-JoaT, Web Maintai

Re: [PHP] Newbie Question: Array Comparison ---

2001-09-19 Thread David Robley
mple, "c" should not be > print. in_array might be one tool - loop through $Foo and print $Foo[n] if it's not in the array $donotprint foreach($Foo as $val) { if(!in_array($val,$DoNotPrint) { echo $val; } } Any syntax errors you find in that you can keep :-) And doubtless th

Re: [PHP] Newbie Question: Array Comparison ---

2001-09-19 Thread David Robley
"e"): > > What is the best way to print every value in $Foo that does NOT match a > value in $DoNotPrint? For instance, in this example, "c" should not be > print. in_array might be one tool - loop through $Foo and print $Foo[n] if it's not in the array $donot

Re: [PHP] MySQL Connectivity test

2001-09-19 Thread David Robley
dentifier on success or an error message on failure. That should do what you want. I wonder what my sigmonster is up to? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA "Stupid" is a bound

Re: [PHP] Download

2001-09-18 Thread David Robley
ions/php-4.0.6.tar.gz on your local functioning mirror will get the 4.0.6 source -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA "I was absolutely vitrified," said Tom with a glazed look.

Re: [PHP] re: array question

2001-09-18 Thread David Robley
On Wed, 19 Sep 2001 12:28, Scott wrote: > That works, thank you, but it prints at the top of my page, is there > a way to store that array into a single variable? > Yes - implode() -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] Speeding up program

2001-09-18 Thread David Robley
your environment, try running each say ten thousand times in a loop, and use a timer like microtime to check how long it takes.\ Then you can let us all know the answer. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOU

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread David Robley
> another page with the # sign, it's interpreting it as > a comment. Is their any way to somehow escape the # > sign. > Works OK for me in an INPUT TYPE=TEXT. Perhaps a bit of your code and the table structure might help? -- David Robley Techno-JoaT, Web Maintainer

Re: [PHP] rtrim bug?

2001-09-17 Thread David Robley
'X' . rtrim('foo bar ', ' ') . 'X'; > > this gives 'XX' as the result. > > i'm using php-4.0.6. Am I misunderstanding something horribly, or is > this a legitimate bug? > > Kevin Way The docs say that the second paramete

Re: [PHP] mysqlimport & exec()

2001-09-16 Thread David Robley
eciated. > TIA > Terry Check that it is actually executable by the user that your webserver runs as. Checking the output of exec might give some insight. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA

Re: [PHP] posted urls

2001-09-13 Thread David Robley
word2 word3" => "word1+word2+word3" > > $word1 . $word2 . $word3 > > Read the manual! > > Alexander Skwar Tsk Alexander, read the question :-) Urlencode is most likely what is needed. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR IN

Re: [PHP] Order of focus for text entry inputs

2001-09-13 Thread David Robley
visited after any elements with a positive TABINDEX. Among positive TABINDEX values, the lower number receives focus first. In the case of a tie, the element appearing first in the HTML document takes precedence. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR

Re: [PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread David Robley
gt; Thanks in advance for any help or suggestions. > Rebecca Output control functions may be what you are looking for. http://www.php.net/manual/en/ref.outcontrol.php -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUT

Re: [PHP] importing a table

2001-09-13 Thread David Robley
ry out queries on the information in the table. > > I was wondering is there a command in Mysql that can import tables? > > I just need to import one table, not an entire database. > > > Thanks. > > Peter There is mysqlimport from the command line, and there is the LOAD DA

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-13 Thread David Robley
Sorry - pressed send w/out writing anything. Topic followed up direct with problem owner. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA There are 2 ways to handle women and I know neither

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-13 Thread David Robley
', > '$ROEX')"; > mysql_query($sql,$db_con); > } > > } > mysql_close($db_con); > } >} > else > { > // No file uploaded, show the form > echo ""; > echo "Upload this

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-13 Thread David Robley
op the master table and upload the csv there > will only be a few currency's! > > Thanks > Coenraad Steenkamp > > > - Original Message - > From: "David Robley" <[EMAIL PROTECTED]> > Newsgroups: php.general > To: "Coenraad Steenkamp&qu

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-12 Thread David Robley
t as well just drop the table and import the contents of the csv. Unless there's a good reason not to that you haven't mentioned? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Birds ar

Re: [PHP] limiting rows and pages like google -- again

2001-09-12 Thread David Robley
gt; > TIA > > Adrian This has been a common topic recently. Try the archives http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=pages+like+google -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders Univer

Re: [PHP] mail problem

2001-09-12 Thread David Robley
; Peter > > > >Not much traffic there :-) Try sending one from the command line, then > >one with your script and then check the log again. > > That's because its on the web server traffic ... set up to handle just > requests from our webpages ... > > ok now

Re: [PHP] Invalid MySQL result resource

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 14:22, David Robley wrote: > > Here's what's going on. > > > > > > $connection = mysql_connect($server, $user, $pass); > > mysql_select_db($db); > > > > $query = "

Re: [PHP] Invalid MySQL result resource

2001-09-12 Thread David Robley
= '" . $cartitem[productid] . "'"; to be sure that the array element is dereferenced properly. > $productinfo = mysql_fetch_array($productresult); //THIS line produces > the error $count++; > } > > mysql_close($connection); > > > > I don't

Re: [PHP] Invalid MySQL result resource

2001-09-12 Thread David Robley
special about MySQL > that I am not aware of? That usually indicates that the query which produced the resource failed for some reason. Immediately after the mysql_db_query(s), use mysql_error to fetch the error message from mysql. This _used_ to be in the FAQ, I swear :-) -- David Robl

Re: [PHP] mail problem

2001-09-12 Thread David Robley
ther sendmail then > > succeeds is another story :-) > > > >> now I can go to the commandline and send emails no problem but from > >> the web pages I can't .. any suggestions would be apreciated. > > > >My first thought would be to check the relevant

Re: [PHP] mail problem

2001-09-12 Thread David Robley
ail then succeeds is another story :-) > now I can go to the commandline and send emails no problem but from the > web pages I can't .. any suggestions would be apreciated. My first thought would be to check the relevant log for sendmail activity, which might give a clue? --

Re: [PHP] mysql_db_query create table error

2001-09-11 Thread David Robley
ssion issues or > something? > > Thanks in advance, > __ Michael Krisher > __ http://www.sectiongroup.com Immediately after the mysql_db_query line, use mysql_error() to return the mysql error message. I'll hazard a guess that it is because you haven't assigned a default v

Re: [PHP] Problem regarding select boxes

2001-09-11 Thread David Robley
want to hide those > two options. I think you only just posted this an hour ago - and there has been at least one answer since. How about waiting a little while for a response. Not everybody is just sitting there ready and waiting to solve your problem. -- David Robley Techno-JoaT,

Re: [PHP] php help probably basic (used stripslashes but probably not the right way to do it)

2001-09-10 Thread David Robley
-- > Being a Systems Administrator is like > hitting yourself in the bead with a brick. > After a while you don't feel the pain. > -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Fli

Re: [PHP] reading arrays within a field from mysql and separating the values

2001-09-10 Thread David Robley
name1 > name2 > name3 > name4 > > > > Anyone know how to fix this? > Robert It sounds like your database design could do with a bit of rethinking, but there is a solution to your immediate problem. You need to explo

Re: [PHP] How to do a Date format conversion

2001-09-10 Thread David Robley
unctions (which I can do). > > Thanks, > Don strtotime to get te Unix datestamp, then date() should do the trick. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA "Wow!" bar

Re: [PHP] find out names of keys in an array

2001-09-10 Thread David Robley
t; > Any ideas??? > > > Evan Nemerson > PS If anyone wants this when im done email me. evan(a)coeus-group*com There are a couple of functions that might suit your needs - array_keys() which will return an array of the key names, or a combination of list and each. Have a brow

Re: Re[2]: [PHP] mail() ERROR - WHY, WHY, WHY

2001-09-10 Thread David Robley
the filename. For example, mine is sendmail_path = /usr/sbin/sendmail -t -i -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Press all the keys at once to continue... -- PHP General Mailin

Re: [PHP] Searching for text in a file

2001-09-10 Thread David Robley
gt;$count = 1; > while ($line_text = fgets($fd, 2048)) { > if ($variable = trim($line_text)) { You are assigning here - use == for comparison. >echo "Match at line number $count"; > break; > } > ++$count; > } &g

Re: [PHP] Mysql help

2001-09-09 Thread David Robley
tables but i don't know > some information about table host ? Please send me some information > about this table. > > > Thank you. > > roman This is a mysql problem, not PHP. Try http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Database_Admini

Re: [PHP] script waiting for an output

2001-09-09 Thread David Robley
bout makes sense, or is even doable, > but if anyone has any ideas or suggestions it'd be appreciated. > > > > Thanks > > Chris When this particular app that watches the modem is started, could you add something (like perhaps tee) to the startup command to direct th

Re: [PHP] OpenLDAP Support / Compiling PHP

2001-09-09 Thread David Robley
all directory here? > > Thanks > > Jason You'll probably find other bits in /usr/local/share, /usr/local/include and /usr/local/etc. So try your luck using just /usr/local -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flin

Re: [PHP] mySQL / PHP Join Question

2001-09-09 Thread David Robley
n', you could use something like SELECT person.description AS pdesc, place.description AS wdesc FROM person, place WHERE -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA "I was the firs

Re: [PHP] Newbie Question.. (MySQL/PHP)

2001-09-06 Thread David Robley
you display the string. With a little more effort, you could play around with substring_index to display the first n words of the article. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Happiness

Re: [PHP] Grabbing dynamic pages

2001-09-06 Thread David Robley
x27; / 'No" answer maybe if 'Yes' just a > quick explanation. > > Any help would be much much appreciated. > > Regards, > > Joseph Blythe > Web Development Seems like PHP has something to do just about anything; in this case you may find striptags is jus

Re: [PHP] Table Search

2001-09-06 Thread David Robley
]; You would need to specify them in a print function, then. print $row["Mobile"]; print $row["AdminContact"]; etc etc -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Famous last word

Re: [PHP] config options

2001-09-06 Thread David Robley
On Fri, 7 Sep 2001 10:04, Martín Marqués wrote: > On Jue 06 Sep 2001 21:31, David Robley wrote: > > On Fri, 7 Sep 2001 09:56, Martín Marqués wrote: > > > I there a way to get the config options with which the php binary > > > (as a binary or as an apache m

Re: [PHP] config options

2001-09-06 Thread David Robley
On Fri, 7 Sep 2001 09:56, Martín Marqués wrote: > I there a way to get the config options with which the php binary (as a > binary or as an apache module)? > > Saludos... :-) It is one of the things shown by phpinfo() -- David Robley Techno-JoaT, Web Maintainer, Mail Lis

Re: [PHP] mysql_fetch_array

2001-09-06 Thread David Robley
P address was not found in > the database, and if it was found then I want to print "Print some text > here!" > > Please help! > Thanks, > Nate I think it would make more sense to check the number of rows found, and act accordingly. If you don't need to use any of th

Re: [PHP] 2what will be the output for this pgm?

2001-09-05 Thread David Robley
> Thanks in advance > > Regards > -Balaji There will only be a value in HTTP_REFERER if the page was referenced via a link from elsehwere (generally). If you just call the script by putting its URL in the LOCATION box, it will be empty. Read The Fine Manual chapter 7 on variables fo

Re: [PHP] Carriage return.

2001-09-05 Thread David Robley
> Thanks in advance > > //Johan If you are getting a ^M something is a bit wrong as that is xOD the CR character. What system are you on and what is the relevant part of your script? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Fli

Re: [PHP] stripslashes

2001-09-04 Thread David Robley
On Wed, 5 Sep 2001 11:20, Gary wrote: > Hi, > Could someone give me an example of using stripslashes with echo and echo stripslashes($variable_to_strip_slashes_from); > one with .msg in a mail function. Not quite sure what you mean by this? -- David Robley Techno-JoaT, Web M

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread David Robley
e. Anybody can pop > over to http://php.net/list and get an explanation of what the code > does if they run across it. > > -Rasmus Or you can use extract() to provide variable names which match the names of the fields in your table. while($row = mysql_fetch_array($sqh)); extrac

Re: [PHP] refer to the same page AGAIN! Please...

2001-09-04 Thread David Robley
d via the script. These might be INPUT, SELECT or whatever and will have the sme name as the form element from which they come. If this is greek to you, perhaps you should be reading the part of the manual on Variables, particularly the section on Variables from Outside PHP. -- David Robley

Re: [PHP] PHP_SELF NEW.....?????

2001-09-03 Thread David Robley
processor, this variable is not available. So it returns the name of the current script. For the simplest example, try the following: -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Any

Re: [PHP] password why?

2001-09-03 Thread David Robley
en.Please use your back button and choose > another"; > else { > > more code > > TIA > Gary Is the password stored as an encrypted string in the DB (one would hope so!) If so, you'll need to compare an encrypted version of the string you are testing. -- David

Re: [PHP] Am I right or wrong?

2001-09-03 Thread David Robley
On Tue, 4 Sep 2001 10:50, Dave Freeman wrote: > to change their policy or vote with your feed and move elsewhere. Somehow I think they'd be less than pleased if he were to tip his feed all over their server :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, et

Re: [PHP] Re: probs with exec, pls help (still)

2001-09-03 Thread David Robley
> 002801c133f3$1e2204e0$0feafea9@reynolds">news:002801c133f3$1e2204e0$0feafea9@reynolds... > > Should this work, if not, why not > > > > > > > > the import works fine from the command line Have you checked that mysqlimport and the directory in which it re

Re: [PHP] probs with exec, pls pls help

2001-09-02 Thread David Robley
have permissions to execute mysqlimport. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Self-made man: A horrible example of unskilled labor. -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] CSS with PHP?

2001-09-02 Thread David Robley
referenced which doesn't exist on my machine. Somehow I don't think the results are as you would like them to be :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Closed Hearing for the Cap

Re: [PHP] imagecreatefromgif

2001-08-30 Thread David Robley
hris Try outputting the result direct to your browser, without anything in the way to define it as an image - that way you may get to see the error. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Wher

Re: [PHP] 2nd Pass of array empty

2001-08-30 Thread David Robley
Do I need to reset the array pointer at the begining? Is > there something else I need to do? > > Regards, > Ben Reset the array pointer before the second any any subsequent iteration. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
gt; I have 7 seven fields in the form to process. > > David Robley wrote: > > On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote: > >>Mozilla sucks sometimes with email formatting. > >>Correction==> > >> > >>Here is a snippet example. > >&g

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
de("|",$array); return $string; > } > > The variables that form $array are from the form Hrm - undefined function top() ?? ?? But the rest of it returns what I would expect - a comma followed by two | - given that I don't have the values referenced in the array. And you won

Re: [PHP] strange linefeed effect

2001-08-29 Thread David Robley
D. Alvarez Arribas <[EMAIL PROTECTED]> You might check that there are no blank lines in the required file outside the tags. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Creditors have

Re: [PHP] syntax help please?

2001-08-29 Thread David Robley
are in in the query..(?) > > Heres my "I'm a newbie" question... exactly how and where do I define > the variables so that i can use them in a different order than they are > in the query? Use extract ,which makes available variables of the same name as the fields in your t

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote: > I was doing it like so ==> > $string = array(var1, var2...); > return string; > > I also tried to implode the array into a string and return the result, > but no go. > > David Robley wrote: > > On Thu, 30 Au

Re: [PHP] Strange Form Error

2001-08-29 Thread David Robley
uot;> > > $cmd will not be passed to php, I have to do this: > > enctype="multipart/form-data"> value="null"> > > > Now I can use $cmd. > Is this normal? If you are trying to upload a file, I think you need to have a hidden field for MAX_FIL

Re: [PHP] Count

2001-08-29 Thread David Robley
quot;; $result = mysql_db_query($database, $query); $row = mysql_fetch_array($result); extract($row); echo $myCount; might do the trick; unless I've left a syntax error in there :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders Uni

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
iable from a function, but that variable can be an array. This is probably obvious, but you are assigning the result of the function to a variable? Eg $result = my_function($my_parameter, $my_parameter); -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY

Re: [PHP] wrapping blobbed fields

2001-08-28 Thread David Robley
at goes off the > screen (ie the horizontal scrollbars show). > > Any help would be appreciated. > > Will. nl2br() assuming that you have WRAP set in your TEXTAREA -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinde

Re: [PHP] Web fetching script

2001-08-27 Thread David Robley
fopen("$GrabURL", "r"); > $rf = fread($file, 2); > $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); > > $printing[1] = str_replace("replacedatestamp", "withnewstamp", > $printing[1]); Here, reset your start and fini

Re: [PHP] "undefined variable view ..."

2001-08-26 Thread David Robley
p version > here somehow puts up the warning ... > Any helpful hints and ideas are much appreciated. Thank you! There will probably be different levels of error reporting in the two php.ini files. view is an index of the array $HTTP_GET_VARS, and is apparently not defined at that part of the

Re: [PHP] path to php

2001-08-26 Thread David Robley
> > > but i still can't seem to get it to work with out it saying that > > > > it can't find the path to php...any one got any ideas?!? > > > > > > > > btw. i know php is on it.. > > > > > > > > I have tried contacting the

Re: [PHP] Re: order of update??

2001-08-23 Thread David Robley
> > jim As a debugging aid, use mysql_error() to trap any error messages returned from the database, and mysql_affected_rows to determine the number of rows affected by your update query. It _might_ be that your query is valid, but actually no rows meet the criteria for update? -- Da

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread David Robley
your query, if it is a complex one. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Reality is an obstacle to hallucination. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Sorting IP Address Data

2001-08-22 Thread David Robley
second parameter sort_flags may be used to modify the sorting behavior using theese values: Sorting type flags: • SORT_REGULAR - compare items normally • SORT_NUMERIC - compare items numerically • SORT_STRING - compare items as strings -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin

Re: [PHP] using PHP to browse and select a file on a local machine

2001-08-22 Thread David Robley
I wouldn't want someone wandering around in my machine and grabbing files at random. But you can allow the client to select and upload files, which you could then display in a text box. See the manual section on handling file uploads. -- David Robley Techno-JoaT, Web Maintainer, Mail List

Re: [PHP] path to php

2001-08-22 Thread David Robley
nt to reply... Have you tried which php or locate php? If you don't have shell access you'll have to fiddle around with backticks or whichever of system() and friends is appropriate. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] insert hyperlink to mysql query result

2001-08-22 Thread David Robley
ate the various parts of the string with . Breaking your code down a bit to make it more easily understood: echo ''; echo 'http://www.expedia.com/pub/agent.dll?qscr=mcst&strt1='; echo $amyrow["address"] . '&city1=' . $amyrow["city"]';

Re: [PHP] HTTP headers and include()

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 10:06, Casteele/ShadowLord wrote: > Andy <[EMAIL PROTECTED]> wrote in article > <003b01c12b23$d1f245d0$0b01a8c0@ANDreY>... > > > See if is there some kind of echo before header()s, or HTML sent to > > browser. > > No, I've been extremely careful to avoid that. The following a

Re: [PHP] mySQL Query - comparing multiple values with one field

2001-08-21 Thread David Robley
ot; or can I do it something like this > "SELECT * FROM table WHERE field LIKE ('%value1%' || '%value2%')"? > > > Niklas Lampén The first will work. If you are doing exact comparisons, the mysql comparison operator IN may prove useful. -- David Robley

Re: [PHP] time

2001-08-21 Thread David Robley
On Thu, 23 Aug 2001 16:11, nafiseh saberi wrote: > hi. > how do I can wrk with time: > > 11:56:23 - 10:00:45 = > > thanks. Have a look at the date and time functions - convert the time to seconds and do the calculation (mktime) then turn it back to whatever format you

Re: [PHP] transfer tables to another database?

2001-08-21 Thread David Robley
nto the new database; assuming that you are staying with the same DB package. Alternatively, you could use PHP (just to keep on topic) to read records from the tables in the 'old' database and write to the 'new' database. -- David Robley Techno-JoaT, Web Maintainer, Mail L

Re: [PHP] array

2001-08-21 Thread David Robley
Thanks in advance. Well, $fp is not the contents of the file, but just a pointer. What you really want is file() $text = file('./file.txt'); will give you an array $file, where each element is a line in the file, with the newline attached. To do the same thing after fopen()i

Re: [PHP] List of files?

2001-08-21 Thread David Robley
ist[] = $this; recurse_dir("$this/"); }; }; }; ?> Call it with recurse_dir(dir-to_start) and get the results in $dirlist[] Have fun. And yes, there's room for improvement, having looked at it for the first time in a year or so :-) The first obvious would be to

Re: [PHP] converting str with \n to one line str??

2001-08-21 Thread David Robley
> > > > This is not working!! But this would : > > > > > > > > var temp = '<? echo $temp?>'; > > > > Can you help me please? > > > > thanks Jens Regular expressions? There is an example for ereg_replace in the manual that

Re: [PHP] multiple select question

2001-08-21 Thread David Robley
rray or > something else? My select has the NAME "read". > > TIA, > > Raphael Without checking that URL: the usual way to return the contents of multiple select box as an array is to name the selct as an array with name[] - so in your case, etc -- David Robley

Re: [PHP] Importing a GIF image and making it transparent

2001-08-21 Thread David Robley
ier returned by ImageColorAllocate(). > > Note "Im is the image identifier returned by ImageCreate()" - does this > mean this function only works with images PHP has created? I wonder if it might not work on the image identifier returned from ImageCreateFromGIF, which is presumably

Re: [PHP] "mode" in mkdir()

2001-08-20 Thread David Robley
cute (1); the third selects permissions for other users in the file's group, with the same values; and the fourth for other users not in the file's group, with the same values. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES

Re: [PHP] Switch case syntax

2001-08-20 Thread David Robley
for instance, and this causes a parsing > error. Can I fix this without changing the fact I'm switching on a 3 > letter string? > > Cheers You are sticking those values in quotes? Frinstance switch($variable) { case 'IBM': break; case 'DEC': break; case 'M

Re: [PHP] Directory Listing in an Array

2001-08-20 Thread David Robley
to a windy pipe dream or is there a simple solution for > this ? > > > > Cheers > This, ever so slightly adapted from the example in the docs for readdir, should do what you want -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY

Re: Fw: [PHP] Re: option tags and WHILE

2001-08-19 Thread David Robley
On Mon, 20 Aug 2001 15:05, Chris Schneck wrote: > Thanks to CC Zona and David Robley for their help in gettin this code > out. This code is really nice for satisfying search engines. It offers > different page content every time you refresh and if you feel like > spamming, just use pr

Re: [PHP] option tags and WHILE

2001-08-19 Thread David Robley
are fetching fields named value and label for this exercise, something like: echo ''; while ($array = mysql_fetch_array($mysql_result)) { extract($array); echo '' . $label . ''; } echo ''; Of course, you'll need to put some more info in your t

Re: [PHP] array_unique() and count issue

2001-08-19 Thread David Robley
ve. You need to cycle through the results from the DB and add them all to the array. But having said that, it seems to me that what you are really trying to do is to return unique entries from the database? In this case, look at using the DISTINCT keyword in your SQL query. -- David Robley

Re: [PHP] array in and out

2001-08-19 Thread David Robley
ave access to the variable $mykeywords either from being passed as a parameter or made available as a global. Also you misspelled $mykeywords in the function :-) -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA

<    3   4   5   6   7   8   9   10   11   12   >