Re: [PHP] MySQL close connection, what's the purpose?

2006-04-03 Thread Jasper Bryant-Greene
up certain other queries. But that's at a whole other layer. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
, connecting to the database takes up more than half of the execution time of the average database-driven PHP script (I said *average*, there are exceptions). You don't want to be doing it multiple times if you don't have to. -- Jasper Bryant-Greene General Manager Album Limited http

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
that. I don't see it as sloppy programming, it is a documented feature that PHP closes resources such as database connections at the end of the script. But, as has been said, each to their own. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
Robert Cummings wrote: On Sat, 2006-04-01 at 20:48, Jasper Bryant-Greene wrote: Yeah, e.g. I have a database objects layer that means I only write SQL in classes, everything else is just calling object methods. I create the database object at the start of every script but that doesn't

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
Robert Cummings wrote: On Sat, 2006-04-01 at 21:39, Jasper Bryant-Greene wrote: Robert Cummings wrote: There's smart lazy programming, and sloppy lazy programming. I don't trust anything magical in PHP. Most of us are familiar with the magic quotes and global vars fiascos *LOL*. But hey

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
John Nichel wrote: Jasper Bryant-Greene wrote: snip I never close connections; PHP does that for me and has never caused any problems doing that. I don't see it as sloppy programming, it is a documented feature that PHP closes resources such as database connections at the end of the script

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-31 Thread Jasper Bryant-Greene
Jim Lucas wrote: Jasper Bryant-Greene wrote: Jochem Maas wrote: [snip] you guess wrong :-) .. I couldn't resist testing it: php -r ' class T { private $var = array(); function __set($k, $v) { $this-var[$k] = $v; } function __get($k) { var_dump($k); } } $t = new T; $t-arr = array(); $t

Re: [PHP] preg_match

2006-03-31 Thread Jasper Bryant-Greene
(also, there's no point in using the 'i' case-insensitive flag, since there's no characters in your pattern). The strpos() solution above is much better and faster in this case, though. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED

Re: [PHP] Outputting text ? how to?

2006-03-30 Thread Jasper Bryant-Greene
that text. Like: ?php echo '?xml version=1.0 encoding=ISO-8859-1?' . \n; ? -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP4: calling method on returned object

2006-03-30 Thread Jasper Bryant-Greene
())-GetUrl() .. which doens't work. In short, no. That syntax was introduced in PHP5. For OO work, I would strongly recommend upgrading to PHP5 as there are many other important OO features that simply are not available in PHP4. -- Jasper Bryant-Greene General Manager Album Limited http

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
array. //var_dump is only to see results of above var_dump($tc); this should show something equiv. to: array( 'arr' = array( 'a' = 'A' ) ) what does it actually show? -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
Jochem Maas wrote: Jasper Bryant-Greene wrote: Jochem Maas wrote: I think its a misunderstanding on the one side and a limitation on the other, you can't use overloading directly on items of an overloaded array e.g: echo $tc-arr['a'] this is triggers a call to __get() with the $key

Re: [PHP] Outputting text ? how to?

2006-03-30 Thread Jasper Bryant-Greene
it you'll have to change the lt; at the start to a -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP status code

2006-03-30 Thread Jasper Bryant-Greene
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334

Re: [PHP] HTTP status code

2006-03-30 Thread Jasper Bryant-Greene
as the default 404 handler... Default is something like this: Not Found The requested URL /asdf was not found on this server. Apache Server at foo.org Port 80 On 3/30/06, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: In other words, if you want Firefox

Re: [PHP] Visa / MasterCard security compliance

2006-03-30 Thread Jasper Bryant-Greene
. :) -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database connections

2006-03-30 Thread Jasper Bryant-Greene
Chris wrote: If they're accessing the same database you don't need to disconnect/reconnect. Different db's - well, yeh you don't have a choice. Of course you do. mysql_select_db() or whatever it's called. Or just issue a USE [databasename] query. No need to reconnect! -- Jasper Bryant

Re: [PHP] setting the same value to multiple variables

