[PHP] Re: assign mysql query to a variable first or not

2004-04-07 Thread David Robley
[EMAIL PROTECTED] (Andy B) wrote in news:[EMAIL PROTECTED]: > hi... > > is it better to give the mysql query string to a variable instead of > directly doing it with mysql_query? > > i.e. > $query="select * from table";//is this a better way? > $query=mysql_query("select * from table");//or is

[PHP] Re: path to binary for php on linux

2004-04-08 Thread David Robley
[EMAIL PROTECTED] (Andy B) wrote in news:[EMAIL PROTECTED]: > anybody know what the exact path for the php binary on linux is? If all else fails, try locate php if your locate database is up to date, or check the logs or whatever of your install package tool. -- PHP General Mailing List (http

[PHP] Re: Unsubscribe!!

2004-04-08 Thread David Robley
[EMAIL PROTECTED] (Ken Heath) wrote in news:[EMAIL PROTECTED]: > Please remove me from the mailing list. Many different efforts has > failed. >:-( > > I apology to everyone who receive this message. This is the last place to send that to. Try looking in the headers of any mail you get from t

[PHP] mysql_escape_string breaks EOL?

2004-10-26 Thread David Robley
quot;This\" and \'that\' Escape: \"This\" and\n\'that\' Is this a bug, or am I totally missing something? Cheers -- David Robley Useless Invention: Avalanche prevention goggles. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: VOTE TODAY

2004-11-03 Thread David Robley
On Wed, 3 Nov 2004 04:04, Apexeleven wrote: > I can't wait for the replies... What! I just voted three weeks ago- you mean I have to do it again? -- David Robley Why doesn't the Bat Computer ever crash? -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] VOTE TODAY

2004-11-03 Thread David Robley
On Wed, 3 Nov 2004 05:49, Michael Sims wrote: > John Nichel wrote: >> ApexEleven wrote: >>> I can't wait for the replies... >> >> cat $you > /dev/null > > Or the slightly more destructive variant: > > cat /dev/null > $you > > :) P

RE: [PHP] keeping format of text in textbox

2004-11-11 Thread David Robley
e doesn't seem to do anything. I'm guessing that you are trying to replace the < /BR> that you added above with a newline; this is redundant and if it actually worked, would add an extra newline at each occurrence of < /BR>. Note that nl2br doesn't replace a newline, i

[PHP] Re: php/html displaying query

2004-11-18 Thread David Robley
there a way to get around this?? either displaying the > blank line or by hiding the HTML tags in the textarea (but still saving > the paragraph with them in) Use nl2br() when you display the data; nl2br will add a before each newline. -- David Robley "I hope I can still

[PHP] Re: exclude - mysql query

2004-11-28 Thread David Robley
he value of $server in the above while loop and if the value matches a list of exclusions, don't echo the value. For mysql, in the select use WHERE NOT IN('a','b'...) for a comma separated list of exclude values, or simply WHERE server <> 'badname' for one se

[PHP] OT Re: Desparate

2004-12-07 Thread David Robley
now. Try something from here: http://directory.google.com/Top/Computers/Usenet/Public_News_Servers/ Google is your friend -- David Robley Thesaurus: ancient reptile with an excellent vocabulary. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Installing Apache and PHP from scratch

2004-12-08 Thread David Robley
use. Is there > a command similar to the phpinfo() command that can tell me how an already > installed Apache in configured? Enable server-info in your httpd.conf and be amazed at the amount of information http;//localhost/server-info will chuck at you. -- David Robley Useless Inventio

[PHP] Re: Sorry forgot to include the code for my last message - Mike Francis

2004-12-11 Thread David Robley
ror messsages that may be returned from the connect; I would get rid of that. Then add here: echo mysql_error(); > exit(); > } > // Select the jokes database > if ([EMAIL PROTECTED]('ijdb')) { And use mysql_error() here too. > exit('Unable to locate the joke ' . >

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread David Robley
hose are handled differently. http://www.php.net/manual/en/language.types.string.php will tell you more about the difference in handling of single quoted and double quoted strings. -- David Robley This isn't right. This isn't even wrong. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Infinity and nested categories

