Re: [PHP] Apache segmentation faults

2004-10-18 Thread Curt Zirzow
* Thus wrote Bostjan Skufca @ domenca.com: Hello, every now and then I notice in apache logs there were few segmentation faults (on a daily basis) and all I am stuck with is PID of that process (which is of course dead by then) and nothing about what it was doing. Is there any way to

[PHP] strip out wierd characters in a string

2004-10-18 Thread Brent Clements
Hi Guys, I think that a string that I'm grabbing from a website was actually created using ms-word. If I echo the string out, it has a question mark in it. If you look at the website, the text is fine iestring some more text but when I grab it from the website, and then echo the string, I get.

Re: [PHP] strip out wierd characters in a string

2004-10-18 Thread Brent Clements
Solved my own problem. I ran the script itself from the unix prompt and forced it's output to a text file I then viewed the text file and saw the actual wierd character. I then used strtr to replace the wierd character with a single space. Pretty simple and clean way to fix this. -Brent -

[PHP] [NOT FIXED] Re: [PHP] strip out wierd characters in a string

2004-10-18 Thread Brent Clements
Ok, I still have the problem. If I echo the string to a webpage, it still contains the ? So I viewed the source in a notepad, and the thing that shows up next to string is a TM. I tried using htmlentities on the string that I'm echoing but the question mark/tm is still there. Anybody know how

Re: [PHP] Apache segmentation faults

2004-10-18 Thread Bostjan Skufca @ domenca.com
Is there any special apache/php compile option needed to generate core files on linux? I have seen few segfaults and i have set CoreDumpDirectory to /tmp/httpd.core which has correct permissions but no core file gets generated. Are core files generated only when apache parent process

Re: [PHP] Nested foreach ?

2004-10-18 Thread Stuart Felenstein
Not working. foreach($_SESSION['skills'] as $key = $skill) { $query = INSERT INTO table (skill, sky, sku) VALUES ('$skill', {$_SESSION['skys'][$key]},{$_SESSION['slus'][$key]}); //run query } The foreach is generating an invalid argument. I'm just going to show again what I have

[PHP] Mail interface: Unread mails and server-side filtering?

2004-10-18 Thread Christer Enfors
I'm making a web-based email system using imap. This is part of the feature set I'm planning on implementing: 1) Multiple folder support. 2) When viewing a folder, unread mails should be marked as such. 3) Server-side filtering into different folders using procmail. But I can't figure out how do

RE: [PHP] Nested foreach ?

2004-10-18 Thread Graham Cossey
How about this: // Doing this makes the code below easier to read $skills = $_SESSION['skills']; $skys = $_SESSION['skys']; $slus = $_SESSION['slus']; // Set up the fixed part of teh query $query = INSERT INTO table (skill, sky, sku) VALUES (; // Loop through each set of form elements

RE: [PHP] Nested foreach ?

2004-10-18 Thread Stuart Felenstein
Wish I had better news. Warning: Invalid argument supplied for foreach() in /home/lurkkcom/public_html/TestMultiTrans2.php on line 90 INSERT INTO LurkProfiles_Skicerts (ProfileID, SkilCerts, NumYear, Lused) VALUES () line 90: foreach($skills as $key = $skill) To confirm : I changed to this:

RE: [PHP] Nested foreach ?

2004-10-18 Thread Graham Cossey
These lines store the FORM's posted values (arrays) into your SESSION: $_SESSION['skills'] = $_POST['skill']; $_SESSION['skys'] = $_POST['sky']; $_SESSION['slus'] = $_POST['slu']; These lines get your SESSION variables (arrays) and put them into 'local' script array variables. If you are doing

[PHP] Re: ' (Single Quotes) in user inputs

2004-10-18 Thread Christian Jul Jensen
[EMAIL PROTECTED] (Ben) writes: Any ideas on dealing with this would be greatly appreciated. Disable magic_quotes, and handle all escaping of characters yourself, I would absolutely prefer that. But beware of sql-injection. Leave magic_quotes on, and use stripslashes() on your input. --

RE: [PHP] Nested foreach ?

2004-10-18 Thread Stuart Felenstein
Guess what , it's working ! The key (after yours and John's iteration lines) was adding these into the script: $skills = $_SESSION['skills']; $skys = $_SESSION['skys']; $slus = $_SESSION['slus']; A big thank you! to all who helped out here and for hanging in. Graham, thank you for continuing

[PHP] Floating values

