php-general Digest 1 Jun 2007 12:25:25 -0000 Issue 4823

2007-06-01 Thread php-general-digest-help
php-general Digest 1 Jun 2007 12:25:25 - Issue 4823 Topics (messages 255937 through 255964): Re: Removing PHPSESSID - CGI Install 255937 by: Richard Lynch Re: uploading really big files 255938 by: Richard Lynch Re: local v remote 255939 by: Richard Lynch

[PHP] Strange Warning, PHP sessions

2007-06-01 Thread Sachin mahajan
Can anyone clarify this.. ?php /* Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this

[PHP] PCRE Error/Issue...

2007-06-01 Thread bruce
Hi... Trying to install/test a php app, and I get the following error'/issue... Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support... I'm not sure if this is an OS issue, a PHP issue, or from the app. I'd prefer to not have to build php from source/scratch, as I

Re: [PHP] ZIP it :o)

2007-06-01 Thread Tijnema
On 6/1/07, Chris [EMAIL PROTECTED] wrote: Auto-Deppe, C. Haensel wrote: Morning guys, I have been trying to find an easy to use way to zip an archive on a linux box running PHP5. Now I've tried the zip-lib.php and others, but they always throw an error msg But that is not the question.

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Chris
blueboy wrote: May be a stupid question but can I link to images with doscument root $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; echo img src=\$img_url\ width=\250\ height=\163\/; An image source is the URL to that image. The server document root is the local location of that

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Shafiq Rehman
Hi, You cannot use document_root to get the paths for images. You can write a function to get the images url in your application. function imageServer() { return /images/; } -- Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300 423 9385 On 6/1/07, Chris [EMAIL

Re: [PHP] ZIP it :o)

2007-06-01 Thread Auto-Deppe, C. Haensel
Hi guys, thanks to Jim, I made it :o) Here's the source I'm using for testing now... it works. I just need to make it less vulnerable ;o) - SNIP - ? $nr = $_GET['nr']; if(eregi(../, $nr)) { die(Hier wird nicht rumgehackt); } $directory = '_kfz_images/'.$nr.'/full/'; $dir =

[PHP] linking to an image with document_root

2007-06-01 Thread blueboy
May be a stupid question but can I link to images with doscument root $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; echo img src=\$img_url\ width=\250\ height=\163\/; I am certain the path is correct, If not what are my alternatives? R. -- PHP General Mailing List

Re: [PHP] linking to an image with document_root

2007-06-01 Thread clive
blueboy wrote: May be a stupid question but can I link to images with doscument root there are no stupid questions, only stupid answers. $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; no you cant; do this in a script on your server: echo pre; print_r($_SERVER); and have look

[PHP] Re: [SPAM] Re: [PHP] Attempting to search a MySQL database from PHP not working

2007-06-01 Thread Jason Pruim
On May 31, 2007, at 5:43 PM, Richard Lynch wrote: On Thu, May 31, 2007 2:25 pm, Jason Pruim wrote: Hi Everyone, I am attempting to setup a search field on a database application I'm dinking around with and running into problems that I'm hoping someone might be able to shed some light on.

Re: [PHP] uploading really big files

2007-06-01 Thread clive
Angelo Zanetti wrote: Dear all We need to develop a system where we can upload really big files. IE 15 - 25 Mb. I know its not a php answer, but if you have ever uploaded a file with facebook then you will have seen the little applet they push down to your browser, perhaps investigating

Re: [PHP] uploading really big files

2007-06-01 Thread Angelo Zanetti
clive wrote: Angelo Zanetti wrote: Dear all We need to develop a system where we can upload really big files. IE 15 - 25 Mb. I know its not a php answer, but if you have ever uploaded a file with facebook then you will have seen the little applet they push down to your browser, perhaps

[PHP] Re: linking to an image with document_root

2007-06-01 Thread zerof
blueboy escreveu: May be a stupid question but can I link to images with doscument root $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; echo img src=\$img_url\ width=\250\ height=\163\/; I am certain the path is correct, If not what are my alternatives? R. -- I

Re: [PHP] ZIP it :o)

2007-06-01 Thread Jim Lucas
Auto-Deppe, C. Haensel wrote: Hi guys, thanks to Jim, I made it :o) Here's the source I'm using for testing now... it works. I just need to make it less vulnerable ;o) - SNIP - ? $nr = $_GET['nr']; if(eregi(../, $nr)) { die(Hier wird nicht rumgehackt); } $directory =

Re: [PHP] ini_set() security question

2007-06-01 Thread Samuel Vogel
I just tried it with php 5.2.3. Same behavior! Do you agree that overwriting the value shouldn't be possible with ini_set() ? I will file a bug report! Richard Lynch schrieb: File a bug report then, and see what happens... But you may want to test with most recent versions if you are not

Re: [PHP] ZIP it :o)

2007-06-01 Thread Tijnema
On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote: Auto-Deppe, C. Haensel wrote: Hi guys, thanks to Jim, I made it :o) Here's the source I'm using for testing now... it works. I just need to make it less vulnerable ;o) - SNIP - ? $nr = $_GET['nr']; if(eregi(../, $nr)) { die(Hier

Re: [PHP] ZIP it :o)

2007-06-01 Thread Jim Lucas
Tijnema wrote: On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote: Auto-Deppe, C. Haensel wrote: Hi guys, thanks to Jim, I made it :o) Here's the source I'm using for testing now... it works. I just need to make it less vulnerable ;o) - SNIP - ? $nr = $_GET['nr']; if(eregi(../,

Re: [PHP] ZIP it :o)

2007-06-01 Thread Tijnema
On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote: Tijnema wrote: On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote: Auto-Deppe, C. Haensel wrote: Hi guys, thanks to Jim, I made it :o) Here's the source I'm using for testing now... it works. I just need to make it less vulnerable ;o) -

Re: [PHP] ini_set() security question

2007-06-01 Thread Tijnema
On 6/1/07, Samuel Vogel [EMAIL PROTECTED] wrote: I just tried it with php 5.2.3. Same behavior! Do you agree that overwriting the value shouldn't be possible with ini_set() ? I will file a bug report! I don't think it should be allowed. A comment from the ini_set page [1]: If you set

Re: [PHP] checkboxes problem

2007-06-01 Thread Roberto Mansfield
Richard Lynch wrote: On Wed, May 30, 2007 3:59 am, blueboy wrote: Hi, I have a checkbox array (about 20 lines) input name=\box\ type=\checkbox\ value=\$id\ input name=\box\ type=\checkbox\ value=\$id\ input name=\box\ type=\checkbox\ value=\$id\ I do some client side checking with

Re: [PHP] ini_set() security question

2007-06-01 Thread Samuel Vogel
I don't think it should be allowed. A comment from the ini_set page [1]: If you set something using php_admin_value in httpd.conf it is then not possible to be set the value at runtime, even if it's NOT PHP_INI_SYSTEM. So, I guess it must be a bug. Tijnema [1]

Re: [PHP] ZIP it :o)

2007-06-01 Thread Jim Lucas
Tijnema wrote: On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote: Tijnema wrote: On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote: Auto-Deppe, C. Haensel wrote: Hi guys, thanks to Jim, I made it :o) Here's the source I'm using for testing now... it works. I just need to make it less vulnerable

[PHP] How can I DomDocument-renameNode?

2007-06-01 Thread Eric Wiener
Apparently renameNode is not yet implemented into Dom, so how can I rename a node without affecting its value and/or child nodes? I have tried making a new node, inserting it before the old node then removing the old node but I could not figure out how to get the nodeValue to include the child

[PHP] Orphan functions?

2007-06-01 Thread Al
Does anyone have a utility or technique to find orphan functions? I keep my functions together in an include file and occasionally create orphans when I change the main code stream so that they are no longer used. It would be nice to be able parse all the functions in an include file to make

Re: [PHP] Orphan functions?

2007-06-01 Thread Robert Cummings
On Fri, 2007-06-01 at 14:15 -0400, Al wrote: Does anyone have a utility or technique to find orphan functions? I keep my functions together in an include file and occasionally create orphans when I change the main code stream so that they are no longer used. It would be nice to be able

Re: [PHP] Orphan functions?

2007-06-01 Thread Al
I appreciate the response and looked at the tokenizer doc; but, I'm missing your point. Are you implying I should write a Tokenizer Function to do the job? Al. Robert Cummings wrote: On Fri, 2007-06-01 at 14:15 -0400, Al wrote: Does anyone have a utility or technique to find orphan

Re: [PHP] Orphan functions?

2007-06-01 Thread Robert Cummings
On Fri, 2007-06-01 at 14:40 -0400, Al wrote: I appreciate the response and looked at the tokenizer doc; but, I'm missing your point. Are you implying I should write a Tokenizer Function to do the job? Nope, tokenizer function already exists. I'm suggesting it wouldn't be too hard to write a

Re: [PHP] Orphan functions?

2007-06-01 Thread Al
I gotcha now. I misspoke about writing a tokenizer function, I understood that it would be a script. That's for the suggestion. Though, I was hoping to avoid reinventing something that already exists. Robert Cummings wrote: On Fri, 2007-06-01 at 14:40 -0400, Al wrote: I appreciate the

Re: [PHP] Orphan functions?

2007-06-01 Thread Marc Weber
On Fri, Jun 01, 2007 at 03:01:48PM -0400, Al wrote: I gotcha now. I misspoke about writing a tokenizer function, I understood that it would be a script. That's for the suggestion. Though, I was hoping to avoid reinventing something that already exists. There is another alternative. If

[PHP] oem to ansi charset encoding!.

2007-06-01 Thread Fernando Viadero
Hello.- i have some trouble. i need to convert some string encoded in oem charset to ansi php ;-) could someone help me! thanks in advance! Fernando -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] oem to ansi charset encoding!.

2007-06-01 Thread Jim Lucas
Fernando Viadero wrote: Hello.- i have some trouble. i need to convert some string encoded in oem charset to ansi php ;-) could someone help me! thanks in advance! Fernando sorry, finger stuck on CTRL key :) Here is the link -- Jim Lucas Some men are born to

Re: [PHP] oem to ansi charset encoding!.

2007-06-01 Thread Jim Lucas
Fernando Viadero wrote: Hello.- i have some trouble. i need to convert some string encoded in oem charset to ansi php ;-) could someone help me! thanks in advance! Fernando http://us2.php.net/manual/en/function.iconv.php -- Jim Lucas Some men are born to greatness, some

Re: [PHP] oem to ansi charset encoding!.

2007-06-01 Thread Jim Lucas
Fernando Viadero wrote: Hello.- i have some trouble. i need to convert some string encoded in oem charset to ansi php ;-) could someone help me! thanks in advance! Fernando man what a bad day :( -- Jim Lucas Some men are born to greatness, some achieve greatness,

Re: [PHP] oem to ansi charset encoding!.

2007-06-01 Thread Jim Lucas
Fernando Viadero wrote: Hello.- i have some trouble. i need to convert some string encoded in oem charset to ansi php ;-) could someone help me! thanks in advance! Fernando Check out I see a number of examples on this page that might lead you down the road to

Re: [PHP] oem to ansi charset encoding!.

2007-06-01 Thread Jim Lucas
Fernando Viadero wrote: Hello.- i have some trouble. i need to convert some string encoded in oem charset to ansi php ;-) could someone help me! thanks in advance! Fernando BTW - please don't hi-jack someone else's thread, please start your own -- Jim Lucas Some men are

Re: [PHP] ini_set() security question

2007-06-01 Thread Richard Lynch
*I* agree, but my agreement don't mean much... :-v On Fri, June 1, 2007 10:13 am, Samuel Vogel wrote: I just tried it with php 5.2.3. Same behavior! Do you agree that overwriting the value shouldn't be possible with ini_set() ? I will file a bug report! Richard Lynch schrieb: File a bug

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Richard Lynch
On Fri, June 1, 2007 3:16 am, blueboy wrote: May be a stupid question but can I link to images with doscument root $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; echo img src=\$img_url\ width=\250\ height=\163\/; I am certain the path is correct, If not what are my

Re: [PHP] Strange Warning, PHP sessions

2007-06-01 Thread Richard Lynch
$arr is coming out of nowhere, out of clean thin air... That's the direct cause of the error message. Your OTHER problem is that blindly shoving all POST data into your SESSION is almost certainly a Bad Idea... On Fri, June 1, 2007 2:15 am, Sachin mahajan wrote: Can anyone clarify this..

Re: [PHP] ZIP it :o)

2007-06-01 Thread Richard Lynch
On Fri, June 1, 2007 12:30 am, Auto-Deppe, C. Haensel wrote: Morning guys, I have been trying to find an easy to use way to zip an archive on a linux box running PHP5. Now I've tried the zip-lib.php and others, but they always throw an error msg But that is not the question. I am

Re: [PHP] ZIP it :o)

2007-06-01 Thread Richard Lynch
On a busy server, with many many users, it is remotely possible that your time() call will not be unique, and 2 users will end up corrupting each others' zip files... PHP has built-in functions for making temp files with unique names. Use them. On Fri, June 1, 2007 2:32 am, Auto-Deppe, C.

Re: [PHP] Re: Re: Re: Re: preg_match() returns false but no documentation why

2007-06-01 Thread Richard Lynch
On Thu, May 31, 2007 9:31 pm, Stut wrote: Richard Lynch wrote: On Thu, May 31, 2007 7:26 am, Jared Farrish wrote: That's what the 'period' is called in British English. http://google.ca/search?q=define%3Afull+stop In English syntax period and full stop are synonymous, and the RegEx manual

Re: [PHP] using mysql_escape_string with implode() !!

2007-06-01 Thread Richard Lynch
Seems to me you'd be better off then writing code to handle all of these, with is_array() doing the walk, and erroring out for Object and Resource Actually, an object should get type-casted to a string, and there's even that nifty thing in PHP 5 where you can control what string it gets changed

RE: [PHP] Re: find (matching) person in other table

2007-06-01 Thread Richard Lynch
I dunno. I somehow thought HAVING needed a GROUP BY or somesuch... Go ask the SQL guys or try it and find out. :-) I pretty much just dink with the SQL until it works, myself... :-) On Thu, May 31, 2007 6:03 pm, Daevid Vincent wrote: Jumping in late so forgive if I'm mistaken, but can't you

Re: [PHP] linking to an image with document_root

2007-06-01 Thread chris smith
On 6/2/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, June 1, 2007 3:16 am, blueboy wrote: May be a stupid question but can I link to images with doscument root $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; echo img src=\$img_url\ width=\250\ height=\163\/; I am certain

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Tom Rogers
Hi, Friday, June 1, 2007, 6:16:34 PM, you wrote: b May be a stupid question but can I link to images with doscument root b $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; b echo img src=\$img_url\ width=\250\ height=\163\/; b I am certain the path is correct, b If not what are my

[PHP] Cant set info in DB...HELP

2007-06-01 Thread kvigor
Hello, I'm using phpMyAdmin and I can't get any of my form data into the database. It returns message: MySQL returned an empty result set w/in phpMyAdmin GUI. However I get no errors on screen when form info is submitted. What I have done to solve issue: drop DB and create new. Review form

Re: [PHP] Cant set info in DB...HELP

2007-06-01 Thread Stut
kvigor wrote: $insert_query = INSERT INTO contestants (conName, conAddress, conCity, conState, conZip, conPhone, schName, schAddress, schCity, schState, schZip, strName, strCity, strState) VALUES('$regName', '$regAddress', '$regCity', '$regState', '$regZip', '$regPhone', '$sclName',