2004-12-12 Thread David Robley
t; > I am using PHP5 and MySQL 4.1 You may find this article on storing hierarchical data useful. http://www.sitepoint.com/print/hierarchical-data-database -- David Robley On the other hand, you also have 5 fingers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

2004-12-16 Thread David Robley
rt of the form data to the target script. > > value="Name,Email,Subject,Updates,Message"> > > > > > -- David Robley A cat is the universe's way of showing us perfection. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: still have the same problem

2004-12-13 Thread David Robley
ST['user'] . " \n\n"; print "Your address is:\n\n " . $_POST['address'] . " "; ?> > The output dont show the user value or address value. -- David Robley "I commanded a group of ships for a week," Tom said fleetingly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question: Repopulating form parameters

2004-12-13 Thread David Robley
Any more hints ? :) > > Apparently my hint was not obvious enough as the message seems not to have > gotten through. > Jason Dig around under the desk and see if you can find the clue-by-four! Seems this is a case for repeated application of same. -- David Robley Send $20 and I will double your IQ or no money back. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP parse Excel and Access files

2004-12-20 Thread David Robley
hose apps as csv files -- David Robley Every thing in this world is an idea acted on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mailto code for php

2004-12-20 Thread David Robley
much and where does it go is it in the .lib or > the .php file Regretfully my crystal ball is out for it's pre-Christmas service so I have no idea of the code you are using. Perhaps if you were to post the relevant part of your script someone might be able to help you. -- David Robley Sou

[PHP] Re: phpeclipse ide question

2005-01-18 Thread David Robley
clipse is a totally > good work around but this would be great. I suspect you may find the answers here: http://www.phpeclipse.de/tiki-forums.php -- David Robley 2400 Baud makes you want to get out and push!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP.ini setup, config, installation & recognition?

2005-01-22 Thread David Robley
7;t say whether you restarted apache; this is required to read and utilise the changes to php.ini. -- David Robley That does not compute. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: String to Date and Date to String Functions?

2005-01-24 Thread David Robley
ateToString ( $todayDt,'DD/MM/' ); > > Anyone know of any functions that do this or have pointers as to how > it can be done. > > Ben Have you looked at date() and strtotime() ? -- David Robley How do you make Windows faster ? Throw it harder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail problem at interland

2005-01-28 Thread David Robley
>> $headers .= "X-MSMail-Priority: High\n"; >> $headers .= "X-Mailer: php\n"; >> $headers .= "From: $emailfrom\n"; >> >> $mailsent = mail($emailto, $subject, $msg, $headers,"-f" . $emailfrom); > > 1) Use the proper delimiters between

[PHP] Re: debug_backtrace trick

2005-01-28 Thread David Robley
Thanks Maybe http://www.interactionarchitect.com/articles/toggle.htm ?? Cheers -- David Robley Those who can't write, write manuals. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Apache 2.0.52 + PHP 4.3.9 configuration problem, for Linux Fedora 3.

2005-07-27 Thread David Robley
t; > In Apache, the user and group are set to Apache, and in PHP the safe mode > is off The directory where you are trying to write should also have write and scan (x) permissions for the user; this probably means making the directory chmod o+wx Cheers -- David Robley My hat covers my head

[PHP] Re: error checking a null array

2005-07-31 Thread David Robley
ther for example $_POST[cb][7] is empty or null, so I can set > the error message to one if it's empty? I think you might find empty() and isset() fairly useful here. Cheers -- David Robley Don't play stupid with me! I'm better at it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Polling script?

2005-08-26 Thread David Robley
Jay Paulson wrote: > Does anyone know of a good polling script that is, obviously, written > in PHP? > > Thanks! Does http://www.google.com.au/search?q=php+polling+script help? I haven't used any so I can't comment on 'good' Cheers -- David Robley Radioactive

[PHP] Re: PHP CMS

2005-08-26 Thread David Robley
refox et al, FCKEditor may be worth a look: http://fckeditor.com/ Cheers -- David Robley IBM: I Buy Macinstosh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: AND OR NOT

2005-09-05 Thread David Robley
7; IN BOOLEAN MODE) or maybe something else depending on the version of Mysql and exactly what you are trying to do with your fulltext search. Cheers -- David Robley Why do cats have canine teeth? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem w/ reading a txt file.

