RE: [PHP] Re-Importing .CSV file into Database

2002-02-12 Thread David Robley
be useful, but in any case I think you need to enclose the source filename in quotes; also (you better check the docs here) if I remember correctly you need to give the full path to the source file unless it is in the mysql data directory. -- David Robley Temporary Kiwi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Increment alphabetical character (simple question)

2002-02-12 Thread David Robley
ord() and chr() will do this. $oldchar = "C"; $newchar = chr(ord($oldchar) + 1); should be close to the mark. NB untested!! -- David Robley Temporary Kiwi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread David Robley
7;m using Windows at the moment to develop. > That SMTP value looks a bit suspicious?? Are you sure that is correct? -- David Robley Temporary Kiwi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP & GD - Nevermind! Thanks!

2002-02-13 Thread David Robley
ion, or you use GD etc to put your defined text on a common image? Or you might want to build a graph of data? -- David Robley Temporary Kiwi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Actually, I don't really know what to put in it. I thought that's what it > wanted. What does it want? > > "David Robley" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]&

[PHP] Re: php dies every 2 days

2002-02-13 Thread David Robley
at would be the solution? Do your server logs have any entries that might give a clue? -- David Robley Temporary Kiwi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread David Robley
imum = 329ms, Average = 321ms C:\WINDOWS> so it seems to exist. I suggest you try mail.alienmelon.com as the SMTP entry in your config and see what happens. -- David Robley Temporary Kiwi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Setting up group mailer

2002-02-14 Thread David Robley
uld time out quickly before I was done. > > Thanks. This topic seems to come up quite regularly; if you have a look back over the archives I think you will find that the general opinion is that you should use a dedicated package for mass mailing. qmail/ezmlm is one such package which can

Re: [PHP] searching key words from a database field

2002-02-14 Thread David Robley
n > > any one of the keywords construct something like: > > > > > > SELECT * FROM `hyperlinks` > > WHERE `keywords` LIKE '%big%' > > OR `keywords` LIKE '%trees%' > > ORDER BY `id` ASC LIMIT 0, 30 > > > > > >

RE: [PHP] searching key words from a database field

