Re: [PHP] Error Messages, Windows, and Tequila

2005-11-16 Thread David Grant
Printing error messages to your output can be disabled with the display_errors directive in your php.ini file. To enable error printing, the directive should read: display_errors = On Cheers, Dave Jay Blanchard wrote: Hidy-ho good meighbors and neighborettes! I continue my, as yet

Re: [PHP] Formatting of a number

2005-11-16 Thread David Grant
Hi Scott, How do you distinguish between a value filled with zeroes and a value with 0 in both decimal positions? For example, why is 3145900 expressed as 3,145.90, and not 31,459.00? Cheers, David Grant Scott Parks wrote: Hi- I have a number that I am trying to format. It is data coming

Re: [PHP] SESSION expiry time setting

2005-11-18 Thread David Grant
Hi Angelo, You might want: session.cookie_lifetime = time in seconds Obviously this only has an effect if the session.use_cookies directive is set to 1. Cheers, David Grant Angelo Zanetti wrote: Hi guys. I've been searching for where the time is set for a session to expire but had

Re: [PHP] Dynamic DB query - form display

2005-11-18 Thread David Grant
Hi Adrian, This appears to be a security hole, but since that wasn't the reason for the question, please try: echoinput type='text' value=' . htmlentities($clause, ENT_QUOTES) . '; php.net/htmlentities Cheers, David Grant Adrian Bruce wrote: Hi I am trying Dynamically creating a Query

Re: [PHP] Dynamic DB query - form display

2005-11-18 Thread David Grant
-resources/articles/guide-to-php-security-ch3.pdf Cheers, David Grant Adrian Bruce wrote: I'm aware it would be a security hole if it were available to all users, but it's just for me at the mo, other users get a watered down version with just check boxes. I basically want to allow flexible

Re: [PHP] another simple array question