2005-09-13 Thread David Robley
ot;$main[$i]")) with if ($handle = opendir( trim($main[$i]) )) You don't need the quotes in opendir in this case. Cheers -- David Robley Put on your seatbelt. I'm gonna try something new. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: .htaccess

2005-09-13 Thread David Robley
FollowSymLinks > AllowOverride None > > > Where realtors is the root directory of my site...how can I get it to > work? > > Thanks! I think you need to look again at the apache documentation, especially http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride Cheers --

Re: [PHP] Re: .htaccess

2005-09-13 Thread David Robley
blackwater dev wrote: > Thanks David, > > I just set it to AllowOverride All and restarted apache but it still > doesn't seem to work. > > On 9/13/05, David Robley <[EMAIL PROTECTED]> wrote: >> blackwater dev wrote: >> >> > I am using .htacc

[PHP] Re: Little Problem with my Guestbook

2005-09-13 Thread David Robley
bit daunting; echo might be easier for a beginner unless you are used to C. To use echo, in example 3 replace printf("ID: %s Name: %s", $row["id"], $row["name"]); with echo "ID: {$row["id"]} Name: {$row["name"]}"; Cheers -- David Robl

[PHP] Re: [php]: monthly statistics

2005-09-19 Thread David Robley
recommended in this september forum - haven't used it myself so I can't give a personal opinion. Cheers -- David Robley Toys are made in heaven, batteries are made in hell. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using DOM object, how?

2005-09-19 Thread David Robley
, a look in the changelog confirms this. php.net/ChangeLog-5.php#5.0.0b1 So if you are using php < 5.0, that would explain your error. Cheers -- David Robley Be nice to your kids. They'll choose your nursing home. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RSS creator class

2005-09-19 Thread David Robley
ls very well with the plethora of rubbish that seems to issue from Word. These seem to be mainly in the range (but not all of the range) ASCII 128 - 159 TIA for any pointers. Cheers -- David Robley "I commanded a group of ships for a week," Tom said fleetingly. -- PHP Gener

[PHP] Re: resource id#

2005-09-20 Thread David Robley
Ross wrote: > When I try to insert a field into my database it shows as Resource id#21? > > I must be doing something dim. Indeed you are; perhaps if you show a code snippet someone can guide you to the light :-) Cheers -- David Robley Do not believe in miracles -- rely on them.

[PHP] Re: Unique ID on 5.0.4 (Windows)

2005-09-21 Thread David Robley
ne have experience compiling PECL extensions on Windows? > > I'd appreciate any help you could give me. > > Thanks, > Chris Have you looked at uniqid() ? http://php.net/uniqid Cheers -- David Robley Nothing is more relaxed than a sleeping cat. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with headers

2005-09-21 Thread David Robley
, I think it might be something quite unexpected. Try commenting out the two calls to header, then run the script and do a 'view source'. My guess is there is a syntax error message being output which will of course cause header to bleat. My second guess is that the syntax error w

[PHP] Re: pear.php.net

2005-10-12 Thread David Robley
t; > Fatal error: Call to undefined function: init_auth_user() in > /usr/local/www/pearweb/include/pear-format-html.php on line 112 > Very much online, but until someone fixes the code Cheers -- David Robley People own dogs. Cats own people. -- PHP General Mailing List (http://w

[PHP] Re: Login is not working. Please help....

2005-10-13 Thread David Robley
rong name. Name not in db > { > unset($action); > header("Location: loginerror.php"); > } > > } > > ?> > > (form.php) > > > > > > > > > Login as: > > > >

Re: [PHP] prevent user from getting scripts outside the web folder [this better?]

2005-10-13 Thread David Robley
) >> { >> return mysql_real_escape_string( trim( $value ) ) ; >> } >> >> the 'decrypt' function uses MCRYPT_RIJNDAEL_256 with a $key stored >> outside the web folder. >> >> many thanks :) > > My understanding is that mysql_real_escape_s

Re: [PHP] prevent user from getting scripts outside the web folder [this better?]

2005-10-14 Thread David Robley
John Nichel wrote: > David Robley wrote: >> Ben wrote: > >>>My understanding is that mysql_real_escape_string will only work while >>>you are connected to mysql. Not sure if that is the case in your >>>situation. >> >> >> That is i

