[PHP] data type conversion in mysql using php

2003-10-21 Thread Uma Shankari T.
Hello, Is it possible to update the float value of mysql to varchar field by using php ?? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data type conversion in mysql using php

2003-10-21 Thread - Edwin -
Hello, On Tue, 21 Oct 2003 11:45:30 +0530 (IST) Uma Shankari T. [EMAIL PROTECTED] wrote: Hello, Is it possible to update the float value of mysql to varchar field by using php ?? 'Not sure if I understood the question correctly but if you want to change the column type of a float

Re: [PHP] data type conversion in mysql using php

2003-10-21 Thread Robert Cummings
On Tue, 2003-10-21 at 02:15, Uma Shankari T. wrote: Hello, Is it possible to update the float value of mysql to varchar field by using php ?? You can issue an ALTER TABLE query via mysql_query(). Cheers, Rob. -- .. |

Re: [PHP] cache control with javascript

2003-10-21 Thread - Edwin -
On Mon, 20 Oct 2003 14:44:50 -0400 Joshua Minnie [EMAIL PROTECTED] wrote: Does anybody know how I can make force a javascript file (written in PHP) to be cached if the user agent allows it? Here is the situation: I am creating a dropdown menu system that contains a customer list, loaded

Re: Re[4]: [PHP] Re: Tom-Re: [PHP] session hijacking

2003-10-21 Thread - Edwin -
Hi, On Tue, 21 Oct 2003 14:02:58 +1000 Tom Rogers [EMAIL PROTECTED] wrote: Hi, Tuesday, October 21, 2003, 1:40:20 PM, you wrote: OMH One other thing.. What's the difference in $$ for a site to be OMH https rather than http?? Cos you need to get a verisign cert OMH or something?? Just

Re: [PHP] Print mysql errors

2003-10-21 Thread Eugene Lee
On Mon, Oct 20, 2003 at 05:28:08PM -0500, Joseph Bannon wrote: : : How do you print the error message sent back from MySQL? : : $resultCC = mysql_query($queryCC) or die(???); Stop using stupid Perl syntax. $res = mysql_query($query); if ($res === false) {

Re: [PHP] gmdate problem

2003-10-21 Thread Eugene Lee
On Tue, Oct 21, 2003 at 12:44:38PM +0800, [EMAIL PROTECTED] wrote: : : Having some problem with 'gmdate' here. However, the time doesn't : match with the current time on the system. What could be the problem? : Do I have to set any timezone or stuff like that?...Hope to get some : help here. :

Re: [PHP] gmdate problem

2003-10-21 Thread - Edwin -
Hi, On Tue, 21 Oct 2003 12:44:38 +0800 [EMAIL PROTECTED] wrote: Hi all, Having some problem with 'gmdate' here. However, the time doesn't match with the current time on the system. What could be the problem? Do I have to set any timezone or stuff like that?...Hope to get

[PHP] Test Connection - fsockopen()

2003-10-21 Thread Jason Williard
I am trying to create a remote status page for my website. So far, I have found the fsockopen() function and used the example code to create the following basic script: ?php $fp = fsockopen (xxx.xxx.xxx.xxx, 80, $errno, $errstr, 30); if (!$fp) { echo Down\n; } else{ echo

Re: [PHP] mailing labels from databases

2003-10-21 Thread - Edwin -
Hello, On Mon, 20 Oct 2003 22:48:20 -0700 Dennis Gearon [EMAIL PROTECTED] wrote: ...[snip]... Is it possible to set postions of characters, lines, tables, etc in PDF via: pixels page percentages absolute distances using PHP? - http://www.php.net/manual/en/ref.pdf.php - E -

Re: [PHP] Test Connection - fsockopen()

2003-10-21 Thread Tom Rogers
Hi, Tuesday, October 21, 2003, 5:04:14 PM, you wrote: JW I am trying to create a remote status page for my website. So far, I JW have found the fsockopen() function and used the example code to create JW the following basic script: JW ?php JW $fp = fsockopen (xxx.xxx.xxx.xxx, 80, $errno,

Re: [PHP] Test Connection - fsockopen()

2003-10-21 Thread - Edwin -
On Tue, 21 Oct 2003 00:04:14 -0700 Jason Williard [EMAIL PROTECTED] wrote: I am trying to create a remote status page for my website. So far, I have found the fsockopen() function and used the example code to create the following basic script: ?php $fp = fsockopen (xxx.xxx.xxx.xxx, 80,

[PHP] php_w32api.dll ... fatal error

2003-10-21 Thread jon
When trying to run the following script, it returns the following error ...Fatal error: Call to undefined function: w32api_register_function() Does this w32api extension work? // Define constants needed, taken from // Visual Studio/Tools/Winapi/WIN32API.txt define(MB_OK, 0); // Load the

Re: [PHP] Destroying session if not being used from past 10 mins.

2003-10-21 Thread Jason Wong
On Tuesday 21 October 2003 13:55, Binay wrote: How can I configure the session to get destroyed, if not being used from past 10 mins. Sessions are destroyed automatically. You set the session life-time in php.ini with session.gc_maxlifetime. If you want to force the issue, then you'll

RE: [PHP] Test Connection - fsockopen()

2003-10-21 Thread Jason Williard
Thank you. That worked perfectly. Jason -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:34 AM To: Jason Williard Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Test Connection - fsockopen() Hi, Tuesday, October 21, 2003, 5:04:14 PM, you

Re: [PHP] mailing labels from databases

2003-10-21 Thread Marek Kilimajer
Dennis Gearon wrote: I'm on digest, please CC me. Is it possible to set postions of characters, lines, tables, etc in PDF via: pixels no page percentages yes absolute distances yes using PHP? and www.fpdf.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Launch Print Dialog Box with PHP?

2003-10-21 Thread [-^-!-%-
So you're to blame for him going after my head. Well, at least who's doing the crowning :-) -john Web Developement. Database. Hosting. Multimedia. On Mon, 20 Oct 2003, John Nichel wrote: [-^-!-%- wrote: J Holmes, I don't know who, or what, crown you king of this list. I crowned

[PHP] run PHP script in clean memory space

2003-10-21 Thread Honza Malik
Hi, I want to give administrators of our CMS the possibility to use PHP commands in HTML templates. Templates are parsed by our PHP script. The problem is, that I don't want administrators to be able to list our $GLOBALS (where is database password) or call our functions. Is there the

[PHP] seems like magic_quotes_gpc is turning itsself on!

2003-10-21 Thread William Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I have a strange problem with one of the sites i work on and provide support for. I the following block of code that checks to see if magic_quotes_gpc is enabled and if it is it dies with an error message:

[PHP] The page cannot be displayed error

2003-10-21 Thread Sudheer Palaparambil
Hi, I am calling insert_user.php like this form method=post name=form action=insert_user.php onsubmit=return verifyIt(this); This file and the index.php are kept in the same directory. But the browser returns The page cannot be displayed error Where should I keep the insert_user.php

Re: [PHP] run PHP script in clean memory space

2003-10-21 Thread Marek Kilimajer
The only way I can see is exec('php ...'); Honza Malik wrote: Hi, I want to give administrators of our CMS the possibility to use PHP commands in HTML templates. Templates are parsed by our PHP script. The problem is, that I don't want administrators to be able to list our $GLOBALS (where is

Re: [PHP] The page cannot be displayed error

2003-10-21 Thread Marek Kilimajer
Try it with another browser and not IE to get a more meaningfull error message. Sudheer Palaparambil wrote: Hi, I am calling insert_user.php like this form method=post name=form action=insert_user.php onsubmit=return verifyIt(this); This file and the index.php are kept in the same

Re: [PHP] [cli] ^D

2003-10-21 Thread Decapode Azur
Is there a way, for a cli script, to detect Ctrl_D or Ctrl_Z ? [...] Take a look at pcntl functions, namely pcntl_signal. But this extension is not enabled by default. Ok thanks a lot. Will those functions be integrated in the next main release? This question is just to know if I distribute

Re: [PHP] The page cannot be displayed error

2003-10-21 Thread Sudheer Palaparambil
Hi, I tried Opera, it showed the following error. The page cannot be displayed The page you are looking for cannot be displayed because the page address is incorrect. Please try the following: If you typed the page address in the Address bar, check that it is entered

Re: [PHP] The page cannot be displayed error

2003-10-21 Thread Marek Kilimajer
Hi, Please post your replies to the list. You will have a much higher chance to get help. For example I can't help you now because this seems to be configuration error with IIS server and I don't know nothing about IIS. Search the web for HTTP 405 - Resource not allowed, this page seems to

Re: [PHP] The page cannot be displayed error

2003-10-21 Thread Marek Kilimajer
I am sorry, I did not mean to offend you. Your reply from the list was late. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Launch Print Dialog Box with PHP?

2003-10-21 Thread CPT John W. Holmes
From: [-^-!-%- [EMAIL PROTECTED] If you must answer, to satisfy you own urges, then a simple NO would suffice. The answer is No, then. Try not to take things so personally; I'm not here to get you ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Read a file, extract and echo some information

2003-10-21 Thread PHP Webmaster
Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PHP Webmaster mailto:[EMAIL PROTECTED] on Monday, October 20, 2003 4:36 PM said: As you can see, the above code will not work as the $title variable has not been set yet. So, I need a way of opening up the home.php

Re: [PHP] seems like magic_quotes_gpc is turning itsself on!

2003-10-21 Thread CPT John W. Holmes
From: William Bailey [EMAIL PROTECTED] I have a strange problem with one of the sites i work on and provide support for. I the following block of code that checks to see if magic_quotes_gpc is enabled and if it is it dies with an error message: if((integer)ini_get('magic_quotes_gpc')!=0){ ~

Re: [PHP] The page cannot be displayed error

2003-10-21 Thread CPT John W. Holmes
From: Sudheer Palaparambil [EMAIL PROTECTED] I am calling insert_user.php like this form method=post name=form action=insert_user.php onsubmit=return verifyIt(this); This file and the index.php are kept in the same directory. But the browser returns The page cannot be displayed

Re: [PHP] data type conversion in mysql using php

2003-10-21 Thread CPT John W. Holmes
From: Uma Shankari T. [EMAIL PROTECTED] Is it possible to update the float value of mysql to varchar field by using php ?? mysql_query('ALTER TABLE MyTable CHANGE COLUMN old_column_name new_column_name VARCHAR(25)'); ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] The page cannot be displayed error

2003-10-21 Thread Fernando Melo
Is there perhaps a redirect in the insert_user.php? If so, that could be the problem. -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 21 October 2003 13:31 To: Sudheer Palaparambil; [EMAIL PROTECTED] Subject: Re: [PHP] The page cannot be displayed error

[PHP] php code

2003-10-21 Thread Uma Shankari T.
Hello, Actually i have created the field type as varchar..i am need to insert some decimal values in that varchar field and use that values for calculation...so it is possible to store the float value eventhough i specified as varchar ?..and also i can use that values for calculation ??

Re: [PHP] Destroying session if not being used from past 10 mins.

2003-10-21 Thread CPT John W. Holmes
From: Binay [EMAIL PROTECTED] How can I configure the session to get destroyed, if not being used from past 10 mins. If you're using the default session handler, the session files are cleaned up after not being used for 1440 seconds (by default), and the session is basically destroyed. You can

[PHP] Run PHP process on receipt of file

2003-10-21 Thread Jay Blanchard
This is more than likely OT, but I am hoping that someone has seen something like this. I am in of need something that will monitor a directory for file receipts and execute a PHP script on each file as it is received. A small daemon of some sort. I am STFW I we 'speak', but this group knows so

[PHP] [Newbie Guide] For the benefit of new members

2003-10-21 Thread Ma Siva Kumar
= This message is for the benefit of new subscribers and those new to PHP. Those who do not want to be bothered just filter out the [Newbie Guide] mails. Please feel free to add more points and send to the list.

RE: [PHP] php code

2003-10-21 Thread Jay Blanchard
[snip] Actually i have created the field type as varchar..i am need to insert some decimal values in that varchar field and use that values for calculation...so it is possible to store the float value eventhough i specified as varchar ?..and also i can use that values for calculation ?? [/snip]

[PHP] Allowing specific IP's to bypass security.

2003-10-21 Thread Tristan . Pretty
Hi all... I have a form that captures data, before then showing a few download links... However, If the user is in our office, I want to bypass the form... so at the very top of my page, I've put this... (details_captured is my variable I use on the form as a hidden field, to confirm that the

Re: [PHP] Allowing specific IP's to bypass security.

2003-10-21 Thread Jon Haworth
Hi Tris, reset the session variable: $_SESSION['details_captured'] == FALSE; Re-asign it to yes: $_SESSION['details_captured'] == yes; You're using ==, which is the comparison operator - give it a go with just a single = instead. Cheers Jon -- PHP General Mailing List

[PHP] Re: php_w32api.dll ... fatal error

2003-10-21 Thread DvDmanDT
One of the notes tells you about how to use it... It is somewhat changed from what the documentation says... $api = new win32; $api-definetype(MEMORYSTATUS { long dwLength; long dwMemoryLoad; long dwTotalPhys; long dwAvailPhys; long dwTotalPageFile; long dwAvailPageFile; long dwTotalVirtual;

Re: [PHP] Allowing specific IP's to bypass security.

2003-10-21 Thread Marek Kilimajer
$_SESSION['details_captured'] = yes; single =, and there is no need to reset the session variable. [EMAIL PROTECTED] wrote: Hi all... I have a form that captures data, before then showing a few download links... However, If the user is in our office, I want to bypass the form... so at the very

[PHP] ob_get_length() returns uncompressed buffer length (after ob_start('ob_gzhandler'))

2003-10-21 Thread daniel hahler
Hello PHP, I found this small demonstration code on the net, that shows it really good. ?php ob_start('ob_gzhandler'); print aa; // 30 a's print bb; // 30 b's print aa; // 30 a's header('Content-Length:

Re: [PHP] seems like magic_quotes_gpc is turning itsself on!

2003-10-21 Thread William Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It can be on any page. The magic_quotes_gpc check takes place in a settings.php file which is always the first thing included for every php page for this site. It has a number of define statements and a few other includes and thats about it. No

Re: [PHP] Destroying session if not being used from past 10 mins.

2003-10-21 Thread Binay
Thanks alo... Is it possible to increase the probability which is by default 1% to 99 % and make sure that session are destroyed after 10 mins by setting session.gc_maxlifetime to 600. Binay - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Binay [EMAIL

Re: [PHP] Destroying session if not being used from past 10 mins.

2003-10-21 Thread CPT John W. Holmes
From: Binay [EMAIL PROTECTED] Is it possible to increase the probability which is by default 1% to 99 % and make sure that session are destroyed after 10 mins by setting session.gc_maxlifetime to 600. I wouldn't recommend that, but you could. The setting to 600 is fine, but I wouldn't adjust

[PHP] HTTP 405 - Resource not allowed error

2003-10-21 Thread Sudheer Palaparambil
Hi, form method=post name=form action=insert_user.php onsubmit=return verifyIt(this); This file and the index.php are kept in the same directory. But the browser returns I tried GET also, but not inserting the data to mysql db. This is my insert_user.php

Re: [PHP] HTTP 405 - Resource not allowed error

2003-10-21 Thread David Otton
On Tue, 21 Oct 2003 18:22:26 +0530, you wrote: form method=post name=form action=insert_user.php onsubmit=return verifyIt(this); This file and the index.php are kept in the same directory. But the browser returns 405 is Method Not Allowed. My first guess would be that your web server

[PHP] Re: Using two XSLT stylesheets

2003-10-21 Thread rich
Aha! I've worked out a (better?) way of doing: ? parse_str($_SERVER['QUERY_STRING']); $params = array(keywords = $keywords); $library_xml_file = library.xml; $search_xsl_file = simple-search.xsl; $display_xsl_file = display-results.xsl; $library_xml_string = join('', file($library_xml_file));

Re: [PHP] cache control with javascript

2003-10-21 Thread Joshua Minnie
The it that you were asking about was the server. The javascript file is actually a PHP file that produces the JavaScript that I need. I only have one access to a database and a while loop to generate the code. Here is the code pieces: [code] // already connected to the db $sql = SELECT * FROM

Re: [PHP] run PHP script in clean memory space

2003-10-21 Thread Eugene Lee
On Tue, Oct 21, 2003 at 02:48:09AM +0200, Honza Malik wrote: : : I want to give administrators of our CMS the possibility to use PHP commands : in HTML templates. Templates are parsed by our PHP script. : : The problem is, that I don't want administrators to be able to list our : $GLOBALS (where

[PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marco Tabini
Hello Everyone-- I wanted to let you know about a new initiative that php|architect has launched: the Searchable PHP Mailing List Archive, which can be found at http://phparch.com/mailinglists. This is a fully searchable archive of the PHP mailing lists with an attempt to build proper

[PHP] Re: Read a file, extract and echo some information

2003-10-21 Thread rush
Php Webmaster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anyway, the following code is inside of home.php: As you can see, the above code will not work as the $title variable has not been set yet. So, I need a way of opening up the home.php file, extracting the line containing

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread CPT John W. Holmes
From: Marco Tabini [EMAIL PROTECTED] This is a fully searchable archive of the PHP mailing lists with an attempt to build proper threading, keyword highlight, automatic quoted text indentation and a few other features. Everyone go check it out. The thread view and highlighting really make the

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Miles Thompson
V. nice. All the more importnat ot NOT HIJAC threads. Miles At 10:07 AM 10/21/2003 -0400, Marco Tabini wrote: Hello Everyone-- I wanted to let you know about a new initiative that php|architect has launched: the Searchable PHP Mailing List Archive, which can be found at

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Curt Zirzow
* Thus wrote Marco Tabini ([EMAIL PROTECTED]): Hello Everyone-- I wanted to let you know about a new initiative that php|architect has launched: the Searchable PHP Mailing List Archive, which can be found at http://phparch.com/mailinglists. This is a fully searchable archive of the PHP

RE: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Dan Joseph
Hi, I wanted to let you know about a new initiative that php|architect has launched: the Searchable PHP Mailing List Archive, which can be found at http://phparch.com/mailinglists. 3 words... YOU DONE GOOD! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marco Tabini
I always have trouble searching for stuff with theaimsgroup archive as well. I know what you mean. Google is a good alternative, but they still can't tell between the word PHP and the extension PHP, so that the results aren't always relevant... Cheers, Marco -- php|architect - The Magazine

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread andu
On Tue, 21 Oct 2003 10:07:28 -0400 Marco Tabini [EMAIL PROTECTED] wrote: Hello Everyone-- I wanted to let you know about a new initiative that php|architect has launched: the Searchable PHP Mailing List Archive, which can be found at http://phparch.com/mailinglists. This is a fully

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marco Tabini
Nice work, if the list admin would add a link to this archive in the footer (or the header) it would be even useful for new subscribers who don't know of its existence. Well, one of my original ideas was to have a process that would monitor php.general for new messages and send back an e-mail to

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread andu
On Tue, 21 Oct 2003 10:42:25 -0400 Marco Tabini [EMAIL PROTECTED] wrote: Nice work, if the list admin would add a link to this archive in the footer (or the header) it would be even useful for new subscribers who don't know of its existence. Well, one of my original ideas was to

[PHP] similar_text

2003-10-21 Thread Diana Castillo
does any one have an example of a function to search a database for similar names and display them if the user inputs a name that is not found? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] similar_text

2003-10-21 Thread Duncan
Diana Castillo said: does any one have an example of a function to search a database for similar names and display them if the user inputs a name that is not found? Define 'similar names'. Is Nadia similar to Nadine? Is Nathan similar to Nadine? How long is a piece of string? -- PHP General

[PHP] search by keyword

2003-10-21 Thread Redmond Militante
hi all i'm trying to add a 'search by keyword' text field to a search page. the 'search by keyword' search field should allow users to enter a comma delimited string containing a list of keywords to search the database for. on the search_results page, what happens is: -i use explode() to

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marco Tabini
I think the idea is splendid (and new, call it DFAQ (dynamic FAQ)) but as a different service than a mailing list. Challenging? What did you have in mind exactly? How is the FAQ served? Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread - Edwin -
Hi, On 2003.10.21, at 23:42 Asia/Tokyo, Marco Tabini wrote: Nice work, if the list admin would add a link to this archive in the footer (or the header) it would be even useful for new subscribers who don't know of its existence. Well, one of my original ideas was to have a process that would

Re: [PHP] cache control with javascript

2003-10-21 Thread - Edwin -
On 2003.10.21, at 22:28 Asia/Tokyo, Joshua Minnie wrote: The it that you were asking about was the server. The javascript file is actually a PHP file that produces the JavaScript that I need. I only have one access to a database and a while loop to generate the code. Here is the code

Re: [PHP] similar_text

2003-10-21 Thread David Otton
On Tue, 21 Oct 2003 17:42:17 +0200, you wrote: does any one have an example of a function to search a database for similar names and display them if the user inputs a name that is not found? Are you looking for SOUNDEX, perhaps?

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marco Tabini
- Edwin - wrote: Sort of a PHP-AI eh? :) Hmm... I don't think that's a bad idea at all, but... I wonder how you'd deal with new messages/posts/questions which: 1. Real people don't even understand, and 2. Real posters don't even understand what they're asking. Well, that's, of course, a

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread andu
On Tue, 21 Oct 2003 11:48:18 -0400 Marco Tabini [EMAIL PROTECTED] wrote: I think the idea is splendid (and new, call it DFAQ (dynamic FAQ)) but as a different service than a mailing list. Challenging? What did you have in mind exactly? How is the FAQ served? Considering the enourmos

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread bigdog
- Edwin - wrote: Sort of a PHP-AI eh? :) Hmm... I don't think that's a bad idea at all, but... I wonder how you'd deal with new messages/posts/questions which: 1. Real people don't even understand, and 2. Real posters don't even understand what they're asking. Well, that's, of course,

Re: [PHP] search by keyword

2003-10-21 Thread Larry E . Ullman
on the search_results page, what happens is: -i use explode() to break the comma-delimited string down into array elements, and count() to count the number of array elements -then i use a for loop to cycle through the list of array elements and run a sql query to search through a table for any

RE: [PHP] cache control with javascript

2003-10-21 Thread Joshua Minnie
That really helped, I didn't think about generating the file that way. I have done other things like that, but sometimes it just helps when you get another set of eyes on the project at hand. Thanks for the refresher. Josh -Original Message- From: - Edwin - [mailto:[EMAIL PROTECTED]

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread andu
On Wed, 22 Oct 2003 00:52:53 +0900 - Edwin - [EMAIL PROTECTED] wrote: Hi, On 2003.10.21, at 23:42 Asia/Tokyo, Marco Tabini wrote: Nice work, if the list admin would add a link to this archive in the footer (or the header) it would be even useful for new subscribers who don't know

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Chris Shiflett
Perhaps Marco can try an Ask Jeeves type of Web app. Is that the sort of thing you are suggesting? So, as another feature of this mailing list archive, there could be a place where people can ask a question, and Ask Marco will try to come up with some suggested posts to read. This would give

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: However, the only issue with that is that many users do not search the archives, faqs, or internet for the answers before posting to the list. This always seems the case. Many users are unaware of the ethics around mailing lists. I think many users are also

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marco Tabini
Chris Shiflett wrote: Perhaps Marco can try an Ask Jeeves type of Web app. Is that the sort of thing you are suggesting? So, as another feature of this mailing list archive, there could be a place where people can ask a question, and Ask Marco will try to come up with some suggested posts to

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread andu
On Tue, 21 Oct 2003 09:16:27 -0700 (PDT) Chris Shiflett [EMAIL PROTECTED] wrote: Perhaps Marco can try an Ask Jeeves type of Web app. Is that the sort of thing you are suggesting? So, as another feature of this mailing list archive, there could be a place where people can ask a question,

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Robert Cummings
I think this is great but have one bit of hopefully constructive criticism... the horizontal real estate is too small, or the font is too large, I find the content wraps terribly :/ Cheers, Rob. On Tue, 2003-10-21 at 10:07, Marco Tabini wrote: Hello Everyone-- I wanted to let you know about

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marco Tabini
Robert Cummings wrote: I think this is great but have one bit of hopefully constructive criticism... the horizontal real estate is too small, or the font is too large, I find the content wraps terribly :/ Cheers, Rob. Hi Rob-- True. Alas, it has to fit in our design, so one of the possibilities

RE: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Chris W. Parker
Marco Tabini mailto:[EMAIL PROTECTED] on Tuesday, October 21, 2003 9:56 AM said: True. Alas, it has to fit in our design, so one of the possibilities we're experimenting with is using either floating frames for the threading, or reducing the font size--the problem with the latter being

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marek Kilimajer
Marco Tabini wrote: True. Alas, it has to fit in our design, so one of the possibilities we're experimenting with is using either floating frames for the threading, or reducing the font size--the problem with the latter being that we *do* want people to be able to read the messages ;-) Thanks

RE: [PHP] Read a file, extract and echo some information

2003-10-21 Thread Chris W. Parker
PHP Webmaster mailto:[EMAIL PROTECTED] on Tuesday, October 21, 2003 4:17 AM said: The required file will be changing all the time, that's why I want to set the title in the individual pages and get the main page to read that information. in that case let me revise my original code.

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread subs
Marco Tabini wrote: The problem is that the results should be mailed to the list so that others could tell whether they satisfy the question, but I'm afraid that would become annoying. Perhaps a sister list could be setup to receive these messages. This would prevent the annoyance while still

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread bigdog
Robert Cummings wrote: I think this is great but have one bit of hopefully constructive criticism... the horizontal real estate is too small, or the font is too large, I find the content wraps terribly :/ Cheers, Rob. Hi Rob-- True. Alas, it has to fit in our design, so one of the

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marco Tabini
Interesting thoughts... who would handle the separate list, though? Marco [EMAIL PROTECTED] wrote: Marco Tabini wrote: The problem is that the results should be mailed to the list so that others could tell whether they satisfy the question, but I'm afraid that would become annoying. Perhaps a

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Chris Shiflett
--- Marek Kilimajer [EMAIL PROTECTED] wrote: My suggestion would be to use iframe for the message. It would load much faster then. How would that make it load much faster? Surely not because it requires an additional HTTP transaction, increasing the load. I'm curious to know what you mean. The

[PHP] Using cookies

2003-10-21 Thread John Taylor-Johnston
Can someone recommend a good URL on cookies and security issues please? I can program them, but am told I'm putting others at risk, forcing people to use cookies on my site. -- John Taylor-Johnston - Université de

Re: [PHP] date counting/subtracting MySQL and PHP

2003-10-21 Thread Jason Wong
On Wednesday 22 October 2003 04:32, Paul Nowosielski wrote: I need to get mysql or php to subtract the current date from $date_posted(time stamp) and return the number of days(the item has been posted) as a sum. Use the MySQL function TO_DAYS(). Not sure what you mean by as a sum. -- Jason

[PHP] Run exe file: Yes it is possible.

2003-10-21 Thread Gabriel Peugnet
It depends on the server configuration. Tipicaly, the cgi-bin folder is used tu run scripts AND exe files. You have to put the exe file in cgi-bin and chek if this folder have permission tu run it. If not: give it. There are some sites that use exe instead of scripts to show pages. It gives more

RE: [PHP] Using cookies

2003-10-21 Thread Chris W. Parker
John Taylor-Johnston mailto:[EMAIL PROTECTED] on Tuesday, October 21, 2003 11:40 AM said: Can someone recommend a good URL on cookies and security issues please? I can program them, but am told I'm putting others at risk, forcing people to use cookies on my site. I guess it depends on

Re: [PHP] Using cookies

2003-10-21 Thread Curt Zirzow
* Thus wrote John Taylor-Johnston ([EMAIL PROTECTED]): Can someone recommend a good URL on cookies and security issues please? I can program them, but am told I'm putting others at risk, forcing people to use cookies on my site. Being online is a risk, or even crossing the street is a risk

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Marek Kilimajer
Chris Shiflett wrote: --- Marek Kilimajer [EMAIL PROTECTED] wrote: My suggestion would be to use iframe for the message. It would load much faster then. How would that make it load much faster? Surely not because it requires an additional HTTP transaction, increasing the load. I'm curious to

Re: [PHP] Using cookies

2003-10-21 Thread John Taylor-Johnston
Nothing much. Been receiving flack about forcing people into cookies. Much misunderstood info about cookies. I need an URL to pass on for extra reading, as rebuttal. Chris W. Parker wrote: John Taylor-Johnston mailto:[EMAIL PROTECTED] on Tuesday, October 21, 2003 11:40 AM said: Can

RE: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Jonathan Villa
Cool, this means that don't have to keep a directory of every post in this mailing list or the php-db mailing list in order to search through. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:00 PM To: Marek Kilimajer; Marco Tabini Cc:

RE: [PHP] Using cookies

2003-10-21 Thread Joseph Bannon
It's your site isn't it? -lol J -Original Message- Nothing much. Been receiving flack about forcing people into cookies. Much misunderstood info about cookies. I need an URL to pass on for extra reading, as rebuttal. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Using cookies

2003-10-21 Thread Marco Tabini
We use a standard disclaimer: 2. Use of Cookies Like many websites, we use cookies to maintain certain information about you while you are visiting our website. However, we do not share the contents of our cookies with any third party, under any circumstances. Should we allow a third party to

Re: [PHP] Using cookies

2003-10-21 Thread Chris Shiflett
--- John Taylor-Johnston [EMAIL PROTECTED] wrote: Can someone recommend a good URL on cookies and security issues please? I can program them, but am told I'm putting others at risk, forcing people to use cookies on my site. I have a free chapter about cookies from HTTP Developer's Handbook on

RE: [PHP] Session hijacking

2003-10-21 Thread Joseph Bannon
i setup my sessions to be transparent, can it still be hacked ? What is a transparent session? J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session hijacking

2003-10-21 Thread Robert Cummings
On Tue, 2003-10-21 at 15:36, Joseph Bannon wrote: i setup my sessions to be transparent, can it still be hacked ? What is a transparent session? I don't know if it's the same for the original poster (whoever that is, since they were cropped :) For me it's when I bind a session variable to

[PHP] php framework

2003-10-21 Thread Lai, Kenny
just wanted a general idea on what kind of PHP framework everyone is using.. i've heard of pear, and interjinn.. is there a preference or distinct advantage that a particular framework has in comparison to one another? thanks in advance, kenny -- PHP General Mailing List (http://www.php.net/)

  1   2   >