[PHP] XML and htmlentities conditionally?

2006-01-28 Thread Adam Hubscher

I have a block of XML that looks as follows:

<*_~_*> Røyken VGS <*_~_*>

Now, if I run that block of XML through htmlentities, I will get the 
following:


<*_!_*> Røyken VGS <*_~_*>

XML parsers will return a problem, as there is both an unclosed tag and 
an invalid tag, in two places no less (however the error will occur on 
the first "tag".


In order for this particular XML file to parse properly, I -must- run 
html_entity_decode. This causes quite the predicament as if I were to 
then run htmlentities() on this portion of the file, it would produce 
quite a bit of chaos.


My question is, can I in any way efficiently (i -stress- efficiently, if 
anyone read my previous XML and special characters post its a rather 
large XMl file (breaking 18mb now) and speed is of the essence) cause 
html_entity_decode to not decode those tags?


Or any other way would be nice too, I'm pretty much open to anything... 
as long as it doesnt severely hurt the efficiency of the script.



(I discovered the error of my ways in the previous problem btw, having a 
doctype helps... me == brainded in that :s)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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? §ð <-- 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 you've tried various parsers.  Did none of those parsers have
error logging capabilities?  Show us the errors.

Steve


I realized my problem and fixed it.

For the future, a doctype is required no matter what ;)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 best for your script depends 
on the data. I, personally, would probably split it up, just to keep 
things clear and separated so when I go back to it later, I can more 
easily modify it..



I am only a beginner with PHP so I admit I don’t really know what I’m doing, 
that is why I am asking for pointers from the PHP Mail List :)

Below is my model, however I am unsure how to achieve this or even if it's the 
best way to do it?

open filelist.txt
for each line create $filename $var1 $var2
then run
./edit.php $filename $var1 $var2
loop back to the next line
end

 



That looks good to me. It's not too difficult to jsut throw something 
together with the file() function. If your file gets really big you may 
want to look into reading the file line by line with fopen() / fgets(). 
But if you're going to be running it once a month only, file() should 
work fine.



Many thanks in advance,
Ang.



-
Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo! Mail.
 


Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 var2
./edit.php invoice00213.txt var1 var2
./edit.php invoice00214.txt var1 var2

I have a list of several thousand files that will change every month. The list 
has the filenames and variables, like this so I am half way there I think -

invoice00212.txt var1 var2
invoice00213.txt var1 var2
invoice00214.txt var1 var2

My question is how should I incorporate this with my PHP script?

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?

I am only a beginner with PHP so I admit I don’t really know what I’m doing, 
that is why I am asking for pointers from the PHP Mail List :)

Below is my model, however I am unsure how to achieve this or even if it's the 
best way to do it?

open filelist.txt
for each line create $filename $var1 $var2
then run
./edit.php $filename $var1 $var2
loop back to the next line
end

Many thanks in advance,
Ang.
 


-
Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.

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
> >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:
> >
> >
> >
>
> Your code works for me, *most* of the time - say, 96%++.  I tested
> with small values for $childrencount (2 up to 200).  I'd hesitate to
> speculate, but it smells like an SQL server performance issue to
> my weak nose...(IANAE).
>
> Kevin Kinsey
> DaleCo, S.P.
>
> --
> Never offend people with style when you can offend them with substance.
> -- Sam Brown, The Washington Post, January 26, 1977
>
>
>


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 Thompson <[EMAIL PROTECTED]> wrote:
>
> 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 getEquipment ()
> >{
> > var mylist = document.getElementById("equip");
> > if (mylist.options[mylist.selectedIndex].value=="other")
> > {
> > document.writeln("");
> > document.writeln("  Other");
> > document.writeln("   > name="other" size="20">");
> > document.writeln("");
> > }
> >}
> >
> >This is my code for where the function is called
> >
> >
> > Treadmil
> > Exercise
> > Bike
> > Other
> >  >selected>Rowing Machine
> >   
> >
> >My problem is when the page loads in a web browser the Option "Other"
> >is selected every time. From what you can see from my code   "Rowing
> >machine is the one that I want to be shown when the page loads.
> >
> >Anyway can anyonne tell me why my code is not executing correctly.  I
> >am not too familiar with java script.  What I am trying to accomplish
> >is if Other is selected then add a new table row below the drop down
> >menu with the content that I have in the function.
> >
> >If no one can help with this would someone please direct me to a Java
> >Script  Forum.
> >
> >Thanks
> >
> >Paul
>
> [EMAIL PROTECTED]
>
> Registration is required.
>
> MT
>


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 ?

Thanks!

