php-general Digest 17 Apr 2009 11:47:52 -0000 Issue 6072

2009-04-17 Thread php-general-digest-help
php-general Digest 17 Apr 2009 11:47:52 - Issue 6072 Topics (messages 291593 through 291612): Re: Need Your Help :) I'm Just About Creating File Uploading Service 291593 by: Michael A. Peters 291594 by: Nitsan Bin-Nun 291595 by: Michael A. Peters cURL Download

RE: [PHP] pup

2009-04-17 Thread ramesh.marimuthu
Many Thanks Jim. Your idea worked. -rummy -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, April 17, 2009 11:13 AM To: Ramesh Marimuthu (WT01 - Telecom Equipment); PHP General List; geek...@gmail.com Subject: Re: [PHP] pup ramesh.marimu...@wipro.com wrote: I'm

Re: [PHP] pup

2009-04-17 Thread Phpster
On Apr 17, 2009, at 1:06, ramesh.marimu...@wipro.com wrote: Thanks Jim. Is there a way to get the value of that unchecked box? -rummy -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, April 17, 2009 10:35 AM To: Ramesh Marimuthu (WT01 - Telecom Equipment)

Re: [PHP] cURL - Error 400

2009-04-17 Thread haliphax
On Thu, Apr 16, 2009 at 11:41 PM, David quick.webmas...@gmail.com wrote: Hi, Sorry, that didn't work. The website is still returning error 400 with CURLOPT_COOKIESESSION and CURLOPT_COOKIE enabled. I did some experimentation in Firefox by blocking and deleting all cookies from the site.

Re: [PHP] pup

2009-04-17 Thread Alpár Török
2009/4/17 German Geek geek...@gmail.com: From What i learned, yes you can write pup here. Does anyone print this mailing list? wtf?? i keep overestimating people's intelligence, im sorry! Tim-Hinnerk Heuer It would be interested to see how many times the Earth can be covered or surrounded,

Re: [PHP] cURL - Error 400

2009-04-17 Thread David
On Fri, Apr 17, 2009 at 8:20 PM, haliphax halip...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:41 PM, David quick.webmas...@gmail.com wrote: Hi, Sorry, that didn't work. The website is still returning error 400 with CURLOPT_COOKIESESSION and CURLOPT_COOKIE enabled. I did some

Re: [PHP] cURL - Error 400

2009-04-17 Thread Andrew Ballard
On Fri, Apr 17, 2009 at 12:41 AM, David quick.webmas...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:48 PM, haliphax halip...@gmail.com wrote: On Wed, Apr 15, 2009 at 9:17 PM, David quick.webmas...@gmail.com wrote: Except I also need to POST data to the server to login. After I've logged in,

Re: [PHP] cURL - Error 400

2009-04-17 Thread David
On Fri, Apr 17, 2009 at 8:55 PM, Andrew Ballard aball...@gmail.com wrote: On Fri, Apr 17, 2009 at 12:41 AM, David quick.webmas...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:48 PM, haliphax halip...@gmail.com wrote: On Wed, Apr 15, 2009 at 9:17 PM, David quick.webmas...@gmail.com wrote:

RE: [PHP] extract varying data from array with different formatting

2009-04-17 Thread Ford, Mike
On 14 April 2009 18:12, PJ advised: Jim Lucas wrote: PJ wrote: Jim Lucas wrote: PJ wrote: foreach does a nice job if you want the results identical each time. What can you use to change the formatting of the results dependent on the number of results. Here's an example: foreach (

[PHP] PHP/MYSQL/ Encrypting Sensetive information

2009-04-17 Thread Russell Jones
We are looking at a project where we will potentially need to store sensetive information in a few fields of a MySQL table. Any recommendations on where to look for best practices in doing this? for encrypting the data, etc.? We will need to be able to decrypt the data as well, although this can

Re: [PHP] PHP/MYSQL/ Encrypting Sensetive information

2009-04-17 Thread tedd
At 10:00 AM -0400 4/17/09, Russell Jones wrote: We are looking at a project where we will potentially need to store sensetive information in a few fields of a MySQL table. Any recommendations on where to look for best practices in doing this? for encrypting the data, etc.? We will need to be

Re: [PHP] PHP/MYSQL/ Encrypting Sensetive information

2009-04-17 Thread דניאל דנון
If its by a user-basis, something that can be a bit risky but possible - You can encrypt it, password is hashed on database, and the key to the other data is the un-encrypted password.. On Fri, Apr 17, 2009 at 5:00 PM, Russell Jones rjon...@gmail.com wrote: We are looking at a project where we

Re: [PHP] pup

2009-04-17 Thread tedd
At 10:43 PM -0700 4/16/09, Jim Lucas wrote: Have your elements setup like such: input type=checkbox name=reserve[rm1] value=yes / Room #1 input type=checkbox name=reserve[rm2] value=yes / Room #2 input type=checkbox name=reserve[rm3] value=yes / Room #3 input type=checkbox name=reserve[rm4]

[PHP] Let me google that for you.

2009-04-17 Thread Gary
I would like to create a script that would fill in the search box for the Let Me Google That For You. If you are not familiar with it, click this link http://lmgtfy.com/?q=search+php+forum Thanks for your help. Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Let me google that for you.

2009-04-17 Thread Daniel Brown
On Fri, Apr 17, 2009 at 10:18, Gary gwp...@ptd.net wrote: I would like to create a script that would fill in the search box for the Let Me Google That For You. That's fantastic! Thanks for letting us know. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net

Re: [PHP] PHP/MYSQL/ Encrypting Sensetive information

2009-04-17 Thread Stefan Langwald
MySQLs own Function AES_(EN|DE)CRYPT is pretty cool for this case. -- Stefan Langwald 2009/4/17 דניאל דנון danondan...@gmail.com: If its by a user-basis, something that can be a bit risky but possible - You can encrypt it, password is hashed on database, and the key to the other data is the

Re: [PHP] Let me google that for you.

2009-04-17 Thread Gary
Your welcome, would you know how to create the script to incorporate it on a page? Daniel Brown danbr...@php.net wrote in message news:ab5568160904170815u75a93e44x26478dc66134a...@mail.gmail.com... On Fri, Apr 17, 2009 at 10:18, Gary gwp...@ptd.net wrote: I would like to create a script that

Re: [PHP] PHP/MYSQL/ Encrypting Sensetive information

2009-04-17 Thread Bastien Koert
On Fri, Apr 17, 2009 at 10:15 AM, דניאל דנון danondan...@gmail.com wrote: If its by a user-basis, something that can be a bit risky but possible - You can encrypt it, password is hashed on database, and the key to the other data is the un-encrypted password.. On Fri, Apr 17, 2009 at 5:00

Re: [PHP] Let me google that for you.

2009-04-17 Thread Bastien Koert
On Fri, Apr 17, 2009 at 11:19 AM, Gary gwp...@ptd.net wrote: Your welcome, would you know how to create the script to incorporate it on a page? Daniel Brown danbr...@php.net wrote in message news:ab5568160904170815u75a93e44x26478dc66134a...@mail.gmail.com... On Fri, Apr 17, 2009 at

[PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Adam Williams
I have the code: $mysqli_get_support_types = Select types from support_types order by types; $mysqli_get_support_types_result = mysqli_query($mysqli,$mysqli_get_support_types) or die(mysqli_error($mysqli)); while (mysqli_fetch_array($mysqli_get_support_types_result)) { echo

Re: [PHP] Let me google that for you.

2009-04-17 Thread Daniel Brown
On Fri, Apr 17, 2009 at 11:19, Gary gwp...@ptd.net wrote: Your welcome, would you know how to create the script to incorporate it on a page? Yeah, but it's JavaScript and HTML (DHTML), not PHP. Daniel Brown danbr...@php.net wrote in message

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Bastien Koert
On Fri, Apr 17, 2009 at 11:41 AM, Adam Williams awill...@mdah.state.ms.uswrote: I have the code: $mysqli_get_support_types = Select types from support_types order by types; $mysqli_get_support_types_result = mysqli_query($mysqli,$mysqli_get_support_types) or die(mysqli_error($mysqli));

Re: [PHP] cURL Download

2009-04-17 Thread Yannick Mortier
2009/4/17 Robbert van Andel robb...@vafam.com: I've been struggling to download a file from a network file share using cURL, or whatever else will work.   All I want to do is get the contents of a text file.  But when I run the code below I get this error Error: 37 - Couldn't open file

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Shawn McKenzie
Bastien Koert wrote: On Fri, Apr 17, 2009 at 11:41 AM, Adam Williams awill...@mdah.state.ms.uswrote: I have the code: $mysqli_get_support_types = Select types from support_types order by types; $mysqli_get_support_types_result = mysqli_query($mysqli,$mysqli_get_support_types) or

Re: [PHP] Let me google that for you.

2009-04-17 Thread Gary
I was thinking that you create a form with one input box, which would insert into the search box for the lmgtfy link. One of the questions I have is how would I convert or insert a + sign in between the search words. For example, if I created the input, someone insert search, php, forum, how

[PHP] What am I doing wrong?

2009-04-17 Thread David Stoltz
I can't seem to understand PHP error trapping...I have it turned on in php.ini, and on the page in question, I have error_reporting(E_ALL); on the page in question below - the following code does NOT generate any errors, but it doesn't perform the insert eitherthe stored procedure exists, but

RE: [PHP] Let me google that for you.

2009-04-17 Thread Jay Blanchard
[snip] I was thinking that you create a form with one input box, which would insert into the search box for the lmgtfy link. One of the questions I have is how would I convert or insert a + sign in between the search words. For example, if I created the input, someone insert search, php,

RE: [PHP] What am I doing wrong?

2009-04-17 Thread Jay Blanchard
[snip] I can't seem to understand PHP error trapping...I have it turned on in php.ini, and on the page in question, I have error_reporting(E_ALL); on the page in question below - the following code does NOT generate any errors, but it doesn't perform the insert eitherthe stored procedure

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Adam Williams
Shawn McKenzie wrote: No. How about: while ($row = mysqli_fetch_array($mysqli_get_support_types_result)) { echo option.$row['types']; } thanks, now that you provided that, I see that I left out the $row variable! -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Let me google that for you.

2009-04-17 Thread Jay Blanchard
[snip] That's fantastic! Thanks for letting us know. [/snip] Daniel is now channeling me. Please go on about your business. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Let me google that for you.

2009-04-17 Thread Tom Chubb
2009/4/17 Jay Blanchard jblanch...@pocket.com [snip] I was thinking that you create a form with one input box, which would insert into the search box for the lmgtfy link. One of the questions I have is how would I convert or insert a + sign in between the search words. For example, if I

RE: [PHP] What am I doing wrong?

2009-04-17 Thread David Stoltz
Thanks - actually, as I just figured out, there were PHP errors, but I never saw them because of the redirection header at the end... If I comment that out, I see that I didn't have execute permissions on the SP Thanks for the help! -Original Message- From: Jay Blanchard

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Shawn McKenzie
Adam Williams wrote: Shawn McKenzie wrote: No. How about: while ($row = mysqli_fetch_array($mysqli_get_support_types_result)) { echo option.$row['types']; } thanks, now that you provided that, I see that I left out the $row variable! And for the

Re: [PHP] Let me google that for you.

2009-04-17 Thread tedd
At 5:19 PM +0100 4/17/09, Tom Chubb wrote: Shouldn't that be: http://lmgtfy.com/?q=php+function.str-replace.php ;) I don't care what anybody says Now that's funny! But what I would like to know is how you did that? That's mondo cool! No hidden meaning, I would like really to know how you

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread 9el
On Fri, Apr 17, 2009 at 10:23 PM, Shawn McKenzie nos...@mckenzies.netwrote: Adam Williams wrote: Shawn McKenzie wrote: No. How about: while ($row = mysqli_fetch_array($mysqli_get_support_types_result)) { echo option.$row['types']; } thanks, now that

Re: [PHP] Let me google that for you.

2009-04-17 Thread tedd
At 12:41 PM -0400 4/17/09, tedd wrote: At 5:19 PM +0100 4/17/09, Tom Chubb wrote: Shouldn't that be: http://lmgtfy.com/?q=php+function.str-replace.php ;) I don't care what anybody says Now that's funny! But what I would like to know is how you did that? That's mondo cool! No hidden

RE: [PHP] Let me google that for you.

2009-04-17 Thread Bob McConnell
From: tedd At 5:19 PM +0100 4/17/09, Tom Chubb wrote: Shouldn't that be: http://lmgtfy.com/?q=php+function.str-replace.php ;) I don't care what anybody says Now that's funny! But what I would like to know is how you did that? That's mondo cool! No hidden meaning, I would like really

[PHP] Select List/Menu

2009-04-17 Thread David Stoltz
If I allow multiple selections in a MENU LIST, in VBSCRIPT it comes through with each selection being separated by a comma, in the same variable...ie.: myVal = request(mySelectmenu) myVal could equal - selection 1, selection 2, selection 3 But in PHP, I capture it as: $mySelectMenu =

RE: [PHP] pup

2009-04-17 Thread Bob McConnell
From: tedd At 10:43 PM -0700 4/16/09, Jim Lucas wrote: Have your elements setup like such: input type=checkbox name=reserve[rm1] value=yes / Room #1 input type=checkbox name=reserve[rm2] value=yes / Room #2 input type=checkbox name=reserve[rm3] value=yes / Room #3 input type=checkbox

Re: [PHP] Select List/Menu

2009-04-17 Thread Richard Heyes
in VBSCRIPT In what? Use [] at the end of your selects name: select name=mySelect[] ... /select -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated April 11th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Let me google that for you.

2009-04-17 Thread Gary
I cant take any credit for it, but happy to hear you like it. I have gotten the page to open, but not able to insert any search words into it... Gary tedd tedd.sperl...@gmail.com wrote in message news:p0624080cc60e5ebdf...@[192.168.1.101]... At 5:19 PM +0100 4/17/09, Tom Chubb wrote:

RE: [PHP] Let me google that for you.

2009-04-17 Thread Jay Blanchard
[snip] I have gotten the page to open, but not able to insert any search words into it... [/snip] http://www.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Let me google that for you.

2009-04-17 Thread 9el
If you play with jQuery its easy. And if you talk about JavaScript's urlencode functionality you wont ask about 'how to remove the + sign' I'm not very good yet on jQuery or else I would have shown you the codes.

Re: [PHP] PHP/MYSQL/ Encrypting Sensetive information

2009-04-17 Thread Philip Thompson
On Apr 17, 2009, at 10:17 AM, Stefan Langwald wrote: MySQLs own Function AES_(EN|DE)CRYPT is pretty cool for this case. -- Stefan Langwald We use MySQL's AES_(EN|DE)CRYPT. It's fast, easy to use and uses 128 bit encryption (optionally 256).

RE: [PHP] pup

2009-04-17 Thread Ashley Sheridan
On Fri, 2009-04-17 at 12:54 -0400, Bob McConnell wrote: From: tedd At 10:43 PM -0700 4/16/09, Jim Lucas wrote: Have your elements setup like such: input type=checkbox name=reserve[rm1] value=yes / Room #1 input type=checkbox name=reserve[rm2] value=yes / Room #2 input type=checkbox

[PHP] Setting Up A Directory For HTTPS Secure Certificate

2009-04-17 Thread revDAVE
I'm setting up a directory for HTTPS: secure certificate which in the past was just http: - I purchased a secure certificate which will be activated soon... Q: Do I simply redirect any links that previously went to : relative links: /thisfolder/file.htm now to the absolute reference:

[PHP] pronlem with yum update and oci8

2009-04-17 Thread Fred Silsbee
Fedora 9 (1) all programs using oci8 working 100% (2) oci8 NOT installed using yum yumex not showing any reference to oci8 php-pear installed using yumex(yum) (3) yum update errors below Loaded plugins: refresh-packagekit Setting up Update Process Resolving Dependencies

[PHP] Re: pronlem with yum update and oci8

2009-04-17 Thread Shawn McKenzie
Fred Silsbee wrote: Fedora 9 (1) all programs using oci8 working 100% (2) oci8 NOT installed using yum yumex not showing any reference to oci8 php-pear installed using yumex(yum) (3) yum update errors below Loaded plugins: refresh-packagekit Setting up Update Process

Re: [PHP] Setting Up A Directory For HTTPS Secure Certificate

2009-04-17 Thread revDAVE
GOAL : no one will be able to get to HTTPS directory VIA HTTP. So I make this little tester page that seems to work Later I'll add auto redirect Is this the kind of thing to add to various pages? Is there a better way to do this? ?php if ($_SERVER['HTTPS'] == 'on') { } else { ? a

Re: [PHP] Setting Up A Directory For HTTPS Secure Certificate

2009-04-17 Thread Michael A. Peters
revDAVE wrote: GOAL : no one will be able to get to HTTPS directory VIA HTTP. So I make this little tester page that seems to work Later I'll add auto redirect Is this the kind of thing to add to various pages? Is there a better way to do this? I do a separate document root for