2004-10-18 Thread Nunners
Simple question. I'm writing an accounting package, and have setup the MySQL database with decimal(6,2) types for the amount of transactions etc. Is there a way I can reproduce this in the php output? i.e. the number sorted is 8.70 and when you output the value it comes out as 8.7

Re: [PHP] Floating values

2004-10-18 Thread bbonkosk
http://us2.php.net/manual/en/function.number-format.php - Original Message - From: Nunners [EMAIL PROTECTED] Date: Monday, October 18, 2004 7:03 am Subject: [PHP] Floating values Simple question. I'm writing an accounting package, and have setup the MySQL database with

RE: [PHP] Floating values

2004-10-18 Thread Graham Cossey
How about this? http://uk2.php.net/manual/en/function.number-format.php HTH Graham -Original Message- From: Nunners [mailto:[EMAIL PROTECTED] Sent: 18 October 2004 12:03 To: [EMAIL PROTECTED] Subject: [PHP] Floating values Simple question. I'm writing an accounting

[PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa Alonso
This code: ?php class TestClass { public $myself; function __construct () { $this-myself = $this; } } $TestObj = new TestClass (); if ( $TestObj-myself == $TestObj ) { echo They are same.\n; } ? Gives me a Fatal error: Nesting level too deep - recursive dependency? on line

[PHP] IMAP: imap_listmailbox() returns all files in my home dir!

2004-10-18 Thread Christer Enfors
I'm calling imap_listmailbox() like this: $folders = imap_listmailbox($mbox, {my.server:143}, *); And as a return value, I get a list of all files in my home directory, which I find very odd. It means I have to replace * with mail/* because mail/ is the directory where I happen to store my mail

Re: [PHP] dirty words

2004-10-18 Thread Philip Thompson
$badwords = array('poo', 'bum', 'perl'); Perl. Laf! ~P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [NOT FIXED] Re: [PHP] strip out wierd characters in a string

2004-10-18 Thread Brian
Note: The below function will also strip out tabs and newline characters. function str_clean($str) { for($i = 0; $i strlen($str); $i++) { $tmp=ord($str[$i])) if ($tmp31 $tmp 127) { $new_str .= $str[$i]; } } return($new_str); } On Mon, 18 Oct 2004

[PHP] Fwd:

2004-10-18 Thread Brian
Could the list admin please track down the address causing this and remove it, I get this everytime I post to the list. Thanks. Note: Mail headers below message. -- Forwarded message -- From: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Mon Oct 18 06:18:35 PDT 2004 Subject: To:

RE: [PHP] probs generating multiple drop down select lists within a single form

2004-10-18 Thread bruce
the code is pretty much as i provided. the issue is that the query seems to insert a value into the query string for the select lists, even though i don't actually select an item. i'm trying to figure out what has to happen to allow the select vars to be '' if the user hasn't selected anything.

[PHP] how to create multiple selects within php

2004-10-18 Thread bruce
hi... i can create a form with a single select by something like: form select name='foo' option val='1'fff/option option val='2'aaa/option /select input /form however, i need to know how to create a multiple menu/list within a single form. i've tried a few different approaches, but i'm doing

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread John Nichel
bruce wrote: hi... i can create a form with a single select by something like: form select name='foo' option val='1'fff/option option val='2'aaa/option /select input /form however, i need to know how to create a multiple menu/list within a single form. Not sure exactly what you're asking here,

RE: [PHP] how to create multiple selects within php

2004-10-18 Thread bruce
ok... it appears to be a case of user err.. the spec seems to state that if the user doesn't select/specify an item, the select should return the 1st item within the list... arrrgggh!! this is what's happening... so my question is still, how can i implement some logic that requires the user to

RE: [PHP] Re: Determine variable with the lowest value?

2004-10-18 Thread Paul Fine
Than you very much Matt. Does what I needed. Now I will have to read up on as and the function key. -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 11:27 AM To: BOOT Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Determine variable with the lowest

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread John Nichel
bruce wrote: ok... it appears to be a case of user err.. the spec seems to state that if the user doesn't select/specify an item, the select should return the 1st item within the list... arrrgggh!! this is what's happening... Not true. If the user doesn't select anything, nothing will be

Re: [PHP] probs generating multiple drop down select lists within a single form

