Re: [PHP] mysql problem

2001-02-19 Thread Josh G
, I really 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" <[EM

Re: [PHP] mysql problem

2001-02-19 Thread Josh G
hangovers, 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] my

[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 varchar(2

[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 (http://www.php.

[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 - http

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

2001-02-13 Thread Josh G
uot;Thor 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 fi

[PHP] Mail classes

2001-02-12 Thread Josh G
Hi, I'm wondering what're the best classes available for reading/ sending emails? I want to do a webmail solution (for myself at first), and don't want to use IMP. I'd need to be able to handle attachments as well. Any pointers? Cheers, Gfunk - http://www.gfunk007.com/ I

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: "Jaso

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 " (including the semicolon), which is a special html entity that means "put a quotation mark here" Search google for html entities for more. Gfunk - http://

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 a

[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 t

[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 as

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" <[EMA

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 pag

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

2001-02-01 Thread Josh G
. - Original Message - From: "Michael Kimsal" <[EMAIL PROTECTED]> To: "Josh G" <[EMAIL PROTECTED]> Sent: Friday, February 02, 2001 4:12 PM Subject: Re: [PHP] Pricing for PHP programming??? > > > Josh G wrote: > > > > > > > It

[PHP] Fw: Message status - undeliverable

2001-02-01 Thread Josh G
Sorry about this, but can somebody please remove this guy from the list? I'm tired of getting this email every time I contribute. Cheers, Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... sufferi

Re: [PHP] Re: PHP a lightweight language?

2001-02-01 Thread Josh G
most c compilers are self-hosting. iirc it's one of the best tests of your compiler. 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: "John Hinsle

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

2001-02-01 Thread Josh G
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 sudd

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. Beer

Re: [PHP] contracting & consulting (was "[PHP] Pricing for PHP pr ogramming???")

2001-02-01 Thread Josh G
and one place where everybody on the list could post their resumes in a little database that sorts by country / state? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Origina

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 ex

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

2001-02-01 Thread Josh G
intoxication 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??? > >>>>>

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 PR

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] 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 has

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: Thur

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 Message

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 to...

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 bee

Re: [PHP] passing data between pages?

2001-01-31 Thread Josh G
easy - http://www.yourserver.com/path/to/yourfile.php?v1=foo&v2=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 s

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" <[EMAI

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] 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 - F

[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 - F

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 t

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] Aspell Function

2001-01-23 Thread Josh G
And the answer was? 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: "Matt Stone" <[EMAIL PROTECTED]> To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP L

Re: [PHP] Turning off PHP for one directory with apache

2001-01-22 Thread Josh G
Instead of: > Action application/x-httpd-php-source "/php4/php.exe -s" > AddType application/x-httpd-php-source .php4 .php .inc .htm why not: > Action application/x-httpd-php-source "/php4/php.exe /path/to/showsource.php " > AddType application/x-httpd-php-source .php4 .php .inc .htm and using

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 to

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 to

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] 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] Where is information about Forms?

2001-01-18 Thread Josh G
they're automagically converted to global variables. 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... suffering. - Original Mes

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 "" Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers t

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Josh G
Strewth! that's 4g/second at full strength! I'd say that's a fair bit more than all the links out of my whole bloody country! Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering.

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... suf

Re: [PHP] How do I do to update part of a string?

2001-01-15 Thread Josh G
You can always use the simple str_replace or my old fave, $newstring=implode($withthis,explode($this,$oldstring)); replaces all instances of $this with $withthis in $oldstring Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication t

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

2001-01-15 Thread Josh G
PROTECTED] > Subject: Re: [PHP] password() ::: and it's return... > > > sites do though. many sites allow me to click some link and they email me my > passwd in case Ive forgoten it. ICQ.com even does this. > > Chris Lee > Mediawaveonline.com > > > ""J

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

2001-01-15 Thread Josh G
ail me my > passwd in case Ive forgoten it. ICQ.com even does this. > > Chris Lee > Mediawaveonline.com > > > ""Josh G"" <[EMAIL PROTECTED]> wrote in message > 00e401c07f60$f325c2a0$0e01a8c0@swinger">news:00e401c07f60$f325c2a0$0e01a8c0@swinger... &

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

2001-01-15 Thread Josh G
s to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Maxim Maletsky" <[EMAIL PROTECTED]> To: "'Josh G'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 1:17 PM Sub

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

2001-01-15 Thread Josh G
rs to... suffering. - Original Message - From: "Alexander Wagner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 1:01 PM Subject: Re: [PHP] HELP WITH UPLOAD REQUIRED > Josh G wrote: > > Unlink works on some installations, not others

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] 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 intoxica

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] 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] APC Alternative PHP Cache Release Announcement

2001-01-11 Thread Josh G
How's it handle scripts that call eval()? Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "George Schlossnagle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Janua

Re: [PHP] mixing HTML and PHP code

2001-01-11 Thread Josh G
- Original Message - From: "Jade Ohlhauser" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Friday, January 12, 2001 1:40 PM Subject: Re: [PHP] mixing HTML and PHP code > IMHO even better is: > input_text('hello', 20, $value); > > that's how that would appear on our site. We

Re: [PHP] Dynamic 'left menu's' on site: Like a windows explorersystem???

2001-01-11 Thread Josh G
I've got one you guys can have, email me anybody who wants it. Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "DanO" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[E

Re: [PHP] Dynamic 'left menu's' on site: Like a windows explorersystem???

2001-01-11 Thread Josh G
I have a working javascript system for this, email me anybody if you want it. Note - It's a hulluva lot harder than you think to write 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

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
$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()... Gfun

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 PROTECTE

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
> $s = sprintf("%s", implode("\n", file('template.php'))); Why this??? It's redundant, isn't it? Wouldn't $s= implode("\n", file('template.php')); do it? Gfunk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] looking for a PHP editor

2001-01-09 Thread Josh G
I went to their homepage, and couldn't find a link to download the actual program, just some example stuff, and it says "coming soon"... Is it out there somewhere and I'm just retarded, or are you mob on a beta list or something??? Gfunk My name was Brian McGee, I stayed up listeni