what about ?
ereg("(.*?)", $lineofhtml, $output);
-Original Message-
From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 3:05 PM
To: Jimmy
Cc: php-list
Subject: Re: [PHP] ereg
Nopes, dint work
Regards,
Kunal Jhunjhunwala
- Original Message -
From:
Hmm... I've been wondering if a function to do this exists too... would be
REALLY handing for debugging!!
Anyone know??
-Original Message-
From: Stefan Rusterholz [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 8:35 PM
To: PHP
Subject: [PHP] How to get a function backtrace?
I
you could try looking at http_referer or remote_host or something like that.
Never tried it myself, but sounds like it'd work... dunno what the values
for them would be though :(
-Original Message-
From: Dani [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:17 PM
To: PHP LIST
S
if (action == "list")
{
if (isset($clientcode)) // or just "if ($clientcode)" would work...
{
// extended listing here
}
else
{
// normal listing here
}
}
else if
-Original Message-
From: Necro [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:09 PM
To:
The problem is that this line:
$rpm_list = `rpm -qa`;
gives back a string, so use this:
$rpm_list = `rpm -qa`;
$rpm_list = explode("\n", $rpm_list);
and see how that goes
Martin
-Original Message-
From: Neil Mooney [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002
Never worked with mysql but I would assume there's something like 'NOW' or
now() or something similar, don't know how you'd put a different date in
though :(
timestamps are handy within php, you can then convert it to whatever format
you want with date()
or, if you wanted to go even further, cre
${$vNames[1]} = "new value"; // look at variable-variables in the manual
for more info
-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 20, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable referencing/substitution
How can this be done?
you'll need to make them global then...
that's one thing that kept getting me when I started using php, global vars
are only global if you tell them to be sorta like "local to the global
scope" or something like that :)
-Original Message-
From: Tj Corley [mailto:[EMAIL PROTECTED]]
Sen
try this...
I changed
1. the double quotes in "$pattern = ..." to single quotes
2. escaped the "?"
3. used ereg_replace to do everything, dropping the while loop
$content = "http://www.globalhealth.org/text.php3?id=151
adjfladjfajdfkladfjl;kadjf
jlkadjflkajdflkj jad
the only way php is going to know about a variable is if the server the
script is on is sent the variable, the normal way of doing that is through
posting/getting a page/script
Martin
-Original Message-
From: Andrew V. Romero [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 2:11
*light hearted reply* blasphemy! sacrilege!! how can you ask a php mail list
about converting code to another language?? (paraphase coming...) "php is
the one true language and you shall not code any other language before it"
:)
Martin
-Original Message-
From: Andrew V. Romero [mailto:[E
whichever way the original password was encrypted, encrypt the incoming
password the same way, ie. if the original was encrypted in php, encrypt the
incoming password in php before passing it to the sql statement, similarly
if the original password was encrypted using mysql.
Martin
-Original
I'm assuming all this data is coming in from a form - somewhere in the
manual (too lazy at the monent to look where) there's a section on how to
upload files. Once a file is uploaded (in your case, an image), just move it
to somewhere accessable. Have field in the database that contains the name
o
and I think, also, if it's the last command then you don't need to
semi-colon (I put it in anyway for completeness, etc) found that out by
accident...
-Original Message-
From: val petruchek [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 1:02 AM
To: PHP
Subject: Re: [PHP] Re:
try changing:
echo "$$temp\n";
to
echo $$temp."\n";
or even
echo ${$temp}."\n";
does that work?
-Original Message-
From: Thorsten Wandersmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] to evaluate ...
somewhere in the form put:
-Original Message-
From: Michael P. Carel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 1:48 PM
To: php
Subject: [PHP] Form Problem
Hi there,
I have a problem here regarding the form table name variable (i.e ), when i used Href tags to send t
$result = `ls foo*`; // :) :#
???
Martin
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 3:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] I lost the message...
I am embarrassed to say that I lost the anser to my question on the
syntax t
$limit = "5000";
if(strlen($text) > $limit)
{
$text = substr($text, 0, $limit);
$text .= "...sorry, text was too long";
}
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 3:34 PM
To: php
Subject: [PHP] seems easy...
Hi,
Really
"error on line 0", maybe it's the auto-prepend file is not there?
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 3:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Warning: Failed opening '' for inclusion (.)
in Unknown on line 0
it's treating a string as a character array - it's documented somewhere in
the manual, can't remember where though :( - not long ago someone was
saying that the new way it to use curly-brackets, but square brackets still
work for backwark compatibility.
-Original Message-
From: v0idnull
your first thought was correct - it sets it to 1800, it's NOT accumulative.
it would have something to do with ignore_user_abort(true); and also is
your while loop's exit check working?
Martin
-Original Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
Sent: Friday, January
ok, i wont!! not trying to do reverse psychology are you?
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 11:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] A link
[link snipped]
Don't click the above link.
end...
Martin
-Original Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 11:56 AM
To: Martin Towell
Cc: PHP Mailing List
Subject: RE: [PHP] set_time_limit() in a loop
I should also mention that the loop is sending mail using mail().
Is it pos
syntax: document.forms["form_name"].elements["element_name"]
so: document.forms["fname"].elements["array[]"].somethingelse
-Original Message-
From: Rodolfo Gonzalez [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 1:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] array[] and Javascri
http://www.wotsit.org/search.asp?page=2&s=animated
I haven't looked at the docs there for mpeg - but the other one's i've
looked at are really useful...
Martin
-Original Message-
From: Jon Farmer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 12:22 AM
To: Edward van Bilderb
basically it's to do with "lazy evaluation" or whatever it's called
* logical expressions are read from left to right.
* with OR, the expression reading is halted when the first TRUE is found
* with AND, the expression reading is halted when the first FALSE is found
so with :
if (true||fals
--
$news = mysql_query("select * from bookmarks ORDER by TNum,AU asc");
$old_TNum = "";
while ($mydata = mysql_fetch_object($news))
{
if ($old_TNum != $mydata->TNum) #when TNum occurs the first time, echo
it once only.
strtoupper()
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Change Text to CAPS.
Is there anyway that I can change a string with lettle letters to caps?
Philip J. Newman
Philip's Domain
there's a directive in the php.ini file, something like "magic_quotes" or
something (too lazy to look...), set that to 0 (zero) or use stripslashes()
(this might have an underscore in the name, again too lazy to check) on the
vars
Martin
-Original Message-
From: Jon [mailto:[EMAIL PROTEC
:)
http://DELETETHISccl.flsh.usherb.ca/bookmarks/DELETETHIS
Martin Towell wrote:
> --
> $news = mysql_query("select * from bookmarks ORDER by TNum,AU asc");
> $old_TNum = "";
> while ($m
Isn't there a function br2nl() and it's relative nl2br() ??
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 3:14 PM
To: 'Jon'; [EMAIL PROTECTED]
Subject: RE: [PHP] Swapping for \n... ?
> I'm processing a form but all the functions I've
dunno if this'll help, but try changing these two lines
$this->$obj = new test1;
$test = new test2;
to these
$this->$obj = &new test1;
$test = &new test2;
see if that helps - other than that - anyone else?
-Original Message-
From: Aric Caley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
1. look for it
2. if it's not there
2a. wait a bit
2b. go back to 1.
-Original Message-
From: Wade Barrance [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 10:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] wait for existance of a remote file.
I need a function that will wai
sure about that ?
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] .
.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
does executing $query through the mysql interface return anything? I'm
thinking there's either:
1. An error in the SQL - but it looks good to me, or
2. It returns no records
That's the only thing I can think of.
Martin
-Original Message-
From: Mason Batley [mailto:[EMAIL PROTECTED]]
Se
use: { header("location: new_full_url_here"); exit; }
-Original Message-
From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 9:42 AM
To: PHP
Subject: [PHP] redirection rather than include()
This is a PHP newbie trying to figure something out.
I am creatin
something like ?
$cntr = 0;
echo "";
while ($r = mysql_fetch_array($result0))
{
$cntr++;
$cityid = $r["t_city_id_city"];
$cityname = $r["t_city_name"];
echo "
$cityname
";
if ($cntr % 2 == 0) echo "";
} // from while result 0
echo"";
-Original
Is there a way to suppress division by zero errors?
echo 5/0; // this give a warning - obviously!!
@echo 5/0; // this gives a parse error
echo @5/0; // this still comes up with a warning
unless I turn error_reporting off before and turn it back on afterwards, but
I don't want to do that unl
iam Wesley [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 10:17 AM
To: [EMAIL PROTECTED]
Cc: Martin Towell
Subject: Re: [PHP] suppressing division by zero errors
You really need to do some error checking on the denominator.
$num = 5;
$den = 0;
echo $den != 0 ? $num/$den : "0&quo
that's alright - i'm using 4.0.6 and the suppression works
thnx again
-Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 10:33 AM
To: Christopher William Wesley
Cc: [EMAIL PROTECTED]; Martin Towell
Subject: Re: [PHP] s
$lines = file("filename_here.blah"); // read in file as an array
$content = implode("\n", $lines); // join it all back together
$new_cont = ereg_replace("from", "to", $content);
fopen(...); fputs(..., $new_content); fclose(...);
if your intent is to replace all new lines with 's then use
Frazer <[EMAIL PROTECTED]> wrote:
> nl2br() would serve that purpose as well. See the
> Strings section of the
> Functions Reference in the manual.
>
> Mike Frazer
>
>
>
> "Martin Towell" <[EMAIL PROTECTED]> wrote in
> message
>
[EMAIL PROT
i believe you're meant to serialise objects and then register the serialised
version?? Don't quote me on that, never used sessions, but I didn't
read/hear it somewhere
Martin
-Original Message-
From: PHP-List [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 4:30 PM
To: [EMAIL
you have :
24. header("www-Authenticate: Basic realm='Private'");
25. header("HTTP/1.0 401 Unauthrized");
I have (and this works)
Header ("WWW-authenticate: Basic realm=\"$blah\"");
Header ("HTTP/1.0 401 Unauthorized");
* "Unauthrized" should be "Unauthorized" - missing "o"
to "access" php var in javascript, you'll need to set up javascript vars
with the values of the php vars you want to use.
eg.
alert(foobar); // will display nothing - not set yet
foobar = "= $foobar; ?>";
alert(foobar); // now will display "testing"
remember, to get the vars back t
what happens if you do this?
$result = mysql_query("SELECT MAX(Thought_Num) as Thought_Num FROM
quotes",$db);
I'm thinking that the column name in your original query is being called
"MAX(Thought_Num)" and not "Thought_Num".
Martin
-Original Message-
From: Melanie Gann [mailto:[EMAIL P
I think it has something to do with the lines being too long, try throwing
in a few carriage returns and see if that solve your problem
Martin
-Original Message-
From: nina [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 5:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Fw: wh
that should be okay - it's to make sure that it is exactly equal to (as
opposed to equates to be equal to)
eg (0 === false) => false
(0 == false) => true
-Original Message-
From: Ben Crawford [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 2:28 AM
To: [EMAIL PROTECTED]
if you set up the xml_set_character_data_handler(), maybe this isn't called
for , but it will be called for (??)
you might want to check that 'cause I haven't :)
Martin
-Original Message-
From: Christian Stocker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 10:50 AM
To:
this is what I'm using:
$ch = curl_init($gat_url); // url to post to
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); // contains the XML
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$x = curl_exec($ch);
curl_close($ch);
-
I've found that you can specify a function anywhere in the page and call it
anywhere in the page so:
\n"; }
foobar();
?>
would work and display the text twice, without errors/warnings
I haven't looked at the php's source code, but maybe it's a two pass parser
(??) first it gets all the functio
what about words at the start of the string??
eg
$str = "One can see this is or was a test for short words, although an,
should be deleted to.";
-Original Message-
From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 10:47 AM
To: [EMAIL PROTECTE
what about?
$str = "a bc def ghij klmno p qr i'd do, it. stu vwxy a";
$az = "[a-zA-Z']";
$str = str_replace(",", " , ", $str);
$str = str_replace(".", " . ", $str);
$str = trim(preg_replace(array("/ $az /", "/ $az$az /", "/ $az$az$az /"), "
", " $str ")); // couldn't get "/ [a-zA-Z]{1,3} /" to w
remember to escape the escape character so php passes it onto the reg.ex.
function correctly, so:
if(eregi("\\+",$variable))
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 12:54 PM
To: Jim Lucas [php]; Leif K-Brooks; [EMAIL PROTECTED]
Su
try this:
$str = $s24; // this is the string you want to look at...
$dst = '\\1\\2';
foreach (array("http://";, "mailto:";, "telnet:", "news:";) as $src)
{
$str = ereg_replace("(".$src."[^ ]*)( *)", $dst, $str);
}
echo $str;
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECT
does using system() work?
what about back-ticks? - `funky script stuff here`;
-Original Message-
From: Jason Rennie [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 3:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Execing problems
Hi all,
I have a seperate perl script that I need
I think what'll you'll need to do is look through the phpinfo() output and
piece together all the parts, eg $HTTP_HOST (or should that be
$_HTTP["HOST"] ?), $PHP_SELF, etc.
If anyone knows of a better way, I'd like to know too
Martin
-Original Message-
From: [EMAIL PROTECTED] [mailto:[
I know this comes up again, and again, and I'm bringing it up again now :)
There's been requests for a function that displays the current heirachy of
calls
I was just thinking about this - php must maintain a stack so that it knows
what function to return to when another function exits, why can't
what about this?
$contents = str_replace('', '', $contents);
-Original Message-
From: Steven Jarvis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 09, 2002 8:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] escaping ?>
I'm trying to do some string replaces on XML files to import them i
might be the header("location..."); bit - you might need to specify the
full address
-Original Message-
From: Sean Hurley [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Forms and IE
Please forgive me if this has been covered bef
when you say it doesn't work, do you mean that you get an error message or
it just doesn't write the text to the image?
-Original Message-
From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] image generation issues
ebruary 12, 2002 2:04 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: Re: [PHP] image generation issues
i get 'Could not read font in..'
i set permissions to 777 on both file and folder
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "
I guess I'm lucky living in Australia then - there's quite a few places
using ASP but there's a HUGE increase in the number of businesses who are
starting to use PHP. Maybe you should all move to Oz?? hehehe :)
Martin
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent
maybe have a client id that they need to send with each request and have the
checking script use that, instead of the ip or url, etc
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 10:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Limiting us
Have you set up the [mail function] section of your php.ini file ?
-Original Message-
From: Dr. Shim [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 12:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Troubles With Mail Function
Hello. I'm pretty new to PHP, so if this is a dumb
] Troubles With Mail Function
No I haven't. How do I do that
--------
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Have you set up the [mail function] section of your php.ini file ?
--
PHP General
also remember that strictly speaking, _all_ html attribute values _should_
be quoted
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 9:07 AM
To: PHP
Subject: RE: [PHP] Filling Forms with $variables
Enclose the value in quotes, like so:
I think the SMTP would be same as you use for your email client (outlook,
eudora, other?)
-Original Message-
From: Dr. Shim [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 11:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Troubles With Mail Function
Alright, I will show you
yeah - going through a seb server, you're going to get the executed version
of the code and not the code itself.
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 9:19 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Anyway to open a PHP file a
symbolic links are basically pointers to another file/directory
eg. you have a file foo.html you can create a symbolic link to it and call
it bar.html - if you refer to bar.html, then you're really referring to
foo.html
why are they useful ? well, suppose you want a two or more files/dirs to
try something like this (not tested):
0)
$sql .= " AND `keywords` LIKE '%".$getme_arr[$i]."%'";
$sql .= " ORDER BY `id` ASC LIMIT 0, 30";
?>
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 11:27 AM
To: David Robley
Cc: David
or read the original file into memory, reopen the file for writing, write
the first prepend bit, then write what you just read
-Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:18 PM
To: John Smythe
Cc: [EMAIL PROTECTED]
Subject: Re:
Something at the top - :)
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:47 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] searching key words from a database field
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> try somethin
A bit late in replying - but what the hay (or is that "hey"??) oh well...
>From my understanding of virtual functions (and it's been at least 3 to 4
years since I've done C++) is that a "virtual function" has basic
functionality and a "pure virtual function" has no, and can't have, and
code.
Ple
Isn't this something to do with shared memory? I haven't played with shared
memory before, but this sounds like it might work.
Martin
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 8:37 AM
To: Peter J. Schoenster
Cc: [EMAIL PROTECTE
submit back to the same page - or include that page
Martin
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 9:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] form submission error trapping
I am working on some error trapping for several forms
$argv and $argc are prob. what you're after - dunno if there's any parameter
parsing functions - but it's a start
HTH
Martin
-Original Message-
From: Bostjan Marusic [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 10:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Running php from
something like:
not tested but should work - just expand on it
Martin
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 10:22 AM
To: Steven Walker
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] form submission error trapping
2002 10:40 AM
To: Martin Towell
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] form submission error trapping
Thanks for the code Is there a way to keep track of what fields had the
errors as its possible for people to have like 5 errors?
Thanks again.
Jason
-Original Message-
From: M
Adobe Acrobat 5 or 6 - whichever's the latest version - can grab web pages
and convert them to pdf.
Depends if you want to fork out to buy it
Martin
-Original Message-
From: Jeff D. Hamann [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject:
make sure the url in the header("location:") is a full url and not a
relative url
Martin
-Original Message-
From: Robbie Newton [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 4:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] help with Header call
Hello everyone,
This is my firs
window.document.frmName.elements["poly[]"].value !!!
-Original Message-
From: JSheble [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 9:41 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Novice Question
with this type of naming convention, how would you write a javascript
fun
shouldn't matter - php would type cast one to other and then compare
-Original Message-
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 10:24 AM
To: Tyler Longren; John Gurley; [EMAIL PROTECTED]
Subject: Re: [PHP] code
Is $inst an int or a string?
=dn
> ma
try this - in pseudo-code, can't do everything for you :)
max = 3
col = 0
echo "table"
while (row = db_results)
if (col == 0) echo "tr"
echo "td data /td";
if (col == max - 1) echo "/tr"
col = (col + 1) % max
wend
if col > 0
for i = 1 to max - col
echo "td nbsp td"
next
ec
IF it is deprecated in 4.1.0, then what are we meant to use in place of it?
Martin
-Original Message-
From: Darren Gamble [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 9:04 AM
To: 'Chris Boget'; PHP General
Subject: RE: [PHP] argv and argc
Good day,
The array $argv con
looks like there's a problem with this line:
test link
try using this line instead:
">test
link
looks like you were missing the end quotes and closing "bracket" of the
anchor tag
See how that goes
Martin
-Original Message-
From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
that makes me think that your page isn't being executed through php. why
this is happening, i don't know - maybe a misconfigured web server
Martin
-Original Message-
From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 10:50 AM
To: Martin Towell
reg.ex. something like (not tested):
"]*>"
this would give you the entire anchor tag, then go from there?
or what about using the XML parsing routines, get it to find the anchors and
give you it's attributes, then go from there?
Martin
-Original Message-
From: Justin French [mai
what about just include'ing it?
-Original Message-
From: DigitalKoala [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] really hopelessly stuck on this problem!
hi folks,
i've been tearing my hair out over a redirection problem
ble to help you.
Martin
-Original Message-
From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 1:18 PM
To: Martin Towell; WG4- Cook, Janet; PHP List
Subject: RE: [PHP] Help for passing variable to all pages
That's not a lot of help - its a new installati
I'm assuming you have an id in that table, so all you need to do is pass the
details page the id and the details page can then display whatever you want
it to display
-Original Message-
From: mm fernandez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 3:21 PM
To: [EMAIL PRO
As the manual says - it executes the "tick" function every 'n' low-level
statement - but what's counted as a low-level statement, I don't know...
It appears that, in the example, the low-level statements are the "for" and
the "echo"
If anyone can shed light on this subject, I'd be interested too
(not tested but...) something like:
$string = ereg_replace("\([0-9]* Test\)", "", $string);
if you want to keep the backets, then:
$string = ereg_replace("\([0-9]* Test\)", "()", $string);
HTH
Martin
-Original Message-
From: bvr [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21,
I agree - I think that if you've worked at something and feel that you're
getting nowhere - then by all means ask. But I do feel that there have been
some people that have posted to this list in past who have posted just to
get someone else to do their code for them, without trying themselves. And
user price[] as the name
you'll also need to pass the ids as $id[]
so you know which one you're updating
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 11:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Using one submit button
Hi all,
I t
I think you can get everything after the ? in the URL with $QUERY_STRING
but I think that it would be a bit dangerous to just accept what's passed, I
think some checking should be done before you use $QUERY_STRING as is
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent:
[snip]
> > If this allows a DoS attack, then this is a very real security problem.
>
> Why should it? Even if there is a verifiable bug allowing time/memory
> limits to be exceeded when header() goes into an infinite loop, how could
> someone exploit this from the outside? If a scripter is l
Is that memory usage used by PHP or apache?
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 12:35 PM
To: CC Zona
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Nasty DoS in PHP
For what it's worth, I just ran this script on my server, and desp
is this a local server you're connecting to (as in, on the same machine as
the script)
if it is, then the ip address would prob. need to be "127.0.0.1" and not
"172.0.0.1"
-Original Message-
From: Waty [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 1:29 PM
To: [EMAIL PROTECTED]
you don't need php to do this - use html's to do it
-Original Message-
From: Pusta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 3:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Quicktime...
Hello all,
I'm new at PHP but learning and loving it. For a school project, I
301 - 400 of 701 matches
Mail list logo