Re: [PHP] how to count objects instances

2004-08-24 Thread Daniel Schierbeck
)."\n"; Add this to the class as well: public function __clone () { self::$instances++; // You might as well use the "self" operator } -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-24 Thread Daniel Schierbeck
:0:{} Connection: close Transfer-Encoding: chunked Content-Type: text/html a:1:{s:3:"foo";s:3:"bar";} Anyone know why my header() output behaves so funky? Thanks, Eric Try to use unserialize(); -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to count objects instances

2004-08-24 Thread Daniel Schierbeck
st in case you change the class' name. -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] system command

2004-08-24 Thread Daniel Schierbeck
Ron Clark wrote: Daniel Schierbeck wrote: Ron Clark wrote: Capture the output in the $output variable then ob_clean to empty the output buffer before printing the the desired message. ob_get_clean() is preferable: $output = ob_get_clean(); // Gets the buffered output and cleans the buffer

[PHP] Regular expression help

2004-08-24 Thread Daniel Lahey
I'm trying to figure out how to formulate a regular expression that will get me everything following a pound sign (#) up to the first space or { character. (I'm trying to parse the ids out of a style sheet.) Can anyone point me in the right direction? I've been searching on the web for hours

[PHP] change for exec function and safe_mode between win32 command line interface php 4.3.4 -> php 4.3.7 ?

2004-08-25 Thread Daniel Gaddis
s? Thanks, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exploding

2004-08-26 Thread Daniel Schierbeck
is a number same way goes for accessing them In PHP5, the square brackets have been replaced with the curly ones (the square brackets still works, but it's deprecated) $string = "12345"; echo $string{2}; // 3 -- Daniel Schierbeck -- PHP General Mailing List (htt

[PHP] Object Overloading in PHP5

2004-08-28 Thread Daniel Schierbeck
property access in ... on line 24 Where line 24 is: $obj->a->b= "Foobar"; ? -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object Overloading in PHP5

2004-08-28 Thread Daniel Schierbeck
sible as $obj->not_existing_attr()[0] regards Daniel Schierbeck wrote: Do you guys have any idea why this code: class Foo { private $elem = array(); public function __get ($prop) { if (isset($this->elem[$prop])) { return $th

Re: [PHP] Object Overloading in PHP5

2004-08-29 Thread Daniel Schierbeck
Frzzman wrote: Daniel Schierbeck wrote: Stefan wrote: It's a bug. * Siehe http://bugs.php.net/bug.php?id=28444 ... und ... * http://news.php.net/php.bugs/63652 A workaround is possible using __call( $name, $args) { return( $this->__get( $name)); }. But it sucks, since co

Re: [PHP] Storing image in database

2004-08-30 Thread Daniel Schierbeck
r prior to a header. Either send the header before you send the HTML or use output buffering, eg.: ... include '...'; // Blabla ?> -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Daniel Schierbeck
?> I expected something like this: yes no no yes But got this: no no no yes It looks like isset() can't handle object properties correctly. I'll post the bug on php.net. -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Daniel Schierbeck
es But got this: no no no yes It looks like isset() can't handle object properties correctly. I'll post the bug on php.net. -- Daniel Schierbeck Next time, please read my post carefully. $a is not NULL, it is 1. Therefore, isset($a) should return TRUE, which it does normally, just

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Daniel Schierbeck
} $o = new OO(); echo isset($o->a) ? "yes\n" : "no\n"; echo isset($o->b) ? "yes\n" : "no\n"; echo is_null($o->a) ? "yes\n" : "no\n"; echo is_null($o->b) ? "yes\n" : "no\n"; ?> I ex

[PHP] Re: Handling XML output in a slim way

2004-09-01 Thread Daniel Schierbeck
27; on php.net to see the full documentation. But it only works in PHP5 ;) -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Statistics

2004-09-02 Thread Daniel Schierbeck
tart) ORDER BY MONTH(visit_start)"; break; // More cases default: return FALSE; } return $db->query("SELECT COUNT(DISTINCT ip) AS visitors, COUNT(*) AS visits, SUM(hits) AS hits FROM `statistics` WHERE " . $sql)->fetchArray(); } } ?> Is there

Re: [PHP] Statistics

2004-09-02 Thread Daniel Schierbeck
John Holmes wrote: From: "Daniel Schierbeck" <[EMAIL PROTECTED]> Is there a simpler way of approaching this? Use an already written program that parses your web logs and already gives you this information? ---John Holmes... I feel like doing it myself :) -- Daniel Schierbec

[PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Daniel Kullik
Hello Frédéric. This is neither a bug nor a paradox. The code you've posted just contains some nonsense. $foo['bar'] = 'bar'; cannot work since $foo is an object and not an array. And even $foo->bar = 'bar'; cannot work because there is no property $bar. Frédéric hardy wrote: Hello - I think t

Re: [PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Daniel Kullik
l about __set() and __get(). And read http://www.php.net/~helly/php/ext/spl/index.html about arrayAccess. Php 5 allow you to "overloading" property dynamicaly with __set() and __get(). And you can access an object like an array with arrayAccess interface. There is no nonsense in my cod

Re: [PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Daniel Schierbeck
() is to check whether or not a variable exists! So far there has been two suggestions as to what can be done: 1. Change isset so that it automatically detects overloaded properties 2. Let the user define a custom __isSet() method, similar to the one above, that is called each tim

Re: [PHP] PHP IDE for OS X

2004-09-04 Thread Daniel Schierbeck
e absolutely no idea what that is... What happened to the good old clean install.exe files?! Should i install that wampp thing? (i hope it's not some twisted virus :x) -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-05 Thread Daniel Schierbeck
Encoding: binary'); readfile('songs/' . $file . 'mp3'); exit(); ?> Also, if I wanted them to listen to streamed music does PHP have any specialized functions I could use to achieve that? You should take a look at the Ming library and the mp3 stre

[PHP] Re: tool to increase your web site’s profitability

2004-09-05 Thread Daniel Schierbeck
27;t hesitate! This limited-time opportunity to discover his secrets will only be available for a few more days! Sincerely, theeb basheer Mooo! -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: ERROR IN THIS CODE

2004-09-05 Thread Daniel Schierbeck
- http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Daniel Schierbeck
[EMAIL PROTECTED] wrote: Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as secure as possible. I'm going to place the files outside the web directory and use authentication to approve that the user can download some particular song. I didn't know you could d

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Daniel Schierbeck
[EMAIL PROTECTED] wrote: Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as secure as possible. I'm going to place the files outside the web directory and use authentication to approve that the user can download some particular song. I didn't know you could d

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Daniel Schierbeck
Daniel Schierbeck wrote: [EMAIL PROTECTED] wrote: Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as secure as possible. I'm going to place the files outside the web directory and use authentication to approve that the user can download some particular song. I d

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Daniel Schierbeck
John Nichel wrote: Daniel Schierbeck wrote: Hey Daniel, do me a favor if you would, and add a year to the date on your computer. Thanks. Oooops... Sorry, i have a crappy, ehh, "legal" *cough* version of Adobe Photoshop, it won't work unless i put the time on my PC back a year,

[PHP] Multi-User Text-Editing

2004-09-06 Thread Daniel Schierbeck
7;s easier to use XML or something else, that'll be fine with me (as long as it's generally available). Thank you in advance guys :) -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread Daniel Schierbeck
/contact.html Thanks, I'll look into it. Also the CVS-in-PHP thing. -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread Daniel Schierbeck
utomatic expiration function, but still, wouldn't it be a drag for the server? -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multi-User Text-Editing

2004-09-07 Thread Daniel Schierbeck
uot; Changed to "It was red" from "It had some Foo" Changed to "It had some Foo" from "Underneath its Foobar" Added "Underneath its Foobar" Where the second, third and fourth line is wrong - i added a line between "There was a Bar" and "It had some Foo"... How should i do this? -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: foreach()

2004-09-08 Thread Daniel Kullik
each() won't be able to loop through it. Add the line print_r($_POST) to your code in order to see what actually happens if you hit the submit-button of your form. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] JDBC Driver for MySQL

2004-09-12 Thread Daniel Schierbeck
ysql.com, but i couldn't find anything (i might just be stupid ;)). Hope some of you know :) PS. And thanks to the guy that recommended Eclipse in this list - it rocks! Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] JDBC Driver for MySQL

2004-09-12 Thread Daniel Schierbeck
Manoj Nahar wrote: see this link http://dev.mysql.com/downloads/connector/j/3.0.html official mysql jdbc driver. PS. Give google a chance. On Sun, 12 Sep 2004 15:52:12 +0200, Daniel Schierbeck <[EMAIL PROTECTED]> wrote: I'm sorry if this is off-topic, but i figured this was the best p

[PHP] Re: iguanahost - anyone else being plagued?

2004-09-16 Thread Daniel Schierbeck
Nick Wilson wrote: Anyone else getting these infuriating italian messages about some muppet that doesnt exist? 'desintione non existente'? I've written to [EMAIL PROTECTED] but no joy, everytime i post on the php list i get half a dozen of the damn things... Yup, guess some Italian 1337 h4x0r has s

[PHP] Highest Key in an Array

2004-09-17 Thread Daniel Schierbeck
I've been looking at php.net, but i couldn't find what i'm searching for. I have a numeric array, and i'd like to get the highest key. E.g. $arr = array(3 => "foo", 7 => "bar", 43 => "foobar"); What i want is a function that,

Re: [PHP] Highest Key in an Array

2004-09-17 Thread Daniel Schierbeck
Trevor Gryffyn wrote: Or... $highestkey = max(array_keys($arr)); -Original Message- From: Martin Holm [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 11:11 AM To: Daniel Schierbeck Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Highest Key in an Array Daniel Schierbeck wrote: I&#x

Re: [PHP] Highest Key in an Array

2004-09-17 Thread Daniel Schierbeck
I'm using it for the Wiki (thanks for that as well guys): http://aoide.1go.dk/lab/compare.php5 Source: http://aoide.1go.dk/lab/compare.source.php5 (it's just a test) Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] reading from files

2004-09-17 Thread Daniel Purdy
[snip] I am wondering how to read lines from a file to a php array? I would like to integrate a logfile into a html site. Is it possible to read line by line and to check how many lines there are in total? Thank you for any hint on that, [/snip] http://www.php.net/fgets is a good starting poin

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Daniel Schierbeck
Sam Hobbs wrote: "Steve Brown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Sam, if you wouldn't mind answering a question: are you still unable to connect to your mysql server? I am able to connect now. I'm sorry that you feel its a time-consuming process. I'm sorry that you ar

[PHP] Browser caching problem.

2004-09-18 Thread Daniel Guerrier
I'm using this code to dynamically retrieve windows media files and send it to the browser. I thought the cache header would prevent the file from being cached. The only problems is the .wmv file still ends up in my IE temp files folder. How can I prevent this from happening?

Re: [PHP] Browser caching problem.

2004-09-18 Thread Daniel Guerrier
Sunday 19 September 2004 07:12, Daniel Guerrier > wrote: > > I'm using this code to dynamically retrieve > windows > > media files and send it to the browser. I thought > the > > cache header would prevent the file from being > cached. > > > > The onl

[PHP] Media file browser cache question --- second try

2004-09-19 Thread Daniel Guerrier
I'm using this code to dynamically retrieve windows media files and send it to the browser. I thought the cache header would prevent the file from being cached. The only problems is the .wmv file still ends up in my IE temp files folder. How can I prevent this from happening? --

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Daniel Guerrier
And how would I do 1. Configure webserver to send the right headers for .wmv files. --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Daniel Guerrier wrote: > > I'm using this code to dynamically retrieve > windows > > media files and send it to the browser. I t

Re: [PHP] External Files (take 2)

2004-09-20 Thread Daniel Kushner
Hi Gary, Look up http://php.net/include It's just like "copy and pasting" the code in the external file in the one your including it into. Best, Daniel Kushner __ Director of Education Zend Technologies Ltd. [EMAIL PROTECTED] http

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Daniel Kullik
single quotes without other manipulation it will probably not work as expected. Can we see the whole query? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hiya. Hmm... should't the query look like this: INSERT INTO table (col1, col2, ...) VALUES ("val1", "val2", ...); SET is used for UPDATE-queries. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Daniel Kullik
Daniel Kullik wrote: [EMAIL PROTECTED] wrote: here is the whole query: $query = "INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix', firstname='$firstname', lastname='$lastname', job_title='$jobtitle', company_name='$company&#

RE: [PHP] ASP guts needs help.

2004-09-22 Thread Daniel Purdy
[snip] On Wed, 22 Sep 2004 00:09:01 -0600, LW Ellis <[EMAIL PROTECTED]> wrote: > I'm new to php, but am familar with ASP. > I have this code to open and read a text file. > What I need is to take out the 'while' and present the data one line > at a time. I read up on fgetcsv, but we will be usin

[PHP] Re: interesting behavior of ob_end_flush() in __destruct()

2004-09-25 Thread Daniel Schierbeck
Arzed wrote: it seems that php first ends output buffering and then calls then destrcuts the objects. so the output buffering is still ended when the destructor is calles. one has to unset the object to reverse that order manually. I've encountered the same "problem". It would be nice if there w

[PHP] Re: New PHP tutorial - suggestions welcome

2004-09-25 Thread Daniel Schierbeck
dzilla.org/php and my email address is [EMAIL PROTECTED] Looks nice :l One thing: replace "weakly typed" with "loosely typed" in http://www.hudzilla.org/php/3_1_0.php (after the first red box) Good job, Scotty! Daniel -- PHP General Mailing List (http://www.php.net

[PHP] Re: problem with file upload script

2004-09-27 Thread Daniel Watrous
Someone sent you a link earlier to a php page explaining how to upload files. I think that you will find as you read that page that you are missing SOME HTML in the way you build your form. If in doubt, try to copy and paste from that page exactly to see if it works! DW

Re: [PHP] Images in PHP and MySQL

2004-09-27 Thread Daniel Watrous
arily for performance reasons. - Original Message - From: "GH" <[EMAIL PROTECTED]> To: "Daniel Watrous" <[EMAIL PROTECTED]> Cc: "GH" <[EMAIL PROTECTED]> Sent: Monday, September 27, 2004 4:31 PM Subject: Re: [PHP] Images in PHP and MySQL Do

[PHP] classes in php5

2004-09-28 Thread Daniel Watrous
I not get back an instance of my Foo class, but the script execution stops entirely without so much as a warning. Is this a bug? Is there a new mechanism in PHP5, such as a getInstance function (i.e. object getInstance (string className))? Thanks in advance for any comments! Daniel

Re: [PHP] classes in php5

2004-09-29 Thread Daniel Watrous
Thank you all for your responses. It was indeed an error elsewhere in my code. Daniel Watrous - Original Message - From: "Matthew Fonda" <[EMAIL PROTECTED]> To: "Curt Zirzow" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, Septem

[PHP] Re: Searching My Database

2004-09-29 Thread Daniel Kullik
Hello Michael! Try this script if you want (just a quick-and-dirty hack): [code] $value) { if ('' == $value) { continue; } $where .= $field.' LIKE "'.$value.'" AND '; } if ('' != $where) { $where = substr($where,

Re: [PHP] Zend PHP Certification test

2004-09-29 Thread Daniel Kushner
I have heard numerous times and hope it will increase the quality of PHP development in the market. Best, Daniel Kushner __ Director of Education Zend Technologies Ltd. [EMAIL PROTECTED] http://www.zend.com

Re: [PHP] World time convertor

2004-09-30 Thread Daniel Spain
hour/date in all world countries. > -- Fare thee well, Daniel "TheHeadSage" Spain *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ E-mail: [EMAIL PROTECTED] Mob: +61 0407 057 580 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] World time convertor

2004-09-30 Thread Daniel Spain
ut i have some diffilcuties. > > For example, in USA I have different time. > > > > - Original Message - > From: "Daniel Spain" <[EMAIL PROTECTED]> > To: "PHP General" <[EMAIL PROTECTED]> > Sent: Thursday, September 30, 2004 2:08

Re: [PHP] Suggestion for "IN()"

2004-10-01 Thread Daniel Schierbeck
27;, 'foobar', 'baz')) //... FALSE if (between(15, 10, 20)) //... TRUE I'm not sure if you want >= and <= instead in between(), but you can just change it yourself. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Suggestion for "IN()"

2004-10-01 Thread Daniel Schierbeck
Christophe Chisogne wrote: Daniel Schierbeck wrote: return ($var > $min && $var < $max) ? TRUE : FALSE; > (...) > return in_array($needle, $haystack) ? TRUE : FALSE; You can return booleans without comparing them to true/false: return $var > $min && $

Re: [PHP] Naming conventions

2004-10-02 Thread Daniel Schierbeck
"Jensen, Kimberlee" <[EMAIL PROTECTED]> wrote: What do you use for your naming conventions for variables functions classes I'm trying to tell my students what the standard is currently. Are people using camel case or underscores or both? I use this: $a_variable ClassName a_function() aMethod() -- P

[PHP] Re: set multiple variables

2004-10-03 Thread Daniel Schierbeck
Argesson wrote: try this: if ($REMOTE_ADDR == "212.3.54.65" && $REMOTE_ADDR == "212.3.54.66") Joe Szilagyi wrote: Hi, I have this working: if ($REMOTE_ADDR == "212.3.54.65") { header("Location: http://www.google.com/search?&q=huzzah";); Redirect browser exit; } But I want t

Re: [PHP] Re: set multiple variables

2004-10-03 Thread Daniel Schierbeck
Matthew Fonda wrote: On Sun, 2004-10-03 at 04:39, Graham Cossey wrote: isn't the || same as && ? Or I missed something? No, || is OR, and && is AND Check out http://www.php.net/manual/en/language.operators.logical.php Wll - sort of. The precedence level can be tricky, sometimes "||" doesn

