Re: [PHP] Problem with code

2004-12-07 Thread Ryan King
On Dec 5, 2004, at 9:05 PM, Richard Kurth wrote: I am having a problem with the code below it provides the first page with out any problem but when I select the next page it shows all the results from the first page and the results from the second page. It does the same thing on the third page

[PHP] Links displaying in Table cells

2004-12-07 Thread Tomar Rajeev (ext)
Dear All, After clicking on a link of a menu in a PHP page, I want to display that link in cell of a table. Please let me know how to open this link in a table cell. Thanking in anticipation. Thanks and Regards, Rajeev Tomar -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Sessions and multiple windows

2004-12-07 Thread Rory McKinley
Hi List I am afraid that this is going to be a long complicated question. And to start off with I have RTFM, STFA, STFW - and have yet to find the answer I am looking for - unless, perhaps I am asking the wrong question? But back to the subject - I have an app that allows users to open

[PHP] FCK Editor

2004-12-07 Thread Ryan A
Hey all, I came accross this free dhtml editor while browsing the net for popular projects, anybody else using FCK Editor? If yes, any problems? if no, heres the url 'case you want to check it out yourself: http://www.fckeditor.net/ Cheers, Ryan -- No virus found in this outgoing message.

[PHP] Magic Quotes Issue

2004-12-07 Thread Shaun
Hi, I have been investigating the problem of apostrphes in a mysql insert / update. I use a db_query function for all my queries: function db_query($query) { $qid = mysql_query($query); return $qid; } It appears after some research that the best way around the problem is to check whether

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Jason Wong
On Tuesday 07 December 2004 20:50, Rory McKinley wrote: User clicks through to page_3.php from page_2.php. Page_3.php starts, unserializes $_SESSION['policeman'], and begins a lengthy SQL query that will take a few minutes to complete. When Page_3.php does its business it will have locked

Re: [PHP] Magic Quotes Issue

2004-12-07 Thread Gareth Williams
Try $string = mysql_real_escape_string($string); On 7 Dec 2004, at 14:12, Shaun wrote: Hi, I have been investigating the problem of apostrphes in a mysql insert / update. I use a db_query function for all my queries: function db_query($query) { $qid = mysql_query($query); return $qid; } It

RE: [PHP] Sessions and multiple windows

2004-12-07 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 07 December 2004 12:50, Rory McKinley wrote: [] Page_3.php starts, unserializes $_SESSION['policeman'], and begins a lengthy SQL query that will take a few minutes to

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Rory McKinley
Jason Wong wrote: On Tuesday 07 December 2004 20:50, Rory McKinley wrote: snip As Page_3.php is still doing its business the session data file is locked and when page_9.php tries to session_start() and finds it has no access to it will suspend execution until the lock is relinquished by

[PHP] searching with mutable criteria

2004-12-07 Thread Richard Kurth
I am having a problem with this script what it does is write the sql needed to search for data based on mutable criteria. It works fine if you search with all the different fields but if you only search with one or two of the fields it creates a sql that looks like this SELECT * FROM listing WHERE

RE: [PHP] Links displaying in Table cells

2004-12-07 Thread Vincent DUPONT
you should add a iframe into your table cell and load the target page (link) into that iframe. maybe some javacsript could create the iframe for you and set its width and height. I Never did this, so this is purely a suggestion Vincent -Original Message- From: Tomar Rajeev (ext)

Re: [PHP] searching with mutable criteria

2004-12-07 Thread Christopher Fulton
An easy way to fix that problem would be to, instead of checking every time if one of the others also is not empty would be to do something like this (havn't tested this code, so no guarantees there's no typos). $sqlCondition = ; if($_POST[state] != || $_POST[types] != || $_POST[county] !=

[PHP] session question

2004-12-07 Thread Josh Howe
Hi, I've looked at the php session documentation, and it doesn't look like there's any way to run code when a session expires. I'd like to do some cleanup when a user's session expires, is there any way to trap this? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] html parser tutorial

2004-12-07 Thread Ahmed Abdel-Aliem
Doesn anyone plz knows a good tutorial for parsing html files ? i have a html page and i want to parse information from it to insert it into mysql. i have a good experience in php, but i didn't write a parser before. can anyone help plz ? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] html parser tutorial

2004-12-07 Thread rouvas
On Tuesday 07 December 2004 19:09, Ahmed Abdel-Aliem wrote: Doesn anyone plz knows a good tutorial for parsing html files ? i have a html page and i want to parse information from it to insert it into mysql. Check out: http://0x00.org/php/phpHTMLparse/index.php -Stathis -- PHP General

Re: [PHP] session question

2004-12-07 Thread Greg Donald
On Tue, 7 Dec 2004 11:50:58 -0500, Josh Howe [EMAIL PROTECTED] wrote: I've looked at the php session documentation, and it doesn't look like there's any way to run code when a session expires. I'd like to do some cleanup when a user's session expires, is there any way to trap this? Thanks.

Re: [PHP] html parser tutorial

2004-12-07 Thread Richard Lynch
Ahmed Abdel-Aliem wrote: Doesn anyone plz knows a good tutorial for parsing html files ? i have a html page and i want to parse information from it to insert it into mysql. i have a good experience in php, but i didn't write a parser before. can anyone help plz ? TidyHTML is supposed to be

RE: [PHP] Links displaying in Table cells

2004-12-07 Thread Richard Lynch
After clicking on a link of a menu in a PHP page, I want to display that link in cell of a table. Please let me know how to open this link in a table cell. You mean like this? HTMLBODY A HREF=?=$PHP_SELF??target=http://php.net;PHP/A TABLE TRTD?=isset($_GET['target']) ?

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Richard Lynch
So if I understand you correctly if the first page takes a half hour to complete its queries, then the second page is going to sit for a half an hour before it can access the session variables? So the only way for the user to be able to do anything while the first page is at work is to get a

RE: [PHP] Sessions and multiple windows

2004-12-07 Thread Richard Lynch
external medium: POST or GET variables, a SESSION, a database, or COOKIES. Of these, only the database is purely server-side; the session very nearly is, maintaining only the session id client-side; whilst GET, POST and COOKIES all involve a full round-trip to the client. (On the client side,

Re: [PHP] Magic Quotes Issue

2004-12-07 Thread Richard Lynch
Shaun wrote: function db_query($query) { if(!magic_quotes_gpc()){ $qid = mysql_query(addslashes($query)); } else { $qid = mysql_query($query); } return $qid; } But this adds too many slashes! Has anyone come to a better solution regarding this? Can you give us some

RE: [PHP] FCK Editor

2004-12-07 Thread Vail, Warren
There is another similar editor called htmlarea. http://www.interactivetools.com/freescripts/ My impression was that htmlarea might be a little more extensible. (Image manager, Table Managers, Multiple languages, etc). Warren Vail -Original Message- From: Ryan A [mailto:[EMAIL

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Richard Lynch
Now, the question is, what will PHP do when it starts with page_9? Will it unserialize $_SESSION['policeman'] again, even though it already has an unserialized instance of $_SESSION['policeman']? If it does unserialize, does that mean that it creates a second instance of

[PHP] PEAR performance/overhead

2004-12-07 Thread David Dickson
I was told that PEAR has too much overhead to be considered for a large scale site. Does any one feel the same? Is this an outrageous comment? I would like to hear comments from people who are using PEAR, or people who have considered PEAR but decided not to use it and your reasons. The

Re: [PHP] inserting html within a mail body

2004-12-07 Thread Richard Lynch
I am using the mail() function in php andI am looking for a quick and easy way to make the mail_body of an auto response email with HTML tags in it so I can add some style to it. Don't. I, and others, will immediately delete your HTML enhanced (cough, cough) email without opening it. If you

Re: [PHP] Random data loss.

2004-12-07 Thread Richard Lynch
2wsxdr5 wrote: With out posting any code I was wondering if anyone here has been experiencing this kind of problem. I have a standard web from that PHP code then reads and saves the data into a MySQL DB. The problem is some of my users have had data lost somewhere in this process. The web

RE: [PHP] FCK Editor

2004-12-07 Thread Ryan A
Hey, Thanks for replying. Sounds good, have you used it yourself in any real life projects? or extended it in any way? Cheers, Ryan On 12/7/2004 7:29:07 PM, Vail, Warren ([EMAIL PROTECTED]) wrote: There is another similar editor called htmlarea. http://www.interactivetools.com/freescripts/

RE: [PHP] FCK Editor

2004-12-07 Thread Vail, Warren
Sure, I added it to a PHPNuke site (among others). Check out http://www.phppilot.com/nuke/html/modules.php?name=Submit_News Warren Vail -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 10:56 AM To: Vail, Warren Cc: [EMAIL PROTECTED]

Re: [PHP] FCK Editor

2004-12-07 Thread Afan Pasalic
Just checked and it doesn't work on my Firefox 1.0 nor Netscape 7.1. On IE works just fine. Guys from InteractiveTools buit beta version 3 that covers most of browsers (didn't check/use). FCKeditor has some bugs on FireFox as well. Didn't check on Netscape. -afan Vail, Warren wrote: Sure, I

RE: [PHP] FCK Editor

2004-12-07 Thread Vail, Warren
I believe they this particular editor uses a html rendering and editing control that is a part of IE and windows (probably .net, but not sure). Probably won't work in these other browsers, because they are committed to their own editor. If you don't have IE, then you are stuck with the textarea

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Rory McKinley
Richard Lynch wrote: Now, the question is, what will PHP do when it starts with page_9? Will it unserialize $_SESSION['policeman'] again, even though it already has an unserialized instance of $_SESSION['policeman']? If it does unserialize, does that mean that it creates a second instance of

RE: [PHP] FCK Editor

2004-12-07 Thread tg-php
It worked on my IE and I don't have .NET Framework installed, so guess it's not a .NET specific thing. Did not work on my Firefox (as it was advertised not to). I havn't looked at the code, but it's not a matter of the module doing a browser detect and 'downshifting' if it didn't detect a

Re: [PHP] Random data loss.

2004-12-07 Thread 2wsxdr5
I think I need to give more details. The data loss happens somewhere between the form post button press and the data being inserted into the DB. It is a simple sql insert statement on a table with auto increment keys. The price should be entered as a floating point number and that is what

RE: [PHP] FCK Editor

2004-12-07 Thread Vail, Warren
Ah yes, I had fogotten, I did write that code myself to limit it to IE and my modifications have not been updated for a while. You might checkout the source site for htmlarea to see about compatibility. http://www.htmlarea.com/ I suppose if it had more capability, it probably wouldn't be free,

Re: [PHP] Re:[PHP] Magic-quotes

2004-12-07 Thread Richard Lynch
Jeff McKeon wrote: So now the big question which will undoubtly spark a lot of opinions (I hope). We use apache/php/mysql based sites for internal management of our systems and would now like to give our customers direct access to manage their accounts via the web. Naturally this raises

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Jason Wong
On Tuesday 07 December 2004 21:48, Rory McKinley wrote: So if I understand you correctly if the first page takes a half hour to complete its queries, then the second page is going to sit for a half an hour before it can access the session variables? In theory yes. But most likely your browser

[PHP] Drawing checkboxes

2004-12-07 Thread Mike
Hello, I am having a hard time figuring this one out, maybe someone here (with fresh eyes) can offer a suggestion? Here is the function... // Draw Checkbox Menu function draw_checkbox_menu($name, $values, $default = false, $parameters = false) { for ($i=0; $isizeof($values);

RE: [PHP] FCK Editor

2004-12-07 Thread Richard Lynch
Vail, Warren wrote: I believe they this particular editor uses a html rendering and editing control that is a part of IE and windows (probably .net, but not sure). Probably won't work in these other browsers, because they are committed to their own editor. If you don't have IE, then you are

[PHP] Php in Cgi

2004-12-07 Thread Peter Law
I am learning Php and have a web site host where scripts have to be in the cgi-bin. What is put in the original web page to call a script from the cgi-bin? The info from the web host is below. Thanks, Peter Does your webserver support PHP? Yes, our webserver does support PHP version 4. What

[PHP] PHP Security

2004-12-07 Thread Greg Donald
I subscribe to a number of security mailing lists as I suspect many of you do, being developers and all. The other day a post came across one of those mailing lists discussing PHP security. One of the posters was describing how insecure PHP's file upload functionality is and went on to explain a

RE: [PHP] Drawing checkboxes

2004-12-07 Thread Chris W. Parker
Mike mailto:[EMAIL PROTECTED] on Tuesday, December 07, 2004 12:11 PM said: I use the strstr() function to check against the $default so I can check it if so. Well it works great..BUT, lets say the product has a category of Coffee Pots, but the one of the values available is Coffee.

Re: [PHP] Drawing checkboxes

2004-12-07 Thread Mike
Thanks Chris, but the $default variable is a string of values separated by pipe delimiters. Like so 'value1|value2|value3' So 'value1' should be true Whereas 'val' should not be. Make sense? on 12/7/04 3:54 PM, Chris W. Parker at [EMAIL PROTECTED] wrote: Mike mailto:[EMAIL PROTECTED]

RE: [PHP] Drawing checkboxes

2004-12-07 Thread Scott DeMers
If I understand you, calling the function like so : /**/ $value1 = coffee; $value2 = coffee pots; $returned = estrstr($value1, $value2); /**/ returns the string coffee. Well, I just ran that exact piece of code you see above, and received the expected NULL value. I don't see how you are getting

Re: [PHP] Drawing checkboxes

2004-12-07 Thread Christopher Fulton
A few notes that may help you. first.on strstri would use strpos instead for a simple checkso if(strstr($default, $values[$i]['id'])) { $field .= ' CHECKED'; } would become if(strpos($default, $values[$i]['id']) !== false) {

Re: [PHP] Drawing checkboxes

2004-12-07 Thread Mike
Chris, Good idea, but $default is the value with pipe delimiters. on 12/7/04 4:11 PM, Christopher Fulton at [EMAIL PROTECTED] wrote: A few notes that may help you. first.on strstri would use strpos instead for a simple checkso if(strstr($default,

Re: [PHP] Drawing checkboxes

2004-12-07 Thread Christopher Fulton
so switch the two things. I would change it to this. $checkValues = array() $checkValues = explode(|, $default); if(in_array($values[$i]['id'], $checkValues)) { $field .= ' CHECKED'; } i could be misinterpreting ya, but i

[PHP] Re: PEAR performance/overhead

2004-12-07 Thread Matthew Weier O'Phinney
* David Dickson [EMAIL PROTECTED]: I was told that PEAR has too much overhead to be considered for a large scale site. Does any one feel the same? Is this an outrageous comment? I would like to hear comments from people who are using PEAR, or people who have considered PEAR but decided not

Re: [PHP] PHP Security

2004-12-07 Thread Chris Shiflett
--- Greg Donald [EMAIL PROTECTED] wrote: The other day a post came across one of those mailing lists discussing PHP security. One of the posters was describing how insecure PHP's file upload functionality is and went on to explain a simple method of attaching exploit code to the end of a jpeg

[PHP] ini_set doesn't work

2004-12-07 Thread Joerg P
hello, what do I have to change in php.ini, to allow thr ini_set(memory_limit,-1); command? It doesn't work in my script... regards Joerg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eBay API?

2004-12-07 Thread daniel
never tried it, looks intense though http://pear.php.net/package/Services_Ebay Hi, Is anyone use eBay API? or REST only? What i want to do is searching items from eBay and store those data in my own database. Anybody did this before? -- PHP General Mailing List (http://www.php.net/)

[PHP] how to display the content step by step

2004-12-07 Thread yangshiqi
Just like many applications, I want to display my main content table a sector after a sector, may be row ater row. Coz the html may wait until the whole table be downloaded then to show it, but I see some application like the Web calendar http://www.k5n.us/webcalendar.php?topic=Demo Anyone

[PHP] eBay API?

2004-12-07 Thread Seung Hyun Cho
Hi, Is anyone use eBay API? or REST only? What i want to do is searching items from eBay and store those data in my own database. Anybody did this before? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Desparate

2004-12-07 Thread Peter Lauri
Best groupmember, I just moved to Bangkok and have a huge problem. My ISP does not provide a news-server. For the news.php.net there is no problem, but I can not locate any other discussion groups. Is there any open news-servers that can be used instead of ISP-connected news-server? Ex:

Re: [PHP] ini_set doesn't work

2004-12-07 Thread Mukasa Assey Alfred
Try ini_set(memory_limit, -1); regards Assey On Wed, 8 Dec 2004, Joerg P wrote: hello, what do I have to change in php.ini, to allow thr ini_set(memory_limit,-1); command? It doesn't work in my script... regards Joerg -- PHP General Mailing List (http://www.php.net/) To

[PHP] OT Re: Desparate

2004-12-07 Thread David Robley
On Wed, 8 Dec 2004 16:31, Peter Lauri wrote: Best groupmember, I just moved to Bangkok and have a huge problem. My ISP does not provide a news-server. For the news.php.net there is no problem, but I can not locate any other discussion groups. Is there any open news-servers that can be