[PHP] Re: Help needed / failed to open stream: Permission denied

2005-10-19 Thread David Robley
le_handle = fopen("./" . $file_name, "r"); > $file_bytes = $file_record[0]; > fwrite($file_handle, $file_bytes, strlen($file_bytes)); > $return_value = "./" . $file_name; > } > } > return($return_value); > } > > Thank for your help. > Ndagi Cheers -- David Robley A cat will go "quack" - if you squeeze it hard enough. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: phpmyadmin problems with quoting exported text

2005-11-08 Thread David Robley
Anyone have any idea why > this is happening? > Been there, done that, upgraded the PMA :-) Cheers -- David Robley I lost a button hole today. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using POST to pass variables

2005-11-30 Thread David Robley
e="; . $_POST['message']); } exit(); if (isset($_POST['cancel']) ) { header("location: http://f.q.d.n/path/to/index.php";); } Add other sanity checks as required. Cheers -- David Robley Do not put statements in the negative form. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_POST won't work for me

2005-11-30 Thread David Robley
t; Hi > Your email > > The contents of $_POST['name'] and $_POST['email'] appear to be > unavailable to action.php. If I understand the documentation correctly > this should not be the case and whatever strings are filled in the form > of action.html shoul

[PHP] Re: Using POST to pass variables

2005-12-01 Thread David Robley
class that creates a new socket, however on my client's shared > server, the creation of sockets is not allowed. With a new socket, I am > able to pass the variable information via the socket (POST). > > Todd > > David Robley wrote: >> Todd Cary wrote: >>

Re: [PHP] Anyone getting bounces from

2005-12-08 Thread David Robley
Max Belushkin wrote: > John Nichel wrote: >> Jay Blanchard wrote: >>> [EMAIL PROTECTED] ? >>> >>> I am getting failure notices out the wazoo for some very old messages >>> to the >>> general list. > > I am too. Ask me! Ask me! No,

Re: [PHP] What software do you use for writing PHP?

2005-12-08 Thread David Robley
one knows that you >>> cannot edit php with punch cards. Hanging chads will cause too many >>> fatal errors. ;) >>> [/snip] >>> >>> >>> ROFLMMFAO >> >> >> Why these clumsy interfaces? >> >> Just plug the Fi

RE: [PHP] What software do you use for writing PHP?

2005-12-08 Thread David Robley
gt;Homesite (because I already have a licensed copy) or >> Textpad (because it's >> >>>better than Notepad). >> >>> >> >>>IDEs? Who needs 'em ;) >> >>> >> >>>Best, >> >>>Jason >> >>

Re: [PHP] What software do you use for writing PHP?

2005-12-08 Thread David Robley
#x27;Nuff said. >> > > Come on now Jay, we know you're old and all, but everyone knows that you > cannot edit php with punch cards. Hanging chads will cause too many > fatal errors. ;) > Suitable underware will prevent hanging... oh wait, he said _chads_ Cheers -- David Robley If little else, the brain is an educational toy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Invalid argument supplied for foreach()

2005-12-19 Thread David Robley
e anyway) is to check what is actually being passed, with print_r or var_dump. Cheers -- David Robley Support bacteria - it's the only culture some people have! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: a quick one, self submitting jump menu

2005-12-22 Thread David Robley
submit and use the submitted values in a if-else or CASE > statement. This is all on the same page. You would need to add a VALUE property to each of the OPTION tags, and depending on the METHOD property of the form, chech the $_POST or $_GET array Cheers -- David Robley Vote Democratic.

[PHP] Re: How to: Search web for specific file type?

2006-01-05 Thread David Robley
7;d imagine that others such as htdig would be similarly configurable. Cheers -- David Robley Shin: A device for finding furniture in the dark. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What do I need to add to my php5 calls

2006-01-09 Thread David Robley
zlib-dir=/usr \ > --with-xpm-dir=/usr/X11R6 --with-libxml-dir=/usr/contrib/ \ > --with-freetype-dir=/usr/X11R6 --with-tsrm-pthreads --enable-mbstring \ > --enable-imap --with-bz2 --with-apxs2=/usr/contrib/bin/apxs > > What am I missing? What is not happening that you expect to be

[PHP] Re: test variable value?