[PHP] Re: output a PDF, over header(). causes corruption on the file?

2004-10-04 Thread Daniel Schierbeck
Louie Miranda wrote: Im trying to output a pdf over a browser so i can hide the url link to it. but this one causes corruption. Try this.. http://dev.axishift.com/php/getpdf.php i got this part.. "Note: There is a bug in Microsoft Internet Explorer 4.01 that prevents this from working. There is no

Re: [PHP] shiflett-clock.gif

2004-10-05 Thread Daniel Purdy
[snip] > Did anyone ever solve the shiflett-clock.gif puzzle? What's the puzzle? [/snip] Go to http://shiflett.org and scroll down to "the race begins". The puzzle is the clock. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Gener

Re: [PHP] Referencing a "constant" class variable

2004-10-06 Thread Daniel Schierbeck
you can make the property static (at least in PHP5): class MyClass { public static $myClassVar = "Bob"; } echo MyClass::$myClassVar; // Bob -- Daniel Schierbeck Help spread Firefox (www.getfirefox.com): http://www.spreadfirefox.com/?q=user/register&r=6584 -- PHP General Mai

[PHP] move_uploaded_file() problem

2004-10-08 Thread Daniel Lahey
I'm seeing a very strange problem with move_uploaded_file(...). I'm uploading jpegs and the transfer appears to go a little too quickly, and when I look at the directory listing, the files are about twice the size that they should be. When we view the file in the browser, the images are either ma

Re: [PHP] Zend PHP Certification test

2004-10-17 Thread Daniel Kushner
Hi Rory, The passing score is not revealed. There is only a pass/fail on the test. Best, Daniel Kushner On Sun, 17 Oct 2004 19:08:32 +0100, Rory Browne <[EMAIL PROTECTED]> wrote: > I've been looking all over the Zend Cert site, trying to find the > passing rate, ie how many

[PHP] Re: Mac OS X and Editor

2004-10-20 Thread Daniel Schierbeck
(hey, I'm poor), but the Eclipse IDE is cross-platform (so are the plugins as far is I know.) -- Daniel Schierbeck Help spread Firefox (www.getfirefox.com): http://www.spreadfirefox.com/?q=user/register&r=6584 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Mac OS X and Editor

2004-10-20 Thread Daniel Schierbeck
tudio's (that's just plain ugly and confusing) - plus, it's free! And open-source! Yay! -- Daniel Schierbeck Help spread Firefox (www.getfirefox.com): http://www.spreadfirefox.com/?q=user/register&r=6584 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Simple Time Question

2004-10-21 Thread Daniel Purdy
[snip] Probably a stupid question, but hopefully has a simple answer. Is there a way to get Grenwich Mean time? time() and date() functions that I can see only seem to get date/time from the server, which knowing where that is, could easily figure out GM time, but would rather go the other w

