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

2001-10-26 Thread DL Neil
iration. =dn > may be > > $argv > Array of arguments passed to the script. When the script is run on the > command line, this gives C-style access to the command line parameters. When > called via the GET method, this will contain the query string. > > $argc > > Con

Re: [PHP] Replace text

2001-10-27 Thread DL Neil
> Hello guys > > function replace_text_smiley(){ > > global $comment; > // To add a relation between a text smiley a an image smiley do this: > // $faces["text smiley here"] = "img tag to image smile here"; > > $faces[":)"] = ""; > $faces[":P"] = ""; > $faces[":D"] = ""; > $faces[":("] = ""; > $fa

Re: [PHP] command line option f -- how do i get the name of the file?

2001-10-27 Thread DL Neil
> I am writing a script using php's command line ability and I am lost on > how to work with a file when I don't kow what the file's name is. > > Example: > script.php -f > > In my script, how do I reference the file when I have no idea what it's > name is going to be? > > The scrip will get

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

2001-10-28 Thread DL Neil
John, Netscape! Differences between servers AND differences between browsers AND differences between in-browser and command-line operations! Isn't life fun? Like you I'm messing around with some of these differences as part of a bid to 'convert' an existing set of scripts from browser i/f to c

Re: [PHP] HELP: Syntax Needed

2001-10-28 Thread DL Neil
> Jokes aside, I still don't get it. =the word "it" is part of the difficulty everyone faces in thinking about whether they could help or not - what "it" is, is not apparent 1 there is a problem with a mysql_pconnect() call, and 2 there is a problem with a mysql_query() call. Which one is "it"?

Re: [PHP] switch-statement overrides use of global arrays?

2001-10-28 Thread DL Neil
Imar, The global array is being defined in the mainline, but not populated. What happens if you set element 0 to some value (to take up some storage space first) and then try the switched function calls? When you say "Alas, this also emptied the array each time I went from one function to anothe

[PHP] PHP templates vs XML

2001-10-29 Thread DL Neil
In an on-again-off-again desultory style, I keep trying to find the time to study template systems - and quite separately see if I can find a practical use for XML. The idea of a template system is that the HTML code/presentation of the final view to the user/browser, can be devised/maintained

[PHP] Displaying "please wait"

2001-10-29 Thread DL Neil
Is there someone 'up' on the way Apache works who can offer some comment please? Th "how do I display 'please wait' " question was asked by someone (else) last week. The standard answer is "no" - server-side PHP assembles an HTML page, and when it is completed the whole page is transmitted from

Re: [PHP] lesson in NOT how to run your php website ...

2001-10-30 Thread DL Neil
> > I teach law at a university .. I also run the website here ... > > Thankfully Tasmania is not considered part of Australia. :) > > *troll bait away* =but are you trolling for bad lawyer jokes to wind up brendan, or inviting the rest to take on the Aussies? =Tasmania advertises itself as

Re: [PHP] spliting results into 2 colomns

2001-10-31 Thread DL Neil
> I have following code, sorry it's pretty big for posting, i want to > split the output into 2 colomns, been trying almost all still can't > get it working Harik, First off, have you checked the manual (http://uk.php.net/manual/en/function.mysql-result.php) and the recommendations against th

Re: Re[2]: [PHP] split array in 2 halfs

2001-10-31 Thread DL Neil
Or do you really want: First array: 1 3 5 Second array 2 4 6 Corresponding to the two columns across the screen, and controlled by the same iteration index? =dn - Original Message - From: "Daniel Harik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 01 November 2001 07:25 Subject:

Re: [PHP] regular expression

2001-11-01 Thread DL Neil
Wow, there are some long and curly ways to use RegExp-s aren't there? I'm not very good at them (and I hear that they can be expensively inefficient) so I tend to look elsewhere. Check out pathinfo -- Returns information about a file path array pathinfo (string path) pathinfo() returns an associ

[PHP] Re: [PHP-WIN] 4.0.6 mssql.dll Extension load failure

2001-11-01 Thread DL Neil
Mike, > We have PHP installed as an ISAP module on our W2K IIS5 server and > its operational with no problems - phpinfo() runs just fine. > > But - When I uncomment the php_mssql.dll extension in php.ini I get an error > when PHP starts up saying it cannot find the .dll file. > > The extension di

Re: [PHP] mail() extra headers not working

2001-11-01 Thread DL Neil
> I am trying to ad extra headers to email's I am sending through php. I > want to ad Reply-To: and Bounse-To: addresses. But when add them useing > the forth feild of the mail() funtion. > mail($recipient,$msubject,$message,"Reply-To: $sender"); > but for some reason when I send this e-mail i

[PHP] Utility script: dates

2001-11-01 Thread DL Neil
Somewhere on my travels around the many PHP/script sites, I'm sure that at one time I noticed a date-display utility. I cannot find it again. Please would someone point the way... What I'm looking for: displays a form with a variety of date/time fields, user enters a date/time into various fiel

Re: [PHP] Re: Questions about php.ini

2001-11-03 Thread DL Neil
Would the annotated manual LXV. "PHP options & information" be of any use? =dn - Original Message - From: "jennyw" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 03 November 2001 03:18 Subject: [PHP] Re: Questions about php.ini > This is a dedicated server, and I have several sites

Re: [PHP] Incoming mail to PHP as Apache module

2001-11-03 Thread DL Neil
> Maybe I should be posting this on the Procmail list but someone here > might have a non-Procmail solution. I'm trying to get a PHP script to > process incoming email. The script will lookup a database and do > something depending on the mail headers. I'm running on a FreeBSD > virtual server acc

Re: [PHP] Date help (no not that kind)

2001-11-11 Thread DL Neil
Hi Sundog, Can help you with dates (but no, if you want that kind you'll definitely not be wanting my advice...) - Original Message - > I am trying to determine if todays date ($today) is within a week > ($startcheck) of a given date ($dob). This is what I have so far. > > $todaydate = (

Re: [PHP] php test page not working with apache 1.3.22

2001-11-09 Thread Neil Freeman
Probably not your problem but shouldn't your php line be as follows: ie without the space between Hi all, > > I've just finish upgrading my apache server to apache 1.3.22, > I have also compiled my php-4.0.6 with it. > > When I try to test it using > > saved as php, the browser tries to downlo

Re: [PHP] Re: mail() w/ mailing lists

2001-11-12 Thread DL Neil
> > Is is advisable that I mail lots of users from a database via one call to > > mail() ? > > why not make a loop and send to one email at a time. if you have over > 1000 I would use something else than mail(), ex direct to smtp with sockets. Henrik, It is my opinion (too?) that mail() is di

Re: [PHP] Attachments again

2001-11-12 Thread DL Neil
Hi Sjoerd, > When i send a dynamic HTML newletter, which contains newsitems in the > database I now send the e-mail with a link to the image on the webserver. > What i would like to do is instead of linking the image, send the image as a > sort of attachment. So an internetconnection is not requ

Re: [PHP] Weird database stuff.

2001-11-13 Thread DL Neil
Third db question today: do folk know there is a (lightly loaded) '[PHP-DB] list' with some v.competent members? Hi Alexander, - Original Message - > Let me start by laying out some facts: > > SELECT e.NAME AS customer, g.NAME AS driver_lastname, g.FIRSTNAME AS > driver_firstname, $Com

Re: [PHP] mail() with mailing lists problem

2001-11-13 Thread DL Neil
Rudolph, Mail() is v.finicky! Windows machines need more than the \n - what are you running? Have you tried putting some string of characters into the (text) msg body? Can you send us a copy of the actual email msg showing the headers etc (output as received at the POP/IMAP server) - after clippi

RE: [PHP] Variable definitions...

2001-11-13 Thread Neil Kimber
BTW, the official explanation is wrong. "local part this variable is destroyed and declared again" is incorrect. The global variable is not destroyed. The local namespace pushes the variable name onto the stack and gives it a value for the duration of the function. Every time you try and access

Re: [PHP] Re: Books for PHP and MySQL Class

2001-11-21 Thread DL Neil
Chris, Apologies for the belated response/absence. I find myself constantly referring to Welling and Thomson ("PHP and MySQL Web Development", 0-672-31784-2) and happily recommend it to you. Apart from referring to the user as "she" which (both men and women say) interrupts the smooth flow of t

Re: [PHP] preventing multiple submissions

2001-11-26 Thread Neil Freeman
Have a look at: http://www.faqts.com/knowledge_base/view.phtml/aid/863/fid/129 May be of some use. Neil Derek Mailer wrote: > I have a problem with a form on my website. > > it's part of a shopping cart application, whereby the form consists of a list of >products and th

Re: [PHP] Is there a GUI for MySQL?

2001-12-07 Thread Neil Freeman
How about MySQL Front (www.mysqlfront.de). Couple of 'features' here and there but overall pretty good. Neil Hai Nguyen wrote: > Hi, > > I am a newbie at this. I was just wondering if there is a Graphical > User Interface for MySQL? > > Cheers, > > Hai Nguyen

Re: [PHP] Version To Version

2001-12-07 Thread Neil Freeman
I'm using gd png in 4.0.6 with no problems (Windows). What problems are you having? Robert Covell wrote: > A question about different release versions of PHP. > > Why do things like png from gd 1.8 work in 4.0.4p1 and stops working in > 4.0.6? We had to go back to 4.0.4p1. I have seen similar

[PHP] problem finding out original filename while using php to upload.

2001-12-16 Thread Neil M
the file was ? like .jpg , .png etc. Any help appreciatted , i am really stuck on this ;0) Thanks Neil M -- 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] Error handling

2001-12-18 Thread Neil Freeman
What warnings are you receiving? Many can be avoided by doing various checks: e.g. if (!isset($some_variable)) ...some error code else ...all is well others which may be useful: function_exists() file_exists() HTH Neil Yoel Benitez Fonseca wrote: > Hi! > > There is in

RE: [PHP] Creating tree using table?

2001-03-23 Thread Neil Kimber
r rather than strong relationships with child nodes. Your choice. Hope that helps, Neil -Original Message- From: E K L [mailto:[EMAIL PROTECTED]] Sent: 23 March 2001 08:29 To: [EMAIL PROTECTED] Subject: [PHP] Creating tree using table? Hi all, Currently, i'm trying to write a pr

RE: [PHP] Can PHP for Oracle randomly access rows in a result set?

2001-03-19 Thread Neil Kimber
The OCIFetchStatement() function returns a resultset to PHP that is actually a multi-dimensional array. You can randomly access this array however you like. -Original Message- From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]] Sent: 19 March 2001 10:43 To: Andrew Halliday Cc: [EMAIL PROTEC

RE: [PHP] set_error_handler and parse errors

2001-03-26 Thread Neil Kimber
Yep, you're right. But this actually makes sense. Parse errors mean that your code is just plain wrong and cannot/will not run with any level of error-reporting. >From a technical stand-point it also makes a lot of sense. Imagine if the parser fails 1/2 way through parsing code before it gets to

RE: [PHP] Dynamic constant names

2001-03-27 Thread Neil Kimber
You need another level of indirection. Try: $constant_value = $$constant_name ; -Original Message- From: Geoff Caplan [mailto:[EMAIL PROTECTED]] Sent: 27 March 2001 14:19 To: PHP General List Subject: [PHP] Dynamic constant names Hi folks I am trying to create a constant name dynamic

RE: [PHP] Is there way how to get line number from which function was called ???

2001-03-28 Thread Neil Kimber
No. You could pass the constant __LINE__ to your function, but I assume that you want this feature to be generically available within all functions. If you really want to be able to track your call-stack then you'd be better off using a development environment like the Zend IDE and debugger. Alter

RE: [PHP] Passing by reference deprecated?

2001-03-29 Thread Neil Kimber
Pass by reference itself is not deprecated, just call-time pass-by-reference. I believe this means your calling line of code being prevented from specifying that it should be invoked as pass-by-reference. So, function NormalPassByRefence(&$prmValue) { $prmValue ++; } $n

RE: [PHP] Passing by reference deprecated?

2001-03-30 Thread Neil Kimber
s by reference makes script execution a little slower under PHP4. -- Yasuo Ohgaki ""Neil Kimber"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Pass by reference itself is not deprecated, just call-time > pass-by-refer

RE: [PHP] Arrays : Key in Array, True/False

2001-03-30 Thread Neil Kimber
You need a 2 step approach. 1. extract the keys from your array into another array using array_keys() 2. check the result using in_array() to see if you key exists. -Original Message- From: Knut H. Hassel Nielsen [mailto:[EMAIL PROTECTED]] Sent: 30 March 2001 10:56 To: [EM

RE: [PHP] New buzz SOAP?

2001-04-03 Thread Neil Kimber
SOAP stands for Simple Object Access Protocol. It's the XML version of RPC/RMI. It's actually a specification that describes how interfaces from different systems can communicate with each other. It's called an IDL (Interface Definition Language). This is going to be big because it is a very larg

RE: [PHP] New buzz SOAP?

2001-04-03 Thread Neil Kimber
From: David VanHorn [mailto:[EMAIL PROTECTED]] Sent: 03 April 2001 17:59 To: Neil Kimber; Paulson, Joseph V. "Jay"; 'Stewart Taylor'; 'Brandon Orther'; [EMAIL PROTECTED] Subject: RE: [PHP] New buzz SOAP? > >This is going to be big because it is a very large

RE: [PHP] Release of PHP 4.05

2001-04-05 Thread Neil Kimber
Heard whispers that it could be next week. Testing isn't over. They're on the 6th release candidate. -Original Message- From: Dominique Paquin [mailto:[EMAIL PROTECTED]] Sent: 05 April 2001 19:54 To: [EMAIL PROTECTED] Subject: [PHP] Release of PHP 4.05 Greetings! Anyone knows when PHP

RE: [PHP] Export to Excel

2001-07-13 Thread Neil Kimber
Dump to file as comma separated and then load into Excel. Excel reads comma separated files. In the file open dialog you can select file type to be .txt (csv). If you want to be really sick then you can set up an ODBC connection to a comma separated file and then use MSQuery inside Excel. Anothe

RE: [PHP] passing variables from forms to the same page repetatively

2001-07-17 Thread Neil Kimber
We've built a framework that gets around this, without using HIDDEN form fields. It's quite complex so I'll give a high level description, it should give you some ideas. Our framework works on the basis that every page consists of a single form that submits to itself (same URL). All page/form elem

RE: [PHP] How is the management of memory by PHP?

2001-07-18 Thread Neil Kimber
jects are passed by value to functions. Many functions do not actually change the contents of the object and just use the values inside it. Reference counting improves performance by saving resources involved in the creation of a new copy of an object. Hope this helps. Neil -Original Message-

RE: [PHP] oop thingie

2001-07-20 Thread Neil Kimber
Not sure about your code, but what you describe is perfectly faesible in PHP. If you are setting values in one part of your code and cannot see these values in another part of your code then I would suggest that you have reference problem somewhere. The code you provided looks fine, maybe the prob

RE: [PHP] I need everyones opinon!

2001-08-09 Thread Neil Kimber
Not sure I fully understand you. I'm assuming that you mean that you prefix each member method with a particular string that relates to the class. By doing this you lose a key strength of OOP. Namely the ability to write polymorphic code. In effect, you would not be able to do the following: cla

[PHP] Creating a javascript array from database data

2001-08-15 Thread Neil Freeman
$i < $number) { $text = mysql_result($result, $i, "name"); print "$text"; $i++; } } mysql_free_result($result); mysql_close(); ?> -- Thanks, Neil -

