lidPhoneNumber($phone)) {
375 $this->phone = $phone;
376 }
377 }
I am using PHP 4.3.0 on a RedHat machine with Apache 1.3.x.
Thanks for your help, it's been a while since I've used PHP!
Erik
--
Erik Price
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
--
PHP G
namespace? Or does it even do this with methods?
Just curious so I don't depend on anything I'm used to from other
languages thanks!
Erik
--
Erik Price
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eason (knowingly) and therefore can be considered the
most dangerous segment of users. (Knowledge being power and all.)
Erik
--
Erik Price
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--password
Erik
--
Erik Price
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
describe your table's relationship to other
tables.
(In a table named "registrants", you could have the comment
registrants.user_id = users.user_id
)
http://www.mysql.com/doc/en/CREATE_TABLE.html
Erik
--
Erik Price
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
, but it doesn't apply to singlequotes. I suppose I could
str_replace it, but I'm wondering how other people handle this
situation
--
Erik Price
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bill wrote:
Hi André,
Sorting like that doesn't get it sorted by date. Each row has a lot of fields. It
actually needs to be sorted three times by three fields, Year, Month, and Day.
Because the query uses a GROUP BY statement, I can't sort it in the query.
MySQL offers a DATE column type. Yo
Poon, Kelvin (Infomart) wrote:
I know this topic was discussed but I deleted my previous mail so I can't go
back and review them.
STFA: http://marc.theaimsgroup.com/?l=php-general
My question is, is there a faster way to redirect
html pages other than just using ? Is there any way we can do
Brad Harriger wrote:
I have two variables, $StartDate and &EndDate that contain values read
from MySQL Date fields. How can I determine if a value entered by the
user is between the two dates? I'm using PHP 4.0.6.
if ($user_input > $StartDate &&
$user_input < $EndDate) {
// do som
Bix wrote:
Is it possible to look at individual chars of a string?
eg: $str = "12345";
print $str_1 // Gives "1"
print $str_2 // Gives "2"
Try this:
print $str{0}; // gives "1"
print $str{1}; // gives "2"
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Kevin Stone wrote:
Actually as far as the computer knows strings *are* arrays. Access any
character within a string in the same mannor as you would access an element
in an array. For example:
$str = "hello world";
echo $str[4]; // prints o
echo $str[6]; // prints w
That works but is deprecated
Charles Kline wrote:
What is the difference as in... why one or the other?
include('somefile.php');
include("somefile.php");
Just wondering...
If you had a constant named "somefile" or "php" and you use the second
syntax, the constant would be interpolated/evaluated to the value of the
const
Erik Price wrote:
If you had a constant named "somefile" or "php" and you use the second
syntax, the constant would be interpolated/evaluated to the value of the
constant.
Generally I always use single quoted strings unless there's some need
for double-quoted s
CPT John W. Holmes wrote:
Well, the first part is out your butt... :)
Yep. I tested it after making the assumption, sure enough I was WRONG.
I've got to keep my butt under control, it's getting a little out of hand.
To the OP, sorry 'bout that.
Erik
--
PHP General Mailing List (http://www
John Taylor-Johnston wrote:
Captn John,
What the difference? I recognise the code from my attempts at Perl. What's the diff
between ^ and *? Is there a doc I can read up more on?
;) Swabbie John
"Cpt John W. Holmes" wrote:
What about
eregi("TI(.*)¶",$line,$m)
might want to use
eregi("TI([^¶
[EMAIL PROTECTED] wrote:
Ok, here's what I got. I'm trying to create an entire site that grabs
all it's information (Page content, titles, link info, etc.) from a
MySQL database. In this site I would like to have sub pages of master
pages. For instance, Page 1 is a master page, Page 2 is a
Daniel McCullough wrote:
Where I am having problems at is when they need to update the poppasswd,
which is a IMAP or QMAIL file. Plesk has files that will update the
system, but it seems that I using the exec() and system() I can access
those pl files. From the command prompt it works fine,
Bix wrote:
I have a for loop within a for loop, and need to break out of both
together...
for ( blah ) {
for ( blah ) {
if ( true ) { break; } // only breaks out of this loop, how can I break it
out of both loops.
}
}
"break accepts an optional numeric argument which tells it how many
nested
Daniel McCullough wrote:
Yes sorry for not being clear. I am trying to use exec() and system().
I guess I'm trying to see if there is another way to do it, like write
to a file and have acron job run every minute or so, or if there is some
way to make it seem like I am doing this with the rig
Jim Greene wrote:
Hi All,
I have a text file that has entries like the following:
user1:mbox1:
user1:mbox2:
I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2';
I then want to print out the data in the $mboxs variable (array)
I am trying to use foreach but it does not work.. I
Beauford.2002 wrote:
I am looking for a simple authentication script that uses MySQL. I have
downloaded about 10 of them (most with no instructions on it's use), but
even at that they are not what I need.
The PEAR project has 7 different authentication packages, including Auth
which I understand
Vernon wrote:
I am calculating distances between to record's zip codes using php and have
a need to sort the recordset by that value. How do I do something like this?
I mean it's not a value in the table that I can use the SQL ORDER BY
statement. I want to be able to have the distances closest to
Vernon wrote:
Use the distance you've calculated as the numeric index of an array,
pointing to
the record that corresponds to that distance.
Can you please expalin this statement? Perhaps a tutorial somewhere?
I could explain it better if you could post the code that you have so
far which ex
Bryan Koschmann - GKT wrote:
Hello,
I have gotten used to using .htaccess to protect files/directories, but
now I am looking at a need to authenticate against mysql. I have no
problem actually getting it to authenticate, but I'm wondering what the
simplest way to prevent someone from hitting any
CF High wrote:
Hey all.
I was under the impression that PHP processes all php code first before
handing HTML processing over to the browser.
http://www.php.net/manual/en/ref.outcontrol.php
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
vernon wrote:
I think that maybe I should explain the fist Zip comes from a session, here
I've defined the variable. I use the caluation in the code to get the
distance and then loop the recordset so that the distance is created each
time the record loops through. I have taken many things from
Marc Bakker wrote:
Hello all,
I installed PHP, Apache and MySQL. I read the install.txt file that came
with php and changed the default values in php.ini and httpd.conf. When I
restart Apache and type my local website (127.0.0.1/index.php) IE comes with
a 'Save file As' dialog box.
Instead of pa
Brad Wright wrote:
Thanks for the reply Rene,
Any change of a code sample of how u did this?? Im not at all experienced in
Java.
According to the manual, PHP does have some tokenizer functions:
http://www.php.net/manual/en/ref.tokenizer.php
However, the documentation appears to be lacking as t
Brad Wright wrote:
Erik,
thanks, are you able to pint me to some good reference sources on
tokenizer's... i have never come across them before
I have been scouring the web, and am coming up a decided blank. :)
The only tokenizers I have used are the StringTokenizer and
StreamTokenizer classes
off -- this
reindexes the array. But I am finding that somehow my arrays are
"remembering" old elements that I could have sworn I unset, so I am
asking the above question about the scope of class attributes in methods.
Erik Price
Web Developer Temp
Media Lab, H.H.
question of encapsulation vs modularity, it would seem.
Your thoughts are gratefully accepted.
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
>
> $this->cleanup($form);
> }
>
> function cleanup($form)
> {
> // Only run once per instance
> if ($this->cleanup_called)
> return 1;
> $this->cleanup_called = 1;
>
> // ... do cleanup
> }
>
> ---
> Scott Hurring
> Systems Prog
If anyone read this post, you probably already forgot about it, but I
just wanted to clarify that I found the source of the problem and it was
a coding mistake on my part, not a problem with PHP's array
implementation.
Erik
On Thursday, June 6, 2002, at 03:11 PM, Erik Price wrote:
an offset that is not a multiple of 10?)
That's all there is to it. It's complicated at first, but once you get
it, you'll always be able to do it. I strongly recommend that you
create a class called "ThumbnailResults" and store all of this logic in
the class, since it
f, you might want that someday. If a band
member wants to post a commment, just let them insert a new record into
the database and only return the most recent record for each band
member. Archive the old data, perhaps when you are feeling adventurous
you can offer a "read the archives" se
On Friday, June 7, 2002, at 12:50 AM, Analysis & Solutions wrote:
> On Thu, Jun 06, 2002 at 04:57:42PM -0400, Erik Price wrote:
>
>> I have a method in my class that essentially unsets an array element.
>
> Uh, I know you're a sharp guy, but I've got to ask
- the DOM methodology: the entire bytestream is read into memory and
then can be treated as a tree with nodes, and you can access these nodes
directly
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
t; waste because simply having the $_SESSION['user'] present means they've
> already logged in. Am I missing something here?
>
> Thanks, as always!
>
> Jeff
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.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
easy as anything I can
think of. So for true security you'll need SSL.
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
time_array[0];
$minutes = $time_array[1];
$seconds = $time_array[2];
// convert to timestamp so we can easily do math
$timestamp = mktime($hours, $minutes, $seconds, 0, 0, 0);
Now all of your times are in timestamp form, and you can do what you
need to do.
Erik
Erik Price
Web Develop
On Friday, June 7, 2002, at 02:22 PM, Erik Price wrote:
> First of all, if you're storing time then you're better off using the
> DATETIME column type. Even though it may take a bit more space than
> CHAR(8), unless you absolutely need the ultimate in table optimization,
ut using UNIX_TIMESTAMP() in your query, then you won't
> need any of that PHP code you just wrote...
>
> ---John Holmes...
>
>> -Original Message-
>> From: Erik Price [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, June 07, 2002 2:22 PM
>> To: juaid
>> Cc:
on the client side, so the cookie can
be read immediately once it is set without the need for requests and
page submits or what have you.
If you think in terms of HTTP it all makes total sense.
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
;
> Can you do that? If so is that how you do it?
Exactly.
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
7;s set in
your php.ini. You can either work around it using stripslashes() on
your GET/POST/COOKIE data, or you can change the setting in php.ini or
with a function that changes the setting like ini_set().
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
ey could hire someone cheaper or learn how
to do it themselves and drop their Europa subscription. But I'm sure
you've already considered that.
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
turning
register_globals = off, to help yourself avoid making bad coding
mistakes.
It's no substitute for good coding, but it can help.
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
oseMsg) && empty($defaultYear)) {
$year_form .= "\t" .
$pleaseChooseMsg . "\n";
$yearSelectedAlready = true;
$yearPleaseChooseMade = true;
}
if ($yearPleaseChooseMade == false && !empty($pleaseChooseMsg)) {
$year_form .= "\t" . $pleaseChooseMsg .
"\n";
}
// loop through the array of years, set a default if appropriate
foreach ($years as $yearname) {
if (!empty($defaultYear) && $defaultYear == $yearname) {
$year_form .= "\t{$yearname}\n";
} else {
$year_form .= "\t{$yearname}\n";
}
}
$year_form .= "\n";
return $month_form . $day_form . $year_form;
}
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 Friday, June 21, 2002, at 09:27 AM, Erik Price wrote:
> * @param string $defaultMonth one- or two-digit number representing a
> default month (if empty, defaults to current month + day multiplier)
> * @param string $defaultDay one- or two-digit number representing a
> defaul
de of the function it works fine.
> I don't want to parameter pass the global variables to the function, I
> know
> this would work, but I would have to many variables to pass.
This is why superglobals were invented.
Use $_SERVER['PHP_SELF']
Erik
Erik Price
We
elieve that with a simpler DB query, a
DB access is faster than a file read.
Here's something that turned up in Google...
http://phplens.com/lens/php-book/optimizing-debugging-php.php
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Ma
in advance if you can help me.
Sincerely,
Erik Price
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
intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose
> or
> distribute to anyone the message or any information contained in the
> message. If you have received this message in error, please immediat
t ini_set() ?
http://www.php.net/manual/en/function.ini-set.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
d sessions (and even then it won't be very reliable).
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
ot; === "1")
if (1 === 1)
> Also, what happens when you put a @ thingy in front of a function? Does
> it surpress the errors?
Yes.
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
this:
array_push($array, 'dummy_value');
unset($array[$index_to_unset]);
array_pop($array);
Because using array_pop() will re-index the array. Much thanks to
Nathan for that tip.
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't
work if the user doesn't have the right implementation of JavaScript.
That can be a headache.
or you can write a Java applet (actually for this kind of task I
recommend this).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General M
27;PHP_SELF'] instead of $PHP_SELF.
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
p://www.php.net/manual/en/function.ini-set.php
The terms PHP_INI_SYSTEM and PHP_INI_ALL aren't totally clear in the
right-hand column titled "changeable".
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.p
,
Have a read of the following thread from this weekend:
http://marc.theaimsgroup.com/?l=php-
general&r=1&w=2&q=b&s=Whos+online+at+the+moment+in+PHP
It discusses some of the issues involved in this.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECT
reason you needed
// to use double quotes within the array element reference
// (to interpolate a variable, for instance)
echo "This script is called {$_SERVER["PHP_SELF"]}";
// and this is the same thing really
echo "This script is called ${_SERVER["PHP_SELF"]}
$_SERVER[PHP_SELF]";
>
> or even
>
>echo "This script is called " . $_SERVER['PHP_SELF'];
Oh. Well, thanks for clarifying -- I always use the concat (last)
method myself, but this settles an incorrect assumption I'd been
carrying around for months. You
#x27;php.ini' -print
and enter your password when it asks for your password. Be patient as
it searches, you'll get no visual confirmation that the search is
running until it's done or until it finds something.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Bro
On Monday, June 24, 2002, at 03:51 PM, Erik Price wrote:
> sudo find / -name 'php.ini' -print
Clarification: substitute the search string with 'php-ini.dist' if you
haven't yet configured it. Note that Macs, although they ship with PHP
pre-installed, are miss
l with varying ending tags, then you'll have to come up
with a creative method for capturing them and storing them, then
dynamically determining their length and do the same thing, then append
the ending tag (whatever it may be). I would use regexes to do this
part.
Erik
Erik
;;
if (preg_match('/@/', $str)) {
print "$str does contain the '@' symbol.\n";
}
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
prefer, you can do
this:
$getVarsArr = array();
foreach ($_GET as $getVarName => $getVarVal) {
$getVars[] = $getVarName . "=" . $getVarVal;
}
$getVarsStr = implode("&", $getVars);
$request = "http://"; . $_SERVER['HTTP_HOST'] . "/" .
$_SERVER['
On Tuesday, June 25, 2002, at 03:22 PM, Erik Price wrote:
> However, I don't like using $_SERVER['QUERY_STRING'] because if there
> are empty GET variables, it grabs them. So, if you prefer, you can do
> this:
>
> $getVarsArr = array();
> foreach ($
d enable
that one instead.
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
ge the
file to the "apache" group unless you are a member of the "apache"
group, but if you are a member of the "apache" group then you can see
all of the "protected" files in that group).
Also I have a directive that prevents Apache from serving any file
(I would just throw 'em in arrays)
3. determine which array should populate the second listbox based on the
input in the first listbox using JavaScript event handlers in the first
listbox
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
nt...
only checked boxes are sent. So you need to check for the presence of
variables if you are going to unset() the unchecked boxes, or determine
the unchecked values based on what is NOT checked, etc.
Good luck
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL
tuff. Always feature an exit() with a header-based
redirect.
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
lwindow.moveTo('150', '150');
}
Now in your new script you can access these GET vars from PHP or from JS!
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
at fetches the file (therefore it needs to be in the docroot). But
mod_php is faster than CGI PHP and can handle more simultaneous
requests. Right?
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
be pretty easy to
extract the data from it without writing special code to handle these
kinds of exceptions.
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
t have any problems...
Plus IIRC it's a C extension so it'll run faster anyway.
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
consistently refuse to ship a decent JVM with their OS, even though they
are freely available from the Sun web site).
That's why server side stuff like PHP will probably always be invaluable.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP G
($data_to_send) . "\n");
fputs($fp, "Connection: close\n\n");
fputs($fp, $data_to_send);
while(!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAI
ropriate subtype
Is that possible in PHP Namely, the casting above?
Or does my client code need to be able to figure out which type of
project it is (say, from the DB) and then use this to determine which
object type to instantiate?
Thanks very much,
Erik
Erik Price
Web Develo
ling xml or something. So, is xml
> in
> php supported automatically?
Yes. Since 4.1.x at least. But for XSLT you need to get expat and
Sablotron and link them into the compile (with the appropriate
./configure options).
Erik
Erik Price
Web Developer Temp
Media Lab, H.
.
Just try it.
for ($i = 0; $i < 10; $i++) {
$var{$i} = $i + 6;
echo "\$var$i == " . $var$i . "\n";
}
$var0 = 6
$var1 = 7
$var2 = 8
$var3 = 9
$var4 = 10
$var5 = 11
$var6 = 12
$var7 = 13
$var8 = 14
$var9 = 15
Erik
Erik Price
Web Developer Temp
Me
or any software
you upgrade -- this is mentioned in the PHP 4.1.x release notes if you
want to read them for yourself.
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
ask to make yours system more secure.
http://www.w3.org/Security/Faq/
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
ls and a
million other configuration directives are decided...
?
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
x27; attribute of the 'option' tag):
print "
One
Two
\n";
In the "test.php" page, the selected value will be found in the
$_POST['example'] variable.
Erik
quot;localhost/image.gif", and the second
one requires the file at "www.domain.com/image.gif".
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
nding to you, whether it's GET, POST, or COOKIE, is data that they can
see.
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
quot;form" tag.
> I have one website that use session. Like session_start(),
> session_register(), etc. How would this be affected and what is the
> work
> around to this one.
You now refer to a session variable as $_SESSION['variablename'].
Erik
E
On Wednesday, June 26, 2002, at 03:37 PM, Doug Coning wrote:
> I have a php page that return rows from a database. I then have an href
> link to the individual thread as such:
>
> target='_blank'>".
>
>
> This works, it opens a new window which has the detailed information
> needed.
> Howeve
t I am unsure of what
purpose the "object" type reference has.
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
test/73things_thread.php?threadID=15
Even though the threadID GET value is different in each one, the same
data is coming up. So you need to check your back end code.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http:/
ods to the code.
Justin,
Out of curiosity, why is it only expandable to 1000 records? What
happens after that? I thought that (in theory) you can keep going with
this kind of scheme. Or is there a limitation in MySQL that I'm not
aware of... ?
Erik
Erik Price
Web Developer
daemon, safe_mysqld can only be executed from
/usr/local/mysql)
/usr/local/apache/bin/apachectl start
(start Apache)
Then test to make sure that MySQL and Apache are working by requesting a
phpinfo() page or MySQL-generated page.
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[
t easier to use mysql_fetch_object().
http://www.php.net/manual/en/function.mysql-fetch-object.php
Or maybe not. It's a matter of preference and performance (I think the
object version is a bit more expensive).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL
On Thursday, June 27, 2002, at 04:44 AM, Andrew White wrote:
> On Wednesday, June 26, 2002, at 04:48 pm, Erik Price wrote:
>
>> My problem is that I have no way to know which type of object to
>> instantiate in advance -- all I have is this primary key. Using the
s my plan to properly model this project and rewrite it in
Java as an exercise. Maybe not implement every single detail, but get
the bulk of it.
Life is one big learning exercise anyway
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP Gener
e everyone's using IE" or
whatever, but then something like AOL's decision to use Mozilla as its
internal browser engine comes along and changes the whole paradigm.
Boom, you now have to change your entire site because now most people
aren't using IE.
Coding to the stan
new PhotoItem($row['photoitem_id']);
$photos_string .= $photo_obj->display();
$photo_obj = null;
unset($photo_obj);
}
// do something with $photos_string
Erik
Erik Pr
1 - 100 of 637 matches
Mail list logo