php-general Digest 28 Jan 2006 20:47:26 -0000 Issue 3932

2006-01-28 Thread php-general-digest-help
php-general Digest 28 Jan 2006 20:47:26 - Issue 3932 Topics (messages 229393 through 229406): ID vs NAME in different browsers 229393 by: Niels 229401 by: Jason Petersen 229404 by: Niels 229405 by: David Hall Re: Apache is not parsing .php files

[PHP] ID vs NAME in different browsers

2006-01-28 Thread Niels
Hi, when making an input field for submission from a form, I need to put a name='something' in it. For CSS I often use an id='something'. Some browsers apparently submit the field properly if name is missing and id is present. Others might not. Can anyone tell me about what browsers do what?

Re: [PHP] Apache is not parsing .php files

2006-01-28 Thread sanjay
Thanks for the help. Yeah problem was with php.ini file. Entry for memory limit is 12MB in the file actually it should read 12M (not 12MB). sanjay www.apptility.com Richard Lynch wrote: On Thu, January 26, 2006 2:19 pm, sanjay wrote: I have a strange problem while trying to run php

Re: [PHP] Please help with apache 2

2006-01-28 Thread PHP
Hi, Thanks, putting the addtype in the directory section seems to have solved the problem. - Original Message - From: Dan Trainor [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, January 27, 2006 6:09 PM Subject: Re: [PHP] Please help with apache 2 PHP wrote: Help, I

Re: [PHP] A black thumbnail.

2006-01-28 Thread tedd
Hi again: I said: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. --- -philip said: imagecreatefromjpeg takes a *filename* not the actual contents of the file itself. Yes, you are correct that in the statement: $image = imagecreatefromjpeg($fileContent);

Re: [PHP] A black thumbnail.

2006-01-28 Thread tedd
Hi again: I said: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. --- Richard said: Dynamic Thumbnail generation: http://www.weberdev.com/ViewArticle-388.htmlhttp://www.weberdev.com/ViewArticle-388.html Yes, that's for generating a thumbnail from a file -- but

Re: [PHP] A black thumbnail.

2006-01-28 Thread tedd
Hi again: I said: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. --- berber said: Check out this article : http://www.weberdev.com/ViewArticle-3.html This article is for uploading, storing and displaying images from mySQL, but no thumbnail. Any ideas?

[PHP] A black thumbnail. (Solved)

2006-01-28 Thread tedd
Hi: The following works for me. It takes an image from mySQL (which is stored as a string, duh!) and creates a thumbnail on the fly. Many thanks for your ideas -- you made me think. tedd code $dbQuery = SELECT image_type, image, image_width, image_height ; $dbQuery .= FROM pictures ;

[PHP] query regarding forms

2006-01-28 Thread suresh kumar
hi, i am having 3 files Login.php,home.php and home1.php when i entered username and passwd in my first login page i want want i entered as username and passwd in my third page ie home1.php. A.suresh

Re: [PHP] ID vs NAME in different browsers

2006-01-28 Thread Jason Petersen
On 1/28/06, Niels [EMAIL PROTECTED] wrote: when making an input field for submission from a form, I need to put a name='something' in it. For CSS I often use an id='something'. Some browsers apparently submit the field properly if name is missing and id is present. Others might not. Can anyone

Re: [PHP] absolute vs relative path?

2006-01-28 Thread Jason Petersen
On 1/25/06, William Stokes [EMAIL PROTECTED] wrote: I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without modification. The cleanest solution is to use relative paths so that your site will work regardless of

Re: [PHP] ID vs NAME in different browsers

2006-01-28 Thread Niels
On Saturday 28 January 2006 16:47, Jason Petersen wrote: HTML Forms should always use the NAME attribute to pass values, never ID. You can use print_r($_REQUEST); at the top of your script to debug. Thank you for your answer. W3C says: [http://www.w3.org/TR/html4/interact/forms.html] name

RE: [PHP] A black thumbnail.

2006-01-28 Thread Weber Sites LTD
I don't see any article / example that takes care of it all and also shows a thumb :) So the previous article shoed everything but the thumb, try this one for the thumb : http://www.weberdev.com/ViewArticle-388.html berber -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] ID vs NAME in different browsers

2006-01-28 Thread David Hall
Niels wrote: name = cdata [CI] This attribute names the element so that it may be referred to from style sheets or scripts. Note. This attribute has been included for backwards compatibility. Applications should use the id attribute to identify elements. Uh, sorry to disappoint, but that's

Re: [PHP] query regarding forms

2006-01-28 Thread Miles Thompson
At 11:20 AM 1/28/2006, suresh kumar wrote: hi, i am having 3 files Login.php,home.php and home1.php when i entered username and passwd in my first login page i want want i entered as username and passwd in my third page ie home1.php. A.suresh

Re: [PHP] ID vs NAME in different browsers

2006-01-28 Thread Niels
On Saturday 28 January 2006 18:20, David Hall wrote: Uh, sorry to disappoint, but that's a description of the form element, not of the input element or select input. Right. In fact, if you go to http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4.2 , you will see that

Re: [PHP] questions regarding PHP and Forms

2006-01-28 Thread Paul Goepfert
Thanks for the help everyone. I have decided to use javascript to deal with my second problem. I understand that this is not a JavaScript fourm but I am having some trouble getting my JS function to work correctly. Here is my JS code. function getEquipment () { var mylist =

[PHP] pcntl functions and database

2006-01-28 Thread chris smith
Hi all, I'm trying to work out threaded apps and I'm trying to use the pcntl functions. I can get it working ok without using a database but when I plug the database in I get 'lost connection during query' errors. Does anyone have any suggestions or a working example ? Thanks! My code: ?php

Re: [PHP] questions regarding PHP and Forms

2006-01-28 Thread Miles Thompson
At 05:39 PM 1/28/2006, Paul Goepfert wrote: Thanks for the help everyone. I have decided to use javascript to deal with my second problem. I understand that this is not a JavaScript fourm but I am having some trouble getting my JS function to work correctly. Here is my JS code. function

Re: [PHP] pcntl functions and database

2006-01-28 Thread Kevin Kinsey
chris smith wrote: Hi all, I'm trying to work out threaded apps and I'm trying to use the pcntl functions. I can get it working ok without using a database but when I plug the database in I get 'lost connection during query' errors. Does anyone have any suggestions or a working example ?

Re: [PHP] questions regarding PHP and Forms

2006-01-28 Thread chris smith
Hi, I missed the start of the thread but it may be because you have a space in rowing machine for the option. Try rowing_machine or rowingmachine and see what happens. (check your javascript console - in firefox type 'javascript:' in the address bar without the quotes). On 1/29/06, Miles

Re: [PHP] pcntl functions and database

2006-01-28 Thread chris smith
Hi Kevin, Thanks for testing it. I got the same when I was using postgresql for the database so I thought I was doing something wrong. On 1/29/06, Kevin Kinsey [EMAIL PROTECTED] wrote: chris smith wrote: Hi all, I'm trying to work out threaded apps and I'm trying to use the pcntl

[PHP] Command Line PHP Advice

2006-01-28 Thread Angelo Christou
Hello List I would like some advice from PHP users regarding PHP and the command line. I have a PHP script that does a whole bunch of stuff to a file on my intranet. ./edit.php filename var1 var2 Everything works fine but I need to run it on a list of files - ./edit.php invoice00212.txt var1

Re: [PHP] Command Line PHP Advice

2006-01-28 Thread Chris
Angelo Christou wrote: I read that it's better to split scripts up into small reusable parts so my plan is to keep the logic out of the edit.php script and simply pass the variables to it using another script. Am I on the right path doing this? That is a good ideology, but whether it's

Re: [PHP] XML and special characters

2006-01-28 Thread Adam Hubscher
Steve Clay wrote: Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote: ee dee da da da? sect;eth; -- those that look like html entities are the represented characters. I was mistaken, they are html entities, Can you show us a small chunk of this XML that throws errors? You said

[PHP] XML and htmlentities conditionally?

2006-01-28 Thread Adam Hubscher
I have a block of XML that looks as follows: namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name Now, if I run that block of XML through htmlentities, I will get the following: name*_!_* Røyken VGS *_~_*/name XML parsers will return a problem, as there is both an unclosed tag and an invalid tag,