My code:

 



Your code works for me, *most* of the time - say, 96%++.  I tested
with small values for $childrencount (2 up to 200).  I'd hesitate to
speculate, but it smells like an SQL server performance issue to
my weak nose...(IANAE).

Kevin Kinsey
DaleCo, S.P.

--
Never offend people with style when you can offend them with substance.
-- Sam Brown, The Washington Post, January 26, 1977

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.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 getEquipment ()
{
var mylist = document.getElementById("equip");
if (mylist.options[mylist.selectedIndex].value=="other")
{
document.writeln("");
document.writeln("  Other");
document.writeln("  name="other" size="20">");

document.writeln("");
}
}

This is my code for where the function is called


Treadmil
Exercise 
Bike

Other
Rowing Machine
  

My problem is when the page loads in a web browser the Option "Other"
is selected every time. From what you can see from my code   "Rowing
machine is the one that I want to be shown when the page loads.

Anyway can anyonne tell me why my code is not executing correctly.  I
am not too familiar with java script.  What I am trying to accomplish
is if Other is selected then add a new table row below the drop down
menu with the content that I have in the function.

If no one can help with this would someone please direct me to a Java
Script  Forum.

Thanks

Paul


[EMAIL PROTECTED]

Registration is required.

MT 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 1/27/2006

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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




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 = document.getElementById("equip");
if (mylist.options[mylist.selectedIndex].value=="other")
{
document.writeln("");
document.writeln("  Other");
document.writeln("  ");
document.writeln("");
}
}

This is my code for where the function is called


Treadmil
Exercise Bike
Other
Rowing Machine
  

My problem is when the page loads in a web browser the Option "Other"
is selected every time. From what you can see from my code   "Rowing
machine is the one that I want to be shown when the page loads.

Anyway can anyonne tell me why my code is not executing correctly.  I
am not too familiar with java script.  What I am trying to accomplish
is if Other is selected then add a new table row below the drop down
menu with the content that I have in the function.

If no one can help with this would someone please direct me to a Java
Script  Forum.

Thanks

Paul

On 1/27/06, Weber Sites LTD <[EMAIL PROTECTED]> wrote:
> Check out this list of code examples to help with #1
> http://www.weberdev.com/AdvancedSearch.php?searchtype=title&search=validatio
> n
>
> Sincerely
>
> berber
>
> Visit the Weber Sites Today,
> To see where PHP might take you tomorrow.
> PHP code examples : http://www.weberdev.com
> Free Uptime Monitor : http://uptime.weberdev.com
> PHP content for your site : http://content.weber-sites.com
>
>
> -Original Message-
> From: Paul Goepfert [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 27, 2006 9:28 PM
> To: php-general@lists.php.net
> Subject: [PHP] questions regarding PHP and Forms
>
> Hi all,
>
> I am  writing my first website in php.  I have a few questions.
>
> 1) I need to do vaildation on form values that I have entered into a form.
> Is there a way I can write the vaildation code on the same page as the form
> in php?
>
> 2)  I have a drop down menu on one of my form fields.  What I want to do is
> if a certain item is seelected I want to have a new textbox appear below the
> drop down menu.  Is there a way to do this in php?
>
> Thanks
>
> Paul
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 the example form quite clearly uses name.  And for
> the input element,
>
http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4.2
> says that name assigns the control name.
> 
Right.

> The attributes for the form element are completely independent of the
> input elements.
Right.

> (Note, for things like radio buttons, using id makes no 
> sense.  You must have multiple elements with the same name.  If you used
> id for these multiple elements, you would be breaking the rules of html
> saying only one element can have a certain id . . .)
Excellent example! I think you've answered my question: I'll have to keep
using both NAME and ID.

Thanks a lot!
Niels

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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


That's nice.

Now go check out the basic tutorials on the main PHP page. Click "Getting 
help", then the "links" under the heading "Sample Code". When the PHP Links 
page loads, scroll down to Tutorials.


http://ca3.php.net/links.php

Work through a couple, then check out how PHP does sessions so you do not 
have to pass stuff through the URL.


Cheers - Miles 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 1/27/2006

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 a description of the form element, 
not of the input element or select input.


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 the example form quite clearly uses name.  And for 
the input element, 
http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4.2 
says that name assigns the control name.


The attributes for the form element are completely independent of the 
input elements.  (Note, for things like radio buttons, using id makes no 
sense.  You must have multiple elements with the same name.  If you used 
id for these multiple elements, you would be breaking the rules of html 
saying only one element can have a certain id . . .)