2006-03-30 Thread Jasper Bryant-Greene
will be fine. PHP evaluates right-to-left and the result of an assignment is the value that was assigned, so that will work. -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM [EMAIL PROTECTED] 021 708 334 -- PHP General Mailing List (http

Re: [PHP] addslashes()

2006-03-29 Thread Jasper Bryant-Greene
From http://php.net/addslashes : Having the PHP directive magic_quotes_sybase set to on will mean ' is instead escaped with another '. Jasper Chris Boget wrote: Can someone explain something to me: script language=php $string = Bob's carwash's door; echo 'addslashes(): ' . addslashes(

Re: [PHP] parent constructor

2006-03-29 Thread Jasper Bryant-Greene
SLaVKa wrote: Hey guys just a general question... if you have a parent::__constructor() call in your constructor function, should that call ideally be placed before or after the code inside the current constructor? or it doesnt really matter That depends on which code you want to run first.

Re: [PHP] private $foo

2006-03-28 Thread Jasper Bryant-Greene
Anthony Ettinger wrote: private $foo; cannot be accessed directly outside the script. print $f-foo; #fails Fatal error: Cannot access private property Foo::$foo in /x/home/username/docs/misc/php/client.php on line 11 Did you define the __get and __set functions in your class as in the

Re: [PHP] mysql query/$post problem

2006-03-27 Thread Jasper Bryant-Greene
PHP Mailer wrote: Mark skrev: [snip] $query = INSERT INTO users AVATARS WHERE id =$user_id '','$avname'); mysql_query($query);s [snip] I am trying to insert the value of $avname into the users table, into the avatar field. I think what you are trying to do is coordinated a bit wrong,

Re: [PHP] $i vs. $r

2006-03-27 Thread Jasper Bryant-Greene
Kevin Murphy wrote: Does anyone have a clue why using this code doesn't work: Please specify what doesn't work means in this case :) $i = 0; while ($row = mysql_fetch_array($result)) { echo (Blah blah blah); $i++; } $r = 0; while ($row =

Re: [PHP] unset a constant

2006-03-27 Thread Jasper Bryant-Greene
There is no way using the core language. You can, however, use the runkit function if you absolutely have to: http://php.net/runkit_constant_remove Jasper Suhas wrote: Hi, How do I unset a defined variable. e.g. define('AA',1); unset(AA) // gives error any suggestions! Thanks SP --

Re: [PHP] security risk by using remote files with include(); ?

2006-03-24 Thread Jasper Bryant-Greene
Merlin wrote: I am wondering if I am opening a potential security risk by including files on remote servers. I am doing an include ('http:/www.server.com/file.html') inside a php script of mine to seperate content from function. Content is produced by a friend of mine and I do not want to

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Jasper Bryant-Greene
Is the file saved in UTF-8 encoding (the PHP script itself)? Jasper Andy wrote: This is my code: ?php $str = öüééééÉooOO; echo $str; echo br; echo utf8_encode ($str); ? öüééééÉõõÕÕ I tried all the ways: meta http-equiv=content-type

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Jasper Bryant-Greene
If you're on *nix: man iconv otherwise, I have no idea, sorry. Jasper Andy wrote: No it was not. If I save it with UFT8 encoding it works well. So, do I have to convert all the files to UTF8 encoding? Is there an easy way to do that? - Original Message - From: Jasper Bryant-Greene

[PHP] Execute a program from PHP CLI and allow user interaction

2005-11-22 Thread Jasper Bryant-Greene
(top shows nano is running, but it doesn't seem to be attached to the terminal). How can I launch a process and attach it to the terminal PHP CLI was launched from so that the user can interact with it? TIA -- Jasper Bryant-Greene General Manager Album Limited +64 21 708 334 [EMAIL PROTECTED

Re: AW: [PHP] how can I CALL a PHP script from different TEXT LINKS with differentPARAMETERS?

2005-11-19 Thread Jasper Bryant-Greene
. GET represents nothing of importance changing on the server, e.g. performing a search on the database, and can safely be repeated. SSL/TLS is the best option if you wish to transmit sensitive data. -- Jasper Bryant-Greene General Manager Album Limited +64 21 708 334 [EMAIL PROTECTED] -- PHP

Re: [PHP] Re: Variables in Variables?

2005-11-18 Thread Jasper Bryant-Greene
Ben wrote: If I understand your question properly I'd explode $two_vars with whatever seperator you have between them and then you'll need to use eval to get your results. Maybe something like... $dbVars=explode(',',$two_vars); // Assuming comma seperator foreach($dbVars AS $key = $value) {

Re: [PHP] Re: Variables in Variables?

2005-11-18 Thread Jasper Bryant-Greene
Jasper Bryant-Greene wrote: Ben wrote: $dbVars=explode(',',$two_vars); // Assuming comma seperator foreach($dbVars AS $key = $value) { $eval=\$temp=.$value.;; eval($eval); echo $temp; } WTF do you need eval() for?! $dbVars = explode( ',', $two_vars ); foreach( $dbVars as $value

Re: [PHP] Re: [PHP-DB] Drag and Drop with PHP and MySQL

2005-11-18 Thread Jasper Bryant-Greene
Joe Harman wrote: Hi Chris, I would think that there has to be something out there like a Javascript that would accomplish that... that would be my first guess anyhow... there possibly could be something done in flash that would act as a drop area for the file... let us know what you find Joe

Re: [PHP] shell command

2005-11-18 Thread Jasper Bryant-Greene
for your machine, though. cd /; find -name head.jpg -- Jasper Bryant-Greene General Manager Album Limited +64 21 708 334 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php error message

2005-11-17 Thread Jasper Bryant-Greene
Chuck Anderson wrote: Ben wrote: Edward Martin said the following on 11/17/2005 04:27 PM: Warning: Cannot modify header information - headers already sent by (output started at /usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in /usr/home/ecmartin/public_html/ethics06/sas.php on

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Jasper Bryant-Greene
Jay Blanchard wrote: [snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Jasper Bryant-Greene
Brad Glonka wrote: The script does not give me any output. I think this is what I need to enable. No, as has already been said on the list. That virtual directory setting has nothing to do with this AFAIK. Are you running PHP as an Apache module or as CGI? Jasper -- PHP General Mailing

Re: [PHP] random row

2005-11-15 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: My question is simnple. I want to randomly select a row in a mysql table. I have a primary id. ?php $server = localhost; $user = foo; $pass = foo; $db=foo_db; $table=foo_table; $myconnection = mysql_connect($server,$user,$pass); mysql_select_db($db,$myconnection);

Re: [PHP] [EMAIL PROTECTED]

2005-11-14 Thread Jasper Bryant-Greene
Miles Thompson wrote: Can someone get rid of him? Every time I post, which I admit is not often, I get a bounce. Yeah, same. I think there was some discussion recently regarding it but I don't know what happened. I even tried to go to www.xasamail.com and register an account ale0952 just

Re: [PHP] Re: emailing MySQL list not working

2005-11-14 Thread Jasper Bryant-Greene
Bruce Gilbert wrote: Sorry for the newbie question... I did a search on php.net but didn't find my answer. what does \r\n do as opposed to just \n? and yes, I know what \n does. Different platforms have different line-break conventions. \n is a line feed, while \r is a carriage return

Re: [PHP] Printing to a buffer

2005-11-13 Thread Jasper Bryant-Greene
Todd Cary wrote: Marcus - Many thanks! I did not know that MIME-Type. Change duly made! You're not suggesting that you actually set the MIME-Type to application/force-download, are you? Todd Marcus Bointon wrote: On 13 Nov 2005, at 00:17, Jasper Bryant-Greene wrote: seem to do

Re: [PHP] please shed some light on SQLsyntax error

2005-11-13 Thread Jasper Bryant-Greene
Bruce Gilbert wrote: I am trying to set up a contact list database using guidance from a PHP/MySQL book I recenty purchased, and not aving done this before I am not sure what the following error means or where I shoudl look for this kind of error. I have a table set up in MySQL using PHPMyadmin,

[PHP] Re: please shed some light on SQLsyntax error

2005-11-13 Thread Jasper Bryant-Greene
Bruce Gilbert wrote: You would need to show us the SQL that was causing that error. Otherwise it is fairly meaningless. hope this helps... ? //check for required form variables if ((!$_POST[f_name]) || (!$_POST[l_name])) { Unrelated, but you should have quotes here. Like $_POST['f_name']

[PHP] Re: please shed some light on SQLsyntax error

2005-11-13 Thread Jasper Bryant-Greene
the backticks in the SQL statement, like this: $sql = INSERT INTO `$table_name` values ('', '$_POST[f_name]', [...] Jasper On 11/13/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: Bruce Gilbert wrote: You would need to show us the SQL that was causing that error. Otherwise it is fairly

Re: [PHP] Re: emailing MySQL list not working

2005-11-12 Thread Jasper Bryant-Greene
Bruce Gilbert wrote: I don't suppose you meant like this : $headers = From: $sender;(\r\n). or is it without the ( )? I think you should read up on some basic PHP syntax (the manual is your friend. He meant like this: $headers = From: $sender\r\n; $headers .= Reply-To:

Re: [PHP] Printing to a buffer

2005-11-12 Thread Jasper Bryant-Greene
Todd Cary wrote: My client's new shared server does not allow printing to a file, so I want my print statement to print to a buffer, then I'll send it to the user via Headers. This does not work since print does no go to the buffer, or at least appears not to: I get the errors from the header

Re: [PHP] Printing to a buffer

2005-11-12 Thread Jasper Bryant-Greene
Todd Cary wrote: Yup! It was the missing parentheses! Works as planned. Many thanks The application/text gives the user the ability; text/plain does not The ability to...? seem to do that. I just tried application/text since I use application/pdf for other applications. Whatever

Re: [PHP] fopen on windows

2005-11-11 Thread Jasper Bryant-Greene
Jay Blanchard wrote: $theFile = fopen(docs/InstallationInstructionMaster.txt, r) || die; I'm not sure if it would make any difference, but I usually use or in this case rather than ||, and I know they have different operator precedence. while(!feof($theFile)){ $theLine =

Re: [PHP] fopen on windows

2005-11-11 Thread Jasper Bryant-Greene
Jay Blanchard wrote: [snip] Well, it's a pretty model example of a line-by-line file read. I can't see anything wrong with it, so perhaps the problem lies elsewhere. There's no other files with the same name in your include_path? Maybe something to do with auto_detect_line_endings or

Re: [PHP] Filtering and Escaping (Was: Select and $_POST)

2005-11-11 Thread Jasper Bryant-Greene
). I always try to enter my email address like this when asked for it on a form: Jasper Bryant-Greene [EMAIL PROTECTED] That is a perfectly valid (according to RFC822) email address. Those that do bother to validate usually spit it out as invalid. Just to demonstrate that it's

Re: [PHP] What is the purpose of sessions extension?

2005-11-11 Thread Jasper Bryant-Greene
GamblerZG wrote: What is the purpose of sessions extension? The reason I ask is because learning to deal with all its functions, ini options and quirks took me _much_ more time than writing pure-php replacement. (That is, without using session_set_save_handler().) I realise that yours might

Re: [PHP] undefined index and php

2005-11-10 Thread Jasper Bryant-Greene
Ross wrote: because the following line give the notice 'undefined index' BEFORE the submit button has been pressed.. ? $heading_insert= stripslashes($_POST['heading']);? That's because before the submit button has been pressed, $_POST is empty and so 'heading' is indeed an undefined

Re: [PHP] Gotta learn asp.net...

2005-11-10 Thread Jasper Bryant-Greene
Larry E. Ullman wrote: Also, in my opinion, having a good knowledge of how to create a dynamic Web site helps when going from PHP to ASP.NET. If you know what the program must do in terms of functionality, protocol, etc., then it's mostly a matter of picking up the right syntax. I found

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread Jasper Bryant-Greene
GamblerZG wrote: Richard Lynch wrote: Please pay attention. Sorry, I did not see your message when I posted that. Oh and would you mind using an email address that exists? Every time I reply to one of your posts, I get a returned mail from highstream.net saying your user doesn't

Re: [PHP] Inserting a NULL value into MySQL via PHP

2005-11-10 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: Is there a way when making a MySQL database entry through a PHP script and there is no data to make the db treat it as NULL? Wouldn't this just work: INSERT INTO myTable (myField) VALUES (NULL) Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Use of auto_prepend_file inside an Apache directory container

2005-11-08 Thread Jasper Bryant-Greene
of this, I would *greatly* appreciate it. Would you mind telling us what the problem is? You've said that you are having problems and that you don't think you're alone, but you haven't mentioned what the actual problem is. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w

Re: [PHP] Use of auto_prepend_file inside an Apache directory container

2005-11-08 Thread Jasper Bryant-Greene
correctly in your main Apache config file; try setting it to All for debugging this. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New

Re: [PHP] FileExists?

2005-11-07 Thread Jasper Bryant-Greene
to check if the file exists. Try: if( file_exists( http://www.stammis.com/getstart.php; ) ) -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch

Re: [PHP] Line breaks in mail function?

2005-11-06 Thread Jasper Bryant-Greene
double quotes around the parts that have \r and \n characters if you want them to be interpreted. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch

Re: [PHP] Classes and Functions and If's (Problems Again)

2005-11-03 Thread Jasper Bryant-Greene
replaced the $DB object with a string. Maybe you meant to set a property on the $DB object? I think you may need to do some reading on OOP, perhaps start at http://php.net/oop for PHP4 or http://php.net/oop5 for PHP5. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http

RE: [PHP] PHP from the command line

2005-11-03 Thread Jasper Bryant-Greene
/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List

Re: [PHP] Classes and Functions

2005-11-02 Thread Jasper Bryant-Greene
of the function. Like this: function doSomething() { global $DB; $DB-doSomethingElse(); } Or access $DB through the globals superglobal. RTFM. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p: 0800 4 ALBUM

Re: [PHP] Classes and Functions

2005-11-02 Thread Jasper Bryant-Greene
On Wed, 2005-11-02 at 19:05 -0500, Unknown Unknown wrote: Oh thanks again and what does RTFM mean? Read The [insert your favourite word beginning with F here] Manual. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p

Re: [PHP] Re: Reset STDIN pointer

2005-11-02 Thread Jasper Bryant-Greene
STDIN pointer? there is no such thing by the name of STDIN in php. Yes there is, when running in CLI mode. See: http://php.net/features.commandline#AEN7906 -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p: 0800 4 ALBUM

Re: [PHP] eval();

2005-10-30 Thread Jasper Bryant-Greene
; font-weight: bold;About the Project/div ?php echo hello world; ? What's wrong? eval() is the correct thing to do, I thought? eval() expects PHP code, not HTML with embedded PHP code. Try this (untested): eval( ? $contents ?php ); -- Jasper Bryant-Greene General Manager Album Limited e

Re: [PHP] eval();

2005-10-30 Thread Jasper Bryant-Greene
does exist, but with your example it's fairly obvious, so you'd need to explain better what you're trying to do before I could help you. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p: 0800 4 ALBUM (0800 425 286) or +64

Re: [PHP] regex and global vars problem

2005-10-27 Thread Jasper Bryant-Greene
:) -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] PHP5 class constants

2005-10-27 Thread Jasper Bryant-Greene
file it, or is it, and why, normal? Not a bug. Read manual. From http://php.net/oop5.constants comes the following: The value must be a constant expression, not (for example) a variable, a class member, result of a mathematical operation or a function call. -- Jasper Bryant-Greene General

Re: [PHP] regex and global vars problem

2005-10-26 Thread Jasper Bryant-Greene
was? -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regex and global vars problem

2005-10-26 Thread Jasper Bryant-Greene
it mark invalid strings as valid? - Or vice versa? Just posting a pile of code with an explanation of what it does and leaving the rest of us to figure out what the problem is, is not helping us to help you. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http

Re: [PHP] regex and global vars problem

2005-10-26 Thread Jasper Bryant-Greene
: $mac_final; return $mac_final; } ? -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net

Re: [PHP] GUID or any other unique IDs

2005-10-25 Thread Jasper Bryant-Greene
there. I really need true unique identifiers - md5() hash is not OK because of the birthday paradox. Can anyone recommend a way for solving this trouble? I use: $unique_id = sha1( uniqid( mt_rand(), true ) ); which should be very unique and suitable for most purposes. -- Jasper Bryant-Greene

RE: [PHP] GUID or any other unique IDs

2005-10-25 Thread Jasper Bryant-Greene
should be *very* improbable, even when generating IDs on multiple hosts all at the same time. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand

Re: [PHP] how to display GD graphic in web page

2005-10-24 Thread Jasper Bryant-Greene
. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Abstract Classes?

2005-10-23 Thread Jasper Bryant-Greene
, that is a 301 Moved Permanently or a 304 Not Modified. Does that help? -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing

Re: [PHP] A better way to do this

2005-10-23 Thread Jasper Bryant-Greene
=' . htmlspecialchars( $value ) . '' ); if( $_POST['table_name'] == $value ) { print( ' selected' ); } print( '' . htmlspecialchars( $option ) . '/option' ); } print( '/select' ); ? If you're using XHTML, replace ' selected' with ' selected=selected' -- Jasper Bryant

Re: [PHP] connect to MySql

2005-10-23 Thread Jasper Bryant-Greene
-- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Jasper Bryant-Greene
editing the wrong php.ini. Also, make sure you're not overriding those values in a .htaccess file or in a script. What kind of errors are happening that aren't being displayed? For example in an output buffering handler, an error could just cause your script to output nothing. -- Jasper Bryant

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Jasper Bryant-Greene
absolutely nothing in the response-body. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net

Re: [PHP] error reporting php-5.0.4-10.4 on FC4

2005-10-23 Thread Jasper Bryant-Greene
, and check the permissions on /etc/php.ini, just in case. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http

Re: [PHP] Memory Leak?

2005-10-22 Thread Jasper Bryant-Greene
result in lower memory usage and faster operation. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net

Re: [PHP] Declaring vars as INT ?

2005-10-21 Thread Jasper Bryant-Greene
it as a number, then use float and get all the precision errors that come with floating-point, or use binary coded decimal or another arbitrary precision system. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21

Re: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Jasper Bryant-Greene
is using a different php.ini from the one you thought it was using, f.x. if there has been an earler PHP install and someone's put php.ini in c:\windows\system32 or something. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM

RE: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Jasper Bryant-Greene
the following folder until you find the one in which it works: c:\php c:\windows c:\windows\system32 c:\ Horrible, isn't it? -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch

RE: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Jasper Bryant-Greene
...) -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] SCRIPT_NAME

2005-10-21 Thread Jasper Bryant-Greene
but the OP wanted: foo.php It will actually work... Did you not notice that he was using strrpos() ? Note the extra 'r' in there :) http://php.net/strrpos -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286