2006-01-11 Thread David Robley
William Stokes wrote: > Hello > > What is the best way to determine if a variable has no value? > > if ($var= '') > > or > > if ($var= 'null') > > > Can 'null' be used here? Look at isset() and empty() Cheers -- Davi

[PHP] Re: private, public, protected in 4.3.11

2006-01-11 Thread David Robley
rver\ework\classes\page.class.php on line 8 > > If I change to > var $myID; > it works. > > What is wrong? I think you will find that the Visibility feature you are trying to use was introduced with PHP 5 Cheers -- David Robley I'm sure it's in the manual somewhere... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Graphs

2006-01-22 Thread David Robley
Weber Sites LTD wrote: > What is the best (Free) way to create good looking graphs with PHP? > > Sincerely > > berber I haven't used it, but when this question comes up, jpgraph is the most common answer. Cheers -- David Robley I hit the CTRL key but I'm still

[PHP] Re: upload_max_filesize

2006-01-24 Thread David Robley
> php_value upload_max_filesize 8388608 > > > php_value upload_max_filesize 8388608 > > > Nothing seems to work. This didn't used to be a problem. I can > upload files smaller than 2M just fine. Any ideas? > > TIA Have you checked the value for

[PHP] Re: get key of array (key function sucks?)

2006-01-27 Thread David Robley
how foreach works :-) In simplified terms, the first time through the foreach loop, this happens: pointer at element 0 $key gets value 0 $value gets value Yellow pointer moved to element 1 Then you use key(), which gives you - guess what? Cheers -- David Robley "I'll tempt Adam tonight," she said evilly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Newbie] Php.ini

2001-01-30 Thread David Robley
ing --with-config-file-path=PATH Sets the path in which to look for php.ini. defaults to /usr/local/lib -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.fli

Re: [PHP] parse form input

2001-01-30 Thread David Robley
mber of elements in the array with count($varname) and proceed according to the result; ie if it's zero, there is nothing to do/an error has been made; if one, just grab the value of the variable ; or if >1, cycle through the elements of the array(s) and do what you need. -- David

Re: [PHP] php and forms question

2001-01-30 Thread David Robley
sen, this won't work for me. Drop down lists can be multiple select types - use the keyword MULTIPLE when defining the SELECT. > > How do I store all the choices from each subsequent > page and bring them all together on the final page? > > Thankyou, Pass them as hidden fiel

Re: [PHP] one quick question: how do I assign atring value into variable?

2001-01-31 Thread David Robley
with a switch statement. switch($singlerooms) { case 1: $roomType ='Single Room'; break; case 2: $roomType ='Double Room'; break; .. } Cheers -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIE

Re: [PHP] Closing Objects "Cleaning Up"

2001-02-01 Thread David Robley
result memory is automatically freed at the end of the script's execution. For downward compatibility mysql_freeresult() can also be used. Cheers -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ A

Re: [PHP] htmlspecialchars Problem

2001-02-01 Thread David Robley
35 > > > Anyone know why? What version of PHP are you using? From TFM: Also note that the optional second argument was added in PHP 3.0.17 and PHP 4.0.3. Cheers -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES

Re: [PHP] Tab character

2001-02-01 Thread David Robley
On Fri, 2 Feb 2001 01:47, Karl J. Stubsjoen wrote: > Is this a tab character \t Yes - but remember that you won't be able to see it on a page rendered by a browser, as they tend to treat tabs, multiple spaces and line feeds as a single white space. -- Davi

Re: [PHP] upload_max_filesize

2001-02-01 Thread David Robley
avid php.ini is not installed - you need to modify php.ini-dist or php.ini-optimized from the top level directory of your source and place it in the directory you have specified at compile (if you did) or the the default (/usr/local/lib) location. -- David Robley| WEBMAS

Re: [PHP] upload_max_filesize

2001-02-01 Thread David Robley
On Fri, 2 Feb 2001 10:32, David Robley wrote: > On Fri, 2 Feb 2001 02:37, WreckRman2 wrote: > > Actually it isn't on a windows system. Looking at my phpinfp.php file > > it shows "Configuration File (php.ini) Path" as /usr/local/lib but I > > see no file

Re: [PHP] Variables within functions, out?