2004-10-18 Thread Brian
Year shouldn't be a multiple At the beginning of the second two selects: option value='blank'/option in your check: if ( isset($_GET['state'] $_GET['year']'blank' $_GET['term']'blank') { //ok, they selected something in all three of those so lets run some code here } else { //they

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread Brian
with your code above the first option is going to be the default, so just make the default nothing: option value='blank'/option then check with: if ( $_GET['foo'] 'blank' ) On Mon, 18 Oct 2004 07:22:30 -0700, bruce [EMAIL PROTECTED] wrote: ok... it appears to be a case of user err.. the

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread John Nichel
Please reply to the list. bruce wrote: john.. thanks for the response... but i don't need a multiple select.. what i need are multiple select/menu lists... list1list2 list3 however, the issue i'm really facing is how to detect that a user has actually selected an item in a given list, as

[PHP] Enable exec() and system() for a directory only

2004-10-18 Thread David Garcia Aristegui
Hello, newbie question: how can i enable exec() and system() for a certain directory only? Thank you in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread Silvio Porcellana
You can do something like this: HTML select name='foo' option value='' - - choose one - -/option option value='1'fff/option option value='2'aaa/option . /select /HTML and then in your PHP: ?php if ($_POST['foo'] != '') { # do something } else { #

RE: [PHP] how to create multiple selects within php

2004-10-18 Thread bruce
john... the code (and the rfc) seems to suggest otherwise. personally, i would have thought, if the user doesn't select a menu, then the 'menu item' should not have anything with regards to the querystring... however, the spec implies something different:

Re: [PHP] Enable exec() and system() for a directory only

2004-10-18 Thread Mike
on 10/18/04 10:40 AM, David Garcia Aristegui at [EMAIL PROTECTED] wrote: Hello, newbie question: how can i enable exec() and system() for a certain directory only? Thank you in advanced. I think this would require you to use the 'php_admin_flag' command in the virtual host's config file.

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread Brian
With most any browser nowadays, on a non-multiple select the first option will be selected unless you specifically setup a default. With a multiple select, it will not default to anything and will not even post/get a variable for it at all unless the user specifically selects something, which is

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa Alonso
Can someone tell me if I should fill a bug report about this or is it my fault??? Francisco M. Marzoa Alonso wrote: This code: ?php class TestClass { public $myself; function __construct () { $this-myself = $this; } } $TestObj = new TestClass (); if ( $TestObj-myself ==

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Chris Dowell
Francisco You really need to post this to [EMAIL PROTECTED] - this list is for us lowly users of PHP, the developers and maintainers of the language have their own list. Cheers Chris Francisco M. Marzoa Alonso wrote: Can someone tell me if I should fill a bug report about this or is it my

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa Alonso
Ah, OK thanks for your advice Chris. Chris Dowell wrote: Francisco You really need to post this to [EMAIL PROTECTED] - this list is for us lowly users of PHP, the developers and maintainers of the language have their own list. Cheers Chris Francisco M. Marzoa Alonso wrote: Can someone tell me

[PHP] Mixing classes

2004-10-18 Thread Tomi Kaistila
Hey! I've written several general classes, much as tools. One manages databases, one authenticates users, etc. I'm trying to bring all of these together into one sorta like a CMS, but the problem is that I can't find a way to have the different classes take advantage of each other; for

Re: [PHP] Mixing classes

2004-10-18 Thread Dan Joseph
I've written several general classes, much as tools. One manages databases, one authenticates users, etc. I'm trying to bring all of these together into one sorta like a CMS, but the problem is that I can't find a way to have the different classes take advantage of each other; for example, a

Re: [PHP] Mixing classes

2004-10-18 Thread Tomi Kaistila
What about extending the classes? Have you thought about something along those lines? Yes, it has crossed my mind. And I've done so, but to keep a class clean it's not a good idea to extend them indefinantly and extending a class with another class that really has nothing to do with the

Re: [PHP] Mixing classes

2004-10-18 Thread Tomi Kaistila
What about extending the classes? Have you thought about something along those lines? Yes, it has crossed my mind. And I've done so, but to keep a class clean it's not a good idea to extend them indefinantly and extending a class with another class that really has nothing to do with the

RE: [PHP] how to create multiple selects within php

2004-10-18 Thread bruce
i've decided to punt... and do something similar to what i had initially created, which implements basically what you have below... the user will just have to be satisfied with seeing the 1st item that's a default/dummy item... thanks... -bruce -Original Message- From: Silvio

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Brent Baisley
I was looking at this before and I'm not even sure what you are trying to do. For one, you are testing to see if the contents of a class variable are equal to a class instance: $TestObj-myself == $TestObj Which seems a logic equivalent to: $TestObj-myself == TestClass() ??? And in your class

[PHP] constant tasks

2004-10-18 Thread Aaron Todd
I'm wondering if it is possible to have some kind of script running all the time. I have a site that collects data that users enter and emails certain people and does other various tasks with the data. Some of the information collected contains dates and times that could be up to three months

RE: [PHP] constant tasks

2004-10-18 Thread Jay Blanchard
[snip] I'm wondering if it is possible to have some kind of script running all the time. I have a site that collects data that users enter and emails certain people and does other various tasks with the data. Some of the information collected contains dates and times that could be up to three

RE: [PHP] constant tasks

2004-10-18 Thread Gryffyn, Trevor
It's possible to have a script running constantly, but Jay's right. CRON or some other task scheduler would probably be better. If you had something running constantly and there was some problem with your compile of PHP or something else that's getting used, there can be memory leaks or other

[PHP] setting index of array as 1

2004-10-18 Thread Afan Pasalic
when create an array using: $new_array[] = 'something'; first index of new array is 0 how can I though set that first index is 1 - except reorganize array after is created? thanks -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setting index of array as 1

2004-10-18 Thread Matthew Sims
when create an array using: $new_array[] = 'something'; first index of new array is 0 how can I though set that first index is 1 - except reorganize array after is created? thanks -afan $new_array = array(1 = 'first','second','third'); echo $new_array[1]; --- Will echo first --

[PHP] wrong address

2004-10-18 Thread Afan Pasalic
can somebody delete this address? every time I send an email getting this. -afan Original Message Date: Mon, 18 Oct 2004 19:18:58 +0200 From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sorry, but you have attempted to send mail to an invalid email address

Re: [PHP] setting index of array as 1

2004-10-18 Thread bbonkosk
$new_array[1] = 'something'; - or - $new_array = array(1='something'); - Original Message - From: Afan Pasalic [EMAIL PROTECTED] Date: Monday, October 18, 2004 1:14 pm Subject: [PHP] setting index of array as 1 when create an array using: $new_array[] = 'something'; first index of new

[PHP] Site Search for website

2004-10-18 Thread Rahul S. Johari
Ave, I¹m working on creating a site search for our company¹s website, and am looking for some tips. Creating the search code and the results doesn¹t seem to be a big challenge... Indexing is something I have no clue to. I don¹t know how to create the Index and how the keywords, summary and link

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa
Brent Baisley wrote: I was looking at this before and I'm not even sure what you are trying to do. For one, you are testing to see if the contents of a class variable are equal to a class instance: $TestObj-myself == $TestObj Which seems a logic equivalent to: $TestObj-myself == TestClass()

Re: [PHP] Site Search for website

2004-10-18 Thread John Nichel
Rahul S. Johari wrote: Ave, I¹m working on creating a site search for our company¹s website, and am looking for some tips. Creating the search code and the results doesn¹t seem to be a big challenge... Indexing is something I have no clue to. I don¹t know how to create the Index and how the

Re: [PHP] Site Search for website

2004-10-18 Thread Greg Donald
On Mon, 18 Oct 2004 13:31:40 -0400, Rahul S. Johari [EMAIL PROTECTED] wrote: I¹m working on creating a site search for our company¹s website, and am looking for some tips. Creating the search code and the results doesn¹t seem to be a big challenge... Indexing is something I have no clue to. I

[PHP] 'Intelligently' truncate string?

2004-10-18 Thread Murray @ PlanetThoughtful
Hi All, I'm working on a page where I'm attempting to display article titles in a relatively narrow area. To save from ugly wrap-arounds in the links, I've decided to truncate the article title string at 20 chars. This works well except where the truncate occasionally falls in the middle of a

Re: [PHP] setting index of array as 1

2004-10-18 Thread Afan Pasalic
It's not what I was looking for. Looks like I didn't explain very well :) look at this case: $query = mysql_query(select name from names order by date desc); while($result = mysql_fetch_array($query)) { $all_names[] = $result['name']; } in this case the array $all_names starts with index

Re: [PHP] 'Intelligently' truncate string?

2004-10-18 Thread Greg Donald
On Tue, 19 Oct 2004 04:35:21 +1000, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: I'm working on a page where I'm attempting to display article titles in a relatively narrow area. To save from ugly wrap-arounds in the links, I've decided to truncate the article title string at 20 chars.

Re: [PHP] setting index of array as 1

2004-10-18 Thread bbonkosk
for ($i=0; $icount($all_names); $i++) { $new_array[$i+1] = $all_names[$i]; } // just writting to a new array and incrememnting the subscript by 1 -B - Original Message - From: Afan Pasalic [EMAIL PROTECTED] Date: Monday, October 18, 2004 2:33 pm Subject: Re: [PHP] setting index of

RE: [PHP] setting index of array as 1

2004-10-18 Thread Gryffyn, Trevor
In that case, you could do this: $x = 1; $query = mysql_query(select name from names order by date desc); while($result = mysql_fetch_array($query)) { $all_names[$x] = $result['name']; $x++; } -TG -Original Message- From: Afan Pasalic [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] setting index of array as 1

2004-10-18 Thread Afan Pasalic
this one fit the best... :) thanks TG. thanks to all other too for ideas :) -afan Gryffyn, Trevor wrote: In that case, you could do this: $x = 1; $query = mysql_query(select name from names order by date desc); while($result = mysql_fetch_array($query)) { $all_names[$x] = $result['name'];

Re: [PHP] setting index of array as 1

2004-10-18 Thread Brian
Why do you want your array to start with 1 so badly? On Mon, 18 Oct 2004 13:33:22 -0500, Afan Pasalic [EMAIL PROTECTED] wrote: It's not what I was looking for. Looks like I didn't explain very well :) look at this case: $query = mysql_query(select name from names order by date desc);

