php-general Digest 14 Apr 2008 18:48:41 -0000 Issue 5404

2008-04-14 Thread php-general-digest-help
php-general Digest 14 Apr 2008 18:48:41 - Issue 5404 Topics (messages 272964 through 272984): Re: SERVER_PORT always at 80 ? 272964 by: Julien Pauli 272965 by: mike 272975 by: Julien Pauli Re: Developing existing java portal in php 272966 by: Sangamesh B

Re: [PHP] Evaluating math without eval()

2008-04-14 Thread Jason Norwood-Young
On Sat, 2008-04-12 at 09:05 -0500, Ray Hauge wrote: you might be able to leverage a call to expr on a bash sell. Just replace the variables you're expecting with preg_replace or some similar function. http://hacktux.com/bashmath

Re: [PHP] SERVER_PORT always at 80 ?

2008-04-14 Thread Julien Pauli
Yes it runs on 5.3 on 81 and 5.2 on 80, both phpinfo() show port 80 Regards, Julien.P 2008/4/11 Thiago Pojda [EMAIL PROTECTED]: {Top posting} What shows your phpinfo() on both ports? Is it really running your 5.3 in :81? Regards, Thiago -Mensagem original- De: Julien

Re: [PHP] SERVER_PORT always at 80 ?

2008-04-14 Thread mike
I would think PHP is just passing through what it receives from Apache. I assume it's just passing through environment variables it gets from the server. Can you disable all the other ports and only have :81 running to ensure there is no confusion? On 4/14/08, Julien Pauli [EMAIL PROTECTED]

Re: [PHP] Developing existing java portal in php

2008-04-14 Thread Sangamesh B
Hi, I know that php is an interpreter, like shell. It won't produce any object or executable file. Now the portal has to be developed such that the php source shouldn't be visible in the product. Means the product should be able to produced in binary format. Is it possible to

Re: [PHP] Quarters -- ERRORS --

2008-04-14 Thread Peter Ford
tedd wrote: Hi gang: Sorry for the lame app, but the program worked for Safari (Mac and Win). However, I did get it to work for FF and a couple of other browsers (Mac and Win), see again: http://webbytedd.com/quarters But the critter is dead in the water for all versions of IE -- if -- I

[PHP] Re: File Upload Security

2008-04-14 Thread Peter Ford
Al wrote: Thanks guys. I had written a newer version restricted to images which checks MIME and image width and height. I have one application which needs a text file. I think I'll have my users hide a password in it and scan the whole file for ? an ?php and other signs of scripts, etc.

Re: [PHP] Quarters -- ERRORS --

2008-04-14 Thread tedd
What you talkin' bout? Document.getElementById() works fine in IE5 and later. There must be some other error. The error was that I was passing the id as an array and not as a string. What's interesting is that only IE's would not accept that mistake. Cheers, tedd -- ---

[PHP] Re: File Upload Security

2008-04-14 Thread Al
I don't pay any attention to MIME sent by the client. I check the MIME returned from getimagesize() and I'm not too certain of it. i need to do further research. I do check the images have width and height and I extract the embedded text stuff. I'm going to look into your suggestion.

Re: [PHP] Writing MySQL Update Query with NULL value

2008-04-14 Thread tedd
At 1:42 PM +1000 4/14/08, Chris wrote: Your query should end up looking like: $query = UPDATE phones set last_name='${last_name}', first_name='${first_name}' ..., suffix=${suffix}; Why not this: $query = UPDATE phones set last_name='$last_name', first_name='$first_name' ...,

Re: [PHP] $_SESSION problem [NOW SOLVED]

2008-04-14 Thread Andrew Ballard
On Fri, Apr 11, 2008 at 5:34 PM, tedd [EMAIL PROTECTED] wrote: At 11:33 AM -0400 4/11/08, Daniel Brown wrote: On Fri, Apr 11, 2008 at 10:29 AM, Ford, Mike [EMAIL PROTECTED] wrote: Sounds like a register_globals=On issue It does to me, as well. I know, Tedd, that on the

