ad was a maximum.
Thanks for the reply, Darren. 2048 seems like a workable limit to me.
But I'm curious about your suggestion -- how would I get the user
inputted data into hidden form variables without submitting the form in
the first place?
Erik
Erik Price
Web Developer
lequotes in the second script ($_POST["address{$i}"]) is
imperative because with singlequotes the variable $i will not expand to
$_POST["address2"] or whatever.
HTH,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thing.
On Tuesday, March 26, 2002, at 01:51 PM, Rasmus Lerdorf wrote:
> Or, of course, if you want to be cool like Carl:
>
> http://lerdorf.com/buy/
>
> ;)
>
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (
' and '}'), but I think it's
just easier to use the dot do appending from string to variable value to
string again.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you are using PHP 4.1.x
and you use the format:
$_SESSION['v_s'] = 500;
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
f you should ever upgrade. Read it
for yourself,
http://www.php.net/manual/en/language.variables.predefined.php
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-with-xslt-sablot as ./configure
parameters), why not just use xslt_process() ? This function does just
about everything you need done in an XSLT transformation. What are you
trying to do?
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Maili
On Wednesday, March 27, 2002, at 11:35 AM, Rasmus Lerdorf wrote:
> Erik, I asked an editor at O'Reilly about this cover issue. Here is the
> response:
>
>> We did switch to wite spines with black letters for a while, but now
>> we've switched back to our ori
me an
official ruling.
There is no reference to escaping the ?> tag on the man page (currently)
that I could find, or in the annotations.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Wednesday, March 27, 2002, at 12:03 PM, Julio Nobrega Trabalhando
wrote:
> Haven't seen it either, but you could use:
>
> echo '<' . '?';
>
> So < is separated from ?. Or ? from > for the matter.
That's a good work
quot;
OR ATAS.nome="de"
OR ATAS.nome="parse";
Obviously, I have no idea how you want your query to look, so be sure to
customize it for your needs, but this demonstrates what you need to do:
Explicitly state the table whose column you want to access.
Erik
Er
x array like a
mysql_fetch_assoc() result, I'm not sure how to implode.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday, March 27, 2002, at 04:28 PM, Daniel Ferreira Castro wrote:
> This way works, but not the way i would like to.
> Because it selects just the fields "nome","id_proj" and "arquivo" from
> the
> table ALGORITMO, and here my goal is to select those fileds of
> ALGORITMO and
> ATAS.
If so,
then I would use that rather than try to grab their HTML page and parse
it.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not seeing
it.
Thanks,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
function... be careful.
(... of what?)
Thanks again Darren,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
use to simply read a file and store the file's
contents in a variable (for later actions to be performed on/with this
variable).
Thank you.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(I would not have imagined I would run out of memory b/c I have php.ini
set to 16M per script and the XSL file is only 8kB, though the script
does do a lot of things.)
Anybody know what's going on here?
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
unction that I will try now, and see
if that works. But it seems that I only get this error when attempting
a successful xslt_process(). (I know that it is successful because I am
testing its success in the script.)
Thanks, bvr. I'll continue to bug test.
Erik
Erik Price
tags for
variables, which is a crude but possibly workable solution, does anyone
know how I can use HTML tags in my PHP code in my XSLT document?
(sorry, entities doesn't work either)
TIA and have a good weekend,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAI
Bulger and Greenspan).
It's a big topic, you're best off reading one of these books and then
asking here for help on specific questions.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o! Groups and I'm having a bitch of a time getting
subscribed (who ever thought that a web-based interface for mailing list
management was a good idea?)
Anyway, best of luck to you -- let me know if you find a community
dedicated to this very topic, since I'd like to focus on it
creating PHP code.
And the only way I can think of doing it (which I still haven't tested,
but might have to use) is to use variables to represent the HTML tags so
that instead of
Go Home
I could use
$astartag = "Go Home";
and then make the style sheet like this:
let your variable contain PHP code in addition to simple text
or HTML. That's what makes it different from just "echoing back the
text". So you could do
$print_statement = "print('test');";
eval($print_statement);
// the output is "test", not "
"Ninguem";
> }
>
> Is returning False?
The query is succeeding, it's just returning an empty set. Try
if (!$Sql_Query_Login) {
echo "query failed";
} else {
if ($sql_Query_Login == "") {
echo "empty result set";
} else {
// do
found it very helpful:
> Give this a read first, then come back if you still have questions ;)
>
> http://www.securereality.com.au/studyinscarlet.txt
>
> Kirk
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http:
because printing report is very important to us.
If you use XML instead of HTML, you could perform one XSLT process to
create HTML for the online version and another XSLT process to create a
file in any other format to create the print version.
Erik
Erik Price
Web Developer
On Friday, March 29, 2002, at 01:56 PM, Erik Price wrote:
> My, there have been a lot of questions about XSLT in the past 24 hrs...
> admittedly most of them coming from me. In addition to my first
> question (repeated below for clarity), I have a second one -- how do I
> per
could, and it should still insert as normal.
And yes, you can structure your query this way for legibility since
whitespace is ignored (if you want).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to point to
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>
Test
// and this is your PHP code
header('Location: http://www.domain.com/testpage.php#topofpage');
HTH,
Erik
Erik Price
Web Developer Temp
Media L
you change the value of a
variable outside the namespace of the function. Or scope. I forget
which it is.
Try your above code -- it shouldn't work.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r application do?
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y default (which
now I remember is not the case).
Sorry for the completely inappropriate suggestion.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ction to pull the data from
the $sql_result. So, add to your code:
while ($xml_data_row = mysql_fetch_assoc($sql_result)) {
$xml_document = '
' . $xml_data_row['name'] . '
' . $xml_data_row['address'] . '
' . $xml_data_ro
Shoot, kind of an important error I made in the code I gave you
earlier -- the closing quote for $xml_document should be a single-quote,
not a double-quote as I wrote.
Sorry,
Erik
On Monday, April 1, 2002, at 04:26 PM, Erik Price wrote:
> Still, you want some advice? First, your
e_list, "\t\t\t");
fwrite($phone_list, "$ext");
fwrite($phone_list, "\n");
}
The empty() "function" (actually a language construct, but the
difference isn't important) tests to see if there is actually any
On Monday, April 1, 2002, at 06:24 PM, Nate wrote:
> How do you determine the class instance name from within the class?
Isn't it $this ?
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
that they do not require
declaration of variables. At least that's what people say when they
praise PHP or Python or whichever language allows this.
Is this "feature" not as desirable as what I had first heard?
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Br
cing date usage in PHP.
http://www.devshed.com/Server_Side/PHP/DateTime
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed to an error page if they hit the "back" button.
(The session variable idea won't work until they refresh a page or
submit a form, because they will be returning to a page in their
history.)
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
om being
resubmit, and JavaScript to "disable" the back button (unethical as it
may be).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n mind is really applicable to what you want to do.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
buttons or make a little listbox and a submit button, like:
Increase Size
Decrease Size
This would keep your querystring/URL free of extra data like
"page.php?change=inc".
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing
On Tuesday, April 2, 2002, at 10:40 AM, Rick Emery wrote:
> have permissions been granted to contacts in mysql using that
> combination of
> username and password?
And from that host?
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PH
ing,
> especially when I found that he was gone again today! Try setting your
> server's system date back to yesterday, as in
Pencils, I thought? I didn't know who that was.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP Gener
xist to make the function
legitimate.
Thank you,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
{
> }
Thanks for the pointer. I didn't realize that passing a blank argument
would achieve this effect.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
re... The short of
it is that, as a novice programmer, I'd like to make sure I'm writing
the most legitimate code that I can. Thanks for any input on this
thread, past or future.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mai
r sessions -- it is easier and may work better.
If you're using PHP 4.0.x or lower, then nevermind, this won't help you.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tin date formats, but I like the
timestamp that PHP uses (and I like what I can do with a timestamp in
the date() function) so I have been using VARCHAR(20) to hold the date
as a string. MySQL's TIMESTAMP is not the same thing as PHP's.
Erik
Erik Price
Web Developer Temp
w
date? I transform all of my dates into Unix timestamps so that I can
pass them around in form fields etc, but MySQL's timestamp format is
different. Is there some way to call something like
UNIX_TO_MYSQL_TIMESTAMP() in MySQL (or PHP)?
Erik
Erik Price
Web Developer Temp
Media
or not I should stripslash() the data before
entering it into the DB. This would defeat the purpose, but otherwise I
end up with columns with values like "Mike\'s Pleasure Hut" or "Jean
D\'Arc", and this will make queries tricky in the future.
Thank you for your ad
nserted. I think I'll go through
and put addslashes() around any database insert scripts I have and turn
it off.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday, April 4, 2002, at 04:40 PM, Thomas Deliduka wrote:
> I have a quick question for a veteren of sessions out there.
I'd trust sessions with my life.
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www
nto
arrays etc?
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
any
other) format, so why not just use the columns designed for keeping
track of the time? Then I disabled magic_quotes_gpc and added
addslashes() all over my code, at Miguel Cruz's suggestion, which also
seems like a move toward better control. Why not just go through my
scripts and chan
ramming constructs? The PHP manual mentions string
literals but assumes that the reader already knows what they are (i.e.,
doesn't define them opposed to other types of inputs --
http://us4.php.net/manual/ro/html/language.types.string.html).
Erik
Erik Price
Web Developer Tem
submitted POST data, and you have
// checked it for errors in your script
$_SESSION['variablename'] = $_POST['variablename']; // put POST
variable in a session
How easy is that!
Note that doing this assignment with any other superglobal doesn't work
and in most cases would
, I have a copy of it.
I CC'd this back to the list, because there are probably others who can
benefit from this conversation -- in general, try to keep discussion on
the list unless there is some reason for privacy.
Feel free to ask if you have more questions!
Erik
Erik Price
ot
it will be processed.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a topic for
> discussion.
>
> Can anyone offer advice?
Post your exact code, I'll look at it.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I wouldn't rely on it.
Rasmus Lerdorf wrote a book on PHP for O'Reilly, it apparently just came
out a few days ago although I haven't read it. I believe it covers many
advanced topics as well (not just a tutorial).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. B
ion:
http://www.devshed.com/Server_Side/PHP/FormValidatorClass/page1.html
And remember, unless your server is unplugged in a locked room, it's
never really safe from intrusion.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> WHERE username='$username'";
If you have shell access to your database server, you can always CREATE
TEMPORARY TABLE and test things out on a small scale, then DROP TABLE
when you're done playing.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e trying to do
with this class, like Person() or something -- it helps. I can't figure
out what this class is even supposed to do.
Erik
On Friday, April 5, 2002, at 01:21 PM, Brian McLaughlin wrote:
> This is driving me crazy! I've created a class to hold data so I can
> ju
edge there is nothing you can do about this via PHP, but there are
probably tricks (like AppleScript) that you could use as a workaround,
such as encoding the files in some transport-friendly format before
uploading and decoding them upon download.
Erik
Erik Price
Web Developer Temp
M
one of
voice doesn't carry very well via email.
There's plenty of other groups which will answer JavaScript-related
questions, but it is your responsibility to find them.
Erik
On Sunday, April 7, 2002, at 10:09 PM, <[EMAIL PROTECTED]>
wrote:
> Wow, you really feel lik
of a PHP upgrade
that will show you how I went about it. But you've probably solved your
problem by now.
Needless to say, the source install is highly configurable and not very
difficult, I recommend it over the RPM in almost any situation.
Erik
Erik Price
Web Developer Temp
M
onent of a URI and not a part of the file's path (and will
not be automatically generated by dirname() or any other function that I
know of).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ting to my server), but if someone could confirm this
and/or point me in the direction of the functions that allow me to use
SSL that would be greatly appreciated.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.ph
7;t want a trailing slash in
that CONCAT function?). If you want to just test this out, or don't
want to apply this change to EVERY row, you can add a WHERE clause to
choose certain rows to update.
Keep in mind that test_column must be able to accommodate the new string
(so you might need t
n = 12;
$item = 12;
// later in the script
print("http://domain.com/index.php?dest=$destination&item=$item\";>Link
");
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
{
> if (($file_name != ".") && ($file_name !="..")) {
> $file_list .= " NAME=\"$file_name\">$file_name";
> }
> }
> $file_list .= " VALUE=\"select\">";
> closedir($dir);
> ?>
> Thanks i
hnique? If this is the case, then please let me know,
I'll try to come up with another solution. As for the use of an array
to do it, I don't see why not -- but try to be a bit more illustrative
of what you want, since there are an infinite number of ways to use an
array in this
wasn't by doing
if (!display_login()) {
die("Could not display login form");
}
Note that some might consider this a perversion of functions, since
functions are intended to operate on input and return a value -- but
this is a convenient way of modularizing your display code,
will be
processed if the first test, !empty(), fails. I certainly don't want to
set the password to an empty string! (Actually the method requires at
least 8 characters or it fails, but I was wondering for the sake of
curiosity what would happen.)
Thank you,
Erik
Erik Pri
y it's not).
I'm not directing this toward anyone in particular, just a general
suggestion to everyone who uses this list to make sure that the code is
easy to read -- this burden should be on the help-requester, not the
helper. Yes, this means that some 200 character-long lines will nee
- most of my display code is wrapped up in
functions. I'll have to adjust if I ever learn one of those other,
tightly typed languages.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$/ do it? If you need numbers too, you could
add 0-9 and change the max from 8 to 13 and probably be pretty safe.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday, April 9, 2002, at 12:24 PM, Analysis & Solutions wrote:
> Yo Erik:
>
> On Tue, Apr 09, 2002 at 11:39:31AM -0400, Erik Price wrote:
>>
>> elseif (!empty($_POST['newpassword']) &&
>> !$user->set_password($_POST['newp
Hey I'm sorry Dan and everyone, I realize my mistake -- if you're
curious it's in my if/elseif/else chain, I explain the problem below
(scroll down):
Erik
On Tuesday, April 9, 2002, at 03:00 PM, Erik Price wrote:
>
> Hm. I threw in a test echo statement in the class
x27;t- in a
loop of some sort. But it works fine the way I do it, immediately above.
Thanks,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27;t work for scripts), and (b) the
URL never changes -- the domain name registrar is hosting the frameset,
not the site, so all the URL bar ever shows is the name of the master
frameset -- http://shinynewdomainname.com.
My registrar is easyDNS, maybe they have information about how it's don
($result);
echo $row[0];
And of course the above can be modified for multiple columns/array
elements.
Someone did suggest that you use an if statement, however, in the event
that no records are retrieved --
if (!$result = mysql_query($sql, $db)) {
echo "No records found.";
}
phone_array[6], $phone_array[7], $phone_array[8]);
Is this really the best way to achieve $phone_number = "(800)
555-1212" ? Or am I taking the long way around, and there's a function
that can do this better?
Thanks,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brow
Is there a way to unset or destroy an object instance from a method
within its class? I'm trying to write a method that destroys its
instance but I'm not sure how to refer to the object itself from within
the class.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Br
another language I'm familiar with, this looks like:
>
> [formvariables name=thevarname][name]=[value][/formvariables]
>
> For passed checkbox input var doh, where values were blah and bleck,
> the above code would display:
>
> doh=blah
> doh=bleck
>
> How do I do th
instance->show_name();
unset($ff_instance);
}
So, I'm passing the constructor a value of "folderfile1", but that
doesn't seem to work with my preg_match() (above). Yet it seems like it
should work fine. Can anyone see what I'm doing wrong here
would be great.
preg_match(/^_[0-9]{4,4}\.jpg$/, $file_name) should match any string
that starts with an underscore, is followed by exactly four digits, and
then a ".jpg". It will not match anything but this exact string.
Erik
Erik Price
Web Developer Temp
Media
ave an explanation. or if you have already solved it, can you let me
know what it was? I'm starting to do some object stuff in PHP and need
to know about strange behavior like this.
Regards,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
$post_variable) {
if ($post_variable == "doh") {
$post_array[] = $post_variable;
}
}
You don't need an else statement, since the loop will just continue if
the value of the variable is not "doh".
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMA
it as an argument to your
JavaScript function, or what have you.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday, April 11, 2002, at 01:25 PM, Jennifer Downey wrote:
> Hi all,
>
> Could someone point me to a tutorial on the proper way to format code.
> To
> make it more readable.
http://utvikler.start.no/code/php_coding_standard.html
Erik Price
Web Developer Temp
I have another question about OO in PHP --
The manual (http://www.php.net/manual/en/language.oop.constructor.php)
does an excellent job of explaining how constructors in extended classes
work when there are constructors in base classes. I understand that no
problem. But at the bottom of the
ur
directory? If you don't, then nothing will be displayed. Are you sure
that your "/path/to/directory" is a real path to a real directory? etc
etc
> $file_lost .= " NAME=\"$file_names\">$file_names";
> }
> }
> $file_lost .= " VA
wn style. But as I've learned more and more about
programming over the past few months, my style has definitely changed --
even within this same project! I try to keep it consistent but I learn
all kinds of new code-organizing techniques (like OOP), so it's not that
easy.
Erik
$arg2);
and it seems to work. But this is really just shortchanging yourself
the value of having a constructor in Base, since you are calling it as a
method and not using its "automaticness" feature.
Thanks again,
Erik
Erik Price
Web Developer Temp
Media Lab, H.H.
controlled by POST data -- because after the search engine step of
the form, I want the rest of the data to be sent by POST.
Any good ideas?
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
On Thursday, April 11, 2002, at 04:09 PM, Erik Price wrote:
> I'm trying to think of a clever way to send both POST and GET data in
> the same form. I want to use GET data so that the variables appear in
> the querystring (so that users can bookmark or save the URL, it's
h your time.
http://www.php.net/manual/en/function.htmlspecialchars.php
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
601 - 700 of 847 matches
Mail list logo