Re: [PHP] Mailing text from a text file.

2002-02-12 Thread DL Neil
Philip, I have the need to be able to mail out a text file. whats the best way that I could do this? =simple answer: use PHP's mail() - RTFM, but be aware that it is not the easiest thing in the world to use. With a simple text msg and no fancy address-headers you should be ok. =if you want

Re: [PHP] SMTP Mail

2002-02-13 Thread DL Neil
Liam, Check out http://phpguru.org/ =dn - Original Message - From: "Liam MacKenzie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 13 February 2002 09:21 Subject: Re: [PHP] SMTP Mail > Whoops, my bad! > If there's anyone out there that needs to use SMTP: > http://phpclasses.upperdes

Re: [PHP] how a function 'return' statement works

2002-02-14 Thread DL Neil
Erik, > function get_current_page_name() > { > $current_page_name = explode("/", $_SERVER['PHP_SELF']); > $current_page_name = $current_page_name[-1]; > return $current_page_name ; > } > > $errorcode = get_current_page_name(); > echo $errorcode; > > The only thing that works is $errorcode = >

Re: [PHP] Store array into mysql?

2002-02-14 Thread DL Neil
Hi Jan > I have an array called $myarray and now I want to store it in a mysql table. > I tried to just, insert into mytable values('$id', '$myarray') but just got > Array when I run > while ($row = mysql_fetch_array ($result)) > $myarray= $row[myarray]; > echo $myarray > -- > Do I need to first

[PHP] Exams

2002-02-14 Thread DL Neil
> Best regards, > Andrey Hristov > > "Back from the exams hell" =what were you sitting Andrey? =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL question...not sure if this is the correct forum to ask.

2002-02-14 Thread DL Neil
Peter, > I have a quick MySQL question...if this is not the correct forum for > it, then someone please point me to the right one. > > Can the UPDATE statement have conditional check embedded in it? I > have a page that displays a record (in a FORM format) that the user can > change the inf

Re: [PHP] How get the name of the array variable?

2002-02-15 Thread DL Neil
Tomek, > I got the problem , I want make preety debug function that shows array keys > and values and name of the variable containing array: > Here it is: > > function show_arr($array) > //wyswietla wartosci z tablicy wraz z kluczami (przeznaczone do debugowania) > { > if(DABUG) > { > echo "-

Re: [PHP] How get the name of the array variable?

2002-02-15 Thread DL Neil
So Rick, Guess you've squashed my little scheme for (fraudulently) convincing everyone that I can speak Polish fluently - given that I counldn't answer Tomek's question, I'm already scoring it up as a 'bad day'! On the subject of email addresses, does this observation mean that we are patrioti

Re: [PHP] How get the name of the array variable?

2002-02-15 Thread DL Neil
Lone Star Rick, I see that your day, and helpfulness to list members, is going a lot better than mine! > Actually, if I had my druthers, my domain TLD would be ".texas". Some day, > when Texas > becomes the independent country it should be, that will be my TLD. > > If it comes from TX... it wo

Re: [PHP] problem with working with dates

2002-02-15 Thread DL Neil
Jacob, > I'm sorry to bother the newsgroup with this, but I've been racking my > brain on it for a few hours, and tried all the documentation, and > realize it's a coding problem that will take someone about 3 seconds to > figure out the error in. I have this code: =don't be sorry, these 'blind

Re: [PHP] modular programming

2002-02-16 Thread DL Neil
Dear Steven and Kunal, Agreed with what you had to say. > In my experience, 'modular coding' is entirely a process of evolution. > It's impossible to sit down and design software on paper. Every piece of > code I write is under constant evaluation. Each time a weakness is > exposed, I rethink my

Re: [PHP] modular programming

2002-02-16 Thread DL Neil
Hey Kunal, > The entire concept of OOP was based on the data and not the processing :) No, this seems too much of a simplification. In the 'good old days' we used to design a program by using a flowchart. Such is an entirely procedural/code-based approach. Each of the philosophies that followe

Re: [PHP] exec on Windows

2002-02-17 Thread DL Neil
Scott, > I am trying to develop a music scheduling system on Windows using the > command line to fire off WinAMP. The first exec works fine, then it > stops > and says that program execution time has been exceeded. > > An example would be: > > exec ("winamp.exe M01.mp3"); > > a while loop ki