David Hall

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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: Saturday, January 28, 2006 4:56 PM
To: php-general@lists.php.net
Subject: Re: [PHP] A black thumbnail.

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?

Thanks for your help.

tedd

--


http://sperling.com/

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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


So my question remains: How well do browsers support using only id?


//Niels

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 where it's placed on the web server.  Sometimes it can be
tricky to determine what the relative path should be, but PHP can help solve
that.  Simply write a function or method to calculate the path to the base
directory of the site.  Make this a global variable and echo it before any
path to a resource on the site.

global $PATH;

echo "\n";

Jason


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 tell me about what browsers do what?


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.

Jason


[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  



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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



$dbQuery = "SELECT image_type, image, image_width, image_height ";
$dbQuery .= "FROM pictures ";
$dbQuery .= "WHERE image_Id = $pic_id";
$result = mysql_query($dbQuery) or die("Couldn't get file list");

if(mysql_num_rows($result) == 1)
{
$fileType = @mysql_result($result, 0, "image_type");
$fileContent = @mysql_result($result, 0, "image");
$width_orig = @mysql_result($result, 0, "image_width");
$height_orig = @mysql_result($result, 0, "image_height");

// Set a maximum height and width
$width = 200;
$height = 200;

if ($width && ($width_orig < $height_orig))
   {
   $width = ($height / $height_orig) * $width_orig;
   }
else
   {
   $height = ($width / $width_orig) * $height_orig;
   }

// Resample
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromstring($fileContent);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, 
$width_orig, $height_orig);


// Output
imagejpeg($image_p, null, 100);
}


--

http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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?

Thanks for your help.

tedd

--

http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

Yes, that's for generating a thumbnail from a file -- but I want to 
do it directly from a stored image from mySQL.


Any ideas?

Thanks for your help.

tedd
--

http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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);

The variable $fileContent should be a file name -- but it's the 
contents of the file that the function uses. So, what's the 
difference between a filename and its contents? Is there a header I 
should add? Or does the routine require a read operation?


I'll look at some other functions.

Thanks for your help.

tedd
--

http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Please help with apache 2

2006-01-28 Thread PHP

Hi,
Thanks, putting the addtype in the  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 can't find anything on this.
 I upgraded from apache 1.3 to apache 2.2
 My problem is, I currently have .htm files being parsed as php, that 
works fine.
 However, if I have the php_engine turned off for a directory, any .htm 
files will now prompt firefox to download it.
 How do I stop this? I need to keep .htm files parsed for php, but I also 
need to be able to turn php off for certain directories and still allow 
regular .htm files to be seen.

 Thanks.



Hi -

Looks like AddType can be used on a per-container (directory container, 
virtual host container, or even from htaccess, that is)-basis.  Consider 
using this to parse PHP via .html pages.  Then, you could leave php_engine 
on for the rest of the site.


Hope that helps
-dant






--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 1/27/2006

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 based applications.

Lets start with phpMyAdmin, a very popular open source tool to manage
MySQL written in php.
I have already installed phpMyAdmin and was running fine.
One day suddenly when I pointed my browser at :
http://localhost/phpMyAdmin
Instead of running the phpMyAdmin browser opened a message window with
options-
"Open With" or "Save to disk" .
I am sure its not browser problem because I tried on Firefox-1.5,
Mozilla, Epiphany and Konqueror.

One more point I would like to add here that if I write one small php
program and
save it in as php file (test.php) then
http://localhost/test.php
executes properly

I am using Fedora 2 and apache2, php-4.3x and mysql-3.x were part of
the
Fedora installation.
The only change I made in the /etc/php.ini file was to increase the
memory limit from 8MB to 12MB.
(Then restarted the http server)
Now even php.ini file is in the original state but problem is still
there.
The http.conf file is unchanged.


Can any one give me some sort of idea.
   



My first WILD GUESS is that way long time ago, you changed httpd.conf
and/or php.ini, but forgot to re-start Apache, and then tested, and
everything worked, so you went on.

Now, when you HAVE re-started Apache, your "fix" from ages ago is
finally kicking in, and you have no recollection of that change.

If you have log files or notes of changes made previously, especially
to httpd.conf, php.ini, or .htaccess, review them -- Keep in mind that
what you are calling your "original" httpd.conf and php.ini file are,
in fact, the ones you modified oh so long ago.

Another tack you can take is to go ahead and save what the browser is
sending you and look at it and see what it looks like.

PHP Source?

Or something else?

Also use telnet or curl (from another box) or similar to get the
headers and HTML that is coming out from the broken pages.

 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

Thanks,
Niels

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php