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 segfaults
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'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
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
foreach(
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:
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 t
[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.
--
Chris
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 continui
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
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
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 ac
This code:
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 lin
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 m
$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
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 ($tmp>31 && $tmp <127)
{
$new_str .= $str[$i];
}
}
return($new_str);
}
On Mon, 18 Oct 200
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:
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.
t
hi...
i can create a form with a single select by something like:
fff
aaa
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 something wrong, in
that the querystring is being populated with a value for the s
bruce wrote:
hi...
i can create a form with a single select by something like:
fff
aaa
however, i need to know how to create a multiple menu/list within a single
form.
Not sure exactly what you're asking here, but I think this may be it...
If you want multiple select, you need your select tag
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 ac
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 va
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
submitte
Year shouldn't be a multiple
At the beginning of the second two selects:
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 didn't populate all
with your code above the first option is going to be the default, so
just make the default nothing:
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 spec seems to state t
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
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
You can do something like this:
- - choose one - -
fff
aaa
.
and then in your PHP:
Anyway, you can catch this only *after* the form is submitted: in case you want to block
the user from submitting the form if the 'foo' select is empty you need to use some
javascript:
function chec
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:
http://www.w3.org/TR/REC-html40/interact/
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.
Ki
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 w
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:
class TestClass {
public $myself;
function __construct () {
$this->myself = $this;
}
}
$TestObj = new TestClass ();
if ( $TestObj->myself == $TestObj
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
fault
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 if
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 example,
> 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
> 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 pare
> 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 pare
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 Porcellan
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
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
[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
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 issu
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
> 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 fi
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
$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 o
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 is
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()
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 keyword
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.
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 H
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
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
for ($i=0; $i
Date: Monday, October 18, 2004 2:33 pm
Subject: Re: [PHP] setting index of array as 1
> 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
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:
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'];
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
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
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
- offered answer no 1
- offered answer no 2
- offered answer no 3
- offered answer no 4
Qs ans As are pulled from database and I chosen valu
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 s
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 advan
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 er
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 200
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
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 e
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
>
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
f
.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
php
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 dealin
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
m
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 r
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 w
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
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 wan
> 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
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
Hi,
Quite some time back I modified a regex (to the one
below) to work with my script:
if (preg_match_all('/]*)[\"\']?[^>]*>.*?<\/a>/i', $url, $matches))
{
foreach($matches as $match){$links[] = $match;}
}
Problem is, I dont really know REGEXs properly and
dont remember how I modified it and i
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
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 t
* Thus wrote 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 quest
* Thus wrote Bostjan Skufca @ domenca.com:
> Is there any special apache/php compile option needed to generate core files
> on linux?
No, its really up to the OS to figure out what to do whan a
segfault happens.
>
> I have seen few segfaults and i have set CoreDumpDirectory to /tmp/httpd.core
Hi All,
(B
(Bwill anybody tell me how to connect oracle database using php script.
(B
(BThanx
(B
(BSyed
82 matches
Mail list logo