for calculating UPS and USPS
shipping rates, but all of them I've seen so far expect the package size
to already be calculated.
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.enormousplow.com
Immortality -- a fate worse than death.
-- Edgar A. Shoaff
--
PHP General Mailing List (http
On Sat, Aug 10, 2002 at 02:56:48PM -0400, PeterV wrote:
What I have now:
input type='checkbox' id='45' name='topic[]' value='45'
doesn't return an array $topic??
Probaby due to register_globals. It should exist in $_POST['topic']
--
Jason Stechschulte
[EMAIL PROTECTED]
http
, myself included, believe the
ability to use numbers that were used previously is a bug, so in 3.23,
once a number is used in an auto incrementing column it cannot be used
again. At least mysql won't auto generate it again.
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
To teach
ignore trolls like him.
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
Campus sidewalks never exist as the straightest line between two points.
-- M. M. Johnston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
.
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
Do you think that illiterate people get the full effect of alphabet soup?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Aug 03, 2002 at 01:49:10AM -0300, Manuel Lemos wrote:
Google has 1 billion pages and qurys in a few milliseconds...
Real search engines do not use SQL databases.
What do search engines use? Is there something out there that explains
how they work?
--
Jason Stechschulte
[EMAIL
in a situation like that?
There might be an easier way, but you might just have to write your own
code for this. Something along the lines of: (completely untested)
?php
$line = ereg_replace((^li|^ul|^ol)\n, br /\n, $line);
?
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
The brain
value='1'Red/option
option value='2'Green/option
option value='3'Blue/option
/select
Now in your PHP program, you can access them all with something like:
?php
foreach($_POST['test'] as $test) {
echo You selected $testbr /\n;
}
?
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
On Tue, Jul 23, 2002 at 04:24:37PM -0800, Cirkit Braker wrote:
Is there any way to get the day of the week given a date.
Check out the date() function.
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
Campus sidewalks never exist as the straightest line between two points
= Test1;
$code = td$var/td;
$html = someFunction($code);
Done.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
You can't have filenames longer than 14 chars.
You can't even think about them!
-- Larry Wall in Configure from the perl distribution
--
PHP General Mailing List (http
it wants. If you
want your results to be in a certain order you should use the order by
clause in SQL.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Suppose you're working on an optimizer to render \X unnecessary (or
rather, redundant, which isn't the same thing in my book).
-- Larry
mydata.lock.
You also have to be prepared to handle a situation where your program
stops before removing the lock file. Usually with PHP, it is much
easier to just use a database so all this file locking is dealt with by
the database and not you.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Sorry
; charset=iso-8859-1\n; // Mime type
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Perl itself is usually pretty good about telling you what you shouldn't
do. :-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
($$blah)) {
echo $$blah.br\n;
}
}
?
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Well, that's more-or-less what I was saying, though obviously addition
is a little more cosmic than the bitwise operators.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http
a feature like that
would be nice in the eyes of many people, but saying it is a must and is
needed to make the language professional is quite a joke.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
'Course, that doesn't work when 'a' contains parentheses.
-- Larry Wall in [EMAIL PROTECTED
of by reference).
--
Jason Stechschulte
[EMAIL PROTECTED]
--
If you want to see useful Perl examples, we can certainly arrange to have
comp.lang.misc flooded with them, but I don't think that would help the
advance of civilization. :-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General
this?
The easiest way is to change the column type. Timestamp always updates
itself whenever the row is updated. You could simply change the column
type to datetime.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
The reason I like hitching a ride on strict vars is that it cuts down
the number of rarely used
') in Unknown
on line 0
I could be way off, but it sounds like a permissions problem. The user
that your webserver runs as probably no longer has access to the page.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Portability should be the default.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP
( , + , $home_street);
The input is 123 happy trail
I need the output to be 123+happy+trail
--
Jason Stechschulte
[EMAIL PROTECTED]
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
this. The
University is at http://www.unoh.edu and the class you want is: DP237 -
Programming Server-Side Scripts I
--
Jason Stechschulte
[EMAIL PROTECTED]
--
And we can always supply them with a program that makes identical files
into links to a single file.
-- Larry Wall in [EMAIL PROTECTED
in order to get the results. how can i
prevent this blank page.
Don't use form method=post
--
Jason Stechschulte
[EMAIL PROTECTED]
--
For the run-time caching, I was going to suggest cached (doh!), but
perhaps once is more meaningful to ordinary people.
-- Larry Wall in [EMAIL PROTECTED
should either pass them to the function:
function($hostname, $domain, $tld, $fullname);
or declare them as global inside of the function.
function() {
global $hostname, $domain, $tld, $fullname);
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Oh yeah. Forgot about those. Getting senile, I guess
On Tue, Jun 26, 2001 at 09:18:49PM -0700, Marcus James Christian wrote:
\' How can I filter out these backslashes so they don't appear on the
final public viewable page?
Perhaps stripslashes() would be helpful?
http://www.php.net/manual/en/function.stripslashes.php
--
Jason Stechschulte
that it matches with the number in the cookie.
Why not just check for username this way:
?php
if(session_is_registered(username)) {
// Do stuff
}
?
Then username has to be registered as a session variable so any hacker
(sic) can't just send a username to see that page.
--
Jason Stechschulte
fputs http://www.php.net/manual/en/function.fputs.php
fclose http://www.php.net/manual/en/function.fclose.php
--
Jason Stechschulte
[EMAIL PROTECTED]
--
All language designers are arrogant. Goes with the territory... :-)
-- Larry Wall in [EMAIL PROTECTED]
for \n4; but ... ?
You could try something like this:
?php
$file = file(file);
for($i = 0, $k = 0; $i sizeof($file); $i++) {
if(substr($file[$i], 0, 4) == 4;) {
$newfile[$k - 1] .= $file[$i];
}
else {
$newfile[$k++] = $file[$i];
}
}
?
--
Jason Stechschulte
[EMAIL PROTECTED
they are configured differently. In Linux, you can
configure with:
--enable-trans-sid
There is probably an equivalent way to do it in the .ini file.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
'Course, I haven't weighed in yet. :-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General
of the same web browser? IIRC, this will only work
if you are not using cookies for your sessions.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
I surely do hope that's a syntax error.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
administrators, e-mail: [EMAIL PROTECTED]
--
Jason Stechschulte
[EMAIL PROTECTED]
--
If I don't document something, it's usually either for a good reason,
or a bad reason. In this case it's a good reason. :-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http
this code instead:
?php
$contents=fread($readfile,10);
$pattern=a href.*\;
while(!feof($readfile)) {
$contents=fgets($readfile,4065);
if(eregi($pattern,$contents,$regs)) {
for($i = 0; $i sizeof($regs); $i++) {
echo $regs[$i]br;
}
}
}
?
--
Jason Stechschulte
[EMAIL
get 80
can anyone shed some light on this subject???
Seeing code sure would help. 100 values in a PHP array is nothing.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Tcl tends to get ported to weird places like routers.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List
like that.
Use arrays.
$test = 1,2,3;
$test = explode(,, $test);
// $test[0] == 1;
// $test[1] == 2;
// $test[2] == 3;
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Well, that's more-or-less what I was saying, though obviously addition
is a little more cosmic than the bitwise operators
to upload files that take longer time to upload (but without
editing the php.ini).
I'm fairly certain that the execution time of the script does not start
counting until the file is uploaded.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
No prisoner's dilemma here. Over the long term, symbiosis
the evaluated code will be
echo [a href=\myscript.php?username={$userdata[\username\]}\]Goto
MyScript.php[/a];
Why not just break out of the string to print the username?
echo [a href=\myscript.php?username=.$userdata[username].\]Goto
Myscript.php[/a];
--
Jason Stechschulte
[EMAIL PROTECTED
] = broccoli;
$veg[1] = tomatoes;
echo $$veg[0]. .$$veg[1]; // This will print 1 2
?
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Anyway, my money is still on use strict vars . . .
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
On Fri, May 04, 2001 at 05:08:30PM -0700, Andras Kende wrote:
Is this is a correct format ???
If you would tell us what you are trying to accomplish and why you think
it doesn't work, we might actually be able to help you.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Of course, I reserve
this is accomplished,
you will realize just how easy your task really is.
If you are looking for a tutorial, check out some links from here:
http://www.php.net/links.php
--
Jason Stechschulte
[EMAIL PROTECTED]
--
If this were Ada, I suppose we'd just constant fold 1/0 into
die Illegal division by zero
is configured with:
--enable-magic-quotes
--
Jason Stechschulte
[EMAIL PROTECTED]
--
But maybe we don't really need that...
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
be defined as a
constant and that could give unexpected results.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
: How would you disambiguate these situations?
By shooting the person who did the latter.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
$lines;
and i want ouput like: Key=test
any idea?
May not be the best way, but it works:
?php
$lines = join('', file(myfile.txt));
$value = test;
$lines = str_replace(\$value, $value, $lines);
echo $lines;
?
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Well, enough clowning around. Perl
...
index.php:
?php
$username=eddie;
$site_name=stripmall;
$admin_mail=[EMAIL PROTECTED];
include(myfile.txt.php);
?
I'm not sure if this is what you want, but it will send this to the
browser:
Welcome eddie
Enjoy your staying at stripmall
Mail admin. at [EMAIL PROTECTED]
--
Jason Stechschulte
[EMAIL
together or not.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
double value;/* or your money back! */
short changed; /* so triple your money back! */
-- Larry Wall in cons.c from the perl source code
--
PHP General Mailing List (http://www.php.net
this is a bug in
some version(s) of apache. Someone I know ran into this probelem and
said he found it was a bug, so he upgraded apache, reinstalled php and
everything works fine.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Almost nothing in Perl serves a single purpose.
-- Larry Wall
have no idea. I copied your code and it works as expected.
This is a little test is printed out.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
: - cut in regexps
I don't think we reached consensus on that. We're still backtracking...
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General
string, then the '$' must be getting escaped
somewhere along the line, or you are using ' instead of around the
variable.
http://www.php.net/manual/en/function.echo.php
--
Jason Stechschulte
[EMAIL PROTECTED]
--
I'll say it again for the logic impaired.
-- Larry Wall
--
PHP General
the directory structure, filename in the
database. It is much easier on the database too.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Unix is like a toll road on which you have to stop every 50 feet to
pay another nickel. But hey! You only feel 5 cents poorer each time.
-- Larry Wall
declaration?
Why not just check how many rows are returned?
mysql_num_rows()
--
Jason Stechschulte
[EMAIL PROTECTED]
--
I wouldn't ever write the full sentence myself, but then, I never use
goto either.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http
to the Internet AND using their
application. Checking if someone is online is much, much more
difficult.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
: - cut in regexps
I don't think we reached consensus on that. We're still backtracking...
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General
echo "TR\n";
for ($i =1;$imysql_num_fields($result);$i++)
This works for me.
echo "td ".($i 1 ? "bgcolor=c0c0c0" : "bgcolor=cc")."";
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Any false value is gonna be fairly boring in Perl, mathemat
s. So there must be a problem with the movie
somewhere. In the getURL() function, I have tried many different things
for the second argument. _self, _parent, _top. None of these makes any
difference. Anyone have any ideas I could try??
--
Jason Stechschulte
University of Northwestern Ohio
[
it currently.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
It's appositival, if it's there. And it doesn't have to be there.
And it's really obvious that it's there when it's there.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
to .php everthing works fine.
Anyone? Anyhelp?
If you ar using a *nix system, you probably need to add:
AddType application/x-httpd-php .html
to you httpd.conf
--
Jason Stechschulte
[EMAIL PROTECTED]
--
/* we have tried to make this normal case as abnormal as possible */
-- Larry
stme'] // will have form info
$testme // will be empty
I could be completely wrong, but I think this is how that works.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
The prayer of serenity applies here. To both of us. :-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing Li
uid .
" where itemID = " . $itemid;
$result = mysql_query($sql);
$redirurl = "bid.php?uid=" . $uid . "itemid=" . $itemid;
header ($redirurl);
?
It appears your code is missing the "Location: " part of the header.
--
Jason Stechschulte
[EMAI
include("http://www.remoteimapserver.com/remote.php?neededvariable=neededvalue");
?
Anything the remote.php file outputs will be output into the HTML of the
calling program. Anyone accessing the website has no idea that the page
they are viewing is coming from 2 different servers.
a snippet in your message?
--
Jason Stechschulte
[EMAIL PROTECTED]
--
What about WRITING it first and rationalizing it afterwords? :-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
ve don't work. I'll post my code below:
The directory is probably not viewable from the web. Try putting the
folder somewhere in the web tree.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
No, that'd be silly.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
to give you specifics, you will have to be more specific with what
you are doing and what you have tried.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Well, I think Perl should run faster than C. :-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
ct_row["name"];
$option_contact .= "OPTION value=\"$name\"$name/OPTION\n";
}
What gives?
I have not seen anything wrong with this portion of code. Have you
tried echoing $contact_row["name"] inside the loop to make sure this is
the portion of you
file
was uploaded.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Let's say the docs present a simplified view of reality...:-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
directory in
/www/workbox/htdocs/upload.php on line 4
I'm no expert, but I would try adding a trailing slash.
copy($userfile, "/www/workbox/htdocs/audio/");
--
Jason Stechschulte
[EMAIL PROTECTED]
--
if (instr(buf,sys_errlist[errno])) /* you don't see this */
-- Larry Wall in
;
session_register($privs[$i]);
}
/horridcode
--
Jason Stechschulte
[EMAIL PROTECTED]
--
I surely do hope that's a syntax error.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
finished.
I would try programming, that usually works for me.
You will have to let the program know where you left off, you could pass
it in the url, set a cookie, or put it to the session. Either way, just
do a little programming and voila.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Well, you can
1"
how can i change that kind of format so i can compare the data in unix time
stamp format
Try this:
?php
$date = mktime(0, 0, 0, 3, 12, 2001);
$sql = "select * from table_name where unix_timestamp(date_column) "
. " $date";
?
--
Jason Stechschulte
[EMAIL P
took it to mean that he wasn't using many if any constants. So it
should not be a problem to change the error reporting level.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
There's some entertainment value in watching people juggle nitroglycerin.
-- Larry Wall in [EMAIL PROTECTED
are posting from. Then put quotes around the
form variables.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
If you remove stricture from a large Perl program currently, you're just
installing delayed bugs, whereas with this feature, you're installing an
instant bug that's easily fixed. Whoopee
ot;url"] = $db-f("topic_id");
}
Then you can access them through another loop.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Reserve your abuse for your true friends.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
, $updateString);
That should take care of the trailing comma.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
One of the reasons Perl is faster than certain other unnamed interpreted
languages is that it binds variable names to a particular package (or
scope) at compile time rather than at run time.
ts Cancel button\n";
exit;
} else {
echo "Hello $PHP_AUTH_USER.P";
echo "You entered $PHP_AUTH_PW as your password.P";
}
?
I'm not sure what is wrong. I copied and pasted this onto my system and
it works just fine.
--
Jason Stechschulte
[EMAIL PROTECT
ry this:
myFunction($$a);
It is a variable variable.
http://www.php.net/manual/en/language.variables.variable.php
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Just don't create a file called -rf. :-)
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-ma
simply reloads
the current page.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
But you have to allow a little for the desire to evangelize when you
think you have good news.
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
("(^ )|( $)", "_", $checkme);
--
Jason Stechschulte
[EMAIL PROTECTED]
--
/* This bit of chicanery makes a unary function followed by
a parenthesis into a function with one argument, highest precedence. */
-- Larry Wall in toke.c from the perl source code
--
PHP Genera
", $start, $checkme);
$fix = ereg_replace("( )+$", $end, $fix);
echo "$fix";
--
Jason Stechschulte
[EMAIL PROTECTED]
--
How do Crays and Alphas handle the POSIX problem?
-- Larry Wall in [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
and decide what to
do.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
: I used to think that this was just another demonstration of Larry's
: enormous skill at pulling off what other people would fail or balk at.
Well, everyone else knew it was impossible, so they didn't try. :-)
-- Larry
5)) {
echo "$line";
}
fclose($handle);
--
Jason Stechschulte
[EMAIL PROTECTED]
--
One of the reasons Perl is faster than certain other unnamed interpreted
languages is that it binds variable names to a particular package (or
scope) at compile time rather than at run time.
75 matches
Mail list logo