> I am trying to make a tab delimited file of a mysql table so I can open
> it with Excel.
> I select the data - 40 fields, 808 records no prob.
> I view a mysql_num_rows() query to make sure it selects all records; no
prob.
>
> I create a tab delimited format:
> $result = mysql_query("SELECT * FR
> I would like to know if it possible to pass in any way some values
>
> from javascript functions to php variables ?
Yes, but...
You can have JavaScript call another URL using something like:
document.location = 'http://yoursite.com/whatever.php?foo=' . $foo;
But keep this in mind: PHP lives
On Fri, 19 Jan 2001, Richard Lynch wrote:
> > > for ($i=0 ; $i < 4 ; $i++)
> > {
> > file://do something
> >
> > for ($k=0 ; $k < 3 ; $k++)
> >{
> > print " > value=\"".$K."\" >"; file://this is working
> > print ""; file://this
> is
> > not
> >}
> > }
>
> For FOR
This tutorial will help you guys understand the differences :
http://www.zend.com/zend/tut/using-strings.php
philip
On Fri, 19 Jan 2001, Shawn Blaylock wrote:
> Yep. I think the only difference is the way it handles variable
> interpolation, but I'm not entirely sure on that one.
>
> "Bo
Thanks Brian, I should have provided that detail. Unfortunately it is on a
Windows machine.. anyone know of a schedule for IIS that would do the same
thing?
Rudy
- Original Message -
From: "Brian Clark" <[EMAIL PROTECTED]>
To: "PHP is not a drug ." <[EMAIL PROTECTED]>
Sent: Friday, Jan
Hi Todd!
if $a = 3.5 then
echo (int)$a // print 3
regards
Marcelo Gulin
Todd Cary escribió:
>
> What is the syntax for dividing 7 by 2 and getting 3; not 3.5?
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
On Fri, 19 Jan 2001, Rudy McDaniel wrote:
> Thanks Brian, I should have provided that detail. Unfortunately it is on a
> Windows machine.. anyone know of a schedule for IIS that would do the same
> thing?
>
> Rudy
>
Use the WinNT "at" command. Or better yet, use WinAt or the Task Scheduler.
--
Hi Karl!
try...
echo "...are you logged in: " . $LoggedIn() . "";
regards
Marcelo Gulin
"Karl J. Stubsjoen" escribió:
>
> Okay, what is wrong with this:
>
>echo "...are you logged in: $LoggedIn()";
> // outputs:...are you logged in: ()
>
> Function is:
> function LoggedIn(
Fraser MacKenzie wrote:
> Here is my configuration now:
>
> [Java]
> java.class.path=/home/local/src/php-4.0.4/ext/java/php_java.jar
> java.home=/home/local/java/jdk1.2.2
>
>java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20001214:/home/local/java/jdk1.2.2/jre/lib/i386:/home/loc
Hmmm...
Thanks for the info, but I allready know it's a bug.
My problem is that I can't recompile PHP on the the server, so I'm desperatly looking
for a way to access the real PATH_TRANSLATED...
In my opinion the lack of a working PATH_TRANSLATED makes PHP rether useless for large
scale sites
I wonder if it's possible to adapt the CGI version of PHP as a Netscape
plugin, or to associate the extension of php files to some kind of php
wrapper. This would require distributing a browser with the CD for this
specific CD, but it could work.
For a Unix-only kludge, I found this page,
htt
ok so i set up a multidimensional array with the following code:
array("On", "On", "The Seybold Report"),
"s2" => array("On", "On", "Publishing Systems"),
"s3" => array("On", "On", "Internet Publishing"),
"s4" => array("On", "On", "The Bulletin"),
"s5" => array("Off", "Off", ""),
"s6" => array("
I always call unset before destroy. Worked fine when I had problems with
destroy.
/Håkan
Brandon Orther <[EMAIL PROTECTED]> skrev i
diskussionsgruppsmeddelandet:CKEMJEADMOCEHPHJKLPAGEGLCDAA.brandon@webintelle
cts.com...
> Hello Everyone,
>
> Can someone please give me example code on how to u
On Fri, 19 Jan 2001 [EMAIL PROTECTED] wrote:
> Hi,
>
> I`m trying to setup a little profanity filter for a client of mine just
> wondered if anyone could offer some advice on how best to handle it. I was
> thinking of going along these lines...
>
> $filter="moron";
>
> if($Name==$filter)
> {
> pr
On Fri, 19 Jan 2001, Michael Zornek wrote:
> ok so i set up a multidimensional array with the following code:
>
> // departments.inc
> //
> // This file defines the switches. All the forms, and return displays are
> // based on this table (multidimential array). The first index is the
> switch
On Fri, 19 Jan 2001, Michael Zornek wrote:
> ok so i set up a multidimensional array with the following code:
>
> // departments.inc
> //
> // This file defines the switches. All the forms, and return displays are
> // based on this table (multidimential array). The first index is the
> switch n
Hi,
I`m trying to setup a little profanity filter for a client of mine just
wondered if anyone could offer some advice on how best to handle it. I was
thinking of going along these lines...
$filter="moron";
if($Name==$filter)
{
printf...Javascript you can`t use that etc
}
Name is passed from
In a message dated 19/01/2001 19:03:13 GMT Standard Time,
[EMAIL PROTECTED] writes:
<< Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
LIKE
'%'+word+'%'" and count how many rows are returned. No need to re-invent the
wheel.
--
Ignacio Vazquez-Abrams >>
Yeah prob
When I create a pdf with the cpdf functions my text keeps going off the edge
of the page. How do I make it wrap to the next line?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact t
On Fri, 19 Jan 2001 [EMAIL PROTECTED] wrote:
> In a message dated 19/01/2001 19:03:13 GMT Standard Time,
> [EMAIL PROTECTED] writes:
>
> << Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
> LIKE
> '%'+word+'%'" and count how many rows are returned. No need to re-invent th
why use a DB?
just create an array of dirty words then loop your input thru it with a
regex.
DanO
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:09 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Profanity Filt
Hi
Perhaps you could write to a flat test file, have your script read from
that. Then I would create an on-line interface for the client so he can
write to/delete from the list. He then would have control of it.
Todd
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sen
text file that is..oops!
- Original Message -
From: "Todd H MacPherson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: January 19, 2001 3:23 PM
Subject: Re: [PHP] Profanity Filter
>
> Hi
>
> Perhaps you could write to a flat test file, have your script read from
> that. Then I would
> > In a message dated 19/01/2001 19:03:13 GMT Standard Time,
> > [EMAIL PROTECTED] writes:
> >
> > << Use a database for the words and say "SELECT 1 WHERE
LOWERCASE('$name')
> > LIKE
> > '%'+word+'%'" and count how many rows are returned. No need to
re-invent the
> > wheel.
> >
> > --
> > Ig
On Fri, 19 Jan 2001, DanO wrote:
>
> why use a DB?
>
> just create an array of dirty words then loop your input thru it with a
> regex.
>
> DanO
>
Because a DB would probably be faster than creating an array and looping
through it with a regex.
--
Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
On Fri, 19 Jan 2001, Sterling Hughes wrote:
> If you go with the other method (described by Ignacio), see the in_array()
> function, which saves you the trouble of looping...
>
> -Sterling
>
I thought about in_array(), but then I realized that the comparison has to go
the OTHER way :)
--
Ignac
On Fri, 19 Jan 2001 14:21:50 -0500 (EST), Ignacio Vazquez-Abrams
<[EMAIL PROTECTED]> wrote:
>>> Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
>> Yeah problem is he has no database support from his host
> Ouch. All is not lost, however:
>
> $words=Array(
> "f***",
> "s*
On Fri, 19 Jan 2001, Egan wrote:
> On Fri, 19 Jan 2001 14:21:50 -0500 (EST), Ignacio Vazquez-Abrams
> <[EMAIL PROTECTED]> wrote:
>
> >>> Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
>
> >> Yeah problem is he has no database support from his host
>
> > Ouch. All is not l
> On Fri, 19 Jan 2001, DanO wrote:
>
> >
> > why use a DB?
> >
> > just create an array of dirty words then loop your input thru it with a
> > regex.
> >
> > DanO
> >
>
> Because a DB would probably be faster than creating an array and looping
> through it with a regex.
>
Not really, a db would b
On Fri, 19 Jan 2001 14:34:08 -0500 (EST), Ignacio Vazquez-Abrams
<[EMAIL PROTECTED]> wrote:
>Check the code again. I'm not doing a dictionary approach.
Sorry, guess my speed reading got a little too fast. :-)
Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EM
> On Fri, 19 Jan 2001, Sterling Hughes wrote:
>
> > If you go with the other method (described by Ignacio), see the
in_array()
> > function, which saves you the trouble of looping...
> >
> > -Sterling
> >
>
> I thought about in_array(), but then I realized that the comparison has to
go
> the OTHE
If I don't actually specify the entire path to libjava.so, I get the
following error:
Fatal error: Unable to load Java Library libjava.so,
error: libhpi.so: cannot open shared object file: No such file or
directory in /home/rondaks_portal/httpd/docs/k2test/index.php3 on line 34
So, when I actual
convert.php
";
$id=1;
$i=1;
echo "?? ?? $filename ?? ? ETNA";
if ($fp=fopen($filename, "r"))
{
while (!feof($fp))
{
$trimmed_line=trim($line=fgets($fp, 80));
if (strstr($trimmed_line, "Handle"))
{
$handle=substr($trimmed_line, 9, 4);
$trimmed_line=trim($line=fge
On Fri, 19 Jan 2001, Sterling Hughes wrote:
> I'm saying use the same method, but use an array and avoid the strpos()
> function:
>
> $words = preg_split("//", $data);
> foreach ($words as $word) {
> if (in_array($prof, $words)) {
> echo "BAD WORD";
> echo "BAD WORD";
>
rasmus Fri Jan 19 11:45:18 2001 EDT
Modified files:
/CVSROOTavail gen_acl_file.m4
Log:
Karma for Jason
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.48 CVSROOT/avail:1.49
--- CVSROOT/avail:1.48 Thu Jan 18 12:40:32 2001
+++ CVSROOT/avail Fri Jan 19
I tried this, but it didn't work. I need the value inside the form still
because the value of the select will be written to an array that gets passed
to the next page (as hidden inputs), which will in turn be compiled into a
value list for a db query. I tried making the name of the select be th
I tried this, but it didn't work. I need the value inside the form still
because the value of the select will be written to an array that gets passed
to the next page (as hidden inputs), which will in turn be compiled into a
value list for a db query. I tried making the name of the select be th
On Fri, 19 Jan 2001, Ignacio Vazquez-Abrams wrote:
> On Fri, 19 Jan 2001, Sterling Hughes wrote:
>
> > I'm saying use the same method, but use an array and avoid the strpos()
> > function:
> >
> > $words = preg_split("//", $data);
> > foreach ($words as $word) {
> > if (in_array($prof, $words
On Fri, 19 Jan 2001, Jason Jacobs wrote:
> I tried this, but it didn't work. I need the value inside the form still
> because the value of the select will be written to an array that gets passed
> to the next page (as hidden inputs), which will in turn be compiled into a
> value list for a db qu
Fraser MacKenzie wrote:
> If I don't actually specify the entire path to libjava.so, I get the
> following error:
>
> Fatal error: Unable to load Java Library libjava.so,
> error: libhpi.so: cannot open shared object file: No such file or
> directory in /home/rondaks_portal/httpd/docs/k2test/inde
Why would this work in IE but not NN (4.08)?
If I remove "/" ".mydomain.com" it works with
NN but not IE. Vice versa if I leave it in.
Thanks,
-Brian
***
= 5) {
$val = 0;
} else {
$val = $ecb;
}
} else {
$val = 0;
}
setcookie("ecb", $val+1,mktime(12, 00, 00,
> On Fri, 19 Jan 2001, Ignacio Vazquez-Abrams wrote:
>
> > On Fri, 19 Jan 2001, Sterling Hughes wrote:
> >
> > > I'm saying use the same method, but use an array and avoid the
strpos()
> > > function:
> > >
> > > $words = preg_split("//", $data);
> > > foreach ($words as $word) {
> > > if (i
On Fri, 19 Jan 2001, Sterling Hughes wrote:
> Its a whip up of what I was talking about, I didn't mean it as real code
> :)... Switch $words to $word and then swith the argument order to in_array
> and yes, it makes sense...
>
> $profanities = array("fuck", "shit");
>
> $words = preg_split("/\
> On Fri, 19 Jan 2001, Sterling Hughes wrote:
>
> > Its a whip up of what I was talking about, I didn't mean it as real code
> > :)... Switch $words to $word and then swith the argument order to
in_array
> > and yes, it makes sense...
> >
> > > $profanities = array("fuck", "shit");
> >
> > $
> On Fri, 19 Jan 2001, Sterling Hughes wrote:
>
> > Its a whip up of what I was talking about, I didn't mean it as real code
> > :)... Switch $words to $word and then swith the argument order to
in_array
> > and yes, it makes sense...
> >
> > > $profanities = array("fuck", "shit");
> >
> > $
Hi,
I am working on a site that requires extensive calendar math on it and read
about PHP and using mcal with it. I tried configuring mcal to work with it
and was wondering if anyone has had any success getting it to work. I
followed all the steps I could find, but I have no idea how to set up
On Fri, 19 Jan 2001, Sterling Hughes wrote:
> true it does take em away, that's why I suggest preg_match as the optimal
> choice... I happen to strongly dislike the strpos() function when used for
> more than:
>
> strpos($str, ":");
>
> ie, one character searches...
>
> -Sterling
>
Huh? Whu? Ok
New features/fixes:
* support for relative include paths
* support for the include_path setting in php.ini
* new php function 'apc_cache_index'
* default initialization of class member data (as arrays) now works
Note: to enable support for either relative paths OR the include_path
setting, you m
hi,
It appears php4 has a bug in it, such that when I install it with apache
1.3.9, then add the proper lines to httpd.conf for the php mime types,
whenever i hit a page of one of those types (.php, .html, etc) my browser
brings up a 'Save As' dialog, indicating to me that apache has successfully
Rasmus Lerdorf wrote:
>
> > I think the single most importand piece of software that saves us the
> > most money is thttpd. That all runs in a single thread and uses
> > select to pump out content. Since it is a single thread, it never
> > chews up tons of memory forking children.
>
> By the w
Also, this incorporates the patch to correctly support multi-tier class
hierachies posted to apc-cache yesterday.
Daniel Cowgill wrote:
>
> New features/fixes:
>
> * support for relative include paths
> * support for the include_path setting in php.ini
> * new php function 'apc_cache_index'
>
I have a question about session_register(), and the following is the
background
When I read a tutorial about session. I know that, once the
"session_start()" is called, it will check the session id. If it's not
valid, create a new one, and it will responible to retrieve the variable.
I also l
> It appears php4 has a bug in it, such that when I install it with apache
> 1.3.9, then add the proper lines to httpd.conf for the php mime types,
> whenever i hit a page of one of those types (.php, .html, etc) my browser
> brings up a 'Save As' dialog, indicating to me that apache has
successfu
When I first meet PHP, it still in 3.0 version. just after I bought a book
abuot PHP3, for a few weeks, PHP4 is released.
for now, I have fimilar with some basic of PHP, and I try to find some
useful tutorial about the PHP4, I fail.
I have look about the PHP manual (pdf version), I find that, th
Since you didn't mention it specifically, I thought I should ask:
Did you also download the mcal library or did you only include -with-mcal
when you compiled PHP?
Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]
-Original Message-
From: johnny p. [mailto:[
yes. I installed both the libraries. I followed all the directions on the
mcal web site for installing it.
johnny p.
> -Original Message-
> From: Sam Masiello [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 19, 2001 3:17 PM
> To: johnny p.; [EMAIL PROTECTED]
> Subject: RE: [PHP] mca
On Sat, 20 Jan 2001, Zenith wrote:
> When I first meet PHP, it still in 3.0 version. just after I bought a book
> abuot PHP3, for a few weeks, PHP4 is released.
>
> for now, I have fimilar with some basic of PHP, and I try to find some
> useful tutorial about the PHP4, I fail.
>
> I have look abo
On Fri, 19 Jan 2001, Andrew Rush wrote:
>
> On Friday, January 19, 2001, at 04:20 PM, Ignacio Vazquez-Abrams wrote:
>
> > > 1. What is "Referer" in a HTTP header, what does it mean?
> >
> > It's the web page that the browser was just at.
>
> my understanding is that this value is only present if
Ok I thought array_intersect() was the function I was looking for, I might
have to write my own.
I want an array with ONLY the keys/values that are present in all the
variables; ie.
Array
(
[0] => 974806802083190501
[1] => 974806802083190503
[2] => 974806802083190504
)
Array
(
On Fri, 19 Jan 2001 20:55:12 +, John Hinsley
<[EMAIL PROTECTED]> wrote:
>Incidentally, the must 2.4 gung ho distro seems to be SuSE, which I rate
>well above RedHat in terms of value, support and stability.
I like the way SuSE makes it easy to build and save a custom install
config which can
my problem is i have an include file in a parent directory which includes
other files. i want these other files to be in the same directory as this
parent directory file..(hope your gettin me here...). the prob is the parent
directory file looks for its include files in the current directory.
exa
On Fri, 19 Jan 2001, Noah Spitzer-Williams wrote:
> my problem is i have an include file in a parent directory which includes
> other files. i want these other files to be in the same directory as this
> parent directory file..(hope your gettin me here...). the prob is the parent
> directory file
I'd make it an array:
$filter = array(moron, idiot, pratt);
foreach($filter as $badword) {
if (strstr($name, $badword)) {
do this if it contains one of the bad words
}
else {
do this if it doesn't
}
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PRO
Okay. I'll tell you a little more information. The 'friend' of mine is
actually my local church. I need ~20 email accounts because there should be
15 staff people (who will want/need email) and 5 for the future. Since it
is a church, they don't have a lot of money to spend on stuff (i.e. a
web
ok so i have an object that has (among other things) the following properties:
$vendor_data->s9
$vendor_data->s10
$vendor_data->s11
$vendor_data->s12
...
$vendor_data->s40
The values are 1 or 0
I'd like to write a loop to say:
for ($count=9; $count>40; $count++) {
if ($vendor_data->s(i
Yep.
ldd libjava.so produces:
libhpi.so => not found
libnsl.so.1 => /lib/libnsl.so.1 (0x00143000)
libdl.so.2 => /lib/libdl.so.2 (0x0015a000)
libjvm.so => not found
libc.so.6 => /lib/libc.so.6 (0x0015f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0
ok, Ive got my code to work, but its a big jerry-rig haha. because I am
using mtime() (the last two chars are allways 00) I substr the last two
chars off, array_insersect() them, then add 00 the the end of all the values
in the result array. dumb eh.
Chris Lee
Mediawaveonline.com
"Chris Lee" <
Put them in an array? PHP allows for variable variables, but I'm not sure they
work with classes.
This works:
$foo0 = 'a';
$foo1 = 'b';
$foo2 = 'c';
$foo3 = 'd';
$foo4 = 'e';
for($i = 0 ; $i < 5 ; ++$i)
{
$var = 'foo'.$i;
echo $$var;
}
Try it with an object...
--Joe
On Fri, Ja
> I don't like
> arrays, because then it requires a programmer to add dirty word...
You could probably make an addbadwords.php that loads the
filterbadwords.php, does some stupid PHP tricks(tm) to find the line that
defines the array, then writes the filterbadwords.php back out with the new
words
Did you restart your web server after recompiling PHP?
Please be more specific on the steps that you did along the way (perhaps do
them again and copy and paste your command lines to the screen so we can see
exactly what you did). More often than not, people say "I followed all of
the steps in
I'm getting the same problem on 2 machines, but I can't figure out what I'm
doing wrong.
OS is FreeBSD 4.2-STABLE i386
IMAP installed from port is imap-uw-4.5
For php4 (php4.0.4pl1) I'm doing:
/configure --with-apache=../apache_1.3.14 --with-mysql \
--with-imap=/usr/local/libexec/imapd --with-
You want to drop empty where clauses? This will work, although your
syntax will be wrong if $em is empty ( you will get an SQL syntax error
with the extra AND on the end ). You need a dummy clause after the where
clause to make things match up right, something that always returns true
like 1=1.
$
heyesr Fri Jan 19 14:28:16 2001 EDT
Modified files:
/php4/pear/Mail rfc822.php
Log:
If extended format is in use and there are no groups, all the addresses are
now added to an empty group. Also changed the format of the output, an
array was being used un
thats right you could do that, but it sucks. (IMHO)
$test->s0
$test->s1
$test->s2
for($c = 0; $c < 3; $c++)
{
$name = "s$c";
echo $test->$name;
}
but this is better, more modular.
$test->s[0]
$test->s[1]
$test->s[2]
foreach($test->s as $pos => $val)
echo $val;
with the second exa
I would use thttpd with php support compiled in, rather than a browser.
That way you could use whatever the browser on the users system was- more comfortable
for the user.
difficulty is what port to run the server at (well, one of the difficulties...) but
you could search for an unused unprivil
Fatal error: Failed opening required 'shared.inc'
(include_path='.:./include:../include') in
/local/Web/sites/phpweb/manual/html/index.php on line 2
Peace, love, code.
-Szii
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
Aditionally you could create a ram disk with you php stuff, mount that in
/tmp/whatever read-write- and use that for your thttpd document root. May require root
access to mount the ramdisk, though.
On Friday, January 19, 2001, at 03:12 PM, Michael A. Peters wrote:
> I would use thttpd with php
I'm developing a site that requires people to sign up. During this time,
we get their name, email, city, etc. There is also optional informational
like (age, education) that they don't have to fill in.
Now, the problem we have is we allow people search through the database
using mostly the same
Which URL did you use? Looks like you were trying to get to the plain
html version at http://www.php.net/manual/en/html/ and it seems to work ok
for me.
-Rasmus
On Fri, 19 Jan 2001, [EMAIL PROTECTED] wrote:
> Fatal error: Failed opening required 'shared.inc'
> (include_path='.:./include:../inc
original question jalist:
> > I'm trying to grab a string from within a string based on a matching word
> > or phrase.
In the middle of the night i was thinking hey, why not use a regexp,
look for the pattern word-space-word-space-SEARCHWORD-space-word-space-word
something like
$toshow =
Dear group,
i'm planning to change a javascript shoppingcart site to a PHP site.
For the javascritp shoppingcart it was convenient to have an index so i made
it with frames, menu on the left, content on the right, data automatically
updated to the index as soon as some field was unfocused.
I wo
I tried the plain html, and the PHP manual online. The Annotated manual
was working okay.
They're all working now for me. *shrug*
-Szii
- Original Message -
From: Rasmus Lerdorf <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January
At 13:48 18/01/01 +, jalist wrote:
>I'm trying to grab a string from within a string based on a matching word or
>phrase. Example...
>
>$string = "This is a string I need to grab the middle out of"
>$query_word = "need"
>
>I need to get x amount of characters either side of $query_word, so the
On Fri, Jan 19, 2001 at 03:24:00PM -0800, Rasmus Lerdorf wrote:
> Which URL did you use? Looks like you were trying to get to the plain
> html version at http://www.php.net/manual/en/html/ and it seems to work ok
> for me.
Append in the include path a :../../include and it should work. It is a
c
I am using the following function to add a serialized object to a
session:
function add_toCart($id,$array) {
session_register("OBJECT");
$c = new Configurator;
$c->readConfig($id);
$OBJECT = serialize($c);
header("Location: Cart.php");
echo "Redirec
The session file is not empty :) the OBJECT portion of the session file
is empty. i.e. cat'ing /tmp/sess_whatever yields:
!OBJECT|
-jm
-Original Message-
From: Javier Muniz [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:57 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Session
Why would this work in IE but not NN (4.08)?
If I remove "/" ".mydomain.com" it works with
NN but not IE. Vice versa if I leave it in.
Thanks,
-Brian
***
= 5) {
$val = 1;
} else {
$val = $ecb;
$val++;
}
} else {
$val = 1;
}
$expires = mktime(12, 00, 0
best way is this.
if ($CID)
$query[] = "CID = '$CID'";
if ($CUserName)
$query[] = "CUserName = '$CUserName'";
if ($CAge)
$query[] = "CAge = '$CAge'";
if ($CEducation)
$query[] = "CEducation = '$CEducation'";
if (isset($query))
$query = "SELECT * FROM clients WHERE CID = '$CID
Fraser,
Yes, you must set your LD_LIBRARY_PATH prior to running ldd. In a terminal,
export
LD_LIBRARY_PATH=/home/local/java/jdk1.2.2/jre/lib/i386:/home/local/java/jdk1.2.2/jre/lib/i386/classic:/home/local/java/jdk1.2.2/jre/lib/i386/native_threads
and rerun ldd libjava.so. If everything works,
Wasn't a private mirror. =)
- Original Message -
From: <[EMAIL PROTECTED]>
To: Rasmus Lerdorf <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 3:44 PM
Subject: Re: [PHP] php.net's docs are down
> On Fri, Jan 19, 2001 at 0
It's after a variable called $LoggedIn.
You'll have to do:
echo "...are you logged in: ".LoggedIn()."";
hth
Chris Mulcahy
[EMAIL PROTECTED]
-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:17 AM
To: PHP Mailing List
Subject: [PHP]
I need to grab the referring search engines keywords used in the search. I
need to be able to determine what the keywords were, and what the engine
was... (Lycos, AltaVista etc...).
How can I do this, where can I find info on this, or is there something that
will do this already that I can integ
chagenbuFri Jan 19 14:55:23 2001 EDT
Modified files:
/php4/pear/Mail rfc822.php
Log:
remove a change that broke things, and removing an unused function.
Index: php4/pear/Mail/rfc822.php
diff -u php4/pear/Mail/rfc822.php:1.4 php4/pear/Mail/rfc822.
convert.php
";
$id=1;
$i=1;
echo "?? ?? $filename ?? ? ETNA";
if ($fp=fopen($filename, "r"))
{
while (!feof($fp))
{
$trimmed_line=trim($line=fgets($fp, 80));
if (strstr($trimmed_line, "Handle"))
{
$handle=substr($trimmed_line, 9, 4);
$trimmed_line=trim($line=fge
I need to simulate this effect: $array[$i] or \$something . $i, and have it
return $checkbox1 $checkbox2 etc. on up in a while loop.
Just doing it doesn't seem to work, but does anyone know of any work
arounds? Or just the keyword I should be looking for to search the manual?
I have a form bein
I installed php4 and supposidly configured it with apache and mysql.
When I go to a page with php in it it doesn't load it. Instead it
automatically prompts me to download it. I know this has to be an error on
my part and a common overlooked error on installation.
I did edit httpd.conf with the:
Do you have a LoadModule line to load the PHP module?
On Fri, 19 Jan 2001, Thomas Anderson wrote:
> I installed php4 and supposidly configured it with apache and mysql.
>
> When I go to a page with php in it it doesn't load it. Instead it
> automatically prompts me to download it. I know this ha
Ok, I think I might have it installed correctly, but I'm not sure how to use
it. Does anyone have an example on how to create a calendar mailbox, create
a calendar event in that mailbox, and then list it? I think that might be
my problem. I might not be creating the calendar correctly.
thanks,
jason Fri Jan 19 14:55:41 2001 EDT
Modified files:
/php4 TODO
Log:
Desired functionality can be achieved with array_sum/array_count.
Index: php4/TODO
diff -u php4/TODO:1.107 php4/TODO:1.108
--- php4/TODO:1.107 Sun Dec 17 01:27:42 2000
+++ php4/TO
Isn't this info in the HTTP_REFERER field normally?
Dallas Kropka wrote:
> I need to grab the referring search engines keywords used in the search. I
> need to be able to determine what the keywords were, and what the engine
> was... (Lycos, AltaVista etc...).
>
> How can I do this, where can I
101 - 200 of 220 matches
Mail list logo