2002-02-14 Thread David Robley
erlinks` WHERE 1"; > > for ($i = 0; $i < $num; $i++) > if (strlen($getme_arr[$i]) > 0) > $sql .= " AND `keywords` LIKE '%".$getme_arr[$i]."%'"; > > $sql .= " ORDER BY `id` ASC LIMIT 0, 30"; > ?> > > -Origina

[PHP] Re: Include file for MySQL insert rows

2002-02-18 Thread David Robley
if I am even getting warm or if I am on another planet. > > > 1. Any ideas how I can simply make php get a text file into the mysql > database? > > 2. Is there a way to set a (albeit maybe large) variable with the contents > of an include file? > > Sorry to sound like such a

[PHP] Re: help with Header call

2002-02-18 Thread David Robley
e header parameter to see that it is what you expect it should be. Of course you might want to comment out the actual header line as you do the echo tests, as the output from the echos will cause an error from header() -- David Robley Temporary Kiwi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: email body text extraction.

2002-02-19 Thread David Robley
PHP, it's fairly straight forward. Just set up an alias that routes incoming mail to a PHP script that does what you need. You'll probably need to do a bit of research on the relevant RFCs (822 and another that I forget for the moment) to figure out the structure of an email message

RE: [PHP] Help for passing variable to all pages

2002-02-20 Thread David Robley
variable to all pages > > > > looks like there's a problem with this line: > test link Just do a page with phpinfo() on it - if that works you know your server is parsing PHP. If not, more info about your setup would help for troubleshooting. -- David Robley Temporary Kiwi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP/MySQL Query Prob

2002-04-15 Thread David Robley
rst record in the table. I fixed that just by > putting a dummy record first, but that still shouldn't be happening. > > Any ideas? I need to get this fixed but I'm not sure what's wrong! Try the mods above; make sure that you quote the year value if the year field is te

Re: [PHP] Error accessing class

2002-04-16 Thread David Robley
t is the significance of the colon (:) in the > include_path directive? It is the separator between the various paths. The dot . refers to the current working directory. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP

2002-04-16 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I am looking for a PHP chat for disscussing php/mysql. anyone know of any? #php on irc.openproject.net -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Re: Displaying Results

2002-04-16 Thread David Robley
DISS| 1 | | ALEXANDER | 1 | | AMBROSE | 1 | | AMIS | 2 | | ANDERSON | 2 | +---+-+ You can then use the match (surname in the example) value to pass on to a further query. -- David Robley Temporary Kiwi! Quod subigo farinam --

[PHP] Re: cannot load mysql extension, php config ???

2002-04-16 Thread David Robley
as far as users and passw= > ds. > > anyone ever get this > > I would greatly appreciate your response. Does the php have mysql support compiled in? Put phpinfo() in a script on its own and check the output. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to give vars to a php(shell env) script?

2002-04-23 Thread David Robley
at all? > > thanx for advance. > > Hermann Bier > > Have a look at the section of the manual on Using PHP from the Command Line - there are examples of how to do what you want. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: searching terms non adjacent

2002-04-25 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > What's the best programming method to use to search terms that are non > adjacent? What exactly do you mean? Are you looking at a SQL query, or... -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP Gen

[PHP] Re: If statement leading to another php page

2002-04-30 Thread David Robley
confused with all the " Alternatively you can escape " in a double quoted string thus echo "Link"; > > } > else { > > something else > } > > without much luck, i keep getting parse errors. Thanks for anyhelp in > advance! But probably you

[PHP] Re: STILL having Troubles getting GD support with jpegs, possiblity:

2002-04-30 Thread David Robley
mPng' > collect2: ld returned 1 exit status > make: *** [pngtogd] Error 1 > > > Anyone could help it would be greatly appreciated > ===== > CC all Replies to [EMAIL PROTECTED] > = > > -- David Robley T

Re: [PHP] Email-attachment not working

2002-05-02 Thread David Robley
kind of video card do you > have? > > ---John Holmes... > > Now I have to clean coffee off my monitor -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Virus I-Worm/Klez.H (Someone does not like me)

2002-05-02 Thread David Robley
a lot of you my net pals, after all we all help each other out > right? and isnt that what friends do? > > Cheers, > - Ryan > > Google is your friend. http://www.google.co.nz/search?q=klez.h&hl=en&btnG=Google+Search&lr= And yes, you're not the only one getti

[PHP] Re: How to save records from MySQL in separate files?

2002-05-04 Thread David Robley
r ><> ><> ><> ><> > http://www.body-builders.org/ > > Use a suitable query to select the info, then cycle throught the results and use fopen/fwrite to save as files. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pear on Windows

2002-05-04 Thread David Robley
eady have it on your system. Look in the directory pear under where php is installed. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: strtotime failure

2002-05-07 Thread David Robley
7;s a string? > > --Jennifer Koenig > For a first guess, try using trim or chop on the data before feeding it to strtotime, in case there are unexpected white spaces in the data. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PhpMyAdmin

2002-05-12 Thread David Robley
this db is accessible line in their respective config.inc.php and of course have the appropriate grants set on the various dbs. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] template logic problem

2002-05-14 Thread David Robley
e, for instance). > > > > miguel Maybe you could incorporate output buffering to achieve your goal? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: version differences

2002-05-14 Thread David Robley
o then kill you. http://www.php.net/sprintf will tell you what versions it is valid for. The docs show the history of all calls. Hint - check floatval -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP and mySQL

2002-05-14 Thread David Robley
y"; > } > // $result = mysql_query($mysql); > }else if(!$submit){ > echo "Your order has not been placed."; > } > ?> > > There don't seem to be 75 lines there? But I think you _might_ be missing a closing } I suspect you will then enco

[PHP] Re: inserting PHP code into PHP document

2002-05-14 Thread David Robley
#x27;...'; > > } else { > $header='...'; > }; > > I placed the code in separate file and tried implode but I think I am > doing something wrong. > > How can I make it in some type of module and insert it in php code when > requi

[PHP] Re: Using php as a scripting language within cron jobs?

2002-05-17 Thread David Robley
ns) and use the #! syntax in the first line of your script. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Why not working

2002-05-19 Thread David Robley
if(isset($Submit)) { > $subject = "Thank You"; > $MailFromAddress = "[EMAIL PROTECTED]"; > > while(list($key, $value) = each($HTTP_POST_VARS)) { > $$key = $value; > $msg .= "$key = $value\n"; > } Probably the first thing you could check is whether $Submit is set; there seems to be nothing there that would do so. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pulling one record from a db(newbie)

2002-05-26 Thread David Robley
om news LIMIT 1"; and if you want a particular order you need to add ORDER BY (ASC or DESC) depending on your exact need. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Parse Error(Newbie)

2002-05-26 Thread David Robley
et['id']""; > > JJ Harrison > [EMAIL PROTECTED] > www.tececo.com > $query = "select * from news WHERE id = " .$_get['id']; -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with compilation

2002-05-28 Thread David Robley
gt; make[1]: Leaving directory `/usr/src/php-4.2.1/ext' > make: *** [all-recursive] Error 1 > > > > I'm not able to identify the real cause of this problem. Can someone help? > > Mirek. > -- You seem to be pointing to an unusual directory for your mysql installation?? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Avoid escaping

2002-05-29 Thread David Robley
somehow? Use stripslashes, or turn off magic_quotes_gpc in your ini file. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Input data for php program.

2002-05-29 Thread David Robley
ame and "123" ,"456" is > the data which i want to input for the program? > > [root@localhost bin]# php adding.php 123 456 > > Could someone help me? and my e-mail address is [EMAIL PROTECTED] > > Best regards, > Sidney I believe you can use argv and argv

[PHP] Re: Variable problem with a function calling a ext. librairy

2002-02-21 Thread David Robley
want to duplicate infos that are used in many files, the > lib_config.inc is important and must be called to supply the data I need. > > How can I set this so all the variables will be process under php? > > Thanks to all! > You are trying to access the value of $co in a function;

[PHP] Re: Creating a global variable for all PHP pages?

2002-02-21 Thread David Robley
ck. I was hoping that > getenv() or _ENV[] would have worked. I tried creating something in php.ini > by simply adding a line, with no luck. > > Is there some way of doing this? > > Warrick Have you considered using an auto-prepended file with the relevant values assigned

[PHP] Re: foreach not in reach

2002-02-22 Thread David Robley
ms with SQL from a properly designed database. Frinstance you might have a structure that has a main table with a unique ID, the abstract info, title, publisher etc and a separate table with author name and ID of the main table entry. Just at a guess, you are/have imported this information f

[PHP] Re: php3/php4 difference

2002-02-23 Thread David Robley
the > following result: > > numresult = 2 > You have selected 1382 record(s). > > > Why do I get two different values for $numresult? > Thanks Are you actually using the same database for both queries? Try running the query from the command line on both machines and see

[PHP] Re: Return values?

2002-02-25 Thread David Robley
who knows } else { //not sent } A true return from mail() doesn't necessarily mean that the mail will actually get anywhere; it just means that mail() has successfully passed it on to whatever process is configured to handle mail. -- David Robley Temporary Kiwi! Quod subigo farinam --

[PHP] Re: Writing to files

2002-02-27 Thread David Robley
Services > [EMAIL PROTECTED] Perhaps you could store the values, once entered, in hidden fields and pass them that way? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] compile php with GD2

2002-03-02 Thread David Robley
ile, >copy it into the extension dir and add it to php.ini file? > > Regards, > > Duncan > Um, lateral thinking here? The same solution that worked for GD should work for Ming. In other words, --with-ming=/usr and configure will look under /usr for the lib and include. -

[PHP] Re: Using php as a backend bridge between smtp and mysql

2002-03-04 Thread David Robley
27;ken','[EMAIL PROTECTED]','SUP?')"; > mysql_select_db( $db_name, $connection ); > mysql_query($sql); > ?> > > Thanks. Presumably that script is /usr/local/bin/proc-mail and that is the complete script? If so, given that it takes no 'ex

[PHP] Re: .htaccess settings

2002-03-04 Thread David Robley
used to set a Boolean configuration option. php_admin_value name value This sets the value of the specified variable. "Admin" configuration settings can only be set from within the main Apache configuration files, and not from .htaccess files. php_admin_flag name on|off This is used t

[PHP] Re: Question about fopen()

2002-03-04 Thread David Robley
a and a+ will attempt to create the file if it doesn't exist. > What is the best way to test if the file was created? Check the return value from fopen; it will be false if the attempt failed. See the manual for more detail. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP G

Re: [PHP] Re: Using php as a backend bridge between smtp and mysql

2002-03-05 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I got the sendmail part to work, but how do you process a pipe? I just need > the variable name of yyy in "echo yyy | proc-mail.php" > > On 3/4/02 5:05 PM, "David Robley" <[EMAIL PROTECTED]>

[PHP] Re: PHP and mySQL

2002-03-05 Thread David Robley
for your while loop as there are no more results to display. Try using mysql_data_seek to return the pointer to row 0 before your while loop. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: writing to a file

2002-03-07 Thread David Robley
ay i see, is to rewrite the entire file That is correct. You need to load the file into your script, make whatever changes and then write it back. > > Maybe this is a stupid question, but, i tried the online doc, and saw > nothing about this > -- David Robley Temporary Kiwi! Quod

[PHP] Re: impossible to delete file after 'parse_ini_file'

2002-03-07 Thread David Robley
of the php script, it is impossible to delete the conf.php > file. > > Any idea ? > > greg If you are running on a Unix type system, the user that your scripts run as may not have apropriate file/directory permissions to delete the file. -- David Robley Temporary Kiwi! Q

[PHP] Re: REQUEST QUESTION

2002-03-07 Thread David Robley
's values) > > I am very sure that there must be some solution to this but I don't know > how to do this in PHP. I have one solution using GET method but not with > POST. > > Looking forward for solution to this issue. > > Regards, > > karthik

[PHP] Re: Use an ini file

2002-03-07 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Anyone know of an easy to use library/or code that will read and write > an ini file? See parse_ini_file() together with the file handling functions. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General

[PHP] Re: Use an ini file

2002-03-07 Thread David Robley
r to parse a file given its basic structure, than it is to create a file based on that structure but with a huge, almost infinite, number of possible entries. In other words, you'll have to roll your own, using the file functions. -- David Robley Temporary Kiwi! Quod subigo farinam

[PHP] Re: cal_days_in_month()

2002-03-08 Thread David Robley
age are included in these instructions, and are in quotes. Installation To get these functions to work, you have to compile PHP with --enable- calendar. So it would seem that your server doesn't have the necessary functionality compiled into php. -- David Robley Temporary Kiwi! Quod subigo

[PHP] Re: Checking to see what value error_reporting is set at?

2002-03-09 Thread David Robley
at the ini_get function -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Checking to see what value error_reporting is set at?

2002-03-10 Thread David Robley
In article <01ba01c1c7ca$bd95b1f0$0501a8c0@zaireweb>, [EMAIL PROTECTED] says... > I ment, if you re-set it, as im setting it to error_reporting(E_ALL); > depending on a value i get from a db query... > > -Eric > > - Original Message ----- > From: "David

[PHP] Re: PHP based search engine

2002-03-11 Thread David Robley
4.05 has functions available to interface with the mnoGOSearch search engine, available from http://www.mnogosearch.ru/ I recommend you look at this combination. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Link probleme

2002-03-11 Thread David Robley
y can you explain it to me ? > Thanks > > The page seriefr.php join. > You can't post attachments to this list. Please paste the relevant part of your code into your message and send again. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (ht

[PHP] Re: Help w/ "join" syntax

2002-03-11 Thread David Robley
ult_1=mysql_query($qry_1,$connection) or die ("No query # 1!"); change to $result_1=mysql_query($qry_1,$connection) or die ("No query # 1! Error: " . mysql_error() ); mysql_error will give you a useful error message which should help you to diagnose your problem. I would

[PHP] Re: get data from query before while loop

