[PHP] File upload problem on IIS/NT4

2001-02-19 Thread Josh G
Hi guys, I'm having a problem with file uploads, and I can't seem to fix it. I'm on IIS using php as an ISAPI module on NT4, and file uploads seem to work, but $userfile does not exist. Any ideas on how I can fix it? userfile:\\php8 userfile_name:notes.txt Cheers, Gfunk -

[PHP] PHP has encountered an Access Violation at 10014D15

2001-02-19 Thread Josh G
PHP has encountered an Access Violation at 10014D15 What the crap does that mean? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. -- PHP General Mailing List

[PHP] mysql problem

2001-02-19 Thread Josh G
Hi, sorry to post this here, but it's driving me crazy. On my local machine, the following works no furys: create table category (category_id integer primary key auto_increment,name varchar(255) ); But on the production machine, I get: ERROR 1064: parse error near 'auto_increment,name

Re: [PHP] mysql problem

2001-02-19 Thread Josh G
, and hangovers to... suffering. - Original Message - From: "David Robley" [EMAIL PROTECTED] To: "Josh G" [EMAIL PROTECTED]; "PHP User Group" [EMAIL PROTECTED] Sent: Tuesday, February 20, 2001 11:41 AM Subject: Re: [PHP] mysql problem On Tue, 20 Feb 2001 10:57, Jos

Re: [PHP] mysql problem

2001-02-19 Thread Josh G
do. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Josh G" [EMAIL PROTECTED] To: "PHP User Group" [EMAIL PROTECTED] Sent:

Re: [PHP] Here you have, ;o)

2001-02-13 Thread Josh G
hor M. Steindorsson" [EMAIL PROTECTED] To: "Josh G" [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:15 AM Subject: RE: [PHP] Here you have, ;o) I agree with the vbs part, unfortunately windows is set by default to hide file extensions of known file types, meaning the p

Re: [PHP] wide open

2001-02-11 Thread Josh G
Actually IIRC pushing open a door that's ajar is not breaking and entering, but trespass :) Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From:

Re: [PHP] my bugaboo.

2001-02-10 Thread Josh G
If replacing " characters for output to html, don't replace them with '' (two single quotes), replace with the magic value quot; (including the semicolon), which is a special html entity that means "put a quotation mark here" Search google for html entities for more. Gfunk -

Re: [PHP] List of all file extensions

2001-02-07 Thread Josh G
So, If I create a 3D-program, I could say that file extensions for this program will be .pdf (not a prefered extension, but still)? Is it more a question of getting your file extension as widely used as possible, so other companies dont bother using them, since most computers have them

[PHP] Just a thanks