[PHP] PHP5 CLI Custom Error Reporting Doesn't Work as Expected

2004-10-24 Thread Daniel Talsky
Included is my reproduce code. I'm trying to write a custom error logger for my PHP CLI script. The main problem is that when I try something like a failed require() statement, my custom error reporting function tells me it got an E_WARNING, but it stops program execution, which is not what the d

[PHP] Re: PHP5 CLI Custom Error Reporting Doesn't Work as Expected

2004-10-24 Thread Daniel Schierbeck
Daniel Talsky wrote: Included is my reproduce code. I'm trying to write a custom error logger for my PHP CLI script. The main problem is that when I try something like a failed require() statement, my custom error reporting function tells me it got an E_WARNING, but it stops program exec

Re: [PHP] anchor name on URL

2008-11-18 Thread Daniel Brown
On Tue, Nov 18, 2008 at 1:25 PM, Stan <[EMAIL PROTECTED]> wrote: > If I had a page written in HTML and I had a named anchor on that page > > I could position the user at the anchor by >http://myPage.com/myHTML.htm#myAnchor > but I can't seem to make this work if the page is generated >h

Re: [PHP] Re: anchor name on URL

2008-11-18 Thread Daniel Brown
On Tue, Nov 18, 2008 at 6:14 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: >> > I don't think you fixed it, so much as wrote something else and made it > look like I wrote it... Yes. -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our current hosting/dedicat

Re: [PHP] Re: anchor name on URL

2008-11-18 Thread Daniel Brown
On Tue, Nov 18, 2008 at 6:29 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: >> > I'd really rather you didn't, please. And I'd rather you had a sense of humor. So in hindsight, we both learned something. -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our cu

[PHP] PostTrack Reminder

2008-11-24 Thread Daniel Brown
Folks; Just as a reminder, the PostTrack/ListWatch system is back to recording and reporting data on the list for the Friday summary reports and list metrics. If you do not want your email address to show up in the reports and have not already told me, please let me know ASAP and I will p

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Daniel Brown
On Mon, Nov 24, 2008 at 3:00 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: >> > What exactly are these metrics? Are they part of the mailing list? Yes, last year and earlier this year, before you began contributing to the list, there was a tracking system that displayed a simple report[1] eac

Re: [PHP] syntax error (stumped)

2008-12-05 Thread Daniel Brown
On Fri, Dec 5, 2008 at 1:31 AM, ddg2sailor <[EMAIL PROTECTED]> wrote: > > Its begining to look like this code was written for a newer sql [snip!] Negative. It's either a custom function or was written incorrectly in the first place. There's never been a native PHP function `do_mysql_quer

Re: [PHP] Request to bash/jump/screw my code

2008-12-08 Thread Daniel Brown
On Mon, Dec 8, 2008 at 12:01 PM, Ryan S <[EMAIL PROTECTED]> wrote: > > We cannot really afford a security specialist so would appreciate it if you > could hit our site with whatever you want to (just dont take us offline with > something like a DDOS please) and tell us if you find any problems.

Re: [PHP] Request to bash/jump/screw my code

2008-12-08 Thread Daniel Brown
On Mon, Dec 8, 2008 at 1:05 PM, Rick Pasotto <[EMAIL PROTECTED]> wrote: > > http://ezee.se/funnies/show_funny.php?id=p88&sec=1 has: > > Posted by: \' OR id != \' On: 2008-12-08 13:24:59 > \' OR id != \' That was me, testing for SQL injection. -- http://www.parasane.net/ [EMAIL PRO

[PHP] get calling function name

2008-12-09 Thread Daniel Kolbo
Greetings, is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo "the calling function is: " . func_caller(); } a(); where this would print th

Re: [PHP] get calling function name

2008-12-09 Thread Daniel Kolbo
Stut wrote: On 9 Dec 2008, at 19:37, Daniel Kolbo wrote: is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo "the calling functi

Re: [PHP] MSSQL_CONNECT problem

2008-12-09 Thread Daniel Brown
On Tue, Dec 9, 2008 at 3:41 PM, David Stoltz <[EMAIL PROTECTED]> wrote: > > Do you have any other thoughts? When posting to the list, please don't top-post. Dave, are you seeing that error from both the CLI and the web? Have you properly configured your DSN? What's the output from the fo

[PHP] file_exists and wildcard/regex

2008-12-09 Thread Daniel Kolbo
What is the preferred method with php to test and see if a file [pattern] exists? For example, i only need to search in one directory, that may have any number of files named such as afile1.txt, afile2.txt, afile3.txt, And also, bfile1.txt, bfile2.txt, bfile3.txt, ... I want to see if an

Re: [PHP] file_exists and wildcard/regex

2008-12-09 Thread Daniel Kolbo
Daniel Kolbo wrote: What is the preferred method with php to test and see if a file [pattern] exists? For example, i only need to search in one directory, that may have any number of files named such as afile1.txt, afile2.txt, afile3.txt, And also, bfile1.txt, bfile2.txt, bfile3.txt

[PHP] Re: file_exists and wildcard/regex

2008-12-09 Thread Daniel Kolbo
Maciek Sokolewicz wrote: Daniel Kolbo wrote: What is the preferred method with php to test and see if a file [pattern] exists? For example, i only need to search in one directory, that may have any number of files named such as afile1.txt, afile2.txt, afile3.txt, And also, bfile1.txt

Re: [PHP] Quick question regarding $_SESSION and header()

2008-12-11 Thread Daniel Brown
On Thu, Dec 11, 2008 at 14:01, Ólafur Waage wrote: > I should be able to set a session var and then do a header redirect > right? Small bug regarding that and i just need to be sure. This isn't a bug in PHP, it's actually in adherance with HTTP standards (and current browser standards). Prio

[PHP] Re: [PHP-QA] Re: [PHP] Quick question regarding $_SESSION and header()

2008-12-11 Thread Daniel Brown
(Forwarding back to PHP General for the archives.) On Thu, Dec 11, 2008 at 14:31, Ólafur Waage wrote: > Its fixed, thanks guys :) > > On Thu, Dec 11, 2008 at 7:16 PM, Daniel Brown wrote: >> On Thu, Dec 11, 2008 at 14:01, Ólafur Waage wrote: >>> I should be able to set a

Re: [PHP] Need a brain to bounce some Mysql/DB thoughts off of!!

2008-12-12 Thread Daniel Brown
On Fri, Dec 12, 2008 at 10:35, Robert Cummings wrote: > > Are you suggesting I'm not tolerant? Pfff. Not since you've let those crosses on the lawn burn out. ;-P And yet, despite all of this, poor ol' php...@lists.php.net is left in the cold. -- http://www.parasane.net/ daniel.br...@

Re: [PHP] question on parameter specification in href tag

2008-12-12 Thread Daniel Brown
On Thu, Dec 11, 2008 at 05:30, Xaver Thum wrote: > > But if I specify a hex color like #CC instead of "red", > > http://www.anyurl.com?mypar=17&color=#CC";> ... > > the color is ignored (probably because # starts a PHP comment). > Is there any workaround for this problem ? Hey, X;

[PHP] Re: [PHP-INSTALL] PHP on Windows without Apache

2008-12-14 Thread Daniel Brown
On Sun, Dec 14, 2008 at 13:19, Jeffery Harris wrote: > Thanks Daniel. Any recommendations on a good php learning book. My pleasure, Jeff. I've honestly never read any of the PHP books out there, so I wouldn't be able to give you a definite recommendation on that. What I

Re: [PHP] Good PHP book?

2008-12-16 Thread Daniel Brown
On Tue, Dec 16, 2008 at 11:25, Richard Heyes wrote: >> I learned from PHP For Dummies. > > The title of that book isn't doing itself any favours... :-) You'd be surprised. The "For Dummies" series is one of the best-selling franchises in mainstream publishing history. -- http://www.parasa

Re: Re: [PHP] Good PHP book?

2008-12-16 Thread Daniel Brown
Forwarded back to the list, Mario. Please hit "Reply-All" to keep it on the list. On Tue, Dec 16, 2008 at 11:44, Kastner Mario wrote: > I also read the "for dummies" book when i started with php. It gives me a > simple intro which power is behind php. My first application was a ftp client

Re: [PHP] custom php.ini

2008-12-16 Thread Daniel Brown
On Tue, Dec 16, 2008 at 11:39, John P wrote: > Hello all, > > In short, I'm trying to set my uploads_tmp_dir variable, as my hosting > provider has it set ot the default NULL (I'm using dreamhost). > [snip!] > > any pointers? You won't be able to modify the upload_tmp_dir option, as it's PHP_

Re: [PHP] Good PHP book?

2008-12-16 Thread Daniel Brown
On Tue, Dec 16, 2008 at 17:04, Jay Moore wrote: > > Floppies hold 1.4 megs now? Mine don't and they're even dual-sided. :( Jay, Throw out your 62K and 5.25" floppies and get with the 1980's, brother. It's all about the 3.5" "hard" disks now. They're radical! -- http://www.parasane.

Re: [PHP] Good PHP book?

2008-12-16 Thread Daniel Brown
On Tue, Dec 16, 2008 at 17:11, Jay Moore wrote: > > Ok. Let me back them up to these reel-to-reel tapes quick, just in case. Just be careful that you don't get the Michaelangelo or Friday The 13th viruses especially if you're converting over on a C-64 1541 drive. -- http://www.parasan

Re: [PHP] Good PHP book?

2008-12-16 Thread Daniel Brown
On Tue, Dec 16, 2008 at 17:22, Robert Cummings wrote: > > Cue Tedd and his stones in 3... 2... 1... Rocks[TM]. -- http://www.parasane.net/ daniel.br...@parasane.net || danbr...@php.net 50% Off Hosting! http://www.pilotpig.net/specials.php -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Good PHP book?

2008-12-16 Thread Daniel Brown
On Tue, Dec 16, 2008 at 17:30, Ashley Sheridan wrote: >> > These stones? http://xkcd.com/505/ That's fantastic, Ash. I haven't seen that one. I'm CC'ing Tedd directly on that. -- http://www.parasane.net/ daniel.br...@parasane.net || danbr...@php.net 50% Off Hosting! http://www.pilotpig.

<    6   7   8   9   10   11   12   13   14   15   >