rent PHP scripts 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 G
ou can access them all with something like:
\n";
}
?>
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
History books which contain no lies are extremely dull.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 poi
ut line breaks 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)
\n", "\n", $line);
?>
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
The brain is a wo
hing like that you need to set for sendmail also.
--
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 Stechsc
this behavior was introduced. Many people, 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
[EMA
do is just 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.p
On Sat, Aug 10, 2002 at 02:56:48PM -0400, PeterV wrote:
> What I have now:
>
> doesn't return an array $topic??
Probaby due to register_globals. It should exist in $_POST['topic']
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
I am a bookaholic. If
f("name");
$menu[$i]["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
,$", "", $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 ti
ook at the form that you 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
t I need to do is open the file once its on the server then get the
> content type so it will always be the same if its valid. > > Does
> anyone know how to do this?
I normally check the mime type to make sure it is a valid image type.
Just check $picture_type for image/pjpeg, image/jpe
n't happen on
> our Linux/Apache web server.
>
> Second, if the field AppDOB contains a NULL value, PHP barks that there is
> an undefined index. It appears that it won't even create the index.
I think you want to check the php.ini file. I believe error_reporting
can be ch
system though, I
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 W
; "Mar 12 2001"
>
> how can i change that kind of format so i can compare the data in unix time
> stamp format
Try this:
$date";
?>
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Interestingly enough, since subroutine declarations can come anywhere,
you wouldn't
The problem seems to be within my loop. I am using latest php4
> version.
It looks to me like you are trying to do something server side that
needs to be done client side. Rotating images on a single webpage
normally requires something like, java, javascript?, or flash.
--
Jason Stechschulte
[
ver where the old page 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 P
> 1) The mySQL text data ($description) won't populate my form. I'm using
> input, and it just won't accept and display the value of
> $description. It's empty, and when the form is re-submitted after editing,
> it empties the $description variable.
How are you printing the value? With textar
docs/audio': Is a 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
1;
session_register($privs[$i]);
}
--
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 comma
2 problems.
1. Delete the ';' after the while loop. With that there the for loop will
never run.
2. If you want to print everything, you will need to change $i =1 to
$i =0 in the for loops.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Anyway, my money is still on use strict vars . . .
On Wed, Mar 14, 2001 at 09:03:00AM -0800, Jerry Lake wrote:
> Is there an easy way to email a file
> that resides on the server to a given
> email address ?
RTFM:
http://www.php.net/manual/en/function.mail.php
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Of course, this being Perl,
ables the remote script
needed.
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 comin
ude 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 a
; $picdir = "../userpics";
> All of the above 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.
red or more ways this can be done. For me to be
able 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
while ($contact_row = mysql_fetch_array ($contact_result))
> {
> $name = $contact_row["name"];
> $option_contact .= "$name\n";
> }
>
> What gives?
I have not seen anything wrong with this portion of code. Have you
tried echoing $contact_row["name&q
items set week" . $week . " = 'T', buyerID = " . $uid .
>" where itemID = " . $itemid;
> $result = mysql_query($sql);
>
> $redirurl = "bid.php?uid=" . $uid . "&itemid=" . $itemid;
> header ($redirurl);
> ?>
I
front of the variable 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 Gen
em and only put 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.
hin in,
> will this cause an error in my select statement? If the answer is
> "Yes", can someone give me a more robust way of writing it using PHP?
Yes. You could try this
$queryID = mysql_query("SELECT Country, Agent FROM Ports
WHERE Portname=
o you can tell if it belongs 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 (htt
if this is wrong info Rasmus, but I was told 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 not
gt; the result is: "This is a \little test"
> Why does this happen?
I 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
the form passes $emailtext?
That is the value that will be in $name. If it is actually printing
$name and not an empty 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/fun
es in the $lines variables?
> i want like:
> $value = "test";
> echo $lines;
> and i want ouput like: Key=test
> any idea?
May not be the best way, but it works:
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Well, enough clowning around. Perl is, in intent, a cleaned up a
any questions...
index.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 PROTECTED]
--
Think of prototypes as a funny markup language--the interp
. Once 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
; why? thanks in advance.
Because PHP 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-m
D"] The quotes are
optional but recommended, because clientID could 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 i
bles ($broccoli and $tomatoes) by
> only using the $veg array.
>
> So, if it worked it would be $$veg[0] would be 1, and $$veg[1] would be 2.
>
> Is there anyway to do this?
It always amazes me that people are so afraid of simply trying. Yes,
there is a way to do this. Simple tes
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
use of the "'s in the anchor tag.
> But if I add slashes 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?
your counter for every line of the file,
not for every match actually found. Try this code instead:
";
while(!feof($readfile)) {
$contents=fgets($readfile,4065);
if(eregi($pattern,$contents,$regs)) {
for($i = 0; $i < sizeof($regs); $i++) {
echo "$regs[$i]";
but when i print out the
> array i only 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 <[
file if it is chmod 666 or something like
that. I'm not a Linux expert by any means, so there is probably an even
more secure way.
> is there a better solution then either of these two???
Not that I'm aware of. I would probably use the 2nd method.
--
Jason Stechschulte
[EMAIL
value to
> update, have to break them down to each variable 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
when I want 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
ng
multiple instances 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 (h
ng List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
Jason Stechschulte
[EMAIL PROTECTED]
--
If I don't document something, it's usu
I figure I
> have to search and replace for "\n&&4;" but ... ?
You could try something like this:
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Perl programming is an *empirical* science!
-- Larry Wall in <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://
kely 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 PROTEC
there a javascript way?
The best thing to do is simply forget the entire idea. When someone is
leaving the site, they are leaving the site, so most likely do not want
any more pages to just pop up on them.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Think of prototypes as a funny markup language
is wrong?
No, the database can store them internally however 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, r
s i want $html to contain "Test1
$var = "Test1";
$code = "$var";
$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
tme']; // will have form info
$testme // will have form info
register_globals = off:
$HTTP_GET_VARS['testme'] // 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 s
t changing from .html 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 ab
and how you are doing 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
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
[EMAIL PROTECTED]
(419)998-3108
--
On Mon, Apr 02, 2001 at 08:41:29AM -0700, Chris Adams wrote:
> On 2 Apr 2001 07:58:42 -0700, Jason Stechschulte <[EMAIL PROTECTED]> wrote:
> >// This movie simply redirects to the appropriate page.
> >$m->add(new SWFAction("getURL('$thisURL', '');
t))
> {{
> echo "\n";
> for ($i =1;$i";
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Any false value is gonna be fairly boring in Perl, mathematicians
notwithstanding.
-- Larry Wall in <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.
nected 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 <[
unction.fopen.php
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]
but how can I
> check that it matches with the number in the cookie.
Why not just check for username this way:
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
[EMAIL PROTECTED]
--
echo &quo
u 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 <[
the page in order to get the results. how can i
> prevent this blank page.
Don't use
--
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.
You 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
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
--
Ja
t = ereg_replace (" " , "+" , $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 PROTECT
:/web/php/include:/web/php/phplib') 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.
hould I do 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 n
; be passed by value instead 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. :-)
-- L
ext/html; 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 uns
them. Is there a way of accessing
> these values in a loop ie;-
>
> for($i=1;$i<=10;$i++){
> // do things in here that access the vars like this
> $blah = $var$i;
> }
Something like this should work:
\n";
}
}
?>
--
Jason Stechschulte
[EMAIL PROTECTED]
sional. Yes 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.
these servers,
people put PHP code into these files and then include() them.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
If you want your program to be readable, consider supplying the argument.
-- Larry Wall in the perl man page
--
PHP General Mailing List (http://www.php.ne
delete 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]
--
re using and also
echo mysql_error() so you can see what is wrong with your query.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
That wouldn't be good enough.
-- Larry Wall in <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PR
p the error 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
255)) {
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.
= ereg_replace("(^ )|( $)", "_", $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
eplace("^( )+", $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
st fine.
$tomorrow = date ("d", mktime(0,0,0,date("m"),date("d") +4,date("Y")));
--
Jason Stechschulte
[EMAIL PROTECTED]
--
It's all magic. :-)
-- Larry Wall in <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.p
and complains, IE 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/)
xt to send if user hits Cancel button\n";
> exit;
> } else {
> echo "Hello $PHP_AUTH_USER.";
> echo "You entered $PHP_AUTH_PW as your password.";
> }
> ?>
I'm not sure what is wrong. I copied and pasted this onto my system and
it works just fin
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://w
87 matches
Mail list logo