2001-02-01 Thread David Robley
ve it return a result, thus: function CheckBirthday($year,$month,$day) { if (($day) && ($month) && ($year)) { if (checkdate($day,$month,$year) { $birthday = "$year/$month/$day"; } else { $birthday = "Invalid"; } } return $birthday }

Re: [PHP] encode string with spaces

2001-02-01 Thread David Robley
g = "This is my dog, Jack"; > str_replace(" ", "%20", $my_string); > > $my_string remains with spaces, not %20s. > > Thanks. > > > > Kevin McCarthy rawurlencode seems to be what you want if you want %20; or see urlencode which uses + for space

Re: [PHP] encode string with spaces

2001-02-01 Thread David Robley
On Fri, 2 Feb 2001 11:36, David Robley wrote: > On Fri, 2 Feb 2001 11:22, Kevin McCarthy wrote: > > All - > > > > Any easy way to take a string and fill the spaces in it? Say like a > > URLencoding: > > > > This is my dog, Jack > > becomes > >

Re: [PHP] How do I get last inserted ID?

2001-02-01 Thread David Robley
the ID field. How can I get the script to determine what > id number was given to that row? > > thanks > > /sunny If you are using mysql, mysql_insert_id will do that for you. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDI

Re: [PHP] Automatic incoming mail notification

2001-02-01 Thread David Robley
> > Ankur Verma > HCL Technologies > A1CD, Sector 16, > Noida There is a nice program called procmail, which may already be on your system. Alternatively, under sendmail you can use entries in /etc/aliases to play around with redirecting emails. -- David Robley

Re: [PHP] Email Selected Data

2001-02-04 Thread David Robley
un through the for loop, you are assigning a new value to $contents, rather than appending new information to it. I think you need $content .= printf(blah blah); or without the printf complexity $content .= "First Name: " . $array["FirstName"] . "\nLast Name: " .

Re: [PHP] [newbie] Array form values.

2001-02-05 Thread David Robley
which should give you some ideas for getting the values and keys from an array. You might also be interested in count and sizeof for determining the number of elements in the array. -- David Robley| WEBMASTER & Mail List Admin RESEARCH C

Re: [PHP] Timestamp field

2001-02-05 Thread David Robley
ertion); > > The post is updated fine but the time is changed as I stated...Now I know > I could pull the time_added field out and assign it to a separate > variable and re-insert it when im updating but I'm curious as to why this > would be happening...These are the only places

Re: [PHP] SQL Statments?

2001-02-05 Thread David Robley
ate tables from the dump and assuming you have created the necessary database, you can simply do this on the command line mysql database < your_mysqldump_file or you can nominate the file in the data import part of phpMyAdmin -- David Robley| WEBMASTER & Mail Li

Re: [PHP] passing array to function?

2001-02-06 Thread David Robley
t;,"b"=>"banana","c"=>"cucumber","d"=>"apricot",); show_elements($fruits); ?> That's pretty much plagiarised from the array functions in the manual :-) -- David Robley| WEBMASTER & Ma

Re: [PHP] Retrieve item from table at random

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 11:28, enthalpy wrote: > anyone have example code for randomly grabing an item from a mysql table? > Mysql 3.23 will let you order by RAND() and you could use a LIMIT to restrict to one result. I haven't tried it, though. -- David Robley

Re: [PHP] File upload - ascii format

2001-02-06 Thread David Robley
file_type" value="applresults"> name="submit" value="Upload File"> > > > > I think it may be how you specify the enctype? > > - Shane A quick search turned up this URL: http://www.w3.org/TR/REC-html40/interact/forms.html which s

Re: [PHP] File upload - ascii format

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 13:58, David Robley wrote: > On Wed, 7 Feb 2001 13:42, Shane McBride wrote: > > > How can I ensure that a file is transferred in ascii mode using the > > > > following: > action="do_upload.php"> > > > > File to U

Re: [PHP] [newbie] minor trouble with "while, list and explode" from a text-file

2001-02-06 Thread David Robley
; $message = explode ("|", $line); 42> 43> while (list (, $value) = each($message)) 44> { 45> echo "chop($value)"; 46> }; The comma in Line 43 is important! Alternativel

Re: [PHP] Header Location Question

