what about doing a "select count(*) from table where username = 'foobar'"
then, if ($cnt > 0) { /* display error */ } else { /* insert new username */
}
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 2:07 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[
line 9
Warning: Cannot add header information - headers already sent by (output started at
c:\inetpub\wwwroot\devproc\beta\inside.php:4) in
c:\inetpub\wwwroot\devproc\beta\inside.php on line 10
What is wrong!
Please help me someone!!!
/Martin
---
Ditt utgående mail är virusfritt.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.371 / Virus Database: 206 - Release Date: 2002-06-13
I tried your stuff but it didnt help me!
Still works in explorer but when I tried it in netscape
It says ERROR!!! in netscape
if (isset($devProcTailorCookie))
{
$tok = explode("|", $devProcTailorCookie);
}
else
{
echo "ERRROR!!!";
}
I have global_variables turned on i
Another thing!
when I look in netscape/preferences/privacy&security/cookies/view Stored
Cookies..
there is no cookie for my website.. isnt that strange?
/Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
()+10);
But now it doesnt work in explorer. But I would be able to fix that.
Thanks
/Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a) maxlength="xx"
b) use javascript
(document.forms["frm_name"].elements["textarea"].value.length)
(I think you need the ".value" bit)
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Limiting
maybe
while(true)
{
echo "word";
flush();
sleep(1);
}
but I don't think that's exactly what you want, is it?
-Original Message-
From: Uma Shankari T. [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 1:14 PM
To: PHP
Subject: [PHP] Time Delay using phpscript
Hello,
Can an
according to the pdf version of the manual I have, round() is what you need
float round(float val[, int precision])
have another look that the man page
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 1:35 PM
To: [EMAIL PROTECTED]
Subject:
Hello,
I'm making a predictions competitie for soccer.
Now I've got a form with the matches for that weekend and some selectboxes with 1 to 9
for the goals. At the bottum of the form is a Submit button. What I want is to insert
all the scores in my table predictions with just that one button.
yeah! remember that php interprets the string first, before it gets to
reg.ex. !! That's some I keep forgetting... lol
Martin
-Original Message-
From: Murray Chamberlain [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 2:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: re
;');
echo $blah->user_func("new_func", 3, 4);
echo $blah->user_func("none", 3, 4);
HTH
Martin
-Original Message-
From: Matthew J Gray [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 4:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Creating methods runtime
I can think of three ways you could do this.
1. as a cookie
2. using sessions
3. put it in every link
Martin
-Original Message-
From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 10:59 AM
To: PHP db list; PHP List
Subject: [PHP] Help needed - need to
if it "does" then there's one small problem with it.
you have the echo before the ob_end_clean(), it should be after...
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] This?: ob_start
Does th
foreach (array_count_values ($names) as $name=>$count)
-^^
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 9:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Access Array Values?
I knew there was ar
ode - there's lots more, there's an
email class and an attachment class that goes with it, but it's need to
check the address
HTH
Martin
-Original Message-
From: Simon Willison [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 9:27 AM
To: Steven Walker
Cc: [EMAIL P
try this: (I don't have experience w/ mysql, but I do with other dbs)
".$row["col2"];
}
?>
-Original Message-
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] RE: (HTML related) helping to creating dropdown lis
how about ?
$row = mysql_fetch_array($sql_result);
$pub_id = $row["pub_id"];
$pub_headline = $row["pub_headline"];
$pub_dateline = $row["pub_dateline"];
$pub_info = $row["pub_info"];
$pub_image = $row["pub_image"];
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]
original line:
while ($row = mysql_fetch_array($results);
new line:
while ($row = mysql_fetch_array($results))
-Original Message-
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:37 AM
To: Martin Towell; [EMAIL PROTECTED]
Subject: RE: [PHP
to do this, but can anyone
see a problem with simply issuing a VRFY or an EXPN command instead of
actually faking out sending a message?
/bsh/
Martin Towell wrote:
>You can use sockets and connect to their mail server (bit after the @) and
>"pretend" to send an email to them, bu
what about $argv ?
-Original Message-
From: SpamSucks86 [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 11:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP] HTTP Request Headers - PUHLEASE HELP!
I have an infinitely annoying problem. I coded a script which tracks who
viewed my profi
it's to do with the length of a line - I think it's 1024 - if a lines longer
than that, an ! is put there and a new line is made
Martin
-Original Message-
From: Steven Walker [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 1:18 PM
To: [EMAIL PROTECTED]
Subject:
can you supply some examples please
-Original Message-
From: Alexander P. Javier [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 10:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL joins
why do i get errors on MySQL queries that have joins?
alyx
---
there's htmlentities or something like that - try that w/ your hidden field
-Original Message-
From: Nick Richardson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 2:56 PM
To: PHP General
Subject: [PHP] Variables containing HTML?
Stupid question for everyone... i'm just hav
think of an included file as if it were part of the parent code.
so
file1.php
file2.php
file2.php would basically be:
HTH
Martin
-Original Message-
From: Pax [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 9:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] includes and
try: http://www.php.net/manual/en/function.getmyuid.php
-Original Message-
From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 10:33 AM
To: Stewart Gateley
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] is_uploaded_file() emulation?
Thank yo
try changing the file table1.php to:
..
-Original Message-
From: Pax [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 11:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] includes and variables
Tks Martin,
I guess I am doing something wrong.. I have the main document like
In a nutshell:
$row->data is referring to an object, not an array, that has an attribute of
"$data"
$row['data'] is an associative array - ie, indexes are non-numerical - with
an index of "data"
Martin
-Original Message-
From: Dean Householde
with a bit of cheating... use a table...
(nb: this code not tested, but logic has)
"
?>
-
-
";
$i++;
}
?>
-Original Message-
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 11:43 AM
To: php-general-list
Subject: [PHP] mysql php - while loops
why don't you just do this?
-Original Message-
From: Richie Chauhan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 6:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Apache Server Side Includes mixed with PHP pages
Hi all,
First post to this list.
I am trying to do the followi
I used this code
when I clicked on the image, I got this url
file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20
so php would get this as $submit_x and $submit_y
HTH
Martin
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 20
it's a browser thing, i guess, when you use an image as a submit button
Martin
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 4:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] if(isset($submit))
I s'pose, but where/why are y
h, it's not fair!
:) J
Martin Towell wrote:
> I used this code
>
>
> value="submit">
>
>
> when I clicked on the image, I got this url
>
> file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20
>
> so php would get this as $su
a
link to a picture on the thumbnail and not to a html page.
I hope someone can help me.
Cheers,
Martin.
Title: RE: [PHP] Reference problem
I wrote an xml parsing class, and xml tag class, that might help you there
see the attachment
-Original Message-
From: John English [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 12:35 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject:
sure, you can add/remove/modify element whenever you want
your syntax is wrong though
try this
// add value to array
if($flag == "true"){
$samplearray[] = $samplevalue; // append value to end of array
}
-Original Message-
From: sundogcurt [mailto:[EMAIL PROTECTED]]
Sent: Friday, M
if there's nothing to do in the else block, then it's a bit pointless to
have one
eg
value="xxx"
name="blah">
see what I mean?
Martin
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 11:32 AM
To: PHP
Subject
In this case I would assign false to $error before your if's - just to make
sure it's set to something definite - that is unless you have already set it
furthur up in your code...
Martin
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01,
try %%
-Original Message-
From: Job Miller [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 10:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] % character in sprintf
how do i escape the % character to appear in a sprintf
statement?
it doesn't mention that in the sprintf php manual
1) not unless you have them opening up a new window for each form
2) combine them into one form
Martin
-Original Message-
From: Ramesh Nagendra Pillai [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:27 PM
To: Php Mailing list
Subject: [PHP] Multiple Forms
Hai
I am having
instead of $HTTP_POST_VARS, try $_POST
-Original Message-
From: PHP [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Need help with a PHP script
http://infinitep.t35.com/countmein/control.phtml\";>";
echo "";
echo "";
echo "Use
store it as text
when you get it back, do an exec() on it
-Original Message-
From: David Redmond [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 3:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Storing Script information in MySQL
Is it possible to store the contents of a PHP file wi
$output = ereg_replace("[^a-zA-Z0-9]", "", $output);
(not tested - but should work)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 4:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] remove everything
What is the code to remove everything but
sorry - it's eval()
-Original Message-
From: David Redmond [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 4:09 PM
To: 'Martin Towell'; [EMAIL PROTECTED]
Subject: RE: [PHP] Storing Script information in MySQL
I couldn't seem to get this working. Contents of
printf("%02i", $num); should work
-Original Message-
From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 4:39 PM
To: PHP Email List
Subject: [PHP] Displaying Number values
Hey All,
I want PHP to print out the value of a number in a variable as something
lik
strtolower()
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 4:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] convert to lowercase
What is the code to make a string into lower case?
Regards,
Joseph A. Bannon
--
PHP General Mail
if that's what's required, then it's okay
-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 11:55 PM
To: Php-General
Subject: [PHP] Is it correct having number of forms in the same html
page?
with checkboxes, the value of the checkbox is sent to the serveronly if it's
checked - if it's not chesked, then it's value does go to the server
HTH
Martin
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 9:13 AM
To: PHP
I think the easiest way would be to use two arrays, one for counting, the
other for displaying
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 10:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Does anyone follow?
Does anyone follow what I'm tryin
change "post" to "get"
-Original Message-
From: Dan Vande More [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 12:48 PM
To: php-general-list
Subject: RE: [PHP] form variables
Do you mean to have the extra '=' in there?
Should it be:
instead of
?
-Original Message-
Fr
remove the "name" from the submit
so it's just:
-Original Message-
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 1:52 PM
To: php-general-list; Tom Rogers
Subject: RE: [PHP] form variables
OK, changing from post to get gets me what I'm after. Thanks guys
value="male">male
value="female">female
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 4:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php and form mails
I have this simple formmail written out in PHP, and it checks for required
fields
tter - one must analyse each
problem to determine which is better to use.
Martin
-Original Message-
From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 7:31 AM
To: 'mojo jojo'; [EMAIL PROTECTED]
Subject: RE: [PHP] OOP .. I just don't get it.
this would be an auto-prepend file?
anyway - does the web server have read permissions to the file + path?
-Original Message-
From: Ben Turner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 11:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Required problem
I am just setting
> It's just, well, maybe not something that the ordinary web-programmer will
> benefit much from at the beginning.
Very true - I find object more scalable too, from the code itself, all the
way to the size of the project. Many of my classes have started out being
just 10 lines, but some have inc
can you provide a code snippet so we can see what you're doing?
-Original Message-
From: S.Murali Krishna [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 4:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP] OOP .. overload not working
Hi PHPzers
Is php have to compile with anything
, that
the word is followed by space . , -, but not by other letters/numbers?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I made a script that looks in a URL for jpg's and their links.
So the result is:
s1.jpg links to b1.jpg
s2.jpg links to b2.jpg
etc etc
But now I would like to check if b1.jpg is bigger then s1.jpg, if not the script must
stop. But I can't figure out to do this.
My script so far:
http://www.mydo
just use $string{0} and $string{1} , etc.
note the type of brackets
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 2:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] explode() - quick question
Im trying to take this string, "hello", and exp
looks good to me - only screwy thing I can think of is the backslash thing -
REALLY annoying - and confusing sometimes
Martin
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Double slash
On
$n = rand(33, 112);
if ($n > 90) $n += 34;
not tested in code, but logically, this should work
Martin
-Original Message-
From: Jeff Sittler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 4:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] rand()
I am wanting to use rand()
Hi,
I talked to you on ICQ and told you to send an email with my PHP problem. So here it
is.
Someone is submitting an URL.
The problem is that someone is submitting the URL per form. So it is allways something
like http:\\www.mydomain.com\1.htm
In that case it is difficult to tell where to loo
There will be a correspoding variable/index set is the checkbox is checked,
no value is set for uncheck boxes
Martin
-Original Message-
From: Daniel Ferreira Castro [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] GET values from
use brackets
where (sub1 or sub2) and geo
-Original Message-
From: phplist [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 2:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Fetching 1 array from either one of 2 possible columns?
I'm working on a query by selection type of form, wher
t: Friday, March 15, 2002 2:55 PM
To: 'Martin Towell'; [EMAIL PROTECTED]
Subject: RE: [PHP] Fetching 1 array from either one of 2 possible
columns?
I apologize if I wasn't clear in my email. The query part is fine I
think, as I tested it through the myPHPAdmin and had no problem w
Thanks for repying. Yes, the page has pictures. But all jpg pictures must
link to another jpg pictures. A gif is alowed to link to a html file. The
minium numers of jpg pictures must be 12.
Cheers,
Martin.
- Original Message -
From: "Boaz Yahav" <[EMAIL PROTECTED]
Hi!
On my Server i can`t use the date("W") function, and on another it works.
How can i first run the script on the other server and then include it in a
script on my server so i can use the date("W") variable?
thanks,
Martin
--
PHP General Mailing List (http://www.php.
do other variables you pass to the script get set?
if not, do you have register_globals (or whatever it is) turned on?
maybe use $_GET or $_POST instead?
-Original Message-
From: Chuck Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 1:36 PM
To: Thalis A. Kalfigopoulos
Cc: PH
Another thing you might want to try doing is throwing in phpinfo() somewhere
to see what variables you are actually getting
-Original Message-
From: Chuck Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 1:44 PM
To: Thalis A. Kalfigopoulos
Cc: PHP General
Subject: Re: [PHP] B
simple answer - yes and possibly
I believe, anything that's run on a server to output stuff to a browser, can
be considered a CGI program
The second question is like asking - "Will COBOL ever become obsolete?" -
maybe, possibly, but there'll, no doubt, be someone, somewhere still using
it.
-O
>I think the meaning of CGI is quite blured.
>Anyone else think so?
I think the the meaning of CGI (Common Gateway Interface) has lost it's
meaning by a lot of people who just hear the acronym and not the full
phrase. It's like the term "PC" - when people hear that, they almost
straight away thin
At 10:19 18.03.02 +0200, "Andrey Hristov" <[EMAIL PROTECTED]> wrote:
>$your_timestamp+=gmmktime(0,0,0,1,1,1972);
Try:
$your_timestamp =
mktime(date("H"),date("i"),date("s"),date("m"),date("d"
("d"),(date("Y")+2))
calls six times the function "date" ...
Martin
-
Dipl.-Ing. Martin Schichl
SC&C Software, Communication & Consulting GmbH & Co KEG
Grottenhofstr. 3, A-8053 Graz
Tel
Does xcopy support long file names?
-Original Message-
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 2:17 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Copy *.*
You'll probably have the most success using the system() function to execute
Hi,
Someone submits an URL to me. Now I want a script that checks for some words in the
file right after submitting. When the word is in the file it must stop.
For example the words: house and school.
Is it possible to determine if it's the php script causing the error or the
browser causing the error? Maybe it's the browser timing-out??
-Original Message-
From: Gerhard Hoogterp [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 9:50 AM
To: [EMAIL PROTECTED]
Subject: [PHP] proble
try $_POST['name_of_the_checkbox']
or just $name_of_the_checkbox (if you have register_globals set to on)
-Original Message-
From: Daniel Ferreira Castro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting values of Checkboxes
I
it's a pointer to a variable
eg.
$foo = "bar";
$$foo = "hello world";
echo $bar;
this will echo out "hello world"
-Original Message-
From: mm fernandez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 2:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $$
variables begin with a $ sig
(this code not tested)
this isn't going to work properly if the "value" part has an "=" in it - in
that case, change the explode("=", ...) line to use strtok() or
strpos()/substr()
HTH
Martin
-Original Message-
From: Keith Posehn [mailto:[EMAIL PR
is it possible to send the code - or snippets of the code - so that someone
might be able to spot the error
something that you might want to look at is whether the included file has a
parse error - the set up in this company allows the "parent" script to
continue to run, even if the "child" scrip
when I tested that code, the adding of 1 day did NOT work, but adding 2 days
DID, sorta, work (it added 1 day)
to "fix" it, I found that I had to add one hour (3600) to the date - maybe
there's something to do with daylight saving??
-Original Message-
From: John Clarke [mailto:[EMAIL PRO
> Does this mean that there is a day with only 23 hours somewhere
That would be the corresponding day at the end/start of the year (depending
on which hemisphere you're in)
-Original Message-
From: John Clarke [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 12:37 PM
To: [E
use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, but
the former function does)
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 4:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Case non-sensitive replacing with str_replac
Estelle
--
--
Estelle Martin
mailto:[EMAIL PROTECTED]
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
what about a common include file?
-Original Message-
From: Lance Lovette [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 4:00 PM
To: Warrick Wilson; [EMAIL PROTECTED]
Subject: RE: [PHP] Creating a global variable for all PHP pages?
Take a look at this PHP extension and see if
I think he means using header() - look in the manual, there's a snippet of
code you can copy-and-paste that does cache control
Martin
-Original Message-
From: C. Cormier - Ormetal Inc. [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 9:06 AM
To: Rasmus Lerdorf; [EMAIL PROT
Extending more that once, as you did in your example, is perfectly okay.
It's just when you try to do it in one go. ie. you can't do multi-extends,
but you can extend more than once (if you get what I mean)
HTH
Martin
-Original Message-
From: Nathan Cassano [mailto:[EMAIL
1)
a) you know which page you're on (default to 1)
b) count = "select count(*)" from database
c) num_pages = count / num_items_per_page
d) display accordingly
2)
start loop (has some counter, eg $i)
$bgcol = "white"; if ($i % 2 == 1) $bgco
do it in html/javascript like this:
http://www.somewhere.com/"; method="get" onSubmit="return
(this.okay.value != 'no');">
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trap CR or "Enter
directory: $(FileDir)
and I have the "Capture output" checkbox selected
HTH
Martin
-Original Message-
From: Luca Grossi [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Using EditPlus with PHP
I
al Message-
From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:15 PM
To: PHP General List
Subject: Re[2]: [PHP] Using EditPlus with PHP
Hey PHP General List,
I have problem also with editplus. Well i have same as Martin has but
i get warning = " Unable t
"undefined variable" is when you try to use a variable before you set it, eg
$foobar
"undefined index" is when you try to reference an array index before you set
it, eg $foobar[10]
-Original Message-
From: Kai Schaetzl [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 11:31 AM
To: [
could also use $blah, $test, $temp, $xxx, etc, but it's what a lot of are
used to, I guess
-Original Message-
From: Zak Greant [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:16 PM
To: Alberto Wagner; Php General Mailling List
Subject: Re: [PHP] Why?
On March 31, 2002 04:39,
I don't know if this is the thing you're after, but...
http://www.php.net/manual/en/function.func-get-args.php
HTH
Martin
-Original Message-
From: Vincent Bergeron [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 4:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How t
esn't exist...
so, in a way, you answered your own question.
HTH
Martin
-Original Message-
From: Kai Schaetzl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 3:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] what's "undefined index" ?
Your message of Mon, 25
x27;t exist
(I may have missed out on one/some)
I didn't think about "offset" with I sent my first reply to this thread
Hope that helps someone
Martin
-Original Message-
From: Kai Schaetzl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 11:32 AM
To: [EMAI
any speed difference will be miniscule/negligible - is speed, to the
microsecond, important in this situation?
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 11:23 AM
To: PHP
Subject: [PHP] Code Bulk
Im in a debate with someone else.
Ba
look at ignore_user_abort()
http://www.php.net/manual/en/function.ignore-user-abort.php
but make sure your script doesn't go into an infinate loop anywhere,
otherwise you'll have to kill the process manually caught me once on a
rare occasion.. :/
-Original Message-
From: Rick Emery [m
once their instantiated, they're just like any other variable - that is: if
a "normal" variable, declared in the same place as the object, is accessable
in another function, then the object will be too.
HTH
Martin
-Original Message-
From: Caspar Kennerdale [mailto:[
I don't have that much experience with preg* functions but if that's exactly
how you've got it in your code, shouldn't there be no spaces??
that is:
preg_match("/http:\/\/ | [[:space:]]/i",$valToEval);
* *
\-\both of these should be removed ?
.php
other.inc
$x\n";
?>
The value of $x wont get echoed out the second time because it's basically
in the function, while the first isn't.
If I've confused you, email me direct and I'll try to explain better
Martin
-Original Message-
From: Justin French
401 - 500 of 1913 matches
Mail list logo