Re: [PHP] 'Intelligently' truncate string?

2004-10-18 Thread Robert Cummings
On Mon, 2004-10-18 at 14:35, Murray @ PlanetThoughtful wrote: Hi All, I'm working on a page where I'm attempting to display article titles in a relatively narrow area. To save from ugly wrap-arounds in the links, I've decided to truncate the article title string at 20 chars. This works well

Re: [PHP] setting index of array as 1

2004-10-18 Thread Afan Pasalic
Because elements of the new array are actually numbers that depend on index. working on survey and values of offered answers are actually numbers Question - input type=radio value=1 offered answer no 1 - input type=radio value=2 offered answer no 2 - input type=radio value=3 offered answer no 3 -

Re: [PHP] setting index of array as 1

2004-10-18 Thread Brian
You should just make everything else start with a standard 0, if it's something you output to the users, just do a +1 on it. On Mon, 18 Oct 2004 14:35:19 -0500, Afan Pasalic [EMAIL PROTECTED] wrote: Because elements of the new array are actually numbers that depend on index. working on

[PHP] File and line that called a function?

2004-10-18 Thread Adrian Madrid
Is there a way to know which file and line called a function youo are in? I want to create an error function that can tell me which file and line called it. I know __FILE__ and __LINE__ but they will return the file and line that my error function is in, and not the originators. Thanks in

