[PHP] UPS / USPS shipping algorithm

2003-08-20 Thread Jason Stechschulte
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

Re: [PHP] checkbox => POST => array??

2002-08-10 Thread Jason Stechschulte
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

Re: [PHP] Vote to ban Acer

2002-08-03 Thread Jason Stechschulte
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

Re: [PHP] Re: May i?

2002-08-03 Thread Jason Stechschulte
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

Re: [PHP] Re: My SQL speed.

2002-08-02 Thread Jason Stechschulte
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

Re: [PHP] mail problems

2002-08-02 Thread Jason Stechschulte
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

Re: [PHP] Extra spacing with in HTML

2002-07-27 Thread Jason Stechschulte
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

Re: [PHP] Getting the day if given a date

2002-07-23 Thread Jason Stechschulte
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

Re: [PHP] Drop Down Box Question

2002-07-23 Thread Jason Stechschulte
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

Re: [PHP] putting the result of PHP code into a string

2001-11-09 Thread Jason Stechschulte
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

Re: [PHP] comments

2001-11-02 Thread Jason Stechschulte
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

Re: [PHP] check if file is already in use before fopen

2001-10-04 Thread Jason Stechschulte
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: [PHP] File extension inc?

2001-10-03 Thread Jason Stechschulte
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

Re: [PHP] Protecting variables and functions? Like C#

2001-09-19 Thread Jason Stechschulte
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.

Re: [PHP] changing post variable names

2001-09-19 Thread Jason Stechschulte
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]

Re: [PHP] How do I tell the mail function that the message content is HTML?

2001-09-19 Thread Jason Stechschulte
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

Re: [PHP] PHP complains when using similar_text() as documented.

2001-09-07 Thread Jason Stechschulte
; 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

Re: [PHP] mysql timestamp field

2001-09-06 Thread Jason Stechschulte
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

Re: [PHP] include error with no includes

2001-09-05 Thread Jason Stechschulte
:/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.

Re: [PHP] ereg_replace

2001-07-25 Thread Jason Stechschulte
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

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Jason Stechschulte
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

Re: [PHP] sending e-mail with variables

2001-06-27 Thread Jason Stechschulte
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

Re: [PHP] back from a search form

2001-06-27 Thread Jason Stechschulte
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.

Re: [PHP] looking for a class that handles cookies and sessions

2001-06-27 Thread Jason Stechschulte
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 <[

Re: [PHP] PHP authenticating and session management

2001-06-22 Thread Jason Stechschulte
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

Re: [PHP] Saving to a file

2001-06-20 Thread Jason Stechschulte
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]

Re: [PHP] Edit A HREF links on the fly - see what i mean - important!

2001-05-23 Thread Jason Stechschulte
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

Re: [PHP] url_rewriter.tags & PHPSESSID automaticly added to URLS

2001-05-18 Thread Jason Stechschulte
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

Re: [PHP] \nhelp

2001-05-18 Thread Jason Stechschulte
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://

Re: [PHP] Writing to files

2001-05-14 Thread Jason Stechschulte
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

Re: [PHP] Only have one session per user?

2001-05-14 Thread Jason Stechschulte
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

Re: [PHP] Upload time vs. script execution time

2001-05-11 Thread Jason Stechschulte
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

Re: [PHP] split string

2001-05-11 Thread Jason Stechschulte
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&#

Re: [PHP] fopen() and persmissions

2001-05-11 Thread Jason Stechschulte
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

Re: [PHP] array limits????

2001-05-11 Thread Jason Stechschulte
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 <[

Re: [PHP] Does the array parameter of ereg actually return strings matched?

2001-05-11 Thread Jason Stechschulte
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]";

Re: [PHP] Variable question, yet another

2001-05-08 Thread Jason Stechschulte
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?

Re: [PHP] passing variables + if case

2001-05-07 Thread Jason Stechschulte
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

Re: [PHP] Extracting Array value as variable

2001-05-07 Thread Jason Stechschulte
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

Re: [PHP] Array help please

2001-05-04 Thread Jason Stechschulte
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

Re: [PHP] slashes \" appearing

2001-05-04 Thread Jason Stechschulte
; 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

Re: [PHP] changing a file on the server using a web form

2001-05-04 Thread Jason Stechschulte
. 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

Re: [PHP] how?

2001-05-03 Thread Jason Stechschulte
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

Re: [PHP] how?

2001-05-03 Thread Jason Stechschulte
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

Re: [PHP] variables within variables

2001-05-01 Thread Jason Stechschulte
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