2005-11-18 Thread David Grant
if (isset($values[4]) unset($values[4]); Cheers, David Grant cybermalandro cybermalandro wrote: I have an array with indexes 0 to 4 and I want to delete an element of the array if the index is equals 4. I want to delete the variable key and value. What is the best way to do so

Re: [PHP] Regex help

2005-11-18 Thread David Grant
Chris, if (preg_match(/^[A-Za-z0-9\.]+\s*[A-Za-z0-9\.]*$/, Co. Dublin)) echo TRUE; else echo FALSE; prints TRUE for me. Cheers, David Grant Chris Boget wrote: Why isn't this regular expression ^[A-Za-z0-9\.]+\s*[A-Za-z0-9\.]*$ allowing for this value: 'Co. Dublin' (w/o

Re: [PHP] Real-Time Form Updating

2005-11-18 Thread David Grant
I might have the wrong end of the stick, but would it not be easier to calculate these variables in the form handling script? Cheers, David Grant Chase wrote: I am trying to build an order form for our clients to use to order hardware and software, or atleast get a price quote

Re: [PHP] add more features on working php?

2005-11-18 Thread David Grant
Bing, Have you checked for a php-ldap RPM? Cheers, David Grant Bing Du wrote: Hello, PHP has already been installed through RPM. phpinfo() shows '--with-ldap'. That's the only information about ldap. I think there should be more than that if php were installed with ldap support

Re: [PHP] testing on a local server

2005-11-18 Thread David Grant
http://www.php.net/manual/en/tutorial.php#tutorial.requirements [EMAIL PROTECTED] wrote: i am new to PHP and web programming/management in general... Using Dreamweaver I am trying to preview .php files on the local server, but the page won't show up in a web browser. This is probably a

Re: [PHP] php5 call by refference

2005-11-21 Thread David Grant
Georgi, You should assign the output of the functions to variables before the call and use those variables as the parameters. Cheers, David Grant Georgi Ivanov wrote: Hi, AFAIK, in PHP5 one can't call function with function parameters . The error is that you only can pass variables

Re: [PHP] Sorting users geographically...

2005-11-21 Thread David Grant
Hi Tony, I would think the first step would be to find a web service or dataset to convert a zip code to longitude/latitude. The formula for calculating distances from long/lat is available here: http://www.colorado.edu/geography/gcraft/warmup/aquifer/html/distance.html Cheers, David Grant

Re: [PHP] calling static methods of variable class names

2005-11-22 Thread David Grant
Ahmed, call_user_func(array($className, 'doSomething')); Cheers, David Grant Ahmed Saad wrote: hi all, how can i call static methods of a class whose name is variable.. something like ? $className::doSomething(); // throws a parser error ? I can do this with reflection by creating

Re: [PHP] readdir and mime types

2005-11-22 Thread David Grant
-mode.php Cheers, David Grant Graham Cossey wrote: [snip] Make sure to always hit reply-all, or the e-mail will not go back to the list. Yep, realised that after hitting 'send'. :-( If file exists is looking for an associated files is it probable that the .mpg files do not have one associated

Re: [PHP] how to exist within the context?

2005-11-22 Thread David Grant
Hi, Try this: ?php $submit = $_POST['submit']; $name = $_POST['yourname']; if ($submit) { do { if ($name==) { print Please enter your name!; break; } } while (0); } echo Continue processing...; ? It's a hack, but it works. Cheers, David Grant

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-23 Thread David Grant
$_SERVER['HTTP_USER_AGENT'] contains whatever the browser passes to the server to identify itself, which may be faked by certain browsers at the discretion of the user. The two user agents you provide as an example are both extremely common. Cheers, David Grant twistednetadmin wrote: Thanks

Re: [PHP] Accessing Arrays in HTML

2005-11-23 Thread David Grant
Shaun, This: $values[] = $value; Does this: $values[] = array('Scheduling' = '44'); Therefore, it must be accessed like this: $values[$i]['Scheduling'] // gives '44' But not this: $values[$i][0] // index doesn't exist. Cheers, David Grant Shaun wrote: Hi, I am trying to create

Re: [PHP] PHP and email

2005-11-23 Thread David Grant
Hi Angelo, Why not send them all in one go? If you want to reduce server load, you should perhaps adjust the 'nice'ness of the script. If you do the following: nice --adjustment=19 ./script.php Your script will run in the background and use only spare resources. Cheers, David Grant Angelo

Re: [PHP] Autodeleting news when it has become yesterdays news

2005-11-23 Thread David Grant
to run the function. e.g. 1% chance of cleaning up the database. ?php if (rand(1,100) 99) { deleteItems(); } ? Cheers, David Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] understanding session vars ?

2005-11-24 Thread David Grant
, David Grant Gregory Machin wrote: Hi I'm a bit stuck on session var, and thier implamentation, or my perseption thier of. I have a page and need certian vars to be persistat each time the page is called. This is done to detmin the content of the page through logic that calls different

Re: [PHP] readfile and get_file_contents don't work

2005-11-24 Thread David Grant
Hi Richard, Please ensure that the allow_url_fopen directive is set to On in your php.ini file. Cheers, David Grant Richard K. Miller wrote: I compiled PHP from source on Fedora Core 4, but I must have left something out because readfile and get_file_contents aren't working. If I try

Re: [PHP] understanding session vars ?

2005-11-24 Thread David Grant
Gregory, Values in the $_SESSION superglobal will persist over pages so long as session_start() is called on each page. Cheers, David Grant Gregory Machin wrote: I have a test script.. What i'm trying to achieve is once the user has clicked on link1 the value of item must equal x

Re: [PHP] understanding session vars ?

2005-11-24 Thread David Grant
. Try var_dump($_SESSION) instead of the conditional echoing of the variables. Cheers, David Grant Thanks On 11/24/05, *David Grant* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Gregory, Values in the $_SESSION superglobal will persist over pages so long

Re: [PHP] Regexp trouble

2005-11-24 Thread David Grant
Andy, Try preg_match instead of ereg. Cheers, David Grant Andy Pieters wrote: Hi list I still fail to understand why regular expressions are causing me such a hard time. I used and tested my regexp in kregexpeditor (comes with Quanta [kdewebdev]) but when I put it in the php script

Re: [PHP] What is ?=

2005-11-25 Thread David Grant
Robert, ?= is short for ?php echo Cheers, David Grant Wolf wrote: I have some scripts that I downloaded and am trying to make compliant with my server. They have ?= placed throughout and I am not sure what they are and how to fix them at this point. Stupid question, I know

Re: [PHP] What is ?=

2005-11-25 Thread David Grant
? is how XML specifies a processing instruction for the XML parser, for example: ?xml version=1.0? Tells the parser that the XML it is parsing is version 1. Jochem Maas wrote: Wolf wrote: I have some scripts that I downloaded and am trying to make compliant with my server. They have ?=

Re: [PHP] SQL Password() function

2005-11-28 Thread David Grant
Ahmed Saad wrote: On 11/26/05, Yaswanth Narvaneni [EMAIL PROTECTED] wrote: I 'dont' want to use something like select * from table where table.passwd=password($passwd); (IIRC. they broke backward compatibility in version 5).. 4.1 :( Cheers, David Grant -- PHP General Mailing List

Re: [PHP] PhpMailer vs Pear:Mail

2005-11-28 Thread David Grant
*cough* http://pear.php.net/package/Mail *cough* Mark Steudel wrote: Would you mind elaborating on why? -Original Message- From: Richard Heyes [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 12:53 AM To: Cabbar Duzayak Cc: php-general@lists.php.net Subject: Re:

Re: [PHP] preg_slipt

2005-11-29 Thread David Grant
Hi Dan, Try: $a = split(\n, chunk_split('1234567890', 2), 5); php.net/chunk_split php.net/split Cheers, David Grant Sichta Daniel wrote: Hi all !!! I have string like this 1234567890 I need to split this into array like this a[0] = 12 a[1] = 34 a[2] = 56 a[3] = 78 a[4] = 90

Re: [PHP] preg_slipt

2005-11-29 Thread David Grant
There is an error in this code. It should in fact read: $a = split(\r\n, chunk_split('1234567890', 2), 5); OR $a = split(\n, chunk_split('1234567890', 2, \n), 5); David Grant wrote: Hi Dan, Try: $a = split(\n, chunk_split('1234567890', 2), 5); php.net/chunk_split php.net/split

Re: [PHP] exclude part of text

2005-11-29 Thread David Grant
Hi, 021 wrote: ?php $lines = file('sometext.txt'); for ($i = 0, $j = count($lines); $i =1; $i++) { print $lines[$j - $i]; } ? For a start, try this instead: $lines = file('sometext.ext'); $last = end($lines); Secondly, do you have an example of the real log file? Cheers, David Grant

Re: [PHP] exclude part of text

2005-11-29 Thread David Grant
for this thanx -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] when to enter submitted in mysql?

2005-11-29 Thread David Grant
Personally, I'd keep it all in the session and write at the end, but this approach has at least two drawbacks: 1. The user cannot complete the process at a later point. 2. You cannot conduct analysis of part-completed data. Cheers, David Grant [EMAIL PROTECTED] wrote: Hi to all! I have form

Re: [PHP] weird error, cookies??

2005-12-01 Thread David Grant
assumptions. Cheers, David Grant Angelo Zanetti wrote: Hi guys. Been working on my site and then been trying to navigate through it, the once page redirects to another. then all of a sudden I get this weird popup (in mozilla) Redirection limit for this URL exceeded. Unable to load requested page

Re: [PHP] help with preg_replace only part of the string

2005-12-06 Thread David Grant
works but removes a,/a tags too. How to make it work without removing anything else than (.*) in the middle of a.*/a Thanks in advance. -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-06 Thread David Grant
a look at the following link for a list of editors with reviews. http://www.php-editors.com/review/ Cheers, David Grant -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-06 Thread David Grant
Hi Jeff, Jeff McKeon wrote: What is it you like about Zend Studio? * Code completion * Syntax highlighting for PHP, HTML and CSS * Manual pages * Debugging * Code examination * PHPDoc * CVS SVN support Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http

Re: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread David Grant
(as far as I understand the problem). :) It would be interesting if Steve could divulge the greater problem that he is seeking a solution to. Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-06 Thread David Grant
of Kate! When I use KDE, I used Kate for all non-PHP coding tasks, because it has great highlighting, and code folding too. :) Cheers, David Grant -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-06 Thread David Grant
options that I'd never used. And yes Code folding is nice don't use it much tho. On Tuesday 06 December 2005 09:48, David Grant wrote: Stephen Leaf wrote: KWrite part of KDE. Notepad with Syntax Highlighting and AutoIndention. And because it's part of KDE all the kioslaves come with. Which

Re: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread David Grant
the code out to a function and pass the parts that vary as parameters. Cheers, David Grant Steve McGill wrote: Hi, David is right about the unwanted side-effect. Thanks for the idea though. Unfortunately the 'greater problem' is not so great, I've just been doing this for a while now and find

Re: [PHP] Forum

2005-12-06 Thread David Grant
Larry E. Ullman wrote: Does anyone of you know of a good forum that is easy to customize and supports sticky notes, user registration, bb code and stuff like that? http://fudforum.org/features.php I've heard lots about it, but never used it. Cheers, David Grant -- David Grant http

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread David Grant
be unsubscribed? Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Eval To String

2005-12-07 Thread David Grant
Shaun Shaun wrote: Is it possible to return the result of eval function to a string rather than outputting directly to the browser? ob_start(); eval('$eval = evil;'); $output = ob_get_clean(); Cheers, David Grant -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
' '--with-gd' '--with-gettext' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-regex=system' '--with-xml' '--with-zlib-dir=/usr/lib' MySQL 4.1.15 TIA, Paul Hickey Christian Patriot Palm Bay Fl -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
no reference to mysqli. I don't know if changing this would enable the functions specific to PHP 4.x. Paul Hickey Christian Patriot Palm Bay Fl -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
I *should* have put it. :) Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR Validate email question