Re: [PHP] File and line that called a function?

2004-10-18 Thread Rory Browne
Sorry accidently replied off-list I basicly said to check out debug_backtrace() at http://www.php.net/debug-backtrace On Mon, 18 Oct 2004 13:56:33 -0600, Adrian Madrid [EMAIL PROTECTED] wrote: Is there a way to know which file and line called a function youo are in? I want to create an error

Re: [PHP] setting index of array as 1

2004-10-18 Thread Afan Pasalic
actually, I just decide to redo DB architecture and not use serialize-ed info to store in DB. to much troubles with it. thanks brian. -afan Brian wrote: You should just make everything else start with a standard 0, if it's something you output to the users, just do a +1 on it. On Mon, 18 Oct

Re: [PHP] dirty words

2004-10-18 Thread Skippy
On Sat, 16 Oct 2004 07:41:11 -0700 (PDT) Mag [EMAIL PROTECTED] wrote: I am useing file_get_contents on a remote page then using stristr() to make sure there are no bad words and its a family site. May I point out this is a lost battle from the start? If someone really wants to enter bad words

RE: [PHP] dirty words

2004-10-18 Thread Graham Cossey
Skippy does have a point. If you still receive spam emails you'll know what he means. I must have seen 20 different ways of spelling viagra, using various accented characters etc: viagra, viagra, viiagra etc etc As for the legit words, there is the tale of Scunthorpe town council having ALL its

Re: RE: [PHP] dirty words

2004-10-18 Thread hitek
What I find interesting is that you managed to use 4 variations on the word viagra, and your email still made it past my ISP's spam filters :) Keith From: Graham Cossey [EMAIL PROTECTED] Date: 2004/10/18 Mon PM 06:27:02 EDT To: [EMAIL PROTECTED] Subject: RE: [PHP] dirty words Skippy