Re: [PHP] Creating a javascript array from database data

2001-08-15 Thread Neil Freeman
utputs the value to screen why should this cause a problem if it is removed? Or could it be some other problem? Neil PS: Here is my updated code: -- Menus test 0) { echo "\n"; echo "text = new Array("; while ($i < $number) { $text

Re: [PHP] Creating a javascript array from database data (Off-List)

2001-08-16 Thread Neil Freeman
Thanks for the clarification Sheridan - I think it must have been end of day madness on my part :) I see what's going on now with the 'print' line. Cheers, Neil Sheridan Saint-Michel wrote: > *** > This mess

Re: [PHP] Creating a javascript array from database data

2001-08-16 Thread Neil Freeman
Yeah thanks Tim. 5:30 in the afternoon does bad things to my logical thinking. Not the best time to try and learn PHP :) Neil Tim Ward wrote: > I'm not sure if this is the problem but it is an important point. print > "\"$text\""; does not output anything to

[PHP] Invoking PHP scripts from a redirect location

2001-08-17 Thread Neil Freeman
d php sections are displayed. Do I need to somehow configure Apache to run php scripts from other locations or am I doing something stupid? Hope you can help, Neil Email: [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP Gener

[PHP] Apache alias to a specific .htm file

2001-08-17 Thread Neil Freeman
ter: http://localhost/ife/index.htm to get to this .htm file. How can I setup Apache to automatically 'pick up' a set .htm file (ie, http://localhost equals "P:/My Projects/Storyboard/ife/index.htm"). Any help would be greatly appreciated. Neil

Re: [PHP] PHP/Apache configuration for Win NT

2001-08-21 Thread Neil Freeman
You appear to have a typo in your httpd.conf: Action application/x-httpd-php /Php/php.exe should be as follows: (note the ") Action application/x-httpd-php "/Php/php.exe Hope that helps, Neil [EMAIL PROTECTED] wrote: > **

RE: [PHP] How to call a member from the base class?

2001-09-03 Thread Neil Kimber
print "A"; } class B extends A{ function foo(){ A::foo(); print "B"; } class C extends B{ function foo(){ B::foo(); print "C"; } $ba

[PHP] C-style parameterized macros

2001-09-07 Thread Neil Zanella
parameterized macros will be implemented in future PHP releases? 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]

[PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Neil Zanella
add the slashes in the first place? (I'm using PHP 4.0.4pl1 and don't know if this is just a bug or whether it was meant to be this way). Thanks, Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Neil Zanella
that I can achieve the magic_quotes_gpc effect without modifying the php.ini file? I guess I can do a set_magic_quotes_runtime(0); I am not sure if this is what I need in my situation. Thanks, and thanks for PHP!!! Neil On Sun, 9 Sep 2001, Rasmus Lerdorf wrote: > > I would like to know why PHP

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Neil Zanella
while I run Apache at school I am foreced to use IIS at work. Is there an equivalent of the .htaccess file for IIS? I wish everyone were using PHP with the Apache web server! Thanks! Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Problem installing GD on windows

2001-09-19 Thread Neil Freeman
ne to? extension_dir = ./ Any help would be greatly appreciated. Neil Email: [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] Problem installing GD on windows

2001-09-19 Thread Neil Freeman
The specified procedure could not be found" Any ideas? Neil Girish Nath wrote: > hi > > copy the php_gd.dll into the extentions sub-directory where you installed > php (you should already have a load of other .dlls in there too) > > change the extension_dir in php.ini

Re: [PHP] Problem installing GD on windows

2001-09-19 Thread Neil Freeman
d let you know. Neil Girish Nath wrote: > Hi > > I've never seen an install that has only those two directories :) Anyway, > try doing a search on your machine for files that match php_*.dll .It might > help you track down where all the extensions have been installe

RE: [PHP] Protecting variables and functions? Like C#

2001-09-19 Thread Neil Kimber
Private variables will be included in Zend 2.0 (99% likely) >From what I've seen private functions will not be included. Protected (ala Java/C#) variables and functions aren't being considered yet. > -Original Message- > From: Jason Stechschulte [mailto:[EMAIL PROTECTED]] > Sent: 19 Sept

[PHP] Generating variable names 'on the fly'

2001-09-20 Thread Neil Freeman
number; $$str_category = $genre_desc; $current_field_number++; } ### Any help would be greatly appreciated. Neil Email: [EMAIL PROTECTED] [EMAIL PROTECTED]

[PHP] Variable conversion problem

2001-09-20 Thread Neil Silvester
ts.CompID=competitor.ID AND productcategory.ID=\"$cat\" AND competitorproducts.CatID=productcategory.ID" ); Any help would be mostly appreciated. Thanks. Neil Silvester Webmaster / Systems Administrator Heat and Control Inc.

[PHP] Detecting an image form submission via PHP

2001-09-21 Thread Neil Freeman
: # alert(\"submitted\");"; } else { echo "alert(\"not submitted\");"; } ?> # Neil Email: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] Detecting an image form submission via PHP

2001-09-21 Thread Neil Freeman
OK cheers, that method seems to work ok. Thanks, Neil Michael van Bracht wrote: > - Original Message - > From: "Neil Freeman" <[EMAIL PROTECTED]> > To: "PHP General" <[EMAIL PROTECTED]> > Sent: Friday, September 21, 2001 3:30 PM > Subjec

[PHP] calling javascript function from a form image

2001-09-21 Thread Neil Freeman
;; } else { echo "alert(\"not submitted\");"; } ?> # Neil Email: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] Re: calling javascript function from a form image