2001-02-06 Thread David Robley
uot;"; > > if ($op == "ds") { > $url = 'http://www.bigcharts.com/quickchart/quickchart.asp?symb= . > $symbol'; header ("Location: $url"); > } > ?> If you are going to use header, you _must_ make sure that nothing is output to the

Re: [PHP] image* functions won't work.

2001-02-06 Thread David Robley
mp; installed without any whine .. What do you mean 'don't work'? Are there error messages? Create a document with just in it and see if in fact GD support etc are enabled in PHP -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENT

Re: [PHP] UN-Escaping text from a form submit?

2001-02-07 Thread David Robley
to strip out escape sequences? > > - John Vanderbeck > - Admin, GameDesign addslashes and stripslashes are the functions you need. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet

Re: [PHP] Compiling php??

2001-02-07 Thread David Robley
ncoder has some information. -- 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 AUSTRAL

Re: [PHP] indexing text

2001-02-08 Thread David Robley
use it to index a database directly. Search google > for the URL. It's http://search.mnogo.ru/ -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.fl

Re: [PHP] Web Based Project Management Tools

2001-02-08 Thread David Robley
0 ][ pager - 208.387.9983 ] Keystone? http://www.stonekeep.com/keystone.php3 It and some others are listed on the projects page of your favourite PHP mirror. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.n

Re: [PHP] Search & replace text

2001-02-11 Thread David Robley
; }else{ > echo "Success"; > } > while (!feof($file)) { > $line = fgets($file, 255); > if(eregi($oldemail, $line, $out)) { > str_replace($oldemail, $newemail, $line); You need to assign the output of this function to a string:

Re: [PHP] Newbie: Images refs not loading (Broken Icons) How to?

2001-02-12 Thread David Robley
#x27;0' NOT NULL auto_increment, > date text, > indice text, > indice_url varchar(255), > PRIMARY KEY (id) > ); > Date as a _text_ field? You'll never have a Year 20 bug problem :-0 -- David Robley

Re: [PHP] Using php as a shell scripting language

2001-02-12 Thread David Robley
--with-config-file-path --enable-debug=no --enable-track-vars=yes --enable-bcmath=yes --bindir=/web/webdocs/cgi-bin -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet

Re: [PHP] Build HREF list from database???

2001-02-12 Thread David Robley
sql="select path from table where pid =1"; //obvious $link_id = mysql_connect($host, $usr, $pass); //get connection handle $result = mysql_db_query($database, $sql, $link_id); /* put a die on the above or better use mysql_error */ $i = 1; //initialise counter while($row

Re: [PHP] SELECT statement

2001-02-12 Thread David Robley
u can't is there a away around this? > > Thanks > > Peter In SQL queries, you normally separate the required fields with a comma, so $sql="SELECT id, email FROM table WHERE user='$user' and pass='$pass'"; would work, assuming id and email are fields in the

Re: [PHP] Mathematical prob

2001-02-12 Thread David Robley
o the power of 3 calculation and > I cant get it to spit out 27 like I know it should. > > Any suggestions ? > > > Thanks > > > Chris Check out exp() and pow() -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY

Re: [PHP] SELECT statement

2001-02-12 Thread David Robley
table) > > Peter > > > Hi, > > > > Can you have a SELECT statement (using mysql) that goes something > > like > > > > $sql="SELECT id && email FROM table WHERE user='$user' and > > pass='$pass'"; What i

Re: [PHP] could anyone please help me with this date coding?

2001-02-13 Thread David Robley
ni_date day")); > $val_date = date("Y-m-d", strtotime ("+$ini_date day")); > echo("\t[$ini_date] > $dis_date\n"); > } > while (++$ini_date <= $max_date); > > ----- Can you be a little more specific? Details o

Re: [PHP] GD library

2001-02-13 Thread David Robley
in lib under that path for the libraries and include for the include files. -- 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] Newbie -- tutorial exercises reveal too much -- pdf download not "saveable"

2001-02-13 Thread David Robley
ally outsite your webserver document root. So for some security, put your passwords etc outside the web root. Also, see the php.ini file if you have access to it for how to define a search path for include files. As for downloading the manuals, try right clicking and choosing the 'Save L

<    6   7   8   9   10   11   12   >