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
On Thursday, June 27, 2002, at 12:48 PM, Shane wrote:
> I would like your opinions on the best way to implement an "Are You
> Sure You Want To Do This?" dialog for an Admin user when they go to
> delete a record in a DB.
>
> Do you find that a whole page is usually required for this, or does
n't say that
> links/urls shouldn't be formatted like the first example above...
I think it is okay as long as you are staying within the same virtual
host.
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
s you have, re-extract the
tarballs, totally. Not just for the modules but for Apache too. It's
just easier unless you have customized code in your Apache source tree.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http
rs can provide a script (SUID) that allows a
user to change the group association of the file to that of the web
server? Yet without making the user a part of the group itself,
otherwise all users would be able to see all of these files...
Erik
Erik Price
Web Developer Temp
Media Lab, H
insert;
> }
> my probleme is in some case $lastname="" is true and other case is
> false.
> I tried with $lastname=" " but no change. how can I check if a varible
> is
> empty or not?
http://www.php.net/empty
Erik Price
Web Developer Temp
Media L
7;s group association to
"websecret", you probably need to be either root or a member of
"websecret", unless the system admins have provided some kind of script
that does this on your behalf. Which means that anyone else who has
this ability can read the file too (since
l=php-general&m=102503848224300&w=2
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
web server user and the web server user can read
all those files.
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 use JavaScript to set a cookie, and/or make
a new request with GET or POST data attached. If not, let me know.
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 Monday, July 1, 2002, at 11:09 AM, BB wrote:
> OK, this is a 3x3 table pasted in from word!
It is against the rules to post HTML code generated by Microsoft Word.
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (h
which one and how do I use it?
I'm assuming you mean sending some querystring data, like
header("Location: http://domain.com/page.php?data=contents";);
if so, then yes, you will end up with the string 'contents' in a
variable called $_GET['data'] .
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
mp;" sign AND a "number with more than 1 digit"
If you only want it to match if there is BOTH an "&" sign AND a "number
with more than 1 digit", it should be like this:
preg_match('/siteUserList.cgi\?group=site177(&\d\d+)?/', $QUERY_STRING)
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 enters the same "name" value twice,
too. But it's not really a big deal unless you're doing a lot of work
with a lot of data.
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
te line
breaks for your server? In some cases, a file may have DOS/Windows or
Macintosh line breaks which are not \n but rather \r\n and \r
respectively IIRC.
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
an upgrade you can use as a
guide 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
body of a
script, but if you can wrap everything into smaller scopes, it's not
such a big deal. IMHO. This applies to a lot of variable names, in
fact. But I agree, in the main body of the script (global scope) it is
best to be descriptive.
Erik
Erik Price
Web Developer Temp
tup...
even filenames are valuable to maleficants.
I recommend setting your php.ini to E_NONE and then putting
error_reporting(E_ALL) at the top of each of your scripts, and then when
the file is migrated to production, comment or remove the line.
Erik
Erik Price
Web Developer
globals? I had to retool all of my
> scripts. =/
IMHO you're better off, but yes, if you set register_globals = on then
you shouldn't need to have retooled your scripts. Did you restart your
webserver after you adjusted php.ini?
Erik
Erik Price
Web Developer Temp
Media Lab
quot;intranet", as
they call it, so is not really public, so I feel okay about doing dev
work on it. I'm also kind of an amateur.)
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
commands. But all is not lost. You can have the cron
job execute a shell script that executes lynx or links or wget, or even
just executes the command directly from the cron job, and have that
lynx/links/wget request a PHP script that does what you want done.
Erik
Erik Price
Web
ly write a Perl script (most hosts have Perl)
to do whatever it is that needs to be done and have cron execute that,
this saves you from a whole window of exploit (the web server). But if
you don't have Perl or don't know Perl, that's a problem.
Good luck,
Erik
E
e PCRE regex syntax, this should do it:
$output = preg_replace('!^\${1,2}\w+$!', "$1", $var);
because "\w" is the same as "[A-Za-z0-9_]" (though perhaps it is in
POSIX regexes too).
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
parameters, and
// set the variables from the file to
// their corresponding values
foreach ($this->parameters as $key => $value) {
$template_name = '[' . $key . ']';
$this->finalOut
on
> at least 300MB per month bandwidth
> ASP (optional)
I don't know about Shoutcast, but Pair.com is supposed to be good. If
you can get DSL or some service that doesn't block port 80, you may as
well just host your own server (unless you want this for commercial use,
in which
ne giant script.
But one thing I have learned is that everyone has a different approach
to writing code, and objects may not be your thing -- that's okay.
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
rgon File so maybe
it's OT but I'm curious.
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
variables sent to it? Or do you have a "formcheck"
script for each individual form?
This is a great way to stop someone from hitting refresh and
resubmitting their POST data accidentally, since you've got that GET
flag which basically says "do not process this form!"
mplement this yourself with
database-managed persistence (but beware the overhead).
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
g a tiny bit extra memory to deal with
the array:
$arr = array();
foreach ($_POST as $key => $val) {
$arr[] = $key . '=' . $val;
}
$str = implode('&', $arr);
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
ed or slashed?
Turn off magic_quotes and do addslashes() explicitly every time you do a
database insert. Then make sure you always stripslash() data returned
from a database query.
magic_quotes is convenient for newbies, but after a while you'll find it
only trips you up, as you've discover
d/strip a requirement, not a security precaution.
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
data on each iteration
while ($row = mysql_fetch_assoc($result)) {
echo $row_RsSingStanDailybb['DailyBB'];
}
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
.htaccess file can be used. (This is
assuming you are using Apache.)
Go to www.apache.org and read the httpd documentation there for more
information about setting up the document root in httpd.conf.
Erik
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP
ter class. It represents
any *one* of the contained characters. But not more than one. So there
is no following at all, since for all intents and purposes the character
class matches a single character (unless you use a qualifier like +, ?,
or *).
Erik
----
Erik Price
Web Developer T
$rest_of_number = $matches[2][0];
Try that, but it's untested.
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
tell me how!
Erik
TT
101 - 200 of 847 matches
Mail list logo