[PHP] Open or Save PHP page?

2004-10-18 Thread Chris
Win XP Pro Apache 1.3.31 - Win MSI PHP 4.3.8 - Win MSI Followed directions in PHP install.txt to install PHP as a module for Apache. Server runs and servers HTML pages fine. PHP.INI copied to Apache installation folder. When selecting link to load a PHP file, system asks to open or save the PHP

Re: [PHP] Open or Save PHP page?

2004-10-18 Thread M Saleh EG
.php files are still not associated with PHP extension on Apache. That means the php4apache.dll, or php4ts.dll is not associated in Apache to deal with PHP files. Check ur Apache conf files. Edit httpd.conf. On the module loading section and adding module section.Check if the php4apache.dll or

Re: [PHP] Re: ' (Single Quotes) in user inputs

2004-10-18 Thread Jerry Swanson
I'm not sure that stripslashes() are used for input. addslashes() - to insert data into database stripslashes() - to get data from database and print it. On 14 Oct 2004 11:19:14 +0200, Christian Jul Jensen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Ben) writes: Any ideas on dealing

Re: [PHP] Re: ' (Single Quotes) in user inputs

2004-10-18 Thread John Holmes
Jerry Swanson wrote: I'm not sure that stripslashes() are used for input. If you want to redisplay the input, then it would be used. addslashes() - to insert data into database stripslashes() - to get data from database and print it. You don't need stripslashes when pulling data unless you have

[PHP] people/projects looking for developers...

2004-10-18 Thread bruce
hi... a question for consideration. are there sites set up for people who have ideas/projects, who are looking for developers. or vice versa, are there sites for developers who are looking to be part of projects. i'm not referring to open source projects, rather projects that are intended to be

Re: [PHP] dirty words

2004-10-18 Thread Mag
Hi, I am useing file_get_contents on a remote page then using stristr() to make sure there are no bad words and its a family site. May I point out this is a lost battle from the start? If someone really wants to enter bad words they will, by masking them in various ways; humans

RE: [PHP] people/projects looking for developers...

2004-10-18 Thread Vail, Warren
Check out the following, probably a lot more; http://www.guru.com/ (used to be itmoonlighter.com) http://www.sologig.com/ (site written in php) http://www.prosavvy.com/ http://rfq.programmingbids.com/ I have even seen a few on this list, although it is considered a little off topic, I have yet

Re: [PHP] guessing timezone based on country/state/city

2004-10-18 Thread Justin French
On 18/10/2004, at 4:03 PM, Manuel Lemos wrote: On 10/18/2004 02:23 AM, Justin French wrote: I was hoping to do this with an educated guess based on user input like country, state and town, rather than by asking the user (who isn't too technically minded) to decide. One easy way to do what you

Re: [PHP] people/projects looking for developers...

2004-10-18 Thread Dan Joseph
a question for consideration. are there sites set up for people who have ideas/projects, who are looking for developers. or vice versa, are there sites for developers who are looking to be part of projects. i'm not referring to open source projects, rather projects that are intended to be

Re: [PHP] guessing timezone based on country/state/city

2004-10-18 Thread Manuel Lemos
Hello, On 10/18/2004 10:35 PM, Justin French wrote: I was hoping to do this with an educated guess based on user input like country, state and town, rather than by asking the user (who isn't too technically minded) to decide. One easy way to do what you want is to use the Javascript Date object

[PHP] Add to regex help

2004-10-18 Thread Mag
Hi, Quite some time back I modified a regex (to the one below) to work with my script: if (preg_match_all('/a\s+.*?href=[\\']?([^\\' ]*)[\\']?[^]*.*?\/a/i', $url, $matches)) { foreach($matches as $match){$links[] = $match;} } Problem is, I dont really know REGEXs properly and dont remember

RE: [PHP] people/projects looking for developers...

2004-10-18 Thread bruce
interesting... for the most part, people have responded with contract resource sites... (guru.com/elance.com/etc) no one has mentioned any kind of site specifically geared towards people who want to come together to kind of build applications. ala the old garage/basement type of process were

[PHP] sql trim problem

2004-10-18 Thread Dale Hersowitz
Recently, I had to format my db server and when I re-attached the database, I noticed some unusal behavior. I have some fields in certain tables with a width of 60. When I would extract data from the table for that specific field, the data would contain extra blank chars. As a result, I am forced