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

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

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

[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 function is not the solution I am

[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 registers in

[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

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,

Re: [PHP] Production Websites (error loggin)

2004-01-03 Thread Aidan Lister
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 please reply with the steps taken? I'm using RH7.3, Apache1.3x

[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: ?php foreach ($products as $product) dosomethingto($product); ? However, if you are unable to rewrite your script: The correct syntax is: ?php ${'product' . $i} ? Ryan A

[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

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

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

[PHP] XSL

2004-01-24 Thread Aidan Lister
I am attempting to put this in my XSL, a href=xsl:value-of select=link /, 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 with

[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, a href=xsl:value-of select=link /, However I get a ton of errors. How do I do this properly? try something like

[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

Re: [PHP] Re: XSL

2004-01-25 Thread Aidan Lister
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 Bradtke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aidan Lister wrote: I am attempting to put

Re: [PHP] Sequential Random Character Generator

2004-02-25 Thread Aidan Lister
Here's a function I made for random string generation: http://www.ircphp.com/users/imho/?file=function.randstr.php randstr(len, seeds); so, echo randstr(10, abc123); would result in a 10 letter string made up of a,b,c,1,2,3 Hoep this helps. Miles Thompson [EMAIL PROTECTED] wrote in message

[PHP] Re: timer in php-cli

2004-03-01 Thread Aidan Lister
A simple timer: ? $length = 10; $timestart = time(); for (;;) { if (time() = $timestart + 10) { // go } } ? Also, you should look at the PEAR::Net_SmartIRC framework (it has timers already). It's a fantastic framework, and there's really no point in re-writing the textbook.

[PHP] Re: php and CSS level 2

2004-03-20 Thread Aidan Lister
Your question indicates you have very little understanding of what PHP actually is. PHP will be parsed anywhere in any script, as long as your webserver is set to parse that type of file (ie, .php by default). 1. In your webserver config you need to make .css files parsed by php 2. Like you've

Re: [PHP] Crash in PHP5RC1 but can't find where

2004-03-25 Thread Aidan Lister
I get the same problem on windows, with php5/apache2, and php5/apache1.3. Refreshing any complex script a number of times seems to do it? David Chen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Red, I don't think my problem is caused by debug_backtrace() Perhaps I'll try

[PHP] PHP5RC1 Windows problem

2004-03-27 Thread Aidan Lister
Hi, Trying to run PHP5RC1 on Apache1.3 I get the following error in my syslog: Faulting application Apache.exe, version 0.0.0.0, faulting module php5ts.dll, version 5.0.0.0, fault address 0x0003c773. ... and Apache terminates. Anyone have a solution? -- PHP General Mailing List

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

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

[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

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

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

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

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

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

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

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

[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

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

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

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

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

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

[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

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

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

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

  1   2   >