Re: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Alan Milnes
I am VERY computer literate, and VERY message-oriented ILLITERATE. I have coded HTML for years, and although not a fancy programmer I think my pages are OK. Could be better, but OK. (http://www.miscelpage.com, http://www.boundarycountyfire.com, http://www.curleycreek.com,

Re: [PHP] if inside an echo.

2007-07-31 Thread Alan Milnes
On 31/07/07, Hulf [EMAIL PROTECTED] wrote: I am outputting a selectbox and want to do the follwoing. How can I add the IF statement inside the the echo? Something like this:- for ($value = 0; $value = 2000; $value += 100) { echo option value=\$value\; if ($min_rent==$value) { echo

Re: [PHP] need help,pls

2007-07-26 Thread Alan Milnes
On 26/07/07, esimaje juan toritseju [EMAIL PROTECTED] wrote: hi, My name is Juan, i need help from you and i will be greatful if you could assist me,i have got an academic project to create a website .Within the page i should create a login session for users ,i will have a database to save

Re: [PHP] Strategy when working with designer(s)?

2007-07-24 Thread Alan Milnes
On 24/07/07, Simon [EMAIL PROTECTED] wrote: I have always seen the programmer as the Leader* of the production of the project. He is the one to give the final word on what is Possible or not, and that is precisely what cause most problems (also known as scope of the project). The 'Leader'

Re: [PHP] Error on installing under Windows Vista leads to inability to uninstall 5.2.3

2007-07-18 Thread Alan Milnes
On 18/07/07, Stephan G [EMAIL PROTECTED] wrote: I have tried to install the following on my Windows Vista Home Premium System: Ah I see the problem there Vista is not a mature OS yet - wait until at least SP1 before trying it. 1. How can I uninstall this and remove it from my

Re: [PHP] Finding text in a variable

2007-07-07 Thread Alan Milnes
On 07/07/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-07-06 at 22:46 +0100, Alan Milnes wrote: I have a piece of code which uses curl to get a web page and puts it into a variable. I now need to search that variable and find everything between `div class=msgarea` and the next

Re: [PHP] Using PHP to retrieve a Yahoo Groups Web Page

2007-07-06 Thread Alan Milnes
On 06/07/07, Greg Donald [EMAIL PROTECTED] wrote: Specifically you need these two options: CURLOPT_COOKIEFILE CURLOPT_COOKIEJAR http://us2.php.net/manual/en/function.curl-setopt.php Thanks - that was it. Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Finding text in a variable

2007-07-06 Thread Alan Milnes
I have a piece of code which uses curl to get a web page and puts it into a variable. I now need to search that variable and find everything between `div class=msgarea` and the next `/div` From what I have found elsewhere I think I will need to use a regular expression but can anyone point me

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Alan Milnes
On 05/07/07, Jochem Maas [EMAIL PROTECTED] wrote: 6. IBM, Oracle and others seem to be less sure about whether php will ever be a major player in the business solutions arena (often referred to as 'being enterprise ready') ... there may be some way to go in this sense but there are plenty of

[PHP] Using PHP to retrieve a Yahoo Groups Web Page

2007-07-04 Thread Alan Milnes
I have spent the afternoon trawling the web for how to retrieve a Yahoo Groups Web Page using PHP. The best option seems to be curl, which is installed on my host. I need to understand how to set the cookies so that Yahoo accepts my response. The code I have is:-

Re: [PHP] Hi. I need your help here

2007-06-24 Thread Alan Milnes
Here are a couple of links that will help you:- http://uk2.php.net/trim http://www.catb.org/~esr/faqs/smart-questions.html Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why so slow?

2006-11-02 Thread Alan Milnes
Robin Vickery wrote: include(http://www.squareinch.net/include/misc.inc;); Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display your details to the world if accessed directly. Alan

[PHP] Creating new table from distinct entries

2006-10-19 Thread Alan Milnes
PHP 4.4.4 MySQL 4.1.21-community-nt I have a table in my database that has a Primary key on 2 fields (MyID and MyChange) and a field that indicates if there is a problem with the record (MyError)- I want to create a new table that only has unique MyIDs and where there is more than 1 I only

Re: [PHP] Text from Excel csv file loaded into MySQL table

2006-10-17 Thread Alan Milnes
Richard Lynch wrote: Ah... Try something like this: ?php $file = fopen($filename, r) or die(Could not open $filename); while (!feof($file)){ $values = fgetcsv($file, 100); array_walk($values, 'mysql_real_escape_string'); $values_sql = implode(', ', $values); $query =

[PHP] Text from Excel csv file loaded into MySQL table

2006-10-16 Thread Alan Milnes
Can anyone point me to a really good end to end tutorial on extracting text from an Excel csv file and uploading it into MySQL via a PHP script? There are lots of bits and pieces on the Web and in the PHP manual but I haven't found a really comprehensive article yet. I have Welling and

Re: [PHP] Text from Excel csv file loaded into MySQL table

2006-10-16 Thread Alan Milnes
Chris Boget wrote: Can anyone point me to a really good end to end tutorial on extracting text from an Excel csv file and uploading it into MySQL via a PHP script? Actually, depending on the integrity of the data and the consistency of the format in the CSV file, you can do this

Re: [PHP] Using mysql_real_escape_string

2006-10-10 Thread Alan Milnes
Thanks everyone. Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using mysql_real_escape_string

2006-10-09 Thread Alan Milnes
OK this should be really obvious but I just can't figure it out. I have a script that opens a file, reads it line by line and inserts the contents into a database. I know I need to use mysql_real_escape_string to properly escape the contents but I don't know where exactly to place it in

[PHP] Distribution of records

2006-02-18 Thread Alan Milnes
Hi Guys, I'm looking for some help in buiding up the right queries / code for this. I have a database that tracks all the plays of my Football Team. Here are the relevant Fields:- Formation OCall DCall OYards Key The key is an amalgam of the first 3 fields so a typical record might look

[PHP] PHP / MySQL Authentication class

2005-11-14 Thread Alan Milnes
Can anyone point me to a good User Authentication class written in PHP (Version 5 preferably) that uses MySQL as the backend. If the output is valid XHTML then even better. There are lots of hits on Google but I need some help sorting the wheat from the chaff. It's for a hobbyist site so I'm

[PHP] Class / app for reading web pages and storing in a mySQL DB

2005-08-08 Thread Alan Milnes
I'm interested in extracting a series of web pages from a Yahoo forum and storing them in a MySQL database so I can generate things like most number of posts etc. I've searched on Google but most of the links seem to be for email harversters! Anyone have any tips for where to look? Alan --

Re: [PHP] sorry for asking here,a small apache query

2005-08-06 Thread Alan Milnes
babu wrote: Hi all, I am sorry for asking in php forum.i am subscribed to php and not to apache.but i hope many people in this group also the solution to this query. If you know you are in wrong place why ask here? Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Alan Milnes
Jay Blanchard wrote: 6. PHP is a server side scripting language. Whatever processing PHP does takes place BEFORE the output reaches the client. Therefore, it is not possible to access users' computer related information (OS, screen size etc) using PHP. Nor can you modify any the user side

Re: [PHP] Setting clock backwards hangs webserver (PHP+THTTPD)

2005-07-27 Thread Alan Milnes
Vinoo S Warrier wrote: Hi all, Iam running PHP on THTTPD 2.21b I have a simple php script that sets the system clock (using exec(date -s MMDDhhmm.ss) and returns a page showing the system time when i use it to set the time forwards, it works fine but if i use it and set the time

Re: [PHP] Urgent:Php5 fully oops supported? Difference between java oops php5 oops

2005-07-26 Thread Alan Milnes
Tamilarasi Palanisamy (tpalanis) wrote: Hi, Hi I want to know whether Php5 fully oops ? That depends - what do you want to do? Difference between java oops php5 oops. I don't know - I'm a PHP programmer and I've never written a single line of Java code in my life. I

Re: [PHP] how to post a question?

2005-07-22 Thread Alan Milnes
Chirantan Ghosh wrote: I was wondering how can I ask a question to the other subscribers? Try reading this first:- http://www.catb.org/~esr/faqs/smart-questions.html Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Missing or wrong reply-to headers in this mailing list

2005-07-13 Thread Alan Milnes
Rasmus Lerdorf wrote: Please search the archives for the complete and authoritative answer to that. The short version is that munging the reply-to header is technically incorrect and from a usability point of view it errors on the side of exposing someone's potentially private email. Oh I've

Re: [PHP] Missing or wrong reply-to headers in this mailing list

2005-07-12 Thread Alan Milnes
Chris W. Parker wrote: This has come up many times in the past and so far it has not changed. Just hit the Reply to All button and you'll be fine. The problem with that is that people then get a personal message *and *a list message. Why can't this group be set up properly so reply goes to

Re: [PHP] FW: php pages

2005-04-01 Thread Alan Milnes
bruce wrote: hey guys can someone tell me why this seems to work.. is it because a security attribute hasn't been correctly set? It's called an easter egg - check out your phpinfo on April 1st ... http://www.phpfreaks.com/articles/229/0.php Alan -- PHP General Mailing List