2001-02-06 Thread Josh G
Just a thanks to everyone on this list, for being helpful, and for being tolerant. It seems it's a rare thing these days. Just thought I'd let you guys know, that back when I was learning PHP (i'm a bit of an old hat by now), this list really helped me out, so now I'm try to contribute as much

[PHP] Questions

2001-02-06 Thread Josh G
- From: "Jericho Barimen" [EMAIL PROTECTED] To: "Josh G" [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 9:39 AM Subject: Re: Just a thanks [snip] Hello everybody, I would like to ask you for some help with PHP. I am a newbie both to the list and to PHP. I try to l

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Josh G
What's this ruby? Care to send the list a URL so we can go have a look for ourselves? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Lux"

Re: [PHP] Formatting/Financial

2001-02-01 Thread Josh G
number_format($number,2); Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "[ rswfire ]" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Pricing for PHP programming???

2001-02-01 Thread Josh G
I hear you. Another thing that's hard to find, is somebody who is a good programmer, and a good graphic designer. I don't really know any, apart from myself, and I've been just shy of being called a lying scumbag by a few HR companies over the years when they look at my resume ;-) This thread

Re: [PHP] function list

2001-02-01 Thread Josh G
http://www.php.net/quickref.php is probably the best you'll get. no descriptions, but it _is_ a list of all the functions. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. -

Re: [PHP] What is foo?

2001-02-01 Thread Josh G
try the jargon file, it will tell you more about where foo came from. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Rouvas Stathis" [EMAIL

Re: [PHP] Pricing for PHP programming???

2001-02-01 Thread Josh G
to hangovers, and hangovers to... suffering. - Original Message - From: "Robin Vickery" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 3:43 AM Subject: Re: [PHP] Pricing for PHP programming??? "JG" == "Josh G" [EMAIL PROT

Re: [PHP] Dynamic Variable Creation from Forms

2001-02-01 Thread Josh G
It is what you're looking for, you just need to think it through a little. instead of $chk_$row["field"] try $foo = "chk_" . $row["field"]; $bar = $$foo; or if you're trying to do something else, you may need $foo = "chk_" . $row; $bar = ($$foo)["field"]; as I'm not sure which order of

Re: [PHP] Closing Objects Cleaning Up

2001-02-01 Thread Josh G
True for PHP+Mysql, but not for all databases. Oracle for example, will run out of cursors in a week or two on a low-traffic site if you don't close them and the db server will need a kick in the nuts to get back up Gfunk - http://www.gfunk007.com/ I sense much beer in you.

Re: [PHP] Pricing for PHP programming???

2001-02-01 Thread Josh G
rant It comes down to one simple thing: You cannot know how much a project is worth to a client. If they're willing to pay you $5000, it's worth $5000, wether you think it's worth $500 or $5. If I buy a pack of basketball cards for $2 that has ten cards in it, then they're worth 20c each. If

Re: [PHP] Automatic incoming mail notification

2001-02-01 Thread Josh G
Depends on your mailserver. Most mail servers can redirect incoming mail to a program, I know sendmail can. In your case just make the first line of your script #!/path/to/php/bin/php and that should do the trick. Sorry I don't know how to make sendmail do it, only that you can. Check the man

Re: [PHP] passing data between pages?

2001-01-31 Thread Josh G
easy - http://www.yourserver.com/path/to/yourfile.php?v1=foov2=bar will create two variables, $v1 and $v2, with the values of "foo" and "bar" respectively. note that the first variable is preceeded with a ?, all others afterwards with an . Gfunk - http://www.gfunk007.com/ I

Re: [PHP] Exit Function

2001-01-31 Thread Josh G
by the way, if ($foo = $bar) will return true simply if $bar is not null, i think you want if ($foo == $bar) thought I'd point that out, cause if you don't know return that nasty one would probably bite you on the ass next :) Gfunk - http://www.gfunk007.com/ I sense much

Re: [PHP] Dynamic Variable Creation from Forms

2001-01-31 Thread Josh G
Not *sure* i understand the problem, but this may be the solution: $foo = "hello"; $bar = "foo"; $foobar = $$bar; $foobar now contains "hello". Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers

Re: [PHP] E-mail valid

2001-01-31 Thread Josh G
haven't seen one, but it'd take 10 minutes to write. if i had a php install here at work I'd do it for you :) Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original

Re: [PHP] today and yesterday (finding them)

2001-01-30 Thread Josh G
pulling it out of my ass, but try: $today = getdate(time()-(60*60*24)) Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Chuck Barnett"

Re: [PHP] Maximum execution time exceeded!

2001-01-29 Thread Josh G
Of course, you have this code: while ($prescene2 == 0) { $i=$i+1; } Where $prescnene2 is not modified, hence you get an endless loop. When you increase the timeout, that loop just gets longer to run. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to

[PHP] Re: filename length ...

2001-01-29 Thread Josh G
There's no filename length, but the url string (even for POST I belive) must total 4096 characters. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message -

Re: [PHP] strings

2001-01-29 Thread Josh G
str_replace() I think the syntax is $foo = str_replace($old_foo,"http://www.something.com",""); Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message -

Re: [PHP] Disable print button of client browser

2001-01-29 Thread Josh G
No, no damn way, and besides, I can alt-prtscn and paste it into something else and print from there anyway. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message

Re: [PHP] 1. php ISP host wanted, 2. Release of EasySQL

2001-01-23 Thread Josh G
best kind of networks, those RAID networks. Much better than STRIPE printers Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Richard Creech

Re: [PHP] What PHP Stands For....

2001-01-22 Thread Josh G
Yeah, it used to be called PHP/FI for Personal Home Page / Form Interpreter I do believe. Not sure about the "Interpreter" but I think that was it. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers

Re: [PHP] [php] - alphabetizing

2001-01-21 Thread Josh G
Just build an assosciative array like so $arr["person1"] = "string1"; $arr["person2"] = "string2"; $arr["person3"] = "string3"; $arr = asort($arr); this should do what you're looking for. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads

Re: [PHP] Quotes and Values

2001-01-18 Thread Josh G
True, but iirc it's not xml compliant, and might not be a good habit, and it then leaves you without the option to use it in JS calls, like: echo "a href=\"#\" onclick=\"do_something('withthis')\"" Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to

Re: [PHP] Where is information about Forms?

2001-01-18 Thread Josh G
they're automagically converted to global variables. input type="text" name="foo" becomes $foo on the page you're submitting to. Nice, wot? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to...

Re: [PHP] date problem: some months have 5 weeks... how I discover which ones?

2001-01-18 Thread Josh G
can't think of exactly the math, but get the weekdayday of the 1st, divide how many days in the month/7, and it should be easy enuff. use a combination of date() and mktime() to get the first day of the month methinks. Gfunk - http://www.gfunk007.com/ I sense much beer in you.

Re: [PHP] Announcement: Smarty - the PHP compiling template engine

2001-01-18 Thread Josh G
Nice... has a lot of cool ideas in it, a few of which I'm also working on for the templating part of a content management system I'm working on in my spare time (like compilation, except i'm going to do it at save-time, not 1st run-time, since i control the publishing functions). Gfunk

Re: [PHP] Levels of Access

2001-01-17 Thread Josh G
Sounds good, I for one would like to see it. Can it revoke permissions? Can I have access to all of /admin but no access to /admin/delete ?? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to...

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Josh G
Unlink works on some installations, not others. I think it works on NT but not 95 or perhaps the other way around. Why is this? Unlink is hardly an unsupported system call in windows! Anybody know? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to

Re: [PHP] password() ::: and it's return...

2001-01-15 Thread Josh G
I'm not sure I understand the question. What exactly do you mean? Are you talking about returning it from the client already encrypted? Not sure if anybody does that, as JS doesn't have a whole lot of useful encryption stuff in it, and iirc the md5() algorith is rather lengthy. Gfunk -

Re: [PHP] SMs

2001-01-14 Thread Josh G
yeah you can do that, don't know about other phones, but for nokia you need the cable, a phone with the appropriate plugs (ie a 5xx0 / 6xx0 / 7xx0 / 9xx0 model phone, not a 8xx0 or 3xx0 model), and the nokia data suite or free alternative if they exist for your operating system. Gfunk My

Re: [PHP] logging page views, which method is better????

2001-01-14 Thread Josh G
Another technique is use a quick-and dirty save of one line to a text file, and have a cron script or somehting similar simply run every day or every few hours that reads from your home-made log into a db table, and then empties the file. Gfunk My name was Brian McGee, I stayed up

Re: [PHP] Exponents

2001-01-10 Thread Josh G
exp(num,pow) i do believe. of course this is off the top of my head Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "Ian LeBlanc" [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
$s = system ("/usr/local/whatever/php/bin/php /path/to/your/file.php"); This should be what you're after. In PHP4 there _may_ be some way to use the inbuilt buffering for that purpouse, but I doubt it. Perhaps this could be added to the language? It would be a good counterpart to eval()...

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
If the system() doesn't return something, try using the backticks (left of the 1 key) like so: $s = `/path/to/php /path/to/yourfile.php`; Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
Cool, didn't think you could do that. Well never mind me then ;-) Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "Matt McClanahan" [EMAIL PROTECTED] To: "Kristofer Widholm"