2002-03-11 Thread David Robley
ts if (!mysql_data_seek($result, 0)) { echo "Cannot seek to row 0\n"; // Add error handling here } // Now loop through the entire set while ($row=mysql_fetch_array($result)) { extract($row); echo $title.""; } -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can no one help with this opendir problem?

2002-03-11 Thread David Robley
line 20 > (Identifying directories are foo'd out) > > Since it kicks back the "1" and not a false, it seems it's getting access > but then not being permitted. Here's something else - the problem is > intermittent: sometimes the script can grab the images and others not. Can > anyone help? Many thanks in advance. NIck > > > -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Multi-Densional Array Sorting?

2002-03-11 Thread David Robley
that what I was getting back was an infinite (till I hit STOP) number of the first record in order. Hope that points you in the right direction. Uh, whatever you are using to mail doesn't word wrap too well, and my Gravity doesn't tidy up line wrap on quotes, sorry! -- David R

[PHP] Re: Returning to a Shell Script

2002-03-11 Thread David Robley
how to print new > lines. Does anyone know how to do this? > > Thanks in advance > If yuou are outputting new line (\n) browsers will not recognise it as a line break; you need to use nl2br() to convert new lines to something that a browser will recognise - -- David Robley Temporary

[PHP] Re: phpMyAdmin Change Root pwd ... Now no access

2002-03-11 Thread David Robley
et > with passwords to the root. both .ini's > > What am I missing here...should I juyst remove the password from "root"= > ? > You realise that you need to reload mysql so it will read the new grant tables? -- David Robley Temporary Kiwi! Quod subigo farinam --

[PHP] Re: dl() issues

2002-03-11 Thread David Robley
always imposible to use dl(). extension_dir string In what directory PHP should look for dynamically loadable extensions. extension string Which dynamically loadable extensions to load when PHP starts up. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Handling!

2002-03-12 Thread David Robley
from the MTA; you'll need to check the RFCs for the correct definition. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: getting values from multiple select

2002-03-13 Thread David Robley
in asp and I get the > string with comma seperate values. > > Help! If you are using a SELECT MULTIPLE you need to name the item as an array, e.g. NAME="multi[]" - then loop through the array in the target script to extract the values. Don't forget to either define a defau

[PHP] Re: Splitting Header and Body of an Email?

2002-03-13 Thread David Robley
tent[$x]\n"; > } > > Then I tried stuff like > > $mail_split = explode("\r\n\r\n",$sent_data); > > > How would it work? > > Thanks a lot, > Juergen Get rid of the chop - that strips \r and \n amongst other things -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: explode() - quick question

2002-03-13 Thread David Robley
string. Each character in a string variable can be referenced as though the variable is an array of characters. Try: -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Get row number from mysql

2002-03-13 Thread David Robley
icular order (that is likely to be useful to you), perhaps you could add another field which has a value allocated by you that you can use for your purpose. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Compile problem

2002-03-14 Thread David Robley
> I want to compile it as a standalone binary as a normal > user. Make sure you don't have with-apache or with-apxs in your configure; if they aren't there and it still doesn't work perhaps post your configure command. Assuming this is on *nux. -- David Robley Tempora

[PHP] Re: Problem function mail()

2002-03-14 Thread David Robley
seems to be looking for a specific file and mnot finding it. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help Out A Newbie In Configuring PHP.INI

2002-03-14 Thread David Robley
filled them out also, as you see above. Did I fill them out correctly? > Even though I filled them out as you see above I still get the same error. > Is the root of the error in the .ini at all? I have feeling of deja vu here. Is alienmelon.com a valid mail server? If not, you need to ch

RE: [PHP] gmp_mod support

2002-03-14 Thread David Robley
mp support. > Unfortunatelly, I don't have any of gmp API's available. Does anyone know > why it doesn't work for me? > > Thank you very much, > Leon You may have to give a directory path in the configure string if you have gmp (what's gmp) installed in a non-s

[PHP] Re: mt_rand()

2002-03-14 Thread David Robley
But I imagine that you could play around a bit with generating random numbers which could be used with chr to return a character. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help Out A Newbie In Configuring PHP.INI

2002-03-15 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Uh oh, did I ask this question before? If I did, I'm very sorry. =( > > "David Robley" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In art

Re: [PHP] From: Newman, using " and ' or ` in My Sql

2002-03-15 Thread David Robley
; > > > Any Comments on this? > > Yes, this should be posted to php-db. > > For simple cases ` ` are not needed. It is only used if your column names > contain weird characters, spaces for instance, then: > > SELECT `First Name` FROM Address; And of course single q

[PHP] Re: No Sense: [PHP] Update: [PHP] Weird?

2002-03-16 Thread David Robley
tmp/dir/file.txt will fail if > > >>the directory "dir" doesn't exist. > > >> I think what is being suggested is that you may not have a directory named whatever "c:\\ccl_www\\".$date."\\ccl_www\\" expands to; frinstance if $date were 0203 you would need to have an existing directory "c:\\ccl_www\\0203\\ccl_www\\" Of course, I could be misunderstanding... -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: building forms from what the MySQL table looks like

2002-03-18 Thread David Robley
in advance, > > Justin French > Have a look at mysql_field_type() from which you should be able to build something along the lines of what you want. You might also peer into the innards of phpMyAdmin, which does the same sort of thing. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Timing PHP

2002-03-18 Thread David Robley
ction, but you could build your own; for instance get the value of time (for granularity by seconds) or microtime at the start and end of the script and calculate the difference. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Re: permission denied using COPY function?

2002-03-18 Thread David Robley
m still getting permission denied? > > Apologies if this question has come around before. Is the owner the ID that your webserver runs as? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with strtotime() and 2002-03-31

2002-03-19 Thread David Robley
that there is a day with only 23 hours somewhere Though > this wouldnt cause a problem I guess. > > Thanks again, > > John Likely the day daylight savings starts :-) Doing bus timetables?? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing Lis

