Re: [PHP] .htaccess file

2002-08-01 Thread Neil Freeman
php_value register_globals "0" B i g D o g wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ** > >

[PHP] Using ini_set with session.gc_maxlifetime

2002-08-08 Thread Neil Innes
effect for the duration of the script, which is not going to work if the whole point of sessions is to allow information to be preserved between pages (scripts). So, can ini_set be used to set session.gc_maxlifetime in any meaningful way, and if not, is there another way to do it?

Re: [PHP] Save ability... Duplicate DB entries

2002-08-10 Thread DL Neil
JJ, > i have this code snippet: > > if(isset($_POST['save'])){ > $query = 'INSERT INTO article_data VALUES (\'\', '.$_SESSION['uid'].', > '.time().', \''.$_POST['title'].'\', \''.$_POST['description'].'\', > '.$_POST['cat'].', \''.$_POST['text'].'\', 0)'; > $result = mysql_query($query) or

Re: [PHP] records in db

2002-08-10 Thread DL Neil
Tyler, > If I have a field in my DB that can have 4 different answers, lets say a,b,c > and d. How can I count the number of each in that field. So if there are 4 > a's 1 b 0 c's and 12 d's how can I get php to count this? You must combine IF() with SUM(). Break it down into smaller problems:

Re: [PHP] SQL ?

2002-08-12 Thread DL Neil
Now then, let's all play nicely together! Dan: relevance It is a PHP question because whereas the SQL query SELECT fred FROM tbl produces an array element back in PHP such as $row[ "fred" ], this convention/mapping comes well unstuck if you submit something like SELECT IF ( answer = 'a', TRUE, FA

Re: [PHP] Extensions?

2002-08-13 Thread Neil Freeman
Try this instead... extension_dir = "C:/PHP/extensions/" and ensure that the GD section is present in phpinfo() output. Neil Php wrote: > ** > This Message Was Virus Checked With : SAVI 3.60 May 2002 &g

Re: [PHP] switch statement question

2002-08-13 Thread DL Neil
Alternatively Alexander, take a look at the string functions eg strstr(), stristr(), and strpos() all of which can be used to make a condition within the case() criteria. Regards, =dn > [snip] > Say i have a variable $string_var = "Once upon a time"; > > is there a way to do this: > > Switch($st

Re: [PHP] SQL datetime ERROR !

2002-08-13 Thread DL Neil
Hi Djurovski, > I use this query to input data into MySQL DB. > EXPIRE is Expire Date! > My script allways inputs "1.1.0001" into database (as value of expire). > what is wrong? > > My table: > > CREATE TABLE korpa ( >idnarudzbeukorpi int(255) DEFAULT '0' NOT NULL auto_increment, >merna

Re: [PHP] fgets question

2002-08-14 Thread DL Neil
Hi Monte, > Hi, I have a question about fgets(), it seems to pick up an extra line > at the end of a text file. ... > 8\n ... > Here is the output (showing newlines as \n): > buffer is 1\n > buffer is 2\n > buffer is 3\n > buffer is 4\n > buffer is 5\n > buffer is 6\n > buffer is 7\n > buffer is

Re: [PHP] hyperlink parser - a bit new view :)

2002-08-18 Thread DL Neil
Hi Roman, > But on those phpbuilder's page there are also similar questions but answered > scripts don't work, for example: > ... > preg_match_all("|href=\"?([^\"' >]+)|i(+[ >])", $text,$ar); >... > I really don't know :( There's definitely something wrong with the RegEx above. The string comme

Re: [PHP] Find rows by 1st letter in MySQL

2002-08-18 Thread DL Neil
Tony, > How would I go about selecting rows from a MySQL table where the first > letter of a certain field is $letter ? Depends upon the MySQL tbl's schema. The MySQL online manual discusses wildcards (full text). Alternatively see LEFT() and other string functions that can be used in SELECT an

Re: [PHP] suggestions for a good php+mysql isp?

2002-08-20 Thread Neil Freeman
www.aletia.com db or not db wrote: > ** > This Message Was Virus Checked With : SAVI 3.60 May 2002 > Last Updated 16th August 2002 > ** > > They (futur

Re: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread DL Neil
Mike, What are the character codes of the last few bytes in the string? Please advise, =dn - Original Message - From: "Mike At Spy" <[EMAIL PROTECTED]> To: "Rasmus Lerdorf" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, August 21, 2002 1:36 PM Subject: RE: [PHP] Agh! trim (#

Re: [PHP] Image library

2002-08-21 Thread DL Neil
Scott (confirming Bogdan), Libraries of all types have had this concern for years - even though books are uniquely identified by ISBN, that is still not good enough for library purposes (eg multiple copies of a single title). So they, exactly as Bogdan suggests, use an "Accession" number sequence

Re: [PHP] Image library

2002-08-21 Thread DL Neil
hanks for your input. > > Regards > > -Scott > > > -Original Message- > > From: DL Neil [mailto:[EMAIL PROTECTED]] > > Sent: 21 August 2002 04:31 > > To: [EMAIL PROTECTED]; Bogdan Stancescu > > Subject: Re: [PHP] Image library > > > >

Re: [PHP] PHP Web site down?

2002-08-21 Thread DL Neil
> Is it just me having network connectivity problems, or is the PHP website, > http://www.php.net down? I tried connecting to it from a couple of > difference computers and I can't access it on any of them. Just wondering > if anyone else is having problems getting to their website too. Adam,

Re: [PHP] PHP Web site down?

2002-08-21 Thread DL Neil
General advice: take a look in the bottom right corner of any manual page and call for the mirrors list - it's worth bookmarking/favoriting a couple, just in case one goes down. Also FYI, mirror sites are often faster (depending upon relative locations) and their use certainly frees bandwidth at

Re: [PHP] Image library

2002-08-21 Thread DL Neil
> Having a large number of files in a single directory does affect performance, > the degree of which depends on the filesystem. This is generally accepted wisdom for dealing with large numbers of files - but what number is considered "large"? Any rules of thumb, for different OpSys/file systems

Re: [PHP] Is there a better way of doing this?

2002-08-21 Thread DL Neil
Hello Mike, parse a string similar > to "4,31m)" figure out if it is numeric or not, then if it is remove the > last to characters on the string (the 'm)') and change the string so > that it is 4.31. There is probably a better way of doing this but I > can't figure out how to make it better or mo

Re: [PHP] Re: SeparatingWords

2002-08-21 Thread DL Neil
Philip, What about "SoftwareVersion Thingy"? Won't that end up as "Software Version Thingy" - with two spaces before the "T"? Can the RegEx be 'turned off' if the u/case letter is already preceded by a space? (sorry, may not be Hessu's requirement = my curiosity) Regards, =dn > This works. > >

Re: [PHP] search in serialized string

2002-08-26 Thread DL Neil
, and now I have the problem to solve. So i back to old question > :-) > How can I search with some precision in a serialized string? > > > > on 8/24/02 12:13 PM, DL Neil at [EMAIL PROTECTED] wrote: > > > Rodrigo, > > > > Then the question to be asked is: is seri

Re: [PHP] search in serialized string

2002-08-27 Thread DL Neil
to skill level > > 1b no separator it's stored as array. The array generated by language[] and > skill[] are stored into another array, serialized and put into DB > > 2 yes. could be up to 5 > > 2b again, none. only the array structure > > the field is a text. > > >

Re: [PHP] Apostrophe in preg_match?

2002-08-28 Thread DL Neil
> I'm trying to get an apostrophe (and a dash, as well) to be > included in a preg_match expression, but I don't know how to escape the > characters. The manual discusses which characters need escaping and how to escape characters: http://www.php.net/manual/en/pcre.pattern.syntax.php > if (preg

Re: [PHP] No Localhost with apache?

2002-08-28 Thread DL Neil
Hi Ryan, Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I uninstalled it and installed SpaceServer...the problem I noticed with both was I could not get the default page from apache with http://localhost/ I have to use http://127.0.0.1 or it gives me a page not found err

Re: [PHP] Window/Page/Browser/Screen width

2002-08-28 Thread DL Neil
Hi Rick Check out list archives for last week (and the week before...) keyword: resolution. Also check out HTML, which will cheerfully slap text and graphics together an adapt to local peculiarities. Regards, =dn > I've seen similar questions in archives so sorry if I'm asking the same thing

Re: [PHP] Apostrophe in preg_match?

2002-08-28 Thread DL Neil
P there's usually a way... =throw 'escape database' (apostrophe will work too) at the PHP manual's search facility (the manual is really v.good!) and it will respond with a reference to ADDSLASHES(), which will do as you ask - there is also a reference to a PG function (I'

Re: [PHP] How can I strip the code from HTML pages to extract the contents of a HTML page.

2002-08-28 Thread DL Neil
Carlos, I'm sorry, but am just leaving... If you check the PCRE RegEx pages of the annotated manual, there are contributed examples that will help in this situation (probably under preg_match_all() ) Regards, =dn > This may be an interesting challenge for someone or has it been done > before >

Re: [PHP] variable reference parameters

2002-08-29 Thread DL Neil
Timo, If you use func_num_args() to ascertain the number of arguments passed to the function and func_get_arg() to retrieve each argument in turn (from a list of unstated length), will that do the trick? Regards, =dn > I've created (with help from some code from the site) a function to make >

Re: [PHP] Re: Mail()....

2002-08-30 Thread DL Neil
Brian, Please be aware that many email clients will NOT read HTML. The human readers are then presented with raw HTML and get very <...?...> upset about it! (that's why list postings are not supposed to be in HTML/rich text format) Regards, =dn > It's a text-based newsletter... > > I have a s

Re: [PHP] Resource ID??

2002-08-30 Thread DL Neil
John, This is the output: Resource id #15 or some other seemingly arbitrary Resource ID number? First of all what is a resource ID and second how do I get it to actually show what I am trying to get it to show! =When MySQL returns data to PHP, the information is put into a variable called a "re

Re: [PHP] Ridding myself of HTML tags

2002-08-30 Thread DL Neil
Liam, If you were to stristr()/remove everything up to and including the tag, would that take care of things? =dn > I've got a lil problem with HTML tags. Here's the description. > > My site accepts HTML files by upload. A lot of these files are written in MS > Word and then saved as HTML files

Re: [PHP] Re: PHP / Bulk Email

2002-09-04 Thread DL Neil
> Hi Guys / gals, > > I ran a test recently sending emails to a list of clients (1000 or so) > from a PHP / MySQL powered system. > When sending via Sendmail this was VERY slow, taking several minutes to > complete. > When I switched over to Qmail the whole process takes only 10 or 15 > seconds. >

[PHP] BBC article: Intellectual Property

2002-09-13 Thread DL Neil
Open source campaigners and 'evangelists' may be interested in BBC coverage of a report by the Commission on Intellectual Property Rights (CIPR): http://news.bbc.co.uk/1/hi/sci/tech/2253270.stm. It talks of medical, agricultural, industrial, and IT/educational disadvantages placed in front of the

[PHP] Very easy question

2002-09-26 Thread Neil Laker
Have installed PHP v4 on IIS 5 server, all the connectivity works fine as for the sending but the main text variables will not come through. I think there must be a setting I have missed somewhere? I have checked the permissions and are set ok for the IGA can anyone help? Thanks in advance --

[PHP] fsockopen fails if port blocked by firewall - PHP 4.0.6 / Apache / Linux

2002-11-04 Thread neil smith
ry about latency. Thanks for any help or suggestions to fix this problem, or any anecdotal evidence I can use to fix it !! Neil Smith. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Browsing directory

2002-11-18 Thread DL Neil
Helen, > I would like to create a web page which allow people to browse the directory structure and the files listed in every directory. If you have experience about that, could you kindly give me some advice or references? Thanks in advance. =To this simple boy it seems like a strange, even a p

Re: [PHP] What is wrong with this expression?

2002-11-18 Thread DL Neil
JohnMeyer > if (is_uploaded_file($_FILES["imagefile"]["tmp_name"]) && > ($_FILES["imagefile"]["type"] != "image/jpeg" && > $_FILES["imagefile"]["type"] != "image/gif" && $_FILES["imagefile"]["type"] > != "image/jpg" && $_FILES["imagefile"]["type"] != "image/png")) > > I'm trying to weed out everyt

Re: [PHP] Display character 'x' times

2002-11-19 Thread Neil Freeman
str_repeat () Tjoumaidis Tasos wrote: ** This Message Was Virus Checked With : SAVI 3.61 September 2002 Last Updated 15th November 2002 ** Hello t

Re: [PHP] Newbie: PHP/MySQL (SELECT)

2002-11-20 Thread DL Neil
> On Thursday 21 November 2002 03:53, Mr. BuNgL3 wrote: > > Hi... > > I'm with a little sintax problem... > > The question is that i have two search fields (titulotxt and cdstxt) and i > > want to create an mysql condition... i trying: > > > > $sql1=($titulotxt) ? "titulo like '%".$titulotxt."%'":

[PHP] Re: [PHP-DB] Help with Date

2002-11-21 Thread DL Neil
Rodrigo, Is there a way to convert a date " 20/11/2002 " to a Float number in PHP, since the date starts in 30/12/1899, just like the delphi treats the dates =Check out UNIX timestamps (but watch the valid date range), =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

php-general@lists.php.net

2002-06-11 Thread Neil Freeman
urrence of an ampersand with a double ampersand but I need to do a match so that it only replaces instances which have non whitespace on either side of it, ie \S&\S I think I'm along the right lines but haven't had enough experience with regular expressions yet to '

php-general@lists.php.net

2002-06-11 Thread Neil Freeman
That's perfect Michael. Thanks a lot for your help :) Neil Michael Weinberger wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated

Re: [PHP] Nested IF's (Is there a LIMIT ?)

2002-06-14 Thread Neil Freeman
Maguma Studio for PHP Light will do the job. Neil Daniel Negron/KBE wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated 11th

Re: [PHP] Is there a replicate function in PHP

2002-06-21 Thread Neil Freeman
echo str_repeat("*", 50); Don wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated 14th June 2002 > ** > > Hi, > > I'

[PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
Hi there, I'm trying to delete a file using PHP's unlink() function (on Windows). This works fine on writable files but fails when trying to delete read-only files. How can I delete read-only files? Is there a function available to change the permissions? Any help greatly apprecia

[PHP] problems compiling php-4.2.1 / solaris 2.6

2002-06-26 Thread Neil M
ile or directory *** Error code 1 make: Fatal error: Command failed for target `zend_language_parser.lo' Current working directory /export/php-4.2.1/Zend *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Any comments suggestions appreciated Neil -- PHP

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
unlink() works fine apart from when trying to delete read-only files. Thanks for the suggestion anyway. Neil Lowell Allen wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated

Re: [PHP] file_exists()

2002-06-26 Thread Neil Freeman
You're right - the example is wrong. Neil Anthony Ritter wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
According to the manual "This function is not implemented on Windows platforms". Gave it a go though and it works! Cheers Dan, Neil Analysis & Solutions wrote: > ** > This Message Was Virus Checked

[PHP] Re: problems compiling php-4.2.1 / solaris 2.6

2002-06-28 Thread Neil M
Neil M wrote: > problems compiling php-4.2.1 / solaris 2.6 > -- > > [root@sunnsr02] 240 /tmp > cd /export/php-4.2.1 > [root@sunnsr02] 241 /export/php-4.2.1 > make > Making all in Zend > /bin/sh ../libtool --silent --mode=compile

Re: [PHP] function for size of array

2002-07-05 Thread Neil Freeman
LOL - nice one Jason :) Jason Wong wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 3rd July 2002 > ** > > On Frid

Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread Neil Freeman
Have a look at sort() vins wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ** > > I have an array

Re: [PHP] Dos Paths

2002-07-10 Thread Neil Freeman
FYI - Works in Windows NT 4 SP 6a as well. [EMAIL PROTECTED] wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > *

Re: [PHP] Development Tools

2002-07-10 Thread Neil Freeman
Maguma Studio Light is pretty good - www.maguma.com Mark McCulligh wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ***

Re: [PHP] hello the list

2002-07-14 Thread DL Neil
Welcome Nicolas, =You didn't actually say what the problem was! =Some have made suggestions, please also consider (below): i'm new and i'm trouble with this code :'( can U help me please ?? this is the code : while ($cd_tbl = mysql_fetch_array ($result)) { $cd_id = $cd_tbl['cd_id']; $cd_oeuvre

Re: [PHP] Restricting access using IPs

2002-07-14 Thread DL Neil
Liam, Not altogether happy with the suggestion below. It works - for now. A more generic solution might be to replace the hard-coded "9" with a call to strrchr() on the last 'dot' character position (minus one). Then it should work on any properly formed IP address. Thereafter parameterise the su

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Neil Freeman
nl2br() KK Lee wrote: > ** > This Message Was Virus Checked With : SAVI 3.59 May 2002 > Last Updated 8th July 2002 > ** > > Dear ALL, > > It seems tha

[PHP] Calculating difference between two timestamps

2003-11-27 Thread Neil Freeman
eters are within one second of each other. Any suggestions would be great. Neil -- -- www.curvedvision.com -- This communication is confidential to the intended recipient(s). If you are not that person you are not permitted to make use of the informatio

Re: [PHP] Re: Calculating difference between two timestamps

2003-11-27 Thread Neil Freeman
Perfect - thanks Bogdan Bogdan Stancescu wrote: *** This Email Has Been Virus Swept *** Neil Freeman wrote: Hi there, Does anyone have any suggestions as to how I can calculate whether one timestamp is

Re: [PHP] CHMOD...

2003-12-04 Thread Neil Freeman
How about: exec("chmod -R 755 /somedir/"); [EMAIL PROTECTED] wrote: *** This Email Has Been Virus Swept *** Is there anyway to use CHMOD: chmod ("/somedir/somefile", 0755); but have it set all files, folders

Re: [PHP] Php Windows server

2003-12-19 Thread Neil Freeman
You will need to ensure that the session save path is set to a valid directory: e.g. session.save_path = "C:/Temp" Neil E. Ricardo Santos wrote: *** This Email Has Been Virus Swept *** Somebody

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Neil Freeman
Or you can use sizeof() which is an alias for count() Scott Fletcher wrote: *** This Email Has Been Virus Swept *** Ah! Thanks!!! "Chris Hayes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] At 1

Re: [PHP] how to open a webpage

2004-01-12 Thread Neil Freeman
Or with PHP you could do: Header("Location:$launch"); die; Make sure that nothing is outputted before this is called though. The variable $launch should also be an absolute URL. Neil Richard Davey wrote: *** This Email Has Been V

[PHP] PHP newbie question

2001-01-09 Thread Neil Zanella
evaluating ! $a to true instead of giving me a syntax error as in script 3. Can someone explain why this is? Does this make the isset() built in function redundant in general? Thanks, Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Speaking of OOP

2001-01-10 Thread Neil Kimber
Two of the greatest benefits of OO design is polymorphism. Polymorphism allows you to build complex systems in a simple manner. A simple example that is easy to visualise would be considering a system that draws different objects to a screen. Each object could be a vector image (i.e. a list of po

Re: [PHP] PHP newbie question

2001-01-10 Thread Neil Zanella
1 the following PHP script should print the number 1 but instead prints nothing: How is this behavior justified? I could not find anything on this in the PHP manual. Thanks, -- Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] PHP newbie question

2001-01-10 Thread Neil Zanella
some reason this is still not correct. Thanks! Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP newbie question

2001-01-10 Thread Neil Zanella
On Wed, 10 Jan 2001, Hsieh, Wen-Yang wrote: > "" is false. The following three seem to be the same in PHP3: 1) false 2) "" 3) 0 I guess that "" is automatically cast to 0 or to false wherever an integer is required. Where can I find the exact casting

RE: [PHP] PHP newbie question

2001-01-11 Thread Neil Zanella
attention to the manual. BTW is there a way to determine the exact size of the integer type in PHP? Thanks, Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

[PHP] JavaScript/PHP documentation

2001-01-11 Thread Neil Zanella
install a copy on their local hard drive and browse the pretty documentation while offline. Thanks, Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] :: MySql and PHP Book

2001-01-11 Thread Neil Zanella
ced documents are for experts only. For instance, ISO/IEC 9075:1992 Information technology - Database languages - SQL is currently priced at US$235.00. I think this is the latest standard for SQL (Structured Query Language). A list of PHP books can be found at http://www.php.net/books.php Bye, Ne

[PHP] Easiest Way to Install PHP3 with MySQL support on RHL 6.2

2001-01-13 Thread Neil Zanella
php-ldap-3.0.15-2.i386.rpm rpm -ivh --force php-pgsql-3.0.15-2.i386.rpm rpm -ivh --force php-imap-3.0.15-2.i386.rpm rpm -ivh --force php-manual-3.0.15-2.i386.rpm All done! Have fun, -- Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

[PHP] please help: PHP4 + GD 1.8.3 + PNG

2001-01-17 Thread Neil Zanella
thing after the --with-gd flag since I did not know whether to specify /usr/lib or /usr/include as my gd installation directory as Red Hat (correctly) installs gd files all over the place. Thanks! Neil BTW, here is the PNG code from the manual: -- PHP General Mailing List (http://www.php.net

Re: [PHP] mail list archive

2001-01-17 Thread Neil Zanella
Check out The Mail Archive at http://www.mail-archive.com/ ! On Wed, 17 Jan 2001, Taras Vasylkevych wrote: > Hi, > > is it possible to review the archive of this mailing list. And if possible then >where? > > Thanks, > > Taras > > Mit freundlichen Grüßen > > Taras Vasylkevych > team in me

RE: [PHP] passing arrays via forms ..

2001-01-23 Thread Neil Kimber
serialise it using serialize() - see under chapter 12 of the PHP manual 'Miscellaneous functions' -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 23 January 2001 12:42 To: PHP list Subject: [PHP] passing arrays via forms .. howdy again :) does anybody knwo h

RE: [PHP] Caller's __LINE__

2001-02-28 Thread Neil Kimber
Better still - use the set_error_handler() to define an error handler that will output your debug statement and create your dbug message using trigger_error(). Your registered error_handler will automatically receive line number, file name and some other useful parameters. -Original Message-

RE: [PHP] redefine constants

2001-02-28 Thread Neil Kimber
define() gives you a literal copy of the value of the second parameter. In this case your second parameter is __LINE__. The value of __LINE__ represents the current line number of the define statement. Once defined the value assigned remains constant, irrespective of whether or not __LINE__ change

[PHP] Is it possible to get call stack information?

2001-03-05 Thread Neil Kimber
Is there anyway within PHP to get a complete dump of the call-stack? I can't use the Zend debugger for technical reasons (awaiting bug fix before it will work in our environment). I'd love to have a call that would return an array of call stack info. to the current line. Thanks,

RE: [PHP] sending SMS messages via PHP

2001-03-07 Thread Neil Kimber
only viable if you're intending to set yourself up as an SMS business. As an example, check out http://www.cygnet.co.uk/sms/ I've never used this company, but they're the first one I clicked on after searching for EMAIL SMS GATEWAY Hope this helps, Neil -Original Me

RE: [PHP] PHP w/ Oracle OCI8 - how stable?

2001-03-20 Thread Neil Kimber
Nothing unusual. Very robust and stable. -Original Message- From: Hardy Merrill [mailto:[EMAIL PROTECTED]] Sent: 19 March 2001 23:18 To: [EMAIL PROTECTED] Subject: [PHP] PHP w/ Oracle OCI8 - how stable? I'm thinking of using PHP to talk to an Oracle database with the OCI8 interface - is

RE: [PHP] Editing Variables from another script.

2001-03-20 Thread Neil Kimber
Do you mean that you want to alter the physical contents of 'database.inc'? This would require you parsing the existing file yourself, writing a new version of the file, altering the relevant line of code, removing the original file and renaming your new file to the original filename. This isn't

RE: [PHP] Editing Variables from another script.

2001-03-20 Thread Neil Kimber
if (MYCRITERIA) { $dbhost='localhost'; } The only reason that I can think of for you wanting to change the physical file would be if you are writing some code to generate a release for different users. In which case, you'll probably

RE: [PHP] Easy Object Reading

2001-03-20 Thread Neil Kimber
If you don't want to dump this to the screen but would prefer to have this in a string (to send to a log file etc..) then use the following function: function getStringFromObject($prmAryIn) { // Following code was ripped from http://www.php.net/manual/en/function.var-dump.php // i

RE: [PHP] Editing Variables from another script.

2001-03-20 Thread Neil Kimber
you don't have to worry about parsing files etc... Just delete the existing varsdatabase.inc and build a new one from scratch. It's no longer difficult because it's only 3 lines long. > > > $dbhost='localhost'; -Original Message- From: [EMAIL PROTECTE

RE: [PHP] Objectclass

2001-03-20 Thread Neil Kimber
see http://www.php.net/manual/en/function.get-class.php -Original Message- From: Thorsten Viel [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 17:33 To: [EMAIL PROTECTED] Subject: [PHP] Objectclass Hi, first thanks for your help on my last thread. Another question. Is there a functio

RE: [PHP] Optional Parameter ?

2001-03-21 Thread Neil Kimber
Alternatively, you can use the approach below. There are different benefits from each approach. The following approach is particularly useful if you want an unlimited number of parameters (like elipses in C). function print_this ($value1, $value2) { if (3==func_num_args())

RE: [PHP] print_r style array content

2001-04-18 Thread Neil Kimber
Try: function getStringFromObj($prmObjIn) { ob_start(); var_dump($prmObjIn); $output = ob_get_contents(); ob_end_clean(); return $output; } I grabbed this from user comments somewhere on php.net. It works a treat. -Original Message- From: Chi

RE: [PHP] class inheritance question

2001-05-08 Thread Neil Kimber
yes, as will: Class C extends B{ function cc(){ $this->bb();// Will this work ? <-- YES $this->aa(); } } -Original Message- From: py [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 14:02 To: [EMAIL PROTECTED] Subject: [PHP] class inheritance question Hello,

RE: [PHP] Little question

2001-05-09 Thread Neil Kimber
A good approach to prevent this is to always put your constants on the lefthand side of the condition. This causes a parser error if you accidently try and assign instead of compare. It takes a bit of getting used to, but once you get into the swing of it you'll find it a useful tool in your arsen

RE: [PHP] Excel

2001-05-24 Thread Neil Kimber
Probably not exactly the answer that you're looking for, but you can do the following. Output your data in PHP to a webpage that consists of purely a table of your data. Open Excel, go to : Data->Get External Data->New Web Query Type in the URL for the page with your data. Select which t

Re: [PHP] Formats with PHP

2001-12-29 Thread DL Neil
Hey Steve, > Im need to generate an email and Im trying to keep the exact spacing > I use when I define the body of the email. When the email is sent and i > view it with Outlick Express or simply use Pine, the spacing is all out > of wack. (Too many spaces here, not enough spaces there) > > I

Re: [PHP] how to create html tables in php

2001-12-29 Thread DL Neil
Hi Sander, > I made a database with bookmarks, these bookmarks are catogarized by > type. > Now I want to display those bookmarks in tables by category. This works > already fine. > The only problem I have is that the tables are very difficult to handle. > > I want to make 4 tables in a row (so

Re: [PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread DL Neil
CJ, > i have a problem using the mail function on my server. > win2000 Pro > IIS 5.0 > PHP Version 4.0.6 > > i'm not sure if it's a configuration problem with IIS or i'm missing > something in the php.ini file. The pre-requisite is that the php.ini file points to a visible SMTP server. Pl

Re: [PHP] counting with dates (help!)

2002-01-07 Thread DL Neil
RE: [PHP] counting with dates (help!)Hi Sander, (and Chris, and Martin) > $today = date("Ymd", mktime(0,0,0, date(m),date(d),date(Y))); > $last_week = date("Ymd", mktime(0,0,0, date(m),date(d)-7,date(Y))); > echo ($today - $last_week); > The result is a number like 8876 (20020107-20011231 = 8876)

RE: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Neil Kimber
You should probably consider ASP.NET. Visual Studio .NET is out in early Feb and ASP.NET makes an enormous leap in functionality. It should almost be considered a new web development environment. It allows development in any CLR compliant language (straight VB.NET, C#, managed C++ etc..) It cleanl

[PHP] Re: [PHP-DB] Re: [PHP] need help looping through each record with a query -stumped

2002-01-10 Thread DL Neil
Brian, > first off, Martin your suggestion looks great but I don't think its SQL > syntax is supported by MySQL. It's a good start though - gives me something > to work with :) =until it is tried, you won't know! From an SQL point of view it looks ok. In fairness to Martin, from the 'further in

Re: [PHP] does this work?

2002-01-10 Thread DL Neil
Erik, Two suggestions: 1 check out mysql_fetch_assoc(), and 2 make use of AS to 'set' the variable names (carried through from MySQL to PHP). Regards, =dn - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: 1

Re: [PHP] Re: Parsing SAR output with PHP.

2002-01-11 Thread DL Neil
Or checkout the sql import facilities offered by your choice of database to 'convert' the data from log to db-tbl, then set up your analysis in PHP+SQL separately. =dn - Original Message - From: "Martin Wickman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 11 January 2002 09:08 Subj

[PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
Hi there guys, Who's awake today then? :) What I'm trying to do is create variable variable arrays and then fill these arrays with values. The problem I have though is that the values don't appear to be getting stored - as following the assignment I have outputted a 'sizeof' command which always

Re: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
That's done the trick. More coffee for me I think :) Cheers Jason. Jason Wong wrote: > On Friday 11 January 2002 20:02, Neil Freeman wrote: > > Hi there guys, > > > > Who's awake today then? :) > > Someone isn't :) > >

<    1   2   3   4   5   >