2005-12-08 Thread David Grant
! -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-08 Thread David Grant
, formatting such text with a scrip is very difficult. Does anyone knows a good exaple of such script? -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
be trusted. notice the last 7 words -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
of said how do i compare any address starting with 192.168. sorry if my first question was to vague David Grant wrote: Try $_SERVER['REMOTE_HOST'] instead of REFERER. Dave Carrera wrote: Jay Blanchard wrote: [snip] Is there a way of sending users with a local ip address say

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
Erm, REMOTE_ADDR, not REMOTE_HOST. Sorry! David Grant wrote: Quick and (very) nasty: $parts = split(., $_SERVER['REMOTE_HOST']); if ($_SERVER['REMOTE_HOST'] == '127.0.0.1' || ($parts[0] == '192' $parts[1] == '168')) { // Local } else { // Remote } Dave Carrera wrote

Re: [PHP] Problem: Distortion while saving text file.

2005-12-14 Thread David Grant
Could it be the other way around, i.e. Windows is stripping slashes, and Linux is not? How does $contents come to exist in the script? Check for any difference in your ini files for magic_quotes_runtime. Cheers, David Grant Janne Miettunen wrote: What could be wrong when this is transformed

Re: [PHP] foreach $_FILES

2005-12-14 Thread David Grant
Shaun, That is the documented behaviour for form fields in PHP. See Dots in incoming variable names on the following page: http://php.net/variables.external Cheers, David Grant Shaun wrote: Hi, I have a form on my site with many file fields for users to upload files. I am trying

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread David Grant
be what you're after. Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/MySQL noob rides again.. into trouble

2005-12-16 Thread David Grant
() there. Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/MySQL noob rides again.. into trouble

2005-12-16 Thread David Grant
Paul, Paul Jinks wrote: David Grant wrote: $SQLQuery = SELECT * FROM project WHERE projTitle = ' . $HTTP_GET_VARS['projTitle'] . '; Yep, that fixed it. Thanks. I had a feeling there was a mix up with the s and 's. What's with the . s? The . is a concatenation operator, i.e. it joins two

Re: [PHP] ? Split string into smaller chunks

2005-12-19 Thread David Grant
Labunski wrote: I need to split a long string into smaler chunks (an array), as a separator using every third \n (and not just every \n). I could use 'explode', but then it would produce too many chunks. php.net/preg_split Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP

Re: [PHP] can someone explain this query to me

2005-12-20 Thread David Grant
Ross, Ross wrote: $query = delete from meetings where id IN (.implode(,, $ids).); Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN do?? It's the equivalent of WHERE id = 1 OR id = 2 OR id = 3 OR id = 4 OR id = 5. Cheers, David -- David Grant http

Re: [PHP] problem: pgsql (unicode) = php5 = HTML (iso-8859-1)

2005-12-20 Thread David Grant
Michelle, Michelle Konzack wrote: Please can anyone tell me the right META (???) Tag to get Motilla right to UNICODE? Try: meta http-equiv=Content-Type content=text/html; charset=UTF-8 Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread David Grant
Nanu, Nanu Kalmanovitz wrote: The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE but not in Netscape 7.0. Looks fine to me. What is the contents of hello.php? Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread David Grant
display it fine. To answer your question, Opera is probably the third most popular browser on Windows. Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread David Grant
, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with fsockopen and SSL

2006-01-09 Thread David Grant
webserver via fsockopen that works. Btw the PHP version on server is: PHP Version 4.2.2 Thanks for any help! Greets Barry -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php5 SOAP WSDL parsing

2006-01-09 Thread David Grant
really like to know what PHP's problem is with my wsdl. How can I see the full output of this error? Thanks, Simon -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() problem

2006-01-09 Thread David Grant
) to the include path? TIA Nuno Trancoso -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The meaning of and @