Re: [PHP] replace functions add \

2001-05-01 Thread Jason Stechschulte
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

Re: [PHP] Content_Type is included in uploaded file!

2001-05-01 Thread Jason Stechschulte
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

Re: [PHP] Problems after reversing a guestbook

2001-05-01 Thread Jason Stechschulte
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

Re: [PHP] Syntax for select statement

2001-04-30 Thread Jason Stechschulte
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=&#

Re: [PHP] suggestions for binary data in database

2001-04-30 Thread Jason Stechschulte
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.

Re: [PHP] MySQL Results NULL Error

2001-04-16 Thread Jason Stechschulte
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

Re: [PHP] online detection

2001-04-11 Thread Jason Stechschulte
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 <[

Re: [PHP] Row colors

2001-04-09 Thread Jason Stechschulte
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.

Re: [PHP] Ming and flash detection

2001-04-02 Thread Jason Stechschulte
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', '');

[PHP] Ming and flash detection

2001-04-02 Thread Jason Stechschulte
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 --

Re: [PHP] rewrite one line in file

2001-03-29 Thread Jason Stechschulte
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

Re: [PHP] escape sequences not recognized inside an .html

2001-03-27 Thread Jason Stechschulte
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

Re: [PHP] Problems passing data via GET and POST

2001-03-26 Thread Jason Stechschulte
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

Re: [PHP] header redirection

2001-03-21 Thread Jason Stechschulte
items set week" . $week . " = 'T', buyerID = " . $uid . >" where itemID = " . $itemid; > $result = mysql_query($sql); > > $redirurl = "bid.php?uid=" . $uid . "&itemid=" . $itemid; > header ($redirurl); > ?> I

Re: [PHP] pulldown population not getting the last value

2001-03-19 Thread Jason Stechschulte
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

Re: [PHP] Editing Variables from another script.

2001-03-19 Thread Jason Stechschulte
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

Re: [PHP] Repost URGENT: Can't see picture!!!!!!!!

2001-03-19 Thread Jason Stechschulte
; $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.

Re: [PHP] Invalid or Valid because the same.

2001-03-19 Thread Jason Stechschulte
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

Re: [PHP] Running script on remote server

2001-03-19 Thread Jason Stechschulte
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

Re: [PHP] email a file from server

2001-03-14 Thread Jason Stechschulte
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,

Re: [PHP] Mysql Show SQL

2001-03-14 Thread Jason Stechschulte
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 . . .

Re: [PHP] Variable variables

2001-03-13 Thread Jason Stechschulte
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

Re: [PHP] upload file problems

2001-03-13 Thread Jason Stechschulte
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&#x

Re: [PHP] Best way to pass SQL TEXT field via a link

2001-03-13 Thread Jason Stechschulte
> 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

Re: [PHP] displaying information

2001-03-09 Thread 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

Re: [PHP] Slideshow problem

2001-03-07 Thread Jason Stechschulte
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 [

Re: [PHP] help on select

2001-02-27 Thread Jason Stechschulte
; "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

Re: [PHP] Undefinded Index on Mysql Result under Win98/PWS

2001-02-23 Thread Jason Stechschulte
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

Re: [PHP] Undefinded Index on Mysql Result under Win98/PWS

2001-02-23 Thread Jason Stechschulte
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

Re: [PHP] File content type

2001-02-23 Thread Jason Stechschulte
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

Re: [PHP] variable sent using pots is cat!

2001-02-22 Thread Jason Stechschulte
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

Re: [PHP] Tough one?

2001-02-21 Thread Jason Stechschulte
,$", "", $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

Re: [PHP] array headaches

2001-02-21 Thread Jason Stechschulte
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

Re: [PHP] Get a variable from a variable.

2001-02-15 Thread Jason Stechschulte
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

Re: [PHP] HTTP authentication

2001-02-15 Thread Jason Stechschulte
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

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread Jason Stechschulte
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/)

Re: [PHP] mktime + 4 days

2001-02-13 Thread Jason Stechschulte
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

Re: [PHP] Regex help needed...

2001-02-12 Thread Jason Stechschulte
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

Re: [PHP] Regex help needed...

2001-02-12 Thread Jason Stechschulte
= 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

Re: [PHP] fread() a remote file

2001-02-09 Thread Jason Stechschulte
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.

Re: [PHP] mysql not reporting errors

2001-02-09 Thread Jason Stechschulte
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

Re: [PHP] MySQL error

2001-02-09 Thread Jason Stechschulte
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