Re: [PHP] Writing MySQL Update Query with NULL value

2008-04-14 Thread Daniel Brown
On Sun, Apr 13, 2008 at 10:24 PM, Bill Guion [EMAIL PROTECTED] wrote: However, when I echo out this query, I get: UPDATE 'phones' SET 'last_name' = Doe, 'first_name' = John, 'suffix' = , 'phone' = 123-456-7890 WHERE 'phone_index' = 323; Bill, You're missing quotes around your data,

Re: [PHP] Quarters

2008-04-14 Thread Andrew Ballard
On Fri, Apr 11, 2008 at 11:08 PM, Casey [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 6:49 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the

Re: [PHP] SERVER_PORT always at 80 ?

2008-04-14 Thread Julien Pauli
Ok I did that, but it's the same. HTTP_HOST says myhost:81 , but SERVER_PORT still says 80 Cheers Julien.P 2008/4/14 mike [EMAIL PROTECTED]: I would think PHP is just passing through what it receives from Apache. I assume it's just passing through environment variables it gets from the

[PHP] where to put a function

2008-04-14 Thread Rick Pasotto
Probably been answered a thousand times; if so, just tell me where to look. I have a function that includes a specific sql query that is used on only one page on the site. Should that function be coded (1) in the page itself, (2) in a separate file that only that page includes, or (3) in a master

Re: [PHP] where to put a function

2008-04-14 Thread Nathan Nobbe
On Mon, Apr 14, 2008 at 9:34 AM, Rick Pasotto [EMAIL PROTECTED] wrote: Probably been answered a thousand times; if so, just tell me where to look. I have a function that includes a specific sql query that is used on only one page on the site. Should that function be coded (1) in the page

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Daniel Brown
On Sat, Apr 12, 2008 at 3:13 PM, Al [EMAIL PROTECTED] wrote: I need a simple utility that simulates GREP to find a certain string in any php files on my website. Site is on a shared host w/o shell access so I can't run GREP. I can write a PHP scrip to do it; but, this is a one time thing

Re: [PHP] where to put a function

2008-04-14 Thread Daniel Brown
On Mon, Apr 14, 2008 at 11:34 AM, Rick Pasotto [EMAIL PROTECTED] wrote: Probably been answered a thousand times; if so, just tell me where to look. The archives are always your best friend when searching for specific data. The two best are: http://www.marc.info/

Re: [PHP] standard format for Web portal administration side

2008-04-14 Thread Daniel Brown
On Sat, Apr 12, 2008 at 1:19 PM, Alain Roger [EMAIL PROTECTED] wrote: Hi, I've seen several web portal and their dedicated administration side. some of those administration (portal) are according to w3c standard (1024 px large), but most of them use the full screen width. therefore i

Re: [PHP] where to put a function

2008-04-14 Thread Eric Butera
On Mon, Apr 14, 2008 at 11:34 AM, Rick Pasotto [EMAIL PROTECTED] wrote: I have a function that includes a specific sql query that is used on only one page on the site. Should that function be coded (1) in the page itself, (2) in a separate file that only that page includes, or (3) in a

Re: [PHP] standard format for Web portal administration side

2008-04-14 Thread Richard Heyes
I've seen several web portal and their dedicated administration side. some of those administration (portal) are according to w3c standard (1024 px large), but most of them use the full screen width. therefore i would like to know if there is a standard size (width / height) for web portal

Re: [PHP] Include problems

2008-04-14 Thread Daniel Brown
On Sat, Apr 12, 2008 at 11:06 PM, Bojan Tesanovic [EMAIL PROTECTED] wrote: On Apr 12, 2008, at 8:28 AM, GoWtHaM NaRiSiPaLli wrote: if(file_exists(../common/config.ini)) { $configData = parse_ini_file(../common/config.ini); } else { Try changing above code so it reads

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Philip Thompson
On Mon, Apr 14, 2008 at 12:15 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 3:13 PM, Al [EMAIL PROTECTED] wrote: I need a simple utility that simulates GREP to find a certain string in any php files on my website. Site is on a shared host w/o shell access so I can't

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Daniel Brown
On Mon, Apr 14, 2008 at 2:48 PM, Philip Thompson [EMAIL PROTECTED] wrote: ?php $stringSoMyStatsWillIncrease = I know it's only a demo, but there is a small error. You have this string spit out: Sorry, for this demo, only the word `pilopig` is allowed as a search string. However, in

Re: [PHP] SERVER_PORT always at 80 ?

2008-04-14 Thread mike
you should try Perl or another language. See if you can isolate it to Apache. . Or, you could try to track it down inside of the PHP source and see if for some reason it is hardcoded or incorrectly set. (However, I still think it's from Apache) On 4/14/08, Julien Pauli [EMAIL PROTECTED] wrote:

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Apr 14, 2008 at 2:48 PM, Philip Thompson [EMAIL PROTECTED] wrote: ?php $stringSoMyStatsWillIncrease = I know it's only a demo, but there is a small error. You have this string spit out: Sorry, for this demo, only the word

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Nathan Nobbe
On Mon, Apr 14, 2008 at 12:54 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Apr 14, 2008 at 2:48 PM, Philip Thompson [EMAIL PROTECTED] wrote: ?php $stringSoMyStatsWillIncrease = I know it's only a demo, but there is a small error. You have this string spit out: Sorry,

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Daniel Brown
On Mon, Apr 14, 2008 at 3:07 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: I disabled some of the code tracking until I can stop you fools from flooding the stats! ;-P damn; not after i posted that nice fat class :O I just double-checked, and your code count was included. I put in a

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Daniel Brown
On Mon, Apr 14, 2008 at 3:07 PM, Wolf [EMAIL PROTECTED] wrote: Dang Dan! Between you and Tedd having basic coding/spelling issues, I sure hope it's because you were at the Van Halen Concert!! ;) Tsk, tsk. And to think, your search even came back with the right term, you must have

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Nathan Nobbe
On Mon, Apr 14, 2008 at 1:11 PM, Daniel Brown [EMAIL PROTECTED] wrote: As a result, it was typed in /too much/ haste and as a result, made me look like a moron --- even moreso than normal! However, it also led me to add in a case-insensitive search option. grep -rin is my favorite

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Daniel Brown
On Mon, Apr 14, 2008 at 3:31 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: grep -rin is my favorite :) and --color is the shit too! i wanted to add some more options to mine, but i was trying to prove a point sort-of and get something out the door as quickly as possible, based on OPs

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread tedd
At 3:16 PM -0400 4/14/08, Daniel Brown wrote: ... while I'm on my honeymoon. I probably won't be any higher than fifth place. ;-P On my honeymoon, I couldn't help but place first. ;-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread tedd
At 3:07 PM -0400 4/14/08, Wolf wrote: Between you and Tedd having basic coding/spelling issues, I sure hope it's because you were at the Van Halen Concert!! ;) Tsk, tsk. Just you wait until the next time you post. Tsk, tsk indeed. ;-) Cheers, tedd -- --- http://sperling.com

Re: [PHP] Quarters

2008-04-14 Thread tedd
Really? I was starting to think that the secret was the coins that kept magically reappearing. I gave up. (That was in IE, bearing through the JavaScript error alert boxes.) Andrew Andrew: Try it again: http://webbytedd.com/quarters/ The js errors have been fixed. Cheers, tedd -- ---

Re: [PHP] Quarters

2008-04-14 Thread Andrew Ballard
On Mon, Apr 14, 2008 at 6:34 PM, tedd [EMAIL PROTECTED] wrote: Really? I was starting to think that the secret was the coins that kept magically reappearing. I gave up. (That was in IE, bearing through the JavaScript error alert boxes.) Andrew Andrew: Try it again: