[PHP] Re: PHP Designer 2005

2005-04-26 Thread Aidan Lister
Contact the company who wrote the software you're trying to use for support. The Disguised Jedi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Some might consider this OT, but I need to figure this out somehow, and google has been no help. I downloaded and installed PHP Designer

[PHP] Re: Help outputting an array?

2005-04-26 Thread Aidan Lister
Hi Brian, Try this function, http://aidan.dotgeek.org/lib/?file=function.array2table.php Brian Dunning [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but

[PHP] Re: Simple math failing - PHP Bug?

2004-11-01 Thread Aidan Lister
We have a chapter in the manual about this, http://www.php.net/manual/en/language.types.float.php This is also interesting: http://docs.python.org/tut/node15.html Kind Regards, Aidan Brian T. Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, OK, I'm totally stumped by

[PHP] Re: Matching *exact* string?

2004-10-31 Thread Aidan Lister
I cannot fathom why you would use preg_match for this. This will get an exact match... if ($ip == $_SERVER[REMOTE_ADDR]) { $ban = true; } Despite this being the worst idea I've ever seen, combined with a true lack of understanding, I wish you well. Nick Wilson [EMAIL PROTECTED] wrote in

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-12 Thread Aidan Lister
If you want to use older functions without upgrading your version of PHP, try PHP_Compat. Here's file_get_contents which is comparable in speed to the native version: http://cvs.php.net/co.php/pear/PHP_Compat/Compat/Function/file_get_contents.php?r=1.19 Most information can be found at

[PHP] Re: Callback functions inside classes - how to?

2004-10-08 Thread Aidan Lister
http://php.net/language.types.html#language.pseudo-types Thomas Hochstetter [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi again, I have always been wondering how this is done properly: Here is an example: [snip] class A { function name( $a, $b, $c) { $tmp =

Re: [PHP] Regular Expression - highlighting

2004-10-07 Thread Aidan Lister
Hi Michael, Thanks very much for the assistance, I'll have to investigate further! Kind Regards, Aidan Lister Michael Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aidan Lister wrote: Hello list, I'm pretty terrible with regular expressions, I was wondering if someone

Re: [PHP] PHP5 Type Hints

2004-10-02 Thread Aidan Lister
Hi Gerald, If you did see something like that, it was a mistake in our manual :) I've documented typehinting now, though it will take a while to show up in the manual. http://php.net/language.oop5.typehinting Kind Regards, Aidan Gerard Samuel [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Regular Expression - highlighting

2004-10-02 Thread Aidan Lister
Hello list, I'm pretty terrible with regular expressions, I was wondering if someone would be able to help me with this http://paste.phpfi.com/31964 The problem is detailed in the above link. Basically I need to match the contents of any HTML tag, except a link. I'm pretty sure a lookbehind

[PHP] Re: how to load extensions outside the extension_dir

2004-09-10 Thread Aidan Lister
You can't, It's a security thing. Marten Lehmann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I need to load extensions with dl() within PHP running as CGI. But as this is a shared hosting environment, I don't have access to the extension_dir. Anyway, dl() prepends

[PHP] Re: data grids...

2004-09-08 Thread Aidan Lister
http://pear.php.net/package/Structures_DataGrid Blackwater Dev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone have a nice clean way to provide data grids with php short of simply creating a bunch of input boxes or using flash? Thanks! -- PHP General Mailing List

[PHP] Bouncer Test

2004-08-28 Thread Aidan Lister
Hello, Another test to ensure we don't have any automatic replies or bouncing addresses. Please don't reply, or you will be removed. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: for loops performance

2004-08-21 Thread Aidan Lister
Hi Tadas, PHP5 has very optimised code for loops, try upgrading and tell us how it goes! Also, if it's applicable, a plain foreach loop is actually faster. Kind Regards, Aidan Xongoo!Com: Central Unit [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Holla, Maybe someone knows how

[PHP] Re: oop too slow

2004-08-19 Thread Aidan Lister
Krzysztof, Take a look at some PHP Profiling extensions, such as Advanced PHP Debugger or XDebug. This will help you locate the slow parts of your script. Krzysztof Gorzelak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm trying my new php5 script, but it takes about 1.2s to

[PHP] Re: define constants within functions?

2004-08-11 Thread Aidan Lister
Sure, define them outside the function :) Justin French [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I define a constant within a function, it appears that the constant is only defined within the namespace of the function. Fair enough. Can I globalise these definitions?

[PHP] Re: Date and time

2004-08-11 Thread Aidan Lister
That's a mysql timestamp, if you want to manipulate dates in PHP you'll need to use unix timestamps. You have a couple of options, select unix_timestamp(myFld) as myFld from myTbl Then just add 60*60*24*7 to it. Or, parse it with: function convert_timestamp ($timestamp) { $timestring =

[PHP] Re: Date and time

2004-08-11 Thread Aidan Lister
There was a little mistake in the code I posted before, try this one: http://aidan.dotgeek.org/lib/?file=function.convert_timestamp.php Diff Fannehh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have this date in timestamp format: $a= 20040810114155; I want to add 7

[PHP] Re: why use http headers??

2004-08-10 Thread Aidan Lister
Hi Tobias, I don't really understand what you are asking, but if you want to send HTTP headers please see: www.php.net/header If you need Arguments for http headers, see the protocol specification http://www.faqs.org/rfcs/rfc2616 Tobias grønlund [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: GENERAL DIGEST MAILLIST ALLOWS POST

2004-08-10 Thread Aidan Lister
Alfonso, Please stop sending crap to this list, or you will be unsubscribed. We're more than happy you've been able to sign up, but we don't need 4 emails detailing your progress. Kind Regards, Aidan Alfonso Baqueiro [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If you are

[PHP] Re: PHP 4 equivalent for convert_uuencode

2004-08-10 Thread Aidan Lister
Hi Vidyut, This function will be replicated in userland code when I get some more time, I'll add a note when it is done. For more info, see http://pear.php.net/php_compat Vidyut Luther [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I'm looking at the PHP manual which has

[PHP] Bouncer Test

2004-08-08 Thread Aidan Lister
Please do not reply to this email, or you will be taken off the mailing list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP and Apache 2

2004-08-08 Thread Aidan Lister
Hi Rosen, It doesn't hurt to use google you know. [Q:] Is there going to be a version of PHP 4.x which is declared stable for use with Apache 2.x or, is this feature going to be reserved for PHP5? [A:] The development of the Apache 2 module is completely disconnected from the PHP 5 efforts. I

Re: [PHP] Should I wait for PHP 5.1?

2004-08-02 Thread Aidan Lister
http://php.net/migration5 5.0.1 is coming out shortly, wait for that. Gerard Samuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sunday 01 August 2004 12:19 pm, Randall Perry wrote: Any major gotchas going from 4 to 5? Any problems with PostgreSQL connectivity? Will I have

[PHP] Re: Trouble with Apache, PHP, pear

2004-07-23 Thread Aidan Lister
Hi Ron, Sounds like you've done everything correctly, just PHP wasn't installed as a CLI. Just to be sure, do a $ find / -name php Then, if it is found, $ lynx -source http://go-pear.org/ | /path/to/php If it's not found, just grap a PHP rpm (make sure it's a CLI version, or --with-cli) and

[PHP] Re: log.

2004-07-23 Thread Aidan Lister
Hi Ulitin, When a user visits your page, you can create a session. This session will identify the user throughout his visit. Most people tend to log all actions to an IP address, or a hostname, this is probably easier. To get the IP, browser, referer, etc, look at:

[PHP] Re: Counting download problem

2004-07-20 Thread Aidan Lister
Rausch, I've never seen this done before, I wouldn't bother. It's definitely not possible without tapping into either the webserver or webserver log files. Regards, Aidan Rausch Alexandru [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a script that creates automatically

[PHP] Re: Stuffing those damn values into their fields...!

2004-07-19 Thread Aidan Lister
Michael, You need to gain some very basic debugging skills. If you're trying to update a database: 1) Check the mysql_query is actually being run! Add a line above mysql_query, die('hello'); If you see hello, the query is being run 2) Check there is no error on the query, $query = some query;

[PHP] Re: MIME files decoding

2004-07-15 Thread Aidan Lister
Hi Scheidecker, Try posting to [EMAIL PROTECTED], the author will be able to help you with your question. C.F. Scheidecker Antunes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, In order to use pear mimedecode.php I have a few questions that were not answered by the

[PHP] Re: PHPEdit almost as good as s*x (with a women in bikini)

2004-07-14 Thread Aidan Lister
What is PHPEdit to do with this mailing list? Please don't send useless stupid crap to the hundreds of users subscribed. Ee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry Guys, I know that this is off-topic. In one of the sites,I saw the subject AD {PHPEdit almost as good

[PHP] Re: Anyone knows when PHP5 is released?

2004-07-13 Thread Aidan Lister
When it's ready Hopefully we'll see the stable release in the next 24 hours. Gabriel Medina [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So is there a date set yet or is it just to wait? How is the progrese one the respons to RC3? Is it many bugs left? Dear Reagrds -- PHP

[PHP] Re: Email, Hotmail and PHP?

2004-07-13 Thread Aidan Lister
Sounds like you want to set up a proxy. PHP is not the ideal language to use for this, although it would be possible, though a lot of work. Have a look on google for http proxies, see how you go. Tristan Pretty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there... My misses

[PHP] Re: newbie database question

2004-07-13 Thread Aidan Lister
Hi News (perhaps use your real name next time), I run a .txt perl/cgi database/shopping cart which uses the command line http://localhost/_uns/cgi-bin/store.cgi?command=listitemspos=0type=all When you say command line, what's that have to do with the localhost (ie, noone else can click it)

[PHP] Re: php reserved characters...

2004-07-13 Thread Aidan Lister
Please don't mail the list by clicking Reply to an existing post, it causes problems with the news server (and anyone using it). Bruce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi... got a simple question... i have the following: html body ? $test = p; echo $test; print $test;

[PHP] Re: array indexes as arguments to a function

2004-07-13 Thread Aidan Lister
I don't understand what you're asking. If you want to return a portion of an array, simple return the element holding it. In your example: POST[var1_arr][dim1][dim2] return var1_arr; Will return whatever lives in var1_arr. Have a play around, you can see what a variable contains using

[PHP] Re: sort() - Where did I go wrong?

2004-07-11 Thread Aidan Lister
I don't see how these questions are related, please ask each question separately next time. If you want to put variables in your regex's, you must use preg_quote. John Taylor-Johnston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ok. This is not a numeral problem? strval did not

Re: [PHP] mail problem

2004-07-11 Thread Aidan Lister
compatability I'd still advise you to use the newer form, there are very few hosts that still run php4.1.0 (because it has many dangerous bugs). (P.S.: Aidan Lister, this may be a dumb question, but please don't bother responding.) Please, you asked a stupid question and got done for it - let's

[PHP] Re: help to generate codebars

2004-07-09 Thread Aidan Lister
What is a codebar? Vicente Vives [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everybody, I'm looking for a way to generate codebars from the web. I found some ActiveX for ASP but i want to generate them using PHP :-) Do you know how? Do you know any library to do it?

[PHP] Re: Session_Start Problem (Fatal Error)

2004-07-09 Thread Aidan Lister
Did you look on the mambo forums as suggested? [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using Mambo Open Source CMS to run a site I'm building, and seem to have a problem logging into the Administration Tool. It comes up with: Fatal error: session_start(): Failed to

[PHP] Re: How to handle cookies?

2004-07-09 Thread Aidan Lister
Try cURL, http://php.net/curl Martin Schneider [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello! I want to use php to gather some informations on a website. You have to login to this website. In a brwoser, a cookie is set at login and identifies you. How can I handle this

Re: [PHP] binary data over UDP with PHP?

2004-07-08 Thread Aidan Lister
If you're receiving binary data back, this function may interest you: http://aidan.dotgeek.org/lib/?file=function.hexdump.php Also, why are you messing with chr etc? $string = \x00\x01\xFF; etc. Coder_1024 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the feedback. As

[PHP] Re: Client IP

2004-07-08 Thread Aidan Lister
I use the following script: http://aidan.dotgeek.org/lib/?file=Visitor.php As you've been told about 400 times, there's no reliable way to get the information. The above script checks if the client connected using a proxy, then falls back to what the webserver sends. Rosen [EMAIL PROTECTED]

[PHP] Re: Regular expression

2004-06-30 Thread Aidan Lister
I suggest not using a regex. There are better tools for parsing an email, for example formail. $email = `formail -x Return-Path`; See google.com for more information Regards, Aidan Syed Ghouse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All will anyone give me a solution to

[PHP] Re: Best external app from php

2004-06-30 Thread Aidan Lister
If you're asking which is faster, PHP or Java, it's a very difficult question and I doubt anyone will give you a concrete answer. I'd suggest writing the application in a much faster compiled language, c++ for example. C.F. Scheidecker Antunes [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: php-login scripts

2004-06-28 Thread Aidan Lister
Hi, You've sent this email to a mailing list with a couple of thousand users. I'm probably not alone when I say what on earth are you talking about?. I don't know what PHP-Login is, if you have a problem using whatever software that may be - please contact them about it. You can find the PEAR

[PHP] Re: Error Reporting

2004-06-28 Thread Aidan Lister
Did you restart your webserver to make sure the changes were loaded? Tom Chubb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I ave a strange problem with my error reporting! I have set php.ini to: error_reporting = E_ALL but I don't see any errors. (After I was happy things were

[PHP] Re: getting query string from referer website

2004-06-28 Thread Aidan Lister
$_SERVER['QUERY_STRING'] has nothing to do with the refering website. foo.php?bar=6 The QUERY_STRING for the above example is: bar=6 When someone visits your page, they visit foo.php (for example), thus your QUERY_STRING will always be blank. I believe you're looking for HTTP_REFERER I.A.

Re: [PHP] New changes

2004-06-28 Thread Aidan Lister
It's a virus, duh John Cashmore [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] what are these posts and why do they keep getting posted with some picutre with a password? On Sun, 27 Jun 2004 17:53:49 +0100, Hitcho [EMAIL PROTECTED] wrote: -- PHP General Mailing List

[PHP] Re: Testing if cookies are enabled

2004-06-21 Thread Aidan Lister
Think about it. Step 1) Analyse the problem. a) Set a cookie. b) Test if the cookie has been set. c) Display data from cookie Step 2) Read the fucking manual a) http://php.net/setcookie b) http://php.net/setcookie c) http://php.net/setcookie If you can't work it out, and have actually done some

[PHP] Re: email autoresponder

2004-06-21 Thread Aidan Lister
If you don't know what it is, why do you want to make one? There's a lot more to this than simple PHP, I suggest you start on google.com Syed Ghouse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All will anybody explain me what is email autoresponder?. and how to create in php?

[PHP] Re: hellllppp my php kills the browser

2004-06-19 Thread Aidan Lister
Please read: http://www.catb.org/~esr/faqs/smart-questions.html Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i fixed it i had an endless loop oops :) Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i dont know why but the following code kills

[PHP] Re: function for string to array (map)?

2004-06-18 Thread Aidan Lister
No, because that's not a standard format. You'll have to write your own function (as you've done). If you're looking to store an array as a string, look at serialize() Pete Forman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a standard function that converts a string to

[PHP] Re: THREADS IN PHP

2004-06-12 Thread Aidan Lister
Please don't hype your post, or you'll find, as do many children, no one will pay it any attention. Jack Bauer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi, i'm looking for a methode to use threads in php (on linux) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: if/elseif/else v. switch

2004-06-08 Thread Aidan Lister
. Anyway, stop flogging a dead horse. Stupid questions have stupid answers, unfortunatly mine was one of the stupid answers - in hind site, I agree it was an inapropriate thing to say. Kind Regards, Aidan - Original Message - From: Chris W. Parker [EMAIL PROTECTED] To: Aidan Lister [EMAIL

Re: [PHP] asp.net vs. php

2004-06-06 Thread Aidan Lister
Hehe Curt, point made :) Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Kathleen Ballard ([EMAIL PROTECTED]): I have been asked to make a fact based comparison of the pros and cons of asp.net and php. I am not trying to start a war and apologize if this

[PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Aidan Lister
This appears to be a really, really stupid question. If they are indentical in operation, then ofcourse there will be no noticeable difference to the user. One may note that a switch statement is faster, because the condition is only evaluated once. However you did not ask about the speed

Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Aidan Lister
- on the list, in front of everyone, as you so boldly put it. Rachel Rodriguez [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Aidan Lister [EMAIL PROTECTED] wrote: This appears to be a really, really stupid question. Is this level of condemnation of a poster necessary? Whether

Re: [PHP] Current URL

2004-06-03 Thread Aidan Lister
Hi, You could use $_SERVER['DOCUMENT_ROOT'] Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 2004-06-03 at 23:15, Stephen Craton wrote: I've wondered for quite some time, and search just as long it seems like, for a way to get the current URL directory. For

[PHP] Re: Is there any good examples of PHPLIB?

2004-05-24 Thread Aidan Lister
Hi Dsx, If you're unable to use classes from PHPLIB, I suggest you learn PHP first. Using objects for the first time is very confusing, but there are some excellent guides on the internet. I suggest you spend a couple of days just experimenting, writing your own classes to do menial tasks, etc.

[PHP] Re: How To Do This?

2004-05-22 Thread Aidan Lister
Hi Justin, For future reference, your choice of subject is poor - be more descriptive, your subject could apply to 99% of the questions asked on this list. I have no idea what you've created in DW MX 2004, nor have you given us any information about it. If you have an authorisation level stored

[PHP] Re: php and java applets

2004-05-21 Thread Aidan Lister
I'd implement access control in the java object if possible, sounds easier. Tom Playford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear all knowing list, I am trying to control the movement of a camera in real time from the web. But I also need to make sure that only the user I

[PHP] Re: include $var

2004-05-21 Thread Aidan Lister
Try it? (Yes, it works) Bob Lockie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Should 'include $var;' work? I need go to an HTML page after the form has been submitted. page A - program B (no output) - page A -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Pear question

2004-05-20 Thread Aidan Lister
PEAR doesn't need to be installed, so to speak. PEAR is simply a set of classes, at heart, they can be downloaded and used without problem from the pear.php.net website. However, PEAR does have an installer program that allows you to install these packages from command line. To check if you have

[PHP] Re: Pear question

2004-05-20 Thread Aidan Lister
PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks Aidan, I get a list of installed packages. What do I or one of my users need to do to access / use the DB package? Any help, advice, example is very much appreciated. Dave C -Original Message- From: Aidan Lister [mailto

[PHP] Re: php installation help

2004-05-20 Thread Aidan Lister
Hi Phillip, For future reference, PHP install questions are best asked on the [EMAIL PROTECTED] mailing list, however I'm sure someone can answer your question here also. Khutjo Phillip Leremi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I have recently installed gd-2.0.15 on

[PHP] Re: Pear/Net_FTP help

2004-05-20 Thread Aidan Lister
Hi Chris, Please send your message to [EMAIL PROTECTED], you are more likely to get a response there. Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. Hopefully someone here can show me what I am doing wrong. I am trying to write a small script to ftp into a server

[PHP] Re: change database from mysql to mssql

2004-05-17 Thread Aidan Lister
Yep, MDB2 is the best bet Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] David [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I have been using mysql as the database for my PHP application. Now my manager ordered me to use Microsoft SQL Server

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread Aidan Lister
There are many, many benchmarks done comparing PEAR::DB to PEAR::MDB to AdoDB, PEAR::DB is much slower than the native API, AdoDB is the fastest but least functional - I suggest you try PEAR::MDB2 http://pear.php.net/package/mdb2 once you get into it, you'll love it Rainer müller [EMAIL

[PHP] Re: Common Functions

2004-05-13 Thread Aidan Lister
This doesn't sound like a very secure method of doing things at all. Also, managing a file that big sounds like quite a nightmare. Have you looked at using OOP stuff? Use a couple of standard pear classes like Auth, MDB2, and you're well on your way to having a very maintainable site. Shaun

Re: [PHP] a good user directory application...

2004-05-13 Thread Aidan Lister
Nothing this big will be solid, if you're looking for a complete PHP website system, try postnuke/phpnuke whatever. Bruce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ryan... we've seen apps that have had some of the functions we're looking for... ie dating apps, cms systems,

[PHP] Re: PHP5 and static attributes

2004-05-12 Thread Aidan Lister
Do you have to access that variable statically? If you're scope is the class: echo $this-myInstance; Otherwise, echo C::$myInstance will access it outside the class (I think), even though it's inherited. Rudy Metzger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear all, I

[PHP] Re: Binary to ASCII

2004-05-11 Thread Aidan Lister
Handy function for this sort of stuff: http://ircphp.com/users/imho/?file=function.hexview.php René fournier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When reading from a Socket Server, my Socket Client retrieves data that includes ASCII and binary data: while(($buf =

[PHP] Re: using cookies

2004-05-09 Thread Aidan Lister
Hi, Richards email was kinda wierd, so I'll reply to your email directly Hi, all -- I guess I need a primer on cookie usage. I've read the manual regarding setcookie and have gone back to look at everything having to do with cookies on this list in the past few months (it seems that I'm

Re: [PHP] $myobject-$$varname doens't work ??

2004-05-09 Thread Aidan Lister
Richard, I think you need to read the questions more accurately - your last two replies have been somewhat incorrect Richard Harb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try echo $obj-$varname; -Original Message- From: greg Sent: Sunday, May 9, 2004, 9:21:52 AM

Re: [PHP] $myobject-$$varname doens't work ??

2004-05-09 Thread Aidan Lister
Ooops, actually he was pretty ambiguous, please disregard my previous comment :) Richard Harb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try echo $obj-$varname; -Original Message- From: greg Sent: Sunday, May 9, 2004, 9:21:52 AM Hello, I was just trying this

[PHP] Re: $myobject-$$varname doens't work ??

2004-05-09 Thread Aidan Lister
Greg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I was just trying this but it doesn't work : ?php class a { public $foo = hello world; } $obj = new a(); $varname = foo; echo $obj-$$varname; $$varname is turned into $foo, what is the value of $foo? If you're

[PHP] Re: icmp echo / ping

2004-05-09 Thread Aidan Lister
Yep, check out: http://pear.php.net/net_ping News.Php.Net [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I was wondering if it's possible to issue a icmp echo / ping without actually using the ping program supplied with the operating system. Anyone has an idea? Thanks in

[PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Aidan Lister
Simple! $i = 0; foreach ($foos as $foo) { // do stuff $i++; if ($i 5) break; } Cheers Verdon Vaillancourt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi :) I'm trying to put a stop in a foreach statement following the user suggestion here,

[PHP] Re: Does this directory detection script work for you?

2004-05-09 Thread Aidan Lister
Hi, I use the following class to get Path information: http://ircphp.com/users/imho/?file=Path.php Let me know if this is helpful at all John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello. I'm relying on the following code so that a script can automatically

[PHP] PHP5 RC2 Spec file

2004-05-08 Thread Aidan Lister
Hi guys, I'm trying to compile a PHP5 RC2 RPM, does anyone know where I can get a SPEC file from? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP5 RC2 Spec file

2004-05-08 Thread Aidan Lister
Found it, it's generated by ./configure (I think) Aidan Lister [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi guys, I'm trying to compile a PHP5 RC2 RPM, does anyone know where I can get a SPEC file from? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Problems with very special characters

2004-05-08 Thread Aidan Lister
Hi, Make sure the charset of your document matches the charset sent by the server - If you tell the browser the charset is A, and use characters from charset B, you will get the problem observed. The charset can be sent from Apache, PHP and the actual charset is set in the document. It's a pain

Re: [PHP] Returning an object

2004-05-07 Thread Aidan Lister
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Aidan Lister ([EMAIL PROTECTED]): How _should_ this be done? In terms of best practice. ?php function foobar () { return new SomeObject; } ? Or: ?php function barfoo

[PHP] Re: Returning an object

2004-05-07 Thread Aidan Lister
I found some more information about it here: http://bugs.php.net/bug.php?id=24687 It looks like you should assign an object to a variable before returning it. Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aidan Lister wrote: How _should_ this be done? In terms

[PHP] Returning an object

2004-05-06 Thread Aidan Lister
How _should_ this be done? In terms of best practice. ?php function foobar () { return new SomeObject; } ? Or: ?php function barfoo () { $tempvar = new SomeObject; return $tempvar } ? Please don't reply if you really, really don't know what you are talking about. -- PHP General

[PHP] OR

2004-04-25 Thread Aidan Lister
if (cond || cond2) OR if (cond OR cond2) What do you use, and why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: calling php function

2004-04-23 Thread Aidan Lister
No, you are confusing javascript (client side) with PHP (server side). T Umashankari [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Is it possible to call php function in the onclick event ? REgards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: How to do type/existence checking in PHP5

2004-04-23 Thread Aidan Lister
I don't understand the question. One should always check the existence of something before attempting to use it. If (isset($var) gettype($var) == boolean) is one way of type checking. Christian Jul Jensen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi In PHP5 the behaviour

Re: [PHP] Forking external binaries

2004-04-21 Thread Aidan Lister
There's a nu-fork library or something around. There's a pear package which provides an API to this. Have a look around. Michal Migurski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] We have a web application that forks off an external program to inject an email in the outgoing

[PHP] show_source or highlight_string wrapping

2004-04-20 Thread Aidan Lister
Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Aidan Lister
No, PHP explicity inserts br at 80chars Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Red Wingate wrote: Aidan Lister wrote: Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? It doesn't check the source to see

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Aidan Lister
It seems they've fixed this in php5, so I can't complain. Aidan Lister [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Aidan Lister
a testcase to check wether PHP does or not and it doesn't even if i have 1080 chars in a line :p -- red No, PHP explicity inserts br at 80chars Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Red Wingate wrote: Aidan Lister wrote: Why do these functions

[PHP] Re: Whats faster? text files or mysql?

2004-04-20 Thread Aidan Lister
Ofcourse Andrew fenn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have two text files with two rows of data on each line sperated by a tab for about 20 lines in each file. Would it be faster accessing this data by putting it in a mysql table? -

Re: [PHP] mysql connect function in my class

2004-04-15 Thread Aidan Lister
I suggest you take everyone's advice and use one of the thousand database abstraction objects. At the very least, look at how they are put together. This one is an excellent example: http://pear.php.net/package/DB Andy B [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] makes since...

[PHP] Re: PHP5 and pear

2004-04-10 Thread Aidan Lister
Was that from a pear install xml_rpc ? Electroteque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Pear does not seem to be actually in the sources for some reason [PEAR] XML_RPC: The following errors where found (use force option to install an yway): missing package name

[PHP] Re: Reusing MySQL Connections - Can it be done?

2004-04-06 Thread Aidan Lister
http://pear.php.net/package/db Monty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to use fewer resources and processes when making database connections in my scripts, so, upon the first call to make a DB connection, I store the Link Resource ID in a constant variable

Re: [PHP] mail() question

2004-04-02 Thread Aidan Lister
It's quite easy to remove access to the mail function, simply put mail in your php.ini under disable_functions Hernan Marino [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] sorry. lazy me. there is auto_prepend_file in php.ini I'll see if it works. Thanks! On Fri, 2 Apr 2004 03:51:18

[PHP] Re: parsing xml the right way

2004-04-02 Thread Aidan Lister
Wait until you have installed PHP5, then use the simplexml library. You have not showed us any code, how are we to tell you if you are doing it the right or wrong way? Merlin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I think I am parsing xml documents the wrong way.

[PHP] Re: How to retrieve dir file list from an internet server folder?

2004-04-02 Thread Aidan Lister
Yes, you'll need to parse the output of the page. Dave [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is it possible to retrieve dir file list from an internet server folder from within a php program? In the browser, the http:// page displays Index of and a list of files. -- PHP

[PHP] Re: plz help

2004-03-31 Thread Aidan Lister
Please ask a specific question, not a jumble of poor English ramblings. plz help is a stupid, stupid subject. Post again with a more appropriate title. Curlybraces Technologies Ltd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - Original Message - From:

  1   2   >