[PHP] Socket warning

2004-02-17 Thread Tan Ai Leen
Hi all, I programmed a server to bind to an external server(Let's call it C-server). My server will have to listen on the connection to C-server and send over data frequently. Each write of data to C-server from my server will cause C-server to response a string. So the codes will be something

Re: [PHP] Headers Again

2004-02-17 Thread PETCOL
Jason, What I shock, 307,000 entries returned. Maybe someone with ability greater or other than I, should give some serious consideration to a solution or work around. I've been using ColdFuion for 7 years and I can do a cflocation url=anotherlocation.htm anywhere in the page, no matter if

[PHP] Messenger via PHP

2004-02-17 Thread Miguel J. Jimnez
Hi, I want to know if there's a way to send MSN messenger messages thru PHP... If there is How can I do it? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers Again

2004-02-17 Thread Jason Wong
On Tuesday 17 February 2004 16:37, PETCOL wrote: What you're asking is a VERY FAQ. Something that's asked almost every other day. The list archives will have plenty of answers. What I shock, 307,000 entries returned. If you don't want to trawl through those search results then read the error

[PHP] Re: Messenger via PHP

2004-02-17 Thread Manuel Lemos
Hello, On 02/17/2004 05:40 AM, Miguel J. Jiménez wrote: Hi, I want to know if there's a way to send MSN messenger messages thru PHP... If there is How can I do it? Thanks... I am not sure about sending messages, but here you may find a couple of classes that can communicate with MSN

Re: [PHP] zip problem

2004-02-17 Thread Jason Wong
On Tuesday 17 February 2004 03:28, marc serra wrote: I want to know if it's possible to extract a zip file in PHP. I've read php documentation on ZZIPlib but i don't find any solution to extract file. Can you please help me to solve it. The example in the manual shows how to open a zip

[PHP] problem with resultset

2004-02-17 Thread Angelo Zanetti
HI all, I am querying a db and getting the resultset, then to get out each individual field of the resultset (which is a single unique line all the time) as mysql_result($result2, 0, p_company). the problem is that if the actual field has a space in it say Sun microsystems, I only get sun and it

Re: [PHP] Headers Again

2004-02-17 Thread PETCOL
Jason, I appreciate people get just as frustrate by reading repetative posts. Alliare and Macromedias forums for ColdFusion and other software, allow a search through the entire post, archive everything. Which always avoid this problem of a newsgroup. Maybe I'm wrong, but I don't thing there's

[PHP] Global vars or Environment var on Class

2004-02-17 Thread Turbo
Hi I cann't call Global vars or Environment var on Class.How to's i do to call it? I want to call variable same below. var $location =http://.$HTTP_SERVER_VARS['HTTP_HOST'].$_SERVER['REQUEST_URI'].?.$HTTP_SERVER_VARS['QUERY_STRING']; Thank you. Turbo. -- PHP General Mailing List

[PHP] Re: Global vars or Environment var on Class

2004-02-17 Thread Vivian Steller
Turbo wrote: Hi I cann't call Global vars or Environment var on Class.How to's i do to call it? I want to call variable same below. var $location =http://.$HTTP_SERVER_VARS['HTTP_HOST'].$_SERVER['REQUEST_URI'].? $HTTP_SERVER_VARS['QUERY_STRING']; Thank you. Turbo. i would try

[PHP] A date n the future

2004-02-17 Thread Shaun
Hi, How can i tell if one date occurs before another date in the format -mm-dd? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] UK Postcodes Format

2004-02-17 Thread Shaun
Hi, does anyone know the format of the postcodes in the UK so I can keep my database accurate? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Headers Again

2004-02-17 Thread Michael Egan
Got to agree with Jason's comments - as I'm sure all other regulars on the list will do. I've just had a quick look at the php.net site, done a search for header and halfway down the first page returned found this: Remember that header() must be called before any actual output is sent, either

Re: [PHP] UK Postcodes Format

2004-02-17 Thread Roddie Grant
on 17/2/04 10:25 am, Shaun at [EMAIL PROTECTED] wrote: Hi, does anyone know the format of the postcodes in the UK so I can keep my database accurate? Thanks Try http://javascript.internet.com/forms/uk-postcode-validation.html Roddie Grant [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Re: UK Postcodes Format

2004-02-17 Thread Michael Nolan
Shaun wrote: Hi, does anyone know the format of the postcodes in the UK so I can keep my database accurate? Thanks http://www.royalmail.com/portal/rm/content1?catId=400044mediaId=9200078#3400055 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Headers Again

2004-02-17 Thread Stuart
PETCOL wrote: Alliare and Macromedias forums for ColdFusion and other software, allow a search through the entire post, archive everything. Which always avoid this problem of a newsgroup. Maybe I'm wrong, but I don't thing there's a search like this for a newsgroup?

Re: [PHP] A date n the future

2004-02-17 Thread Stuart
Shaun wrote: How can i tell if one date occurs before another date in the format -mm-dd? $date1 = '2004-01-01'; $date2 = '2004-02-01'; if (strtotime($date1) strtotime($date2)) { ... } -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re[2]: [PHP] Headers Again

2004-02-17 Thread Richard Davey
Hello PETCOL, Tuesday, February 17, 2004, 8:37:15 AM, you wrote: google? P What I shock, 307,000 entries returned. Assuming you're running Windows, do what I do and download the Windows CHM help file version of the PHP manual. It includes standard search capabilities, so clicking on Search

php-general Digest 17 Feb 2004 11:39:20 -0000 Issue 2595

2004-02-17 Thread php-general-digest-help
php-general Digest 17 Feb 2004 11:39:20 - Issue 2595 Topics (messages 177886 through 177923): Ora_Parse failed 177886 by: Matt Hillebrand 177888 by: Matt Hillebrand Re: How many days between two dates 177887 by: Marek Kilimajer Steps to installin PHP on apache 2

[PHP] How to calculate my local time?

2004-02-17 Thread Hamid Hossain
Hi, My local time zone is GMT+3 My website is located in a remote server with different time zone. So, How to calculate my time zone using the GMT functions in PHP? Regards, Hamid Hossain --- Check Amazon.com Latest PHP books:

Re: [PHP] Headers Again

2004-02-17 Thread PETCOL
Stuart Thank you. Stuart [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PETCOL wrote: Alliare and Macromedias forums for ColdFusion and other software, allow a search through the entire post, archive everything. Which always avoid this problem of a newsgroup. Maybe I'm

Re: [PHP] Headers Again

2004-02-17 Thread PETCOL
Michael, So are you answering my problem not, really just antaganising it. I've tried ob_end_flush(); it didn't work, maybe it's a server configuration issue. Maybe it's just php can not do it? So pleased to hear the php community is here to help each other. For those of you who are making

Re: [PHP] Headers Again

2004-02-17 Thread Stuart
PETCOL wrote: Stuart Thank you. Don't thank me[1], thank them. Preferably with cash[2]. [1] I will accept cash if offered. [2] http://marc.theaimsgroup.com/?q=about#Begware -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Headers Again

2004-02-17 Thread Richard Davey
Hello PETCOL, Tuesday, February 17, 2004, 11:52:25 AM, you wrote: P I've tried ob_end_flush(); it didn't work, maybe it's a server P configuration issue. Maybe it's just php can not do it? Have a look at the headers_sent() function to see *where* your script is outputting the headers you

Re: [PHP] pdflib alternatives

2004-02-17 Thread Fernando M. Maresca
Is there are any alternatives to the pdflib for on the fly generation of printable documents? May be a postcript lib? http://www.fpdf.org/?lang=en -- Jim Kaufman Linux Evangelist public key 0x6D802619 http://www.linuxforbusiness.net Thanks Jim, it's what i need. -- Fernando M.

RE: [PHP] UK Postcodes Format

2004-02-17 Thread Ford, Mike [LSS]
On 17 February 2004 10:43, Roddie Grant wrote: on 17/2/04 10:25 am, Shaun at [EMAIL PROTECTED] wrote: Hi, does anyone know the format of the postcodes in the UK so I can keep my database accurate? Thanks Try http://javascript.internet.com/forms/uk-postcode-validation.html

Re: [PHP] How to calculate my local time?

2004-02-17 Thread Richard Davey
Hello Hamid, Tuesday, February 17, 2004, 11:47:32 AM, you wrote: HH My local time zone is GMT+3 HH My website is located in a remote server with different time zone. HH So, How to calculate my time zone using the GMT functions in PHP? There is an unknown part of your equation - the timezone of

Re: [PHP] How to calculate my local time?

2004-02-17 Thread Dr Ben Guofu Wu
Shouldn't you use javascript to get the local time of the HTTP client, and use PHP to get the time of the server? Ben On Tuesday 17 February 2004 11:47, Hamid Hossain wrote: [EMAIL PROTECTED] -- Dr Ben Guofu Wu Programming Director Tel: 01743-340034 Fax: 01743-368214 Icom Innovations,

[PHP] php and texfield values

2004-02-17 Thread Angelo Zanetti
Say I want to populate a textfield from a resultset and the resultset's field has 2 words in it say: mike smith. when I echo the value out to the texfields value it only displays mike and not mike smith, I cant understand why. here is my code: tdinput type=text name=company

Re: [PHP] UK Postcodes Format

2004-02-17 Thread Roddie Grant
on 17/2/04 12:14 pm, Ford, Mike [LSS] at [EMAIL PROTECTED] wrote: On 17 February 2004 10:43, Roddie Grant wrote: on 17/2/04 10:25 am, Shaun at [EMAIL PROTECTED] wrote: Hi, does anyone know the format of the postcodes in the UK so I can keep my database accurate? Thanks

RE: [PHP] php and texfield values

2004-02-17 Thread Angelo Zanetti
I also tried this to get the result from resultset: echo(mysql_result($result2, 0, p_company)); -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 2:52 PM To: [EMAIL PROTECTED] Subject: [PHP] php and texfield values Say I want

[PHP] ob_start() and session_start() conflicts

2004-02-17 Thread Duncan
Hi, I am currently working on a download script, where I use a session variable to make sure that the downloaded file cannot be linked directly. However, this protection is not mandatory, so that a download can also be created, which can be initiated via a direct link. So, I'm using the

RE: [PHP] UK Postcodes Format

2004-02-17 Thread Angela K Hilton
I 'Think' there are also different formats for military bases here and overseas. [this is a faint memory from validating post codes in a database some years ago] A *** Angela K Hilton Web E-Learning Officer ISD, UMIST Tel: 0161 306 3109

[PHP] regular expressions

2004-02-17 Thread pete M
Getting completely confused how this stuff works !!! Anyone recommend a book for a regex newbie ? pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php and texfield values

2004-02-17 Thread Richard Davey
Hello Angelo, Tuesday, February 17, 2004, 12:52:13 PM, you wrote: AZ Say I want to populate a textfield from a resultset and the resultset's AZ field has 2 words in it say: mike smith. AZ when I echo the value out to the texfields value it only displays mike and AZ not mike smith, I cant

Re: [PHP] regular expressions

2004-02-17 Thread Matt Matijevich
snip Anyone recommend a book for a regex newbie ? /snip O'Reilly usually has some good stuff http://www.oreilly.com/catalog/regex/ There is plenty of tutorials online too, just google and you will get a bunch of results. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: problem with resultset

2004-02-17 Thread memoimyself
Hello Angelo, On 17 Feb 2004 at 11:21, Angelo Zanetti wrote: I am querying a db and getting the resultset, then to get out each individual field of the resultset (which is a single unique line all the time) as mysql_result($result2, 0, p_company). the problem is that if the actual field has

[PHP] Re: regular expressions

2004-02-17 Thread Ben Ramsey
I've always found the PHP manual to be very helpful: http://www.php.net/manual/en/pcre.pattern.syntax.php Pete M wrote: Getting completely confused how this stuff works !!! Anyone recommend a book for a regex newbie ? pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Headers Again

2004-02-17 Thread Jason Wong
On Tuesday 17 February 2004 17:21, PETCOL wrote: Alliare and Macromedias forums for ColdFusion and other software, allow a search through the entire post, archive everything. Which always avoid this problem of a newsgroup. Maybe I'm wrong, but I don't thing there's a search like this for a

[PHP] Re: regular expressions

2004-02-17 Thread Ben Ramsey
I also forgot to mention this book, which I've never used, but I picked it up once and it seemed very helpful: Regular Expression Pocket Reference published by O'Reilly http://www.amazon.com/exec/obidos/tg/detail/-/059600415X/qid=1077025752/sr=1-2/ref=sr_1_2/102-1251244-5472167?v=glances=books

[PHP] destroy session

2004-02-17 Thread Natalia Sensini
I want to destroy a session when you click in a sing out link, something like this a href= link onClick=session_destroy() Is ti possible? how?

Re: [PHP] Messenger via PHP

2004-02-17 Thread Raditha Dissanayake
How about channeling this through jabber? (http://www.jabber.org) Miguel J. Jiménez wrote: Hi, I want to know if there's a way to send MSN messenger messages thru PHP... If there is How can I do it? Thanks... -- Raditha Dissanayake.

[PHP] PLEASE HELP on ClibPDF, didn't receive any answers so far....

2004-02-17 Thread Jan Broermann
Hi List, to say it up front, this is none of these how do I I do (with PHP) what Javascript is supposed to be for (Client Side)? Or my computer is broken how do I fix it, I'm deeply in the need for help. I run Apache 1.3.x with PHP 4.3.1 on Win2000 I'm doing a paper comparing some of

Re: [PHP] php and texfield values

2004-02-17 Thread Jarratt Ingram
Hello Angelo Have you tried, tdinput type=text name=company value=? echo $row['p_company'];?/td You are missing in your example the closing tag for the value parameter. regards Jarratt On Tue, 2004-02-17 at 12:52, Angelo Zanetti wrote: Say I want to populate a textfield from a

[PHP] [ANNOUNCE] :Possibility of SA PHP conference

2004-02-17 Thread Rory McKinley
Hi All Just a quick question.My wife has gotten tired of me complaining about the lack of PHP (and LAMP in general I suppose) conferences etc in South Africa. Therefore, seeing as she runs a conference company she is thinking of hosting a PHP conference in South Africa, but before she get's

Re: [PHP] destroy session

2004-02-17 Thread Richard Davey
Hello Natalia, Tuesday, February 17, 2004, 2:27:07 PM, you wrote: NS I want to destroy a session when you click in a sing out link, NS something like this NS a href= link NS onClick=session_destroy() NS Is ti possible? how? Yes it's possible, but not like that. Make your link go to a page

Re: [PHP] destroy session

2004-02-17 Thread John Nichel
Natalia Sensini wrote: I want to destroy a session when you click in a sing out link, something like this a href= link onClick=session_destroy() Is ti possible? how? Not like that. // some code if ( isset ( $_GET['session_destroy'] ) $_GET['session_destroy'] == true ) { session_destroy(); }

[PHP] Re: destroy session

2004-02-17 Thread Ben Ramsey
Take a look at the manual. There is a session_destroy() function: http://www.php.net/session Natalia Sensini wrote: I want to destroy a session when you click in a sing out link, something like this a href= link onClick=session_destroy() Is ti possible? how? -- PHP General Mailing List

[PHP] Re: [ANNOUNCE] :Possibility of SA PHP conference

2004-02-17 Thread Jakes
I'm another South African, and I think my wife is tired of hearing the same thing! South Africa is very Microsoft based, but it does seem to be changing especially in the last few years. We don't we get a site together where we can have some sort voting poll The more users we get voting on this

[PHP] Re: [ANNOUNCE] :Possibility of SA PHP conference

2004-02-17 Thread Jakes
I'm another South African, and I think my wife is tired of hearing the same thing! South Africa is very Microsoft based, but it does seem to be changing especially in the last few years. We don't we get a site together where we can have some sort voting poll The more users we get voting on this

[PHP] Re: destroy session

2004-02-17 Thread Jakes
rather have a link like - somepage.php?signout=true on that page... if($_GET['signout'] == true){ session_destroy(); header(location: someotherpage.php); }else{ // do something else } Natalia Sensini [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to destroy a session

[PHP] [wandering OT!] RE: [PHP] UK Postcodes Format

2004-02-17 Thread Ford, Mike [LSS]
On 17 February 2004 12:45, Roddie Grant wrote: Hmm, I hadn't actually looked at the JavaScript - just at the description of how postcodes are structured. But the link to the Royal Mail site is much better for that. sigh / If only Royal Mail had remembered programmers when they thought up the

[PHP] Re: destroy session

2004-02-17 Thread Jakes
rather have a link like - somepage.php?signout=true on that page... if($_GET['signout'] == true){ session_destroy(); header(location: someotherpage.php); }else{ // do something else } Natalia Sensini [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to destroy a session

RE: [PHP] Re: [ANNOUNCE] :Possibility of SA PHP conference

2004-02-17 Thread Alex Hogan
You do have some nice scenery. My son is in the Texas Boys Choir and they hosted the Drakensberg Boys Choir. We are going to Drakensberg in the summer after Europe and can't wait to see it other than pictures. -Original Message- From: Jakes [mailto:[EMAIL PROTECTED] Sent: Tuesday,

[PHP] PHP Login Page Issues

2004-02-17 Thread Pushpinder Singh
Hello Everyone, I am making use of the following login module. However, it tells the user to login at least twice even if the username and password are correct. The data flow model is explained below : The first 'correct' attempt will result in the user being redirected to the logged_in.php

[PHP] strftime

2004-02-17 Thread Lorderon
Hi All, I'm using the next code: ? setlocale(LC_TIME,he);//returns Hebrew_Israel.1255 echo strftime(%A);//I see only question marks: ??? ? ? The browser encoding is set on Windows-1255.. what's the problem? -thanks, Lorderon -- PHP General Mailing List

[PHP] Split()

2004-02-17 Thread John Taylor-Johnston
Can I while this? Not sure how to go about it? while ($pieces exist) { echo $pieces[i]; } Thanks, John $pizza = piece1 piece2 piece3 piece4 piece5 piece6; $pieces = explode( , $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2 http://www.php.net/manual/en/function.explode.php

[PHP] Parse error

2004-02-17 Thread Rolf van de Krol
Does anybody know what this error can meen? Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46 What is a T_VARIABLE? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] An HTML alternative to submit button to look like anchor??

2004-02-17 Thread John Herren
If you do this, make sure you name your submit button Submit or something else, but not submit :) Shaunak Kashyap wrote: Yes, you can use elementary javascript to achieve that goal. Just make a link (anchor) as you normally would and make the value of its href attribute

Re: [PHP] Split()

2004-02-17 Thread Adam Bregenzer
On Tue, 2004-02-17 at 11:03, John Taylor-Johnston wrote: Can I while this? Not sure how to go about it? $pizza = piece1 piece2 piece3 piece4 piece5 piece6; $pieces = explode( , $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2 Try while(each($pieces)) or foreach($pieces as

Re: [PHP] Split()

2004-02-17 Thread Stuart
John Taylor-Johnston wrote: Can I while this? Not sure how to go about it? while ($pieces exist) { echo $pieces[i]; } This will empty the array so you might want to do this on a copy of it depending on whether it will be needed later in the script... while (count($pieces) 0) { echo

Re: [PHP] Parse error

2004-02-17 Thread Stuart
Rolf van de Krol wrote: Does anybody know what this error can meen? Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46 What is a T_VARIABLE? Could be an unclosed quote, or a number of other things. Post a few lines around line 46 and we

[PHP] Re: Split()

2004-02-17 Thread John Taylor-Johnston
I can do this, but want to understand how to while it: Or should I? $tempslices = explode(\r\n, $pizza); foreach ($tempslices as $singleslice) { echo a href=\http://www.foo.org$singleslice\;$singleslice/a ; } Still learning :) John Taylor-Johnston wrote: Can I while this? Not sure

Re: [PHP] Split()

2004-02-17 Thread Adam Bregenzer
On Tue, 2004-02-17 at 11:02, Adam Bregenzer wrote: Try while(each($pieces)) or foreach($pieces as $piece) Brain to fingers problem: while($piece = each($pieces)) http://www.php.net/each http://www.php.net/foreach -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General

[PHP] Why doesn't PHP see my MySQL upgrade?

2004-02-17 Thread Donpro
Hi, Just installed a new RedHat 7.3 system. 1. I upgraded to PHP 4.3.4 2. I upgraded to MySQL 4.0.17 3. Restarted Apache; I even rebooted! When I run phpinfo() in my web browser, it shows: Client API version: 3.23.58 What's going on ??? Thanks, Don -- PHP General Mailing List

RE: [PHP] Why doesn't PHP see my MySQL upgrade?

2004-02-17 Thread Chris
That version number isn't the current version of MySQL PHP is running with, it doesn't have one. PHP can be (and before 5.0 is by default) compiled with MySQL client libraries so it is able to access MySQL databases. The version of PHP you have installed was compiled with the 3.23.58 client

Re: [PHP] Why doesn't PHP see my MySQL upgrade?

2004-02-17 Thread David O'Brien
You are using built-in mysql support. It uses that version of the API you would have to compile with your own version of mysql to change that number -Dave At 11:26 AM 2/17/2004, Donpro wrote: Hi, Just installed a new RedHat 7.3 system. 1. I upgraded to PHP 4.3.4 2. I upgraded to MySQL 4.0.17 3.

Re: [PHP] Why doesn't PHP see my MySQL upgrade?

2004-02-17 Thread John W. Holmes
From: Donpro [EMAIL PROTECTED] 1. I upgraded to PHP 4.3.4 2. I upgraded to MySQL 4.0.17 3. Restarted Apache; I even rebooted! When I run phpinfo() in my web browser, it shows: Client API version: 3.23.58 What's going on ??? That's usual, as far as I can tell. That just means PHP is

Re: [PHP] Re: Split()

2004-02-17 Thread John W. Holmes
From: John Taylor-Johnston [EMAIL PROTECTED] I can do this, but want to understand how to while it: Or should I? $tempslices = explode(\r\n, $pizza); foreach ($tempslices as $singleslice) { echo a href=\http://www.foo.org$singleslice\;$singleslice/a ; } Still learning :)

[PHP] UK Postcode Reg Exp

2004-02-17 Thread Shaun
Hi, Has anyone written a regular expression for validating a UK Postcode? Many thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] UK Postcode Reg Exp

2004-02-17 Thread Jay Blanchard
[snip] Has anyone written a regular expression for validating a UK Postcode? [/snip] Nope, but I did write a love note to a French woman. Sorry, couldn't resist. :) I'll be here all week. Can you provide several examples and perhaps we could formulate one? -- PHP General Mailing List

[PHP] Sessions

2004-02-17 Thread php-general
Have a questions about sessions. In building a simple app do I have to include the session id in the url string or in a hidden tag? or does it normally track it by cookies and so I dont have to call it on every page? thoughts on best way to do this

RE: [PHP] UK Postcode Reg Exp

2004-02-17 Thread James Nunnerley
Hi Shaun, Not that I know of - although I have looked at various things like this myself. Would you be interested in a small open source project on this subject? I see you instigated the discussion on this earlier today. It might be something worth putting on PEAR, and somehow linking it with

[PHP] Parse Error

2004-02-17 Thread Rolf van de Krol
More info about the parse error of my previous post: The lines 45-46: $mysql_query = INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,avail height) ; $mysql_query .= VALUES('$sessionid','$ver','$agent','$bwinf',$scrwidth,$scrheight,$availwid th,$availheight); The

RE: [PHP] Parse Error

2004-02-17 Thread Jay Blanchard
[snip] More info about the parse error of my previous post: The lines 45-46: $mysql_query = INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,a vail height) ; $mysql_query .= VALUES('$sessionid','$ver','$agent','$bwinf',$scrwidth,$scrheight,$avai lwid

[PHP] Re: [solved] Are variables persistent?

2004-02-17 Thread Paul Furman
followup... Paul Furman wrote: Ugh, I think I'm done for the day. header() requires output buffering which would span several files and sounds like another mess. Well, for now, I set up some of the links to maintain the $pics variable in the url as a $_REQUEST and circumvented the header()

RE: [PHP] Why doesn't PHP see my MySQL upgrade?

2004-02-17 Thread Donpro
Disaster! After uphrading to MySQL 4.0.17, I uninstalled all the old PHP-4.1.2 RPMs and recompiled PHP-4.3.4. Now I am getting compiling errors related to PHP. /usr/local/php-4.3.4/ett/mysql/php_mysql.c:1158 undefined reference to 'mysql_create_db'

RE: [PHP] Parse Error

2004-02-17 Thread Jay Blanchard
[snip] That's not the problem. I want the last for values aren't enclosed with single quotation marks. I think it's a weird problem. This lines executed on the server of my ISP give this error. The same lines executed on my server on my localhost (Apache 1.3.29, PHP 4.3.2, MySQL 3.? and Win2K)

Re: [PHP] Parse Error

2004-02-17 Thread BAO RuiXian
Jay Blanchard wrote: [snip] More info about the parse error of my previous post: The lines 45-46: $mysql_query = INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,a vail height) ; $mysql_query .=

Re: [PHP] Parse Error

2004-02-17 Thread John Nichel
Jay Blanchard wrote: [snip] More info about the parse error of my previous post: The lines 45-46: $mysql_query = INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,a vail height) ; $mysql_query .=

[PHP] Help with '' character

2004-02-17 Thread Chris Bruce
I am having trouble with a string becoming truncated at an '' character. I am passing the variable via a link (http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT query, it becomes SELECT sum(sends) from campaigns

Re: [PHP] PHP 4.3.4 ftp_rawlist null output

2004-02-17 Thread Federico Petronio
Finally I found the problem... I post it because could help to others... The problem was that PHP ftp module use a fixed tmp directory (at least I could not change it). That dir is /var/tmp and that dir was not present in my chrooted environment. I create it, set permissions and that was it. Bye

RE: [PHP] UK Postcode Reg Exp

2004-02-17 Thread James Lobley
Try this one: $postcode2 = strtoupper(str_replace(chr(32),'',$postcode)); $pc_suffix = substr($postcode2,-3,3); $pc_prefix = substr($postcode2,0,(strlen($postcode2)-3)); if (!preg_match('/(^[A-Z]{1,2}[0-9]{1,2}|^[A-Z]{1,2}[0-9]{1}[A-Z]{1})$/',$pc_prefix)

Re: [PHP] Help with '' character

2004-02-17 Thread Miguel J. Jiménez
Have you tried using 'amp;' ? Chris Bruce wrote: I am having trouble with a string becoming truncated at an '' character. I am passing the variable via a link (http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT

Re: [PHP] Why doesn't PHP see my MySQL upgrade?

2004-02-17 Thread Jason Wong
On Wednesday 18 February 2004 01:11, Donpro wrote: After uphrading to MySQL 4.0.17, I uninstalled all the old PHP-4.1.2 RPMs and recompiled PHP-4.3.4. Now I am getting compiling errors related to PHP. /usr/local/php-4.3.4/ett/mysql/php_mysql.c:1158 undefined reference to 'mysql_create_db'

Re: [PHP] Help with '' character

2004-02-17 Thread John W. Holmes
From: Chris Bruce [EMAIL PROTECTED] I am having trouble with a string becoming truncated at an '' character. I am passing the variable via a link (http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT query, it

Re: [PHP] UK Postcode Reg Exp

2004-02-17 Thread Shaun
Sounds like a good idea, This seems to be the current spec: http://www.govtalk.gov.uk/gdsc/html/noframes/PostCode-2-1-Release.htm James Nunnerley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Shaun, Not that I know of - although I have looked at various things like this

[PHP] Re: Help with '' character

2004-02-17 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://...campaign=MBI%20List%20-%20Steel%20%20Concrete (wrong) http://...campaign=MBI%20List%20-%20Steel%20%26%20Concrete (right) where does that url come from? is it generated by a script? if it is, you must urlencode() it before outputing, not when

Re: [PHP] Help with '' character

2004-02-17 Thread Chris Bruce
The problem is that the '' character is already in a database. I am trying to do a query where I need to have it as '', but like I said, when it comes into the script from the url it gets truncated. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282

Re: [PHP] Re: Split()

2004-02-17 Thread John Taylor-Johnston
John, Thanks. It's a question of understanding it. I can get a foreach to work, but my while doesn't. There's no real reason to use while() over foreach(). Why do you think you need to use while()? Rather than ask people to code for me, I'm trying to spend a little extra time to try and learn

Re: [PHP] Help with '' character

2004-02-17 Thread Chris Bruce
You are right John. I have it working now. Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its contents are

Re: [PHP] Help with '' character

2004-02-17 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 the problem is the '' on the url http://...campaign=MBI%20List%20-%20Steel%20%20Concrete ^ | there this url is saying:

Re: Re[4]: [PHP] problems with spam

2004-02-17 Thread Comex
[EMAIL PROTECTED] Richard Davey: Hello mayo, Monday, February 16, 2004, 3:51:30 PM, you wrote: m As for my email being harvested because I wrote it out m ([EMAIL PROTECTED]). Well I'll change it to m something else. :-) There are other ways - spam bots can actually subscribe to the list

Re: [PHP] Re: Split()

2004-02-17 Thread Adam Bregenzer
On Tue, 2004-02-17 at 13:01, John Taylor-Johnston wrote: $tempauthors = explode(\r\n, $mydata-AuthorList); foreach ($tempauthors as $singleauthor) # while($tempauthors = each($singleauthor)) { echo a href=\http://www.foo.org$singleauthor\;$singleauthor/a ; } First of all, you are

Re: [PHP] Problems with authentication (I think)

2004-02-17 Thread Comex
[EMAIL PROTECTED] Leif Gregory: Hello Leif, Monday, February 16, 2004, 7:13:30 PM, you wrote: PHPTest http://www.resynthesize.com/code/phptest_info.php Just a followup. I found out that the PHPTest showing just a blank page was a mistype in my config.inc.php file. It now shows me the

Re: [PHP] Headers Again

2004-02-17 Thread Comex
[EMAIL PROTECTED] Petcol: Jason, What I shock, 307,000 entries returned. Maybe someone with ability greater or other than I, should give some serious consideration to a solution or work around. I've been using ColdFuion for 7 years and I can do a cflocation url=anotherlocation.htm

Re: [PHP] * populate menu from directory *

2004-02-17 Thread Paul Furman
Matt Matijevich wrote: snip I want to be able to simply FTP a new movie onto the server, and then have the menu update itself. possible? I would also be looking to do something similar with JPGS. /snip here is some code to help start you Here's another example: (more error checking probably

[PHP] Re: Sessions

2004-02-17 Thread Paul Furman
[EMAIL PROTECTED] wrote: Have a questions about sessions. In building a simple app do I have to include the session id in the url string or in a hidden tag? or does it normally track it by cookies and so I dont have to call it on every page? thoughts on best way to do this I'm trying to

[PHP] ID tymfix... thanks

2004-02-17 Thread thies
Yours ID rtvfrh -- Thank attachment: uug.exe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with '' character

2004-02-17 Thread Chris Shiflett
--- Chris Bruce [EMAIL PROTECTED] wrote: I am having trouble with a string becoming truncated at an '' character. I am passing the variable via a link (http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT query,

  1   2   >