2001-09-24 Thread Neil Freeman
hand to show up over the image. change the tag to > > > > -- > > Chris Lee > [EMAIL PROTECTED] > > "Neil Freeman" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > > > I have a

Re: [PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread Neil Freeman
= "C:/PHP/ext/" extension=php_mysql.dll Remember to copy 'libmysql.dll' to your Windows System directory (e.g. C:\Windows\System32\). If I remember correctly I also had to remove PHP 4's 'php4ts.dll' from the System directory - maybe this was just getting

Re: [PHP] Using php_value in .htaccess files

2004-08-24 Thread Neil Freeman
e of the module before attempting to change any of it's values: php_value auto_prepend_file "groove.php" Neil This communication is confidential to the intended recipient(s). If you are not that person you are not permitted to make use of the information and you are r

[PHP] Underscores within echo statements

2004-09-07 Thread Neil Freeman
Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look in the manual and archives but couldn't find any reference to it. Thanks, Neil This communication is confidential to the intended recipient(s). If you are not

Re: [PHP] Underscores within echo statements

2004-09-07 Thread Neil Freeman
Marek Kilimajer wrote: *** This Email Has Been Virus Swept *** Neil Freeman wrote: Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look

[PHP] Vertical Search Engine

2009-01-16 Thread Neil Rosewarm
ones for PHP. Please advise Thanks Neil

[PHP] php4 can't find tnsnames.ora oracle9 but can connect if description hardcoded

2005-04-19 Thread neil smith
contains a value name_domain that apparently is appended to the alias in tnsnames.ora but accounting for this still doesn't let me connect to oracle . It's as if tnsnames.ora cannot be found. I've changed the permissions to 777 for the whole directory structure and I can successfully use tnsnames.ora with sqlplus or tnsping. Does anybody have any ideas what is going wrong? Is this a bug? thanks, neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Control structure - easier way than repeating conditions in IF?

2004-04-30 Thread Neil Freeman
Why not just use a switch?... switch ($x) { case $a: case $b: case $c: case $d: //do whatever you need break; default: //catch any other values here break; } Neil BOOT wrote

[PHP] stftime differences on Windows/Linux platforms

2007-11-06 Thread Neil Saunders
20060613 Zend Extension 220060519 Production Config: PHP Version 5.2.1 Build Date Apr 25 2007 18:04:12 PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Am I missing something obvious here? Any help gratefully receive

Re: [PHP] stftime differences on Windows/Linux platforms

2007-11-06 Thread Neil Saunders
d the issue. Thanks again for your help. Cheers, Neil. On Nov 6, 2007 12:01 PM, Robin Vickery <[EMAIL PROTECTED]> wrote: > > On 06/11/2007, Neil Saunders <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I'm experiencing some differences in in the return values

Re: [PHP] if inside an echo.

2007-07-31 Thread Neil Freeman
Or another way... for ($value = 0; $value <= 2000; $value += 100) { echo sprintf("%s", $value, (($min_rent==$value) ? " selected=\"selected\"" : NULL), $value); } Hulf wrote: > ** > This Email Has Been Virus Swept > ** > I am outputting a s

Re: [PHP] Unexpected ";"

2004-02-19 Thread Neil Freeman
You're missing a right bracket within the if statement. Paul Furman wrote: *** This Email Has Been Virus Swept *** I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1) <= $

Re: [PHP] Re: Parse error ???

2004-03-04 Thread Neil Freeman
If I remember correctly the second parameter of move_uploaded_file() needs to be the full filename, ie path plus required filename. so... if(!move_uploaded_file($_FILES['myfile']['tmp_name'], ("/var/www/html/upload/" . $_FILES['myfile&#x

Re: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Neil Freeman
How about this - untested by the way: $order = "ASC"; if (isset($_GET["ORDER"])) { $value = $_GET["ORDER"]; if (($value == "ASC") || ($value == "DESC")) { $order = $value; } else if ($value == "RAND") { $order = "RAND

Re: [PHP] Switching First & Last Names in List

2004-03-16 Thread Neil Freeman
Take a look at explode() www.php.net/explode Neil Jeff Oien wrote: *** This Email Has Been Virus Swept *** If I have a list like this: Firstname1 LastName1 Firstname2 Lastname2 etc. I can split the names by

[PHP] Checking requested range

2005-06-21 Thread Neil Doody
Is there anything in PHP which would allow me to check the requested range of bytes by an client? Basically one of the download scripts I made some time ago got hit by a load of requests for a file, but the server was giving back "416 Requested Range Not Satisfiable". I assume that the user is

Re: [PHP] Checking requested range

2005-06-21 Thread Neil Doody
Marek Kilimajer wrote: Try http://pear.php.net/package/HTTP_Download Cheers for that, I think I just found a reasonable method to do a short term fix, though I might totally redesign my download application to support resumable download agents. I looked on the HTTP 1.1 protocol and found th

[PHP] Virtual includes of PHP into SSI pages.

2005-11-14 Thread Neil Hoggarth
ction (c=0x2831d8, csd=0x283100) at connection.c:176 #29 0x000e1574 in child_main (child_num_arg=0) at prefork.c:610 #30 0x000e16c0 in make_child (s=0x1b80b0, slot=0) at prefork.c:650 #31 0x000e1878 in startup_children (number_to_start=5) at prefork.c:722 #32 0x000e1f8c in ap_mpm_run (_pconf=0x16cda8, p

RE: [PHP] when using die(), how can i get the line number that errored?

2001-01-30 Thread Neil Kimber
r handling, you can take this and extend it into quite a useful system for tracking bugs. You could add system flags for turning debug on and off, alter levels of debugging etc... regards, Neil p.s. assert() is cool too. -Original Message- From: Richard Lynch [mailto:[EMAIL PRO

[PHP] Problems getting Zend IDE to run.

2001-02-01 Thread Neil Kimber
installed on the machine. My path doesn't point anywhere that seems problematic. The IDE files appear to have installed correctly. Does anyone have any ideas that I can try before I start pulling my hair out? Thanks, Neil -- PHP General Mailing List (http://w

[PHP] Zend debugger running across virtual servers

2001-02-19 Thread Neil Kimber
I've got the Zend IDE and debugger up and running. But, the debugger isn't picking up my 'Local Value' for the include path. It only seems to have the 'Master Value'. Has anyone else experienced this? And more importantly, how do I get around this problem. -- PHP General Mailing List (http://w

[PHP] Visit to Germany

2005-07-29 Thread DL Neil, Newsletter a/c
Greetings, I'm hoping to visit the Stuttgart area* for one week ~ ten days commencing c.Friday 19 August, to visit my brother-in-law and take a short vacation. If there are any PHP-related gatherings or activities I would be interested to meet up (last time I tried, I missed out by one week.

<    1   2   3   4   5