Re: [PHP] rtrim Null characters

2005-10-21 Thread Jasper Bryant-Greene
. To be honest, I think you're going about it the wrong way. Put the secret word into $_SESSION. Point the img tag at a PHP script which pulls it out of $_SESSION and renders it as an image. Then you don't need to send it to the client in any form. -- Jasper Bryant-Greene General Manager Album Limited e

Re: [PHP] Putting Form Variables / URL Parameters in to an associative array?

2005-10-20 Thread Jasper Bryant-Greene
-- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Executing process in background

2005-10-20 Thread Jasper Bryant-Greene
all the processes in the list. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] SCRIPT_NAME

2005-10-20 Thread Jasper Bryant-Greene
://php.net/parse_url for URLs -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] win32service extension source code

2005-10-19 Thread Jasper Bryant-Greene
Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 a: PO Box 579, Christchurch 8015, New Zealand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: No redirect with header()

2005-10-19 Thread Jasper Bryant-Greene
am certain, however, that it is not returning anything to the browser. The ?php is at the top of the page, no echo, ... So just blank out the tracking code. I'm not sure how you expect us to help you if we can't see the code that isn't working :) -- Jasper Bryant-Greene General Manager Album

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Jasper Bryant-Greene
Richard Lynch wrote: On Sat, October 15, 2005 7:26 am, Edward Vermillion wrote: Do they want the PDF to display in the page, or is a link to a PDF ok for them? I've already warned them that a PDF embedded into a page is impossible. That may not be true, technically, for all I know,

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-15 Thread Jasper Bryant-Greene
be represented in the UTF-8 character set, so there's no need to convert them to entities at any stage. -- Jasper Bryant-Greene General Manager Album Limited a: Freepost Album, PO Box 579, Christchurch 8015, New Zealand p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303 e: [EMAIL PROTECTED] w: http

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-14 Thread Jasper Bryant-Greene
jonathan wrote: the real characters (presumably è) won't render correctly. Are you outputting the correct character set information (UTF-8), and are you sure that UTF-8 is being used throughout the entire process? -- Jasper Bryant-Greene General Manager Album Limited a: Freepost Album, PO

Re: [PHP] Problem with Javascript:...submit()

2005-10-13 Thread Jasper Bryant-Greene
that as the identifier, or simply remove all spaces... -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help me in creating tables on the fly

2005-10-12 Thread Jasper Bryant-Greene
. Please don't just copy-paste the above table definitions, they're meant to be modified to suit your needs. I'll leave your other question to be answered by someone with experience of streaming audio from PHP, as I've never had occasion to do that. -- Jasper Bryant-Greene Freelance web developer

Re: [PHP] Trouble moving directory

2005-10-12 Thread Jasper Bryant-Greene
Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] object as function argument

2005-10-11 Thread Jasper Bryant-Greene
that argument by reference ($foo) unless you want to pass a copy of the object. It would have taken you less time to write a test script and see for yourself than to search the docs and then post to the list... -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name

Re: [PHP] getting php to generate a 503

2005-10-10 Thread Jasper Bryant-Greene
the content (i.e. Page execution failed) that you sent to it. The 503 status is a signal to the browser, and I don't believe either Firefox or IE pass that signal on. -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/ -- PHP General Mailing List (http://www.php.net

  1   2   3   4   >