[PHP] Re: scripting behind the scenes

2002-03-19 Thread David Robley
t it points to the correct location of the ini file. Alternatively, you could if needed have your module and binary pointing at different ini file locations - its a configurable thing. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: [newman] This don't work, "if" else if

2002-03-20 Thread David Robley
HERE accessIP = >$accessIP"); > > } else { > > // Normal insert > $sql = "INSERT INTO `access` (`accessID`, `accessIP`, `accessDNS`, `accessTIME`, >`accessUPDATE`, `accessVIEW`) VALUES ('', '$proxy_ip', '$proxy_dns', '$a

[PHP] Re: Non-Cache in forms?

2002-03-24 Thread David Robley
? What is happening that the form isn't keeping the previously posted data? > > My error function looks like so > > function crapout($msg, $hidden_msg = FASE) { > echo($msg); > if($hidden_msg != "FALSE") { > echo(''); > } > exit; > } > &g

[PHP] Re: Displaying a 2 column html table with N elements

2002-03-24 Thread David Robley
images are ok but the other lines are identical, so > if I have 10 products, I see only 1 and 2 over 5 lines! > > How can I solve this? To have 2 columns per line, I must limit the loop but I > need to continue at that point on the second line... > > Thank you for any assi

Re: [PHP] Re: Non-Cache in forms?

2002-03-25 Thread David Robley
On 25 Mar 2002 at 0:29, [EMAIL PROTECTED] wrote: > yes, but i send them back to the previous page > and it shows the form... > > What would be a way around this? > - Original Message - > From: "David Robley" <[EMAIL PROTECTED]> > To: <[EMAIL PROTE

[PHP] Re: Problem reading in and displaying an image...

2002-04-02 Thread David Robley
and echo $image; lines, the script works > fine, it reads in the file with no problem it seems. But when I turn those > 2 lines back on, it totally hangs. does anyone have any ideas? I am > totally stumped. > > Thanks, > Chad You might try just commenting out the Header lin

[PHP] Re: how to check if e- mail sending did succeed?

2002-04-08 Thread David Robley
sent from, admin address and perhaps the log for clues. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Email Form

2002-04-09 Thread David Robley
s is a test > > would end up > Hi, > > this is a test. > > > Any help please? Take out the nl2br - that's only for html -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to send an email to everone listed in a file

2002-04-10 Thread David Robley
gt; file() will read the file into an array; you could then use explode() on each element of the array to extract the email address, and mail() to send the message. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL connection from non-localhost

2002-04-10 Thread David Robley
x27;t work. Is there > anything special that I have to do to get it to work? Thanks, > Dave Are the grants of the remote host set to accept anything other than localhost? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: mailing list using mail()

2002-04-10 Thread David Robley
t use one message and append the BCC: line of the one message? > > Thanks > > Alternatively you could use the output from your table to feed a userlist to a dedicated mail list package -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql

2002-04-10 Thread David Robley
to variables. > > Cheers. > > -Mason > A while or similar should still work with only one record; but of course you could just drop the while and use the 'enclosed' code just once. If you have a particular sample you want to reduce, post it if you need more help. -

[PHP] Re: printf

2002-04-10 Thread David Robley
ces...Any > clues..oh knowing newsgroup!!!! number_format() -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: editors

2002-04-10 Thread David Robley
n editor > that does context highlighting (like visual cafe) to keep grumblings to a > minimum. The editors I have found either highlight php like C++ or as HTML. > It can be for either Linux or Windows, we run both. > > Thanks. NEdit is one for linux http://www.nedit.org/ -- Davi

<    1   2   3   4   5   6   7   8   9   10   >