2006-01-09 Thread David Grant
...address of...? Todd -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Executing a string

2006-01-09 Thread David Grant
Philip Hallstrom wrote: http://us2.php.net/eval Pay close attention to the oft-used quote from Rasmus Lerdorf: If eval() is the answer, you're almost certainly asking the wrong question David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-10 Thread David Grant
, finding 72 hours is fairly trivial - 72 hours is 259200 seconds (72hrs * 60mins * 60secs). Therefore your query will be: DELETE FROM TABLE WHERE CURRENT_TIMESTAMP() - FIELD 259200 David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-10 Thread David Grant
Gregory, David Grant wrote: Gregory Machin wrote: I have a table with a timestamp column and would like to use his to calculate the age of the record . how would i go about this... I would also like to exicute a mysql stament that pasess the tables and removes fields older than say 72 hours

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
http://www.php.net/manual/en/ref.mssql.php Oracle http://www.php.net/manual/en/ref.oracle.php David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
with small steps, and asking someone new to PHP to separate various tiers might put them off. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replacing .shtml #exec cgi with php calls

2006-01-10 Thread David Grant
better off obfuscating the code. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
Jochem, Jochem Maas wrote: David Grant wrote: 1. your looping a result set which involves a db connection - lots of pontential things that could go wrong... Absolutely, and lots of lessons to learn too. 2. its not a centralized 'solution' - code reuse is a good thing. However, what use

Re: [PHP] Image size?

2006-01-11 Thread David Grant
Will, William Stokes wrote: Can I get pixel sizes from a uploaded web applicable image with PHP? I mean width and height as pixels. If so How? http://www.php.net/getimagesize David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] transferring db info

2006-01-12 Thread David Grant
-- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP for Mac

2006-01-13 Thread David Grant
] resource for installing a portfile. It appears to come with GD compiled in already, but you'll have to look a bit further for Ming. I am mainly looking for GD and mingswf module on Mac. 1. http://www.php.net/manual/en/install.macosx.php 2. http://php5.darwinports.com/ David -- David Grant http

Re: [PHP] PHP 4.4.2 released!

2006-01-13 Thread David Grant
to upgrade to PHP 4.4.2. Any indication as to when the Windows binaries will become available? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Lions and tigers and slashes, oh my!

2006-01-13 Thread David Grant
you're looking for, and somewhat site-stepping the issue, but can't you use the category key instead of its title? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Lions and tigers and slashes, oh my!

2006-01-13 Thread David Grant
and doesn't show anything past that in the condirion. URL encoding the category ought to convert the text to Oil%20%26%20Gas, which ought to work without any problems. Have you tried this? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] how 2 stroe images in Mysql Database using PHP

2006-01-16 Thread David Grant
want to do that, it's your lookout. A quick search turned this up: http://www.zend.com/zend/trick/tricks-sept-2001.php David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php script running as a cgi

2006-01-16 Thread David Grant
Hi, zedleon wrote: I am running a php script as a cgi so to be able to run under my user name. The script seems to be working except for one major problem. the cgi script is not finding the variables passed by the html form... How are you attempting to access them? David -- David Grant

Re: [PHP] date(H, $datevalue) always adds an hour?

2006-01-20 Thread David Grant
Murray, What do you get if you print date(T)? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date(H, $datevalue) always adds an hour?

2006-01-20 Thread David Grant
Murray, As far as I know, Queensland is in EST (Eastern Standard Time), so that is the correct value. Are you using the same machine or is it remote? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] date(H, $datevalue) always adds an hour?

2006-01-20 Thread David Grant
Murray, I can't think what else it might be. Sorry! David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New identification after an error...

2006-01-20 Thread David Grant
Headers } David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem encountered with stristr-based function

2006-01-20 Thread David Grant
the following: a bhref/b=URLText/a back, which is clearly fubar, which highlights the necessity for some handy regex skills. Following a quick google, I found this page: http://aidanlister.com/repos/?file=function.str_highlight.php David -- David Grant http://www.grant.org.uk/ http://pear.php.net

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread David Grant
Markus, Markus Braun wrote: I have installed it with apt-get install php4 php4-mysql I think you'll need libapache-mod-php4 too (p.d.o is down at the moment, so can't be sure), as well as the mysql-server and mysql-client packages. David -- David Grant http://www.grant.org.uk/ http

Re: [PHP] Php4 with mysql flag

2006-01-23 Thread David Grant
Markus, Markus Braun wrote: libapache2-mod-php4 is already the newest version. mysql-server is already the newest version. mysql-client is already the newest version. That should be all you need then. Have you restarted apache yet? David -- David Grant http://www.grant.org.uk/ http

Re: [PHP] Re: PHP SSH2

2006-01-23 Thread David Grant
executed using ssh2_exec? thanks, vedanta -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
for what you mean? David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Austin, Austin Denyer wrote: On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: tedd wrote: ... Can you provide some examples for what you mean? I think he's referring to the fact that you can have one cookie in, say, Mozilla and another one in, say, Konqueror

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Barry wrote: Austin Denyer wrote: On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: tedd wrote: Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user

Re: [PHP] Adventures in Cookies

2006-01-23 Thread David Grant
Please ignore the previous e-mail: I slipped on the keyboard. :) -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Cookie reposted

2006-01-23 Thread David Grant
a persistent cookie. Do I also have to use a session to make this happen? tedd -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Book Sample Code Help

2006-01-24 Thread David Grant
Poppy, Poppy Alexandra wrote: Parse error: parse error in book-1.php on line 90 Please provide lines 89-91 of book-1.php only please. David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General

Re: [PHP] Re: Custom Usort Function

2006-01-24 Thread David Grant
-- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] query problem.

2006-01-24 Thread David Grant
Angelo, Angelo Zanetti wrote: Why does the cause that not to be displayed? or is it retrieving it correctly but not showing it because of the (which might be conflicting with HTML tags? Look at the source! David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http

Re: [PHP] How to check if an object exists

2006-01-24 Thread David Grant
Derrick, Derrick Shoemake wrote: Does anyone know if this is the proper way to check for an Objects existence and where I can find more information on doing so? php.net/is_object php.net/instance_of David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http

Re: [PHP] How to check if an object exists

2006-01-25 Thread David Grant
working together. This might be related to PHP, but I would start out by asking around the Apache community. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >