[PHP] php.ini

2004-11-16 Thread lister
(on windows) can someone tell me where to define which php.ini gets used? On my dev box, I installed the zend editor. Now when i do a localhost/phpinfo() from a normal browser window (ie not from within the zend IDE) it says php is using the <..>/zend/php.ini settings file... within apache's ht

[PHP] latest GD dll binary for windows?

2004-11-16 Thread lister
hi - is there anywhere I can get a pre-compiled GD (graphics library) DLL for windows, that supports the GIF writing? The notices on the GD page say in big letters "not intended for use with PHP!"... http://www.boutell.com/gd/ For some reason the PHP install I have (Zend IDE has taken over my ma

Re: [PHP] php.ini

2004-11-16 Thread lister
thanks for the replies, but... > If there is a php.ini file in the php root directory, then that gets used. Otherwise, the php.ini file in C:\Windows (iirc). If the Actually it seems like the Zend IDE installed another apache server. But the situation is more confusing. When I start my standard

[PHP] Failed error_log directive

2003-12-27 Thread Aidan Lister
Hello, I am trying to log all php script errors from a virtualhost to a file. A callback function is not the solution I am looking for. I have tried to the following settings in my httpd.conf (apache) to no avail. php_admin_flag display_errors off php_admin_flag log_errors on php_admin_flag erro

[PHP] Re: connecting to progress db

2003-12-30 Thread Aidan Lister
Hi, "Php" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I am not sure how to go about this. =( I think my problems are twofold. > > problem 1. I have to connect to a progress database, for which there is > no built-in php > support. I have been looking at the unified ODBC fun

[PHP] Re: PHP5 XML functions

2003-12-30 Thread Aidan Lister
I wish, I'm interested as well :/ <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've just gotten PHP5 B3 working using the precompiled binaries under Win XP, > but the dom xml functions of PHP4 don't seem to be immediately available. > Does anyone have suggestions on how to learn t

[PHP] Re: Failed error_log directive

2003-12-30 Thread Aidan Lister
I still have not found a solution to this problem. What are some debugging steps I could take? "Aidan Lister" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I am trying to log all php script errors from a virtualhost to a file. > A callback

[PHP] Re: No COOKIE Set?

2003-12-31 Thread Aidan Lister
Try putting the exit() before the redirect, and see if there's an error when you attempt to set the cookie. "Cesar Aracena" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > My head is about to explode here... I am trying to setup a cookie for every > new user that registe

[PHP] Production Websites (error loggin)

2004-01-02 Thread Aidan Lister
If anyone has successfully got php error logging working on a production website, could you please reply with the steps taken? I'm using RH7.3, Apache1.3x, PHP4.3x My php.ini has: log_errors = On error_log = /var/log/httpd/php/error_log However the errorlog is never created. Thanks for any hel

Re: [PHP] example of posting board or shoutbox

2004-01-02 Thread Aidan Lister
Austin, We're not here to write scripts for you, I suggest you start by reading the manual at php.net. After you have a basic idea of how to use PHP, try looking at a couple of examples online. Use google, and search for "Database driven websites". Another option is to use a pre-made shoutbox, ag

Re: [PHP] Production Websites (error loggin)

2004-01-03 Thread Aidan Lister
;Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does apache have permissions to write to the file and directory? > > Aidan Lister wrote: > > If anyone has successfully got php error logging working on a production > > website, could you p

[PHP] Re: How to do this? 6 lines of code...Parse error

2004-01-03 Thread Aidan Lister
Firstly I'd rewrite your other script to store the data in an array. The benefits of doing so are simply demonstrated: However, if you are unable to rewrite your script: The correct syntax is: "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > am a bit confused as t

[PHP] Re: php_hostconnect()

2004-01-11 Thread Aidan Lister
It sounds like your script is poorly written. On one server, error reporting is set to E_ALL (All errors and warnings). On the other, It's probably set to E_ERROR. Check out php.net/error_reporting "Anthony Ritter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I currently have w

[PHP] PHP5: XML to PDF with XSL

2004-01-20 Thread Aidan Lister
Is this possible? I'm purely interested in PHP5 examples of transforming an XML file into PDF using an XSL stylesheet. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with $_POST

2004-01-21 Thread Aidan Lister
Or, After you've dumped the data into the DB, issue a header('location: /path/to/script'); This will also solve the problem of IE saying "are you sure you want to resend the form data". "Toby Irmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You can use a token to check if a

Re: [PHP] PHP 5 Book

2004-01-21 Thread Aidan Lister
I'm using 4.1 alpha now - It is stable enough for a dev box - Nested queries are good fun. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I > > can't find that in any of the new features logs. Anyone know about >

[PHP] XSL

2004-01-24 Thread Aidan Lister
I am attempting to put this in my XSL, ">, However I get a ton of errors. How do I do this properly? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: "Additional Features for working with linked Tables have been deactivated."

2004-01-24 Thread Aidan Lister
How about checking the phpmyadmin documentation, where this is all clearly explained? "Freedomware" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It looks like all the databases I view with phpMyAdmin feature the > following error message: > > "The additional Features for working

[PHP] Re: XSL

2004-01-25 Thread Aidan Lister
Ahh fantastic. Thanks very much for that. "Tobias Bradtke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Aidan Lister wrote: > > I am attempting to put this in my XSL, > />">, However I get a ton of errors. How do I do this properly? >

[PHP] Re: PHP integration with ASP

2004-01-25 Thread Aidan Lister
I'm not sure if anyone else understood what you're trying to do better than I did, but it sounds like you're not to sure about php/html. To get the results of a form, you need to search the POST array. var_dump($_POST); As to the rest of the questions, I really don't understand what you're talki

Re: [PHP] Re: XSL

2004-01-25 Thread Aidan Lister
or building an entire site in or a content management system ? > Like i found generating the xml, then having to do loops and stuff in xsl, > having no control in php a real pain. > > > Ahh fantastic. Thanks very much for that. > > > > > > > > "Tobias Brad

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

[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 th

[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:[E

[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 vi

[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 whic

[PHP] Re: define constants within functions?

2004-08-10 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 definition

[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 = substr

[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

[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.

[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 kn

[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: 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

[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() pr

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

2004-10-11 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 http://pe

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:[EMAI

[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 set

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 terrib

[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) { >

[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: 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

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 sinc

[PHP] show_source or highlight_string wrapping

2004-04-19 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 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 > >

[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

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Aidan Lister
PROTECTED] > I just build 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 at 80chars > > > > > > "Red Wingate" <[EMAIL PROTECTED]> wrote in mes

[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] 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 o

[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 un

[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 b

[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: 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, >

[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 syst

[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 = s

[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,

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 jus

[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 : > > class a { >public $foo = "hello world"; > } > > $obj = new a(); > $varname = "foo"; > echo $obj->$$varname; > $$varname is turned into $foo, what is the value of $

[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? > >

[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.net/manual/en

[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

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". > > > > > function foobar () > > { > > retur

[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: > > > H

[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 Lis

[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

[PHP] Returning an object

2004-05-06 Thread Aidan Lister
How _should_ this be done? In terms of "best practice". Or: Please don't reply if you really, really don't know what you are talking about. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 PROT

[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 Micr

[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 hav

[PHP] Re: Pear question

2004-05-20 Thread Aidan Lister
; <[EMAIL 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 > > >

[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

[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 serv

[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

[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 unsubsc

[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: 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. W

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 direct

[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 differ

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. > >

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 apologi

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

2004-06-08 Thread Aidan Lister
lt;[EMAIL PROTECTED]> To: "Aidan Lister" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 08, 2004 2:25 AM Subject: RE: [PHP] Re: if/elseif/else v. switch Aidan Lister <mailto:[EMAIL PROTECTED]> on Saturday, June 05, 2004 6:19 AM said: > You

[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/) T

[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

[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

[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 ph

[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 thing

[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 Mail

[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 soluti

[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 P

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

[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: 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

[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

  1   2   >