Re: [PHP] Mail () problems - Need help!

2002-02-18 Thread DL Neil
Anthony, A common issue. Pertinent info required: 1 Win or *nix? 2 able to send a single msg to a single email addr? 3 does loop get address and send msg to that address, 136 times; or does loop collect 136 addresses and then after closing the loop a single msg is sent to 136 recipients in the T

[PHP] Re: F/U on mail () problems

2002-02-18 Thread DL Neil
Dear Anthony, [I've put this back on the list, because others know far more about *nix and email than I do] BTW: people will respond more readily if you include a reassurance that you are emailing a 'membership' list or its some sort of client opt-in situation - not spamming! > Thank you for

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Neil Freeman
Have a look at the function getenv().. eg: $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user HTH Neil "Narvaez, Teresa" wrote: > Hello, > I'm running PHP version 4.1.1. When I invoke this function, phpinfo()?>, all variable

Re: [PHP] zend studio 2.0

2002-02-18 Thread DL Neil
Zeev, Didn't experience any stability problems with the beta per-se, but using a Windows box was an exercise in Unix-ification. Has the released version for Win32 seen significant alterations to the GUI? =dn - Original Message - From: "Zeev Suraski" <[EMAIL PROTECTED]> To: "Chris Lott

Re: [PHP] code

2002-02-18 Thread DL Neil
Is $inst an int or a string? =dn > make sure you're doing it like this: > if ($inst == "1") { > // do this > } > else { >// do something else > } > > instead of this: > if ($inst = "1") { > // do this > } > else { > // do this > } > > Just a thought. > > Tyler > > - Origi

Re: [PHP] Unicode TTF Font wingding's just don't cut it!

2002-02-19 Thread Neil Freeman
What symbols are you trying to use? Verdana is good enough for most unicode characters. hugh danaher wrote: > Help > Does anyone know where I can get a simple symbol font which is .ttf and "unicode" >compatible. Seems that my php graphic program is very sensitive to ttf problems. >It'll take

Re: [PHP] Don't Know how to Set the include Path

2002-02-20 Thread DL Neil
Dear Jack, > I had create a file called "contant.inc". > What i want to do is to use the require function() to point to this file, > but when i test it, it says: > > "Warning: Failed opening 'constant.inc' for inclusion (include_path='') in > C:\InetPub\wwwroot\php study\General News\news.php on

Re: [PHP] regexp on user supplied link

2002-02-20 Thread DL Neil
I'll offer the following code to get you started on the task - and invite critiques/improvements! (cribbed from various sources and 'tuned' - note that either apostrophes or double quotes can be used to delimit the URL) $bValidity = $iFound = preg_match_all( "/(href *=

Re: [PHP] web spider?

2002-04-15 Thread DL Neil
Greg, > >i was wondering if it would be possible to make a web spider in PHP. > >they work by download a website, then following all the links on the > >website to other pages, and then following the links on that page... > > > >is this possible in PHP without a whole lot of work? i just want to

Re: [PHP] calculating US holidays OT

2002-04-15 Thread DL Neil
> > I need to calculate the date to see if it's a holiday, i.e. is today > > presidents day > > No, today is Patriot's Day! > > Not sure if it's celebrated outside of Massachusetts It's celebrated any day there's a SCUD inbound! =dn -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] PHP editor for windows

2002-04-22 Thread DL Neil
> I really hate to do this, but it's one of my pet peives. is that like a pet rock? BTW if we're exercising peevishness, at the same time as indulging in anally non-retentive breakfast habits, check out http://www.onelook.com/cgi-bin/cgiwrap/bware/afen.cgi?type=word_all&word =peeve > >>> Ot

Re: Re: [PHP] PHP editor for windows

2002-04-22 Thread DL Neil
> > "etc" (TM) is able to follow up the syntax coloring operation by making > > changes to the code to correct syntax errors, puts brackets in exactly > > the right place to indicate block structure within the code, imposes > > data type prefixes in strict convention, chooses better variable names

Re: [PHP] Upload

2002-04-24 Thread Neil Highley
Now this IS lazy programming. ;-) [EMAIL PROTECTED] --- "Life must be lived as play." - Plato (427 - 347 BC) > - Original Message - > From: Gabriele Biondo <[EMAIL PROTECTED]> > To: Richard Emery <[EMAIL PROTECTED]> > Sent: Wednesday,

[PHP] Counting number of value instances within an array

2002-04-26 Thread Neil Freeman
27; would return 3. I've had a quick look through the array functions but didn't spot anything obvious. Neil Email: [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Counting number of value instances within an array

2002-04-26 Thread Neil Freeman
Sorry - don't worry. Found the function I require. FYI : array_count_values() Neil Freeman wrote: > * > This Message Was Virus Checked With : SAVI 3.54 Feb 2002 > Last Updated 2

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Neil Freeman
if (($foo % 2) == 0) { echo "text"; } Neil Craig wrote: > > * > This Message Was Virus Checked With : SAVI 3.54 Feb 2002 > Last U

[PHP] Retrieving name of error_log file

2002-05-01 Thread Neil Freeman
Hi, How do you obtain the value of 'error_log' (set within a .htaccess file). Is there a $HTTP_x_VARS array available which contains this information? Any help greatly appreciated. Cheers, Neil Email: [EMAIL PROTECTED] [EMAIL

Re: [PHP] Retrieving name of error_log file

2002-05-02 Thread Neil Freeman
> > On Wed, 1 May 2002, Neil Freeman wrote: > > How do you obtain the value of 'error_log' (set within a .htaccess > > file). Is there a $HTTP_x_VARS array available which contains this > > information? > > Nope. You can use phpinfo() to see what most

Re: [PHP] Newbie question to everybody....PHP

2002-05-11 Thread Neil Highley
Why would you want a scripting language to sleep, there is no such thing as a loop in a web page (yes, I know it would be possible, but it would lock up a users machine). I know you can set up the apache daemon to run on-demand to conserver resources, but I think you are getting mixed up between

Re: [PHP] Using Sessions under Win98/Apache

2002-05-16 Thread Neil Freeman
FYI... I'm using sessions successfully using PHP v4.1.0 on Windows NT. Neil Edward Marczak wrote: > > >* > This Message Was Virus Checked With : SAVI 3.57 May 2002

Re: [PHP] NewBie-UPLOADING IMAGE

2002-05-25 Thread Neil Highley
MWAHAHAHAHAH! [EMAIL PROTECTED] --- "Life must be lived as play." - Plato (427 - 347 BC) - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Dani" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, May 25, 200

Re: [PHP] Need help

2002-02-21 Thread DL Neil
John, > Yeeesch! I neet help. Yeeesch! was exactly my reaction when I read the following! Now that you have had some responses to 'directly' address the problem may I ask why you would want to maintain/work with the data in this format (top) as opposed to the eminently logical later presentat

Re: [PHP] Extracting hyperlinks from file

2002-02-21 Thread DL Neil
Ando > I need to produce an array of all the links(hrefs) in a remote file > (actually those that refer to files in the same remote server, but thats > > another matter). > I'm pretty new to php, i was thinking of doing it with ereg, something > like eregi("a href[\"]?=(.*)>", $file, $link); > bu

Re: [PHP] passing variables - php.ini?

2002-02-25 Thread DL Neil
Hi Matt, > Looking for help on how to activate the automatic passing of variables - > think i need to change something in my php.ini file maybe? > got scripts that work fine on one server, but i've recently got a new > virtual server, and it won't pass variables though - example script.. Yo

Re: [PHP] passing variables - php.ini?

2002-02-25 Thread DL Neil
Matt, > thanks a lot! > works fine now i've changed register_globals. =great! > just out of interest, what is the 'newer' way? > is it using sessions etc, or something else i don't know about? > or should i rtfm? ;) Yes it is quicker for me to say "RTFM ", although I wonder if it isn't perce

Re: [PHP] Apache is not parsing my php...sometimes...

2002-02-26 Thread DL Neil
> I'm posting this to the list as a private email to you was returned with a 550 >Access denied error. Surely "open systems" means 'open' - in the support community as well as other aspects!? Echoing/amplifying Torben's comment earlier: Private replies do not benefit others on the list (presu

Re: [PHP] RE: php email question

2002-02-26 Thread DL Neil
Terry, > I am trying to set up a MIME email that would include an HTML and Plain > Text version of content, such that if the recipient's email client did > not understand html or have html disabled, that the content would come > through as plain text, but if html were accepted, the plain text wo

Re: [PHP] Apache is not parsing my php...sometimes...

2002-02-26 Thread DL Neil
> >Echoing/amplifying Torben's comment earlier: Private replies do not benefit others >on the list (presumably with > >similar questions/learning need), nor do they end up in any archive. > > > I did not feel the particular question added to the sum total of > information so replied privately. I

Re: [PHP] Mailing Files

2002-02-27 Thread DL Neil
Sven, > Is it possible to mail files with the mail() commando? > Or can it be done on a other way? You're talking about 'attachments' aren't you? Yes it is! Recommend you visit http://phpguru.org/ and pickup the SMTP and MIME classes there (including sample code which shows how to attach file

Re: [PHP] Sending mail using a password

2002-02-27 Thread DL Neil
Greetings Svavar My SMTP server requests I use a password for every time I send(not IP based). How is it possible to let PHP to use password authentication when mail is sent. =Eureka! I have been looking at this, and made a note to come back to take a look at a 'likely candidate'. Of course,

Re: [PHP] maximum string length

2002-02-27 Thread DL Neil
Steven > It may be able to store 8MB, but each line can only hold 1024 > characters. I ran into this using a string variable to store the message > body of an HTML email. If I did not put a '\n' at the end of each line, > I would get random '!' placed through the sent email. Maybe you know more

Fw: [PHP] maximum string length

2002-02-27 Thread DL Neil
Steven (and anyone else interested), I was working on email earlier in the day, and have just cleared my desk of all that 'junk'. Your reading for tonight (1024/1000/997 byte line length limits in email) can be found in the discussion of RFC 2646 available from sunsite.dk (and elsewhere) - one

Re: [PHP] PHP MAIL function...why wont it work????

2002-02-28 Thread DL Neil
Hi Brad, > Hi all... I have a line in a page that should send me an email when the page > is loaded. > mail("[EMAIL PROTECTED]", "worked", "Line 1\nLine 2\nLine 3"); > when i load the page...i get NO error msgs, but the function does not send > the mail. There is no record of any activity in the

Re: [PHP] the date90 fucntions gone haywire!

2002-02-28 Thread DL Neil
Hi Georgie, > The date() function is returning the 19th of Januray 2038 as *ALL* dates no > matter what timestamp i feed it! whats goin on?? Result outside the UNIX epoch. Sounds like DATE()'s being fed some crazy data. What is the server's ToD clock showing? Make sure you debugECHO the source

Re: [PHP] Help with Array Walk

2002-02-28 Thread DL Neil
Hello Vidyut, > I have a question regarding array_walk.. I couldn't find any help on > the website or on irc.. didn't know where else to look. You've come to the right place. > I'm stumped, and about to just copy the function on top of this script > to make it work.. any ideas from anyone else

Re: [PHP] preg_replace() ??

2002-03-01 Thread DL Neil
Monty, > Is preg_replace() the best PHP command to use for parsing custom codes in > text retrieved from a database (e.g., turning "[link= ]" into "")? It is conventional wisdom that the PCRE functions are faster than their EREG cousins. However because/if you can guarantee that your 'template'

Re: [PHP] include() and paths

2002-03-01 Thread DL Neil
Hi Nick, > masterfile.inc lives in /var/www/includes/ and contains this line: > include("/var/www/includes/anotherfile.inc"); > > in index.php I include masterfile.inc and thus get anotherfile.inc. > > What I'd like to know though is, is it possible to have the include line > in masterfile.inc sp

Re: [PHP] PHP MAIL function...why wont it work????

2002-03-01 Thread DL Neil
Brad, > Yep it is a linux box. Ok, seeing that's 'sweet', go for "KISS"! See earlier comments about simplifying and once 'plain vanilla' is working, add back the optional headers/multiple lines, etc. Will be easier to work out what's breaking things, and then address that issue. Regards, =dn

Re: [PHP] include() and paths

2002-03-01 Thread DL Neil
and Nick Wilson opined in what could be seen to be an arrogant fashion... > * and then DL Neil declared > > > masterfile.inc lives in /var/www/includes/ and contains this line: > > > include("/var/www/includes/anotherfile.inc"); > > > > > > i

Re: [PHP] Returning error code from a function

2002-03-02 Thread DL Neil
Anas, > I am wondering if someone could shed some light on > this aspect of PHP. It might be something obvious, but > I am not able to figure it out. > > I have a function that returns a dynamically generated > HTML string. However, I need a way to let the caller > know if that function has faile

Re: [PHP] fopen

2002-03-02 Thread DL Neil
Craig, AFAIK you can't: fopen opens the file and leaves it up to you to read it a character or some other chunk at a time, keeping what you want, and leaving the rest. There is no concept of opening a file at a particular character position, other than to write-over or write-append. (see http://w

Re: [PHP] comparing string values, etc

2002-03-03 Thread DL Neil
Hi Tim, > I'm a major newbie. I was in the navy so never made it to major!? I'm only going to comment on your syntax and ignore the wide/Unix-related issues: > $noting = ""; > $checkval = "Hello > World"; > $filename = "thefile.inc"; > > $fd = fopen ($filename, "w"); > $contents = fread ($fd, f

Re: [PHP] phpAdsNew

2002-03-03 Thread DL Neil
Georgie, > I'm getting loads of "undefined variable" errors with this script. any1 know > why? You're using a recent release of PHP aren't you? Check out http://www.php.net/manual/en/security.registerglobals.php for an explanation of changes in 4.1.n. Regards, =dn -- PHP General Mailing Lis

Re: [PHP] phpAdsNew

2002-03-04 Thread DL Neil
Georgie, > > > I'm getting loads of "undefined variable" errors with this script. > > any1 know > > > why? > > > > You're using a recent release of PHP aren't you? Check out > > http://www.php.net/manual/en/security.registerglobals.php for an > > explanation of changes in 4.1.n. > no, registergl

Re: [PHP] ips and mysql table.

2002-03-04 Thread DL Neil
Hey Kunal, > I have a mysql table which stores the IP Address of my site visitors. When I > try to sort these Ip address in the ascending or descending order the order > is completely out of order. I am currently storing the IP addresses under a > varchar column. An int column would not store the

Re: [PHP] date calculations

2002-03-04 Thread DL Neil
Yow Sven, > I need to calculate the Time ( days hour minutes between 2 times ) > I have something but I have an error margine of 10 % and that is to high > > Time one 2002/02/24 10:23:43 > Time two 2002/02/02 12:43:12 > > this need to give me the correct time in days hours and minutes between the

[PHP] Multiple browser instances - is it possible to determine which browser?

2002-03-04 Thread Neil Kimber
session vars for browser instance 1 to be cleared out. We've toyed with many ideas and short of forcing a unique hidden value to be 'POST'ed to every page from every page we don't have an elegant solution. Is there any other way that we could do this? Neil -- PHP Genera

RE: [PHP] Multiple browser instances - is it possible to determine which browser?

2002-03-04 Thread Neil Kimber
s are problematic, leaving us with POSTs only. But POSTING to every page is a pain. Is there any other way? > -Original Message- > From: Dennis Moore [mailto:[EMAIL PROTECTED]] > Sent: 04 March 2002 15:28 > To: Neil Kimber; [EMAIL PROTECTED] > Subject: Re: [PHP] Multiple brows

RE: [PHP] Multiple browser instances - is it possible to determine which browser

2002-03-04 Thread Neil Kimber
s are problematic, leaving us with POSTs only. But > POSTING to every page is a pain. > > Is there any other way? > > > >-Original Message- > >From: Dennis Moore [mailto:[EMAIL PROTECTED]] > >Sent: 04 March 2002 15:28 > >To: Neil Kimber; [EMAIL PROTECTED

Re: [PHP] Upload a CSV file to MySQL

2002-03-04 Thread DL Neil
Ben, > Is there an easy way to upload a CSV file into a MySQL table? Is there also > a way to export the MySQL file into a CSV file? I would like to make a form > using PHP to do import a CSV file into an existing table. Any advise would > be appreciated. Manual: 6.4.9 LOAD DATA INFILE Synta

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-04 Thread DL Neil
Erik, > PHP's mktime() function uses a timestamp that is the number of seconds > since the Unix epoch. MySQL uses the MMDDhhmmss format for its > TIMESTAMP column type. > > I'm not complaining that they're not the same, but curious as to which I > should use for storing timestamps -- does it

Re: [PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-05 Thread DL Neil
Andy, > So what is the proper function in PHP to convert the MySQL timestamp into a > proper format like Sonday, Apr. 20th 2002? SELECT from SQL using UNIX_TIMESTAMP() Format for presentation in PHP using: string date ( string format [, int timestamp]) Regards, =dn > > > I am playing around

Re: [PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-06 Thread DL Neil
Hi Andy I apologise. The way I wrote the suggestion looks very much like a SQL query doesn't it? It wasn't! It would have been better expressed if I had said: retrieve the MySQL timestamp field as a UNIX (epoch) timestamp, by using the UNIX_TIMESTAMP function within the SELECT statement > I trye

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-06 Thread DL Neil
Erik, Apologies, I missed your reply in the mass of mailings and a rushed start to the week... > > The choice comes down to how you are generating the time data prior to > > its storage in the db, and how you plan to use it afterwards. If you are > > going to be doing lots of temporal processing

[PHP] Rasmus, O'Reilly, "Programming PHP"

2002-03-07 Thread DL Neil
Rasmus/others, O'Reilly are advertising the imminent release (Mar 2002) of "Programming PHP" (http://www.oreilly.com/catalog/progphp/desc.html). Is that still going ahead? (I'll submit an advanced purchase order...) Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] PHP MAIL function...why wont it work????

2002-03-07 Thread DL Neil
Brad, [I've put this back on the list, because someone who's into PHP's MAIL() from Linux might be able to help] > OK, I 'KISS'ed' it. The line now reads: > mail("[EMAIL PROTECTED]", "Please call if this works", "Hi there", > "From: [EMAIL PROTECTED]"); > and works fine. BUT, if i put my email a

Re: [PHP] Rasmus, O'Reilly, "Programming PHP"

2002-03-07 Thread DL Neil
Hi Erik, > > Rasmus/others, > > > > O'Reilly are advertising the imminent release (Mar 2002) of "Programming > > PHP" (http://www.oreilly.com/catalog/progphp/desc.html). > > Is that still going ahead? > > (I'll submit an advanced purchase order...) > > > > Hmmm... on the one hand, it's an O'Reill

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-08 Thread DL Neil
Hi Erik, > On Wednesday, March 6, 2002, at 05:11 AM, DL Neil wrote: > > > My 'rules' are simple: > > If the date/time is for processing, keep it as a timestamp (consider > > which type). > > If the timestamp is being used to keep track of RDBMS a

Re: [PHP] Problems installing PHP

2002-03-11 Thread DL Neil
Hi Berlina, > Im trying to install an Apache Web Server and PHP in a Windows NT . > > * Apache 1.2.23 > * PHP 4.1.1 > * Windows NT Server 4.0 with SP4 > > The installation of Apache Web Server and PHP was succesfully ok, but when I > configure the PHP and Apache, editing the PHP.ini and httpd.con

Re: [PHP] include_once()

2002-03-19 Thread Neil Freeman
Have you remembered to set up PHP's include_path to point to the area where your scripts are located? Neil Mauricio Cuenca wrote: > Hello, > > I have a very long script with several functions in it. I wanted to split > the script into several files, so I created two sub-scr

[PHP] Re: [PHP-DB] how to get consistent UTC from gmmktime (w/o dst-offset) ????

2002-03-26 Thread DL Neil
BTW for all who are following this, Patrick has cleverly illustrated that most of the northern hemisphere locations where summer time is observed will 'spring forward' this weekend. Most of the southern hemisphere locations that were in summer time did their 'fall back' last weekend! NB the two us

[PHP] Re: [PHP-DB] how to get consistent UTC from gmmktime (w/o dst-offset) ????

2002-03-28 Thread DL Neil
er time discontinuity. (so I don't need to run it on another box/change the server's TZ setting, I simply read the second half of the report) It is not missing one day, but one hour! Regards, =dn > Fucko. I kicked this pony-style. Yes - typo Didn't know what hit me th

Re: [PHP] Warning: Undefined variable

2002-04-03 Thread DL Neil
Erik, My two cents' (with allowance for inflation...) > > If you're distributing code in cyberspace it's a good > > idea to make it error free too, E_NOTICE or otherwise. To get the maximum help when coding, and to ensure the minimum of confusion for your users, I recommend: 1 set the dev serve

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread DL Neil
Justin, > I think this is a good idea, but it looks to be more of a searchable FAQ, > which will highly detailed... I'm really thinking of a medium-length email > introduction to the group (as per my attachment) which hopefulyl cleans up > the group a bit. > > Your resource could be fantastic, an

Re: [PHP] Re: executing script at specified time

2001-10-18 Thread DL Neil
The answer "cron" refers to *nix OpSys. It is the name of a demon/daemon that kicks of commands/jobs at a pre-specified time and/or on a regular basis. M$ spell it "at". Was that your question? =dn - Original Message - From: "Lucas Chan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP] IMAP Question

2001-10-18 Thread DL Neil
> Is it possible to use imap_mail() on php 4.0.6 on NT machine? > Maybe anyone has dll for this. Yes Val. It is possible. See related thread/discussion list: [PHP-WIN] Help on using mail() function =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] parsing a string

2001-10-18 Thread DL Neil
John, Two inter-dependent problems: 1 a means of identifying a cipher within the text 2 a means of replacing the cipher with HTML code 1 there are a limited number of graphics formats (.GIF, .JPG, .PNG, etc) and the number you are prepared to contemplate may be even shorter. Thus it would not b

[PHP] PHP Filesystem functions/reference table

2001-10-18 Thread DL Neil
Isn't it fun when people asking questions on the list spark off your own thoughts/inspiration!? Has anyone seen a tabulation of the functions in (manual: IV Function Reference XXVI. Filesystem functions) that shows which functions [don't] work under what conditions? eg Col1: function name, Col

Re: [PHP] Re: Annotated PHP Manual

2001-10-20 Thread DL Neil
> Khalid Hazmi wrote: > > How I can download the current Annotated PHP Manual??? > There is no such thing... AFAIK. => Yasuo Ohgaki Yasuo: Yes there is (and VERY useful it is too), check out the range of PHP documentation available from http://www.php.net/docs.php Khalid: Unlike some other p

[PHP] I recently noticed your ad on 1America Mall..

2001-10-20 Thread Neil Gallagher
ou can make up your own mind. Warm regards Neil Gallagher P.S. After having several negative experiences with network marketing companies I had pretty much given up on them. This company is different--it offers value, integrity, and a REAL opportunity to have your own home-based business... and

[PHP] Re: [PHP-DB] variable operators in queries

2001-10-19 Thread DL Neil
> Is it possible to put variable operators in queries? =I can see no reason why not - you're not actually putting the 'variable' in the 'query', just using a PHP-variable to build a PHP-string which will be sent to MySQL as a SQL query... > I tried this (the real variable comes from a form) > $

Re: [PHP] str_replace binary safe??

2001-10-22 Thread DL Neil
> Hi folks, > following problem appeared on PHP 3.0.16 on LINUX > I have a binary file, where I want to replace some letters > I do the following: > $filename = "xyz.sdc"; > $fd = fopen( $filename, "r+b" ); // also tried "r" > $x=filesize( $filename ); // this shows the correct filesize 22528 byte

Re: [PHP] str_replace binary safe??

2001-10-22 Thread DL Neil
> > > following problem appeared on PHP 3.0.16 on LINUX > > > I have a binary file, where I want to replace some letters > > > I do the following: > > > $filename = "xyz.sdc"; > > > $fd = fopen( $filename, "r+b" ); // also tried "r" > > > $x=filesize( $filename ); // this shows the correct filesiz

Re: [PHP] mktime() problem

2001-10-23 Thread DL Neil
> I'm running 4.0.6 on a Solaris 8 box. The output given by > echo mktime(0,0,0,1,1,1970); > is 3600. > > Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write > this we are in daylight savings (GMT+1). Would this make a difference? (I > have already tried > echo mktime(0,0,

Re: [PHP] mktime() problem

2001-10-23 Thread DL Neil
ubject: RE: [PHP] mktime() problem > > > Thanks, I'll use gmmktime() from now on! > > James > > -Original Message- > From: DL Neil [mailto:[EMAIL PROTECTED]] > Sent: 23 October 2001 13:54 > To: Fairbairn,J,James,IVLH4 C; php-general > Subject: Re: [PHP]

Re: [PHP] problem pattern matching a url with question mark

2001-10-24 Thread Neil Freeman
Why does your URL contain .asp? [EMAIL PROTECTED] wrote: > I found the following code currently used on our website to match a url > expression. Unfortunately, when I added a question mark, the webpage that > contained the url with the question mark just "hung" and would not load into > my brows

Re: [PHP] Package mechanism

2001-10-24 Thread DL Neil
> I have a need for a package mechanism like that provided by TCL. We > write a > lot of code in reusable libraries and often encounter the situation in > which > an application uses a particular library but requires at least version X > or > greater. > > The require(), require_once(), etc. functi

Re: [PHP] Package mechanism

2001-10-24 Thread DL Neil
Douw, It's kind of eerie the way your reply appears in my email before I can see my intervening post!!!??? Perhaps you're just more important than me (bow, scrape, simper...) > Thanks for the feedback and additional ideas. =HTH > I had also though that it might be necessary to separate out th

Re: [PHP] how do i give optional arguments to functions??

2001-10-24 Thread DL Neil
> On Wednesday 24 October 2001 19:14, Richard S. Crawford wrote: > > The default value for $image parameter was missing: > > > function top ($image="defaultvalue") { > > if ($image=="defaultvalue") echo "blah blah blah"; > > else echo "blah blah $image blah"; > > } If the defa

Re: [PHP] Re: Loading message

2001-10-25 Thread DL Neil
> I suspect that PHP does all of it's work and, only when complete, will it > send the generated html to the client. > > No matter what you try and do there's no way you can output the progress of > your script to the browser while it is still being parsed. > > I could be wrong, but this is my und

Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread DL Neil
> "John A. Grant" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I've installed ActivePerl, which gives me a way to run .pl files, > > i.e. : > > c:\> perl someprogram.pl > > > > Does the Win32 php installation give me a command-line > > interpreter lik

Re: [PHP] PHP File not found

2001-10-25 Thread DL Neil
> I have just set up PHP on my webserver (IIS 4 on NT4). > I have set up the script mapping so that I can save php files as .html and > php processes them. > > This works fine until someone goes to a page that doesn't exist - instead of > getting the customised error 404 page (i.e. the page you r

Re: [PHP] Truncating Lines

2001-10-25 Thread DL Neil
Please define "long", and perhaps think of that in the context of the RFC ?822 is it? =dn - Original Message - From: "BT News" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 25 October 2001 17:38 Subject: [PHP] Truncating Lines > Hi, > > I have the following code, which reads in an

Re: [PHP] PHP File not found

2001-10-26 Thread DL Neil
nd I think that is where you'lll find (at least) one. =Regards, =dn > > THanks. > "Dl Neil" <[EMAIL PROTECTED]> wrote in message > 048001c15dab$d5c0fcf0$a516100a@jrbrown">news:048001c15dab$d5c0fcf0$a516100a@jrbrown... > > > I have just set up

Re: [PHP] variable gets lost in function problem again...

2001-10-26 Thread DL Neil
> I have an two dimensional array that is returned from code from an included > file. I'm assigning parts of the array to variables ( $variable = > $array["key"]["value"]; ). This works fine and can be printed until I send > it through a function eg. ( ereg_replace(" ", "_", "$variable"); ). After

[PHP] Debugging aids (after the style of: Error management)

2001-10-26 Thread DL Neil
Don't you like the side-benefits of this list, eg that someone comes up with a question that gets your thought processes running or suggests an idea you'd not otherwise come up with!? So further to the question: > How can I know the line and the file from where a function has called. I > alread

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread DL Neil
Mark, Backing John's question up by one iteration: is there a PHP environment variable which can be used to distinguish between code being run from the command line and code being run in a browser? - and the Million dollar question, sorry make that the M$ question: will it also work under Windo

<    1   2   3   4   5   >