Re: [PHP] [php] static html search engine for php static html site

2011-12-29 Thread Tamara Temple
Ashley Sheridan a...@ashleysheridan.co.uk wrote:
 Please don't top post.

Wonder if said poster understands what that means

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



Re: [PHP] [php] static html search engine for php static html site

2011-12-27 Thread Nathan Nobbe
On Mon, Dec 26, 2011 at 6:17 AM, HELP LINE izod...@gmail.com wrote:

 Does any know of a better static search engine that i can integrate to my
 static php html site. it should not be Google or yahoo bing.


not sure if it's come up yet, but this might work for you,

http://www.sphider.eu/

it's based on mysql fulltext, not something i would go for, but may be
viable on your shared hosting solution.

-nathan


[PHP] [php] static html search engine for php static html site

2011-12-26 Thread HELP LINE
Does any know of a better static search engine that i can integrate to my
static php html site. it should not be Google or yahoo bing.


thanks
Izod duwa


Re: [PHP] [php] static html search engine for php static html site

2011-12-26 Thread Benjamin Hawkes-Lewis
On Mon, Dec 26, 2011 at 1:17 PM, HELP LINE izod...@gmail.com wrote:
 Does any know of a better static search engine that i can integrate to my
 static php html site. it should not be Google or yahoo bing.

A search engine cannot itself be static, since it has to process
variable user input. Though I guess you could generate its indexes as
part of a static build process.

Solr and Sphinx would be examples of FOSS search engines you could use:

http://lucene.apache.org/solr/

http://sphinxsearch.com/

--
Benjamin Hawkes-Lewis

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



Re: [PHP] [php] static html search engine for php static html site

2011-12-26 Thread HELP LINE
The site content is not using any database but hardcoded on template html
and it's runing on a share hosting. But i need the option where user should
be able to search the site content..

On Mon, Dec 26, 2011 at 2:33 PM, Benjamin Hawkes-Lewis 
bhawkesle...@googlemail.com wrote:

 On Mon, Dec 26, 2011 at 1:17 PM, HELP LINE izod...@gmail.com wrote:
  Does any know of a better static search engine that i can integrate to my
  static php html site. it should not be Google or yahoo bing.

 A search engine cannot itself be static, since it has to process
 variable user input. Though I guess you could generate its indexes as
 part of a static build process.

 Solr and Sphinx would be examples of FOSS search engines you could use:

 http://lucene.apache.org/solr/

 http://sphinxsearch.com/

 --
 Benjamin Hawkes-Lewis




-- 
www.bemycandy.com


Re: [PHP] [php] static html search engine for php static html site

2011-12-26 Thread Ashley Sheridan


HELP LINE izod...@gmail.com wrote:

The site content is not using any database but hardcoded on template
html
and it's runing on a share hosting. But i need the option where user
should
be able to search the site content..

On Mon, Dec 26, 2011 at 2:33 PM, Benjamin Hawkes-Lewis 
bhawkesle...@googlemail.com wrote:

 On Mon, Dec 26, 2011 at 1:17 PM, HELP LINE izod...@gmail.com wrote:
  Does any know of a better static search engine that i can integrate
to my
  static php html site. it should not be Google or yahoo bing.

 A search engine cannot itself be static, since it has to process
 variable user input. Though I guess you could generate its indexes as
 part of a static build process.

 Solr and Sphinx would be examples of FOSS search engines you could
use:

 http://lucene.apache.org/solr/

 http://sphinxsearch.com/

 --
 Benjamin Hawkes-Lewis




--
www.bemycandy.com

Please try not to top post!

How are the html files created? I assume that the php is creating actual html 
files, as that's the next most likely option if content isn't coming from the 
database. Is it from a cms, and if so, is it a custom one or something that's 
more mainstream?

Thanks,
Ash
http://ashleysheridan.co.uk

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



Re: [PHP] [php] static html search engine for php static html site

2011-12-26 Thread Izo duwa
The site is not a cms site but static html site,  I just want to add search
option to it but needs an alternative  to google site search integration. i
cant not use solr because its runing on a share hosting.

thanks

On Mon, Dec 26, 2011 at 9:07 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:



 HELP LINE izod...@gmail.com wrote:

 The site content is not using any database but hardcoded on template
 html
 and it's runing on a share hosting. But i need the option where user
 should
 be able to search the site content..
 
 On Mon, Dec 26, 2011 at 2:33 PM, Benjamin Hawkes-Lewis 
 bhawkesle...@googlemail.com wrote:
 
  On Mon, Dec 26, 2011 at 1:17 PM, HELP LINE izod...@gmail.com wrote:
   Does any know of a better static search engine that i can integrate
 to my
   static php html site. it should not be Google or yahoo bing.
 
  A search engine cannot itself be static, since it has to process
  variable user input. Though I guess you could generate its indexes as
  part of a static build process.
 
  Solr and Sphinx would be examples of FOSS search engines you could
 use:
 
  http://lucene.apache.org/solr/
 
  http://sphinxsearch.com/
 
  --
  Benjamin Hawkes-Lewis
 
 
 
 
 --
 www.bemycandy.com

 Please try not to top post!

 How are the html files created? I assume that the php is creating actual
 html files, as that's the next most likely option if content isn't coming
 from the database. Is it from a cms, and if so, is it a custom one or
 something that's more mainstream?

 Thanks,
 Ash
 http://ashleysheridan.co.uk



Re: [PHP] [php] static html search engine for php static html site

2011-12-26 Thread Ashley Sheridan


Izo duwa izod...@gmail.com wrote:

The site is not a cms site but static html site,  I just want to add
search
option to it but needs an alternative  to google site search
integration. i
cant not use solr because its runing on a share hosting.

thanks

On Mon, Dec 26, 2011 at 9:07 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:



 HELP LINE izod...@gmail.com wrote:

 The site content is not using any database but hardcoded on template
 html
 and it's runing on a share hosting. But i need the option where user
 should
 be able to search the site content..
 
 On Mon, Dec 26, 2011 at 2:33 PM, Benjamin Hawkes-Lewis 
 bhawkesle...@googlemail.com wrote:
 
  On Mon, Dec 26, 2011 at 1:17 PM, HELP LINE izod...@gmail.com
wrote:
   Does any know of a better static search engine that i can
integrate
 to my
   static php html site. it should not be Google or yahoo bing.
 
  A search engine cannot itself be static, since it has to process
  variable user input. Though I guess you could generate its indexes
as
  part of a static build process.
 
  Solr and Sphinx would be examples of FOSS search engines you could
 use:
 
  http://lucene.apache.org/solr/
 
  http://sphinxsearch.com/
 
  --
  Benjamin Hawkes-Lewis
 
 
 
 
 --
 www.bemycandy.com

 Please try not to top post!

 How are the html files created? I assume that the php is creating
actual
 html files, as that's the next most likely option if content isn't
coming
 from the database. Is it from a cms, and if so, is it a custom one or
 something that's more mainstream?

 Thanks,
 Ash
 http://ashleysheridan.co.uk



Please don't top post.

What part of the site is in php, or is it only that you want to use php for the 
search functionality?

What have you got so far? Have you written any code, searched for any pre-made 
solutions? Have you even thought how you want the search to work, I.e. order of 
results, will it ignore certain words, etc?

Thanks,
Ash
http://ashleysheridan.co.uk

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



Re: [PHP] [php] static html search engine for php static html site

2011-12-26 Thread Izo duwa
the whole site is in php and all content should be searchable. I have tried
zoom site search [http://www.wrensoft.com/zoom/] but the result was not
good.   I just need a simple site search functionality that I can install
on a share hosting. it should be able to serach through the whole site
files and index it.  Do you know you of any pre-made solutions that works?

thanks

On Mon, Dec 26, 2011 at 11:32 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:



 Izo duwa izod...@gmail.com wrote:

 The site is not a cms site but static html site,  I just want to add
 search
 option to it but needs an alternative  to google site search
 integration. i
 cant not use solr because its runing on a share hosting.
 
 thanks
 
 On Mon, Dec 26, 2011 at 9:07 PM, Ashley Sheridan
 a...@ashleysheridan.co.ukwrote:
 
 
 
  HELP LINE izod...@gmail.com wrote:
 
  The site content is not using any database but hardcoded on template
  html
  and it's runing on a share hosting. But i need the option where user
  should
  be able to search the site content..
  
  On Mon, Dec 26, 2011 at 2:33 PM, Benjamin Hawkes-Lewis 
  bhawkesle...@googlemail.com wrote:
  
   On Mon, Dec 26, 2011 at 1:17 PM, HELP LINE izod...@gmail.com
 wrote:
Does any know of a better static search engine that i can
 integrate
  to my
static php html site. it should not be Google or yahoo bing.
  
   A search engine cannot itself be static, since it has to process
   variable user input. Though I guess you could generate its indexes
 as
   part of a static build process.
  
   Solr and Sphinx would be examples of FOSS search engines you could
  use:
  
   http://lucene.apache.org/solr/
  
   http://sphinxsearch.com/
  
   --
   Benjamin Hawkes-Lewis
  
  
  
  
  --
  www.bemycandy.com
 
  Please try not to top post!
 
  How are the html files created? I assume that the php is creating
 actual
  html files, as that's the next most likely option if content isn't
 coming
  from the database. Is it from a cms, and if so, is it a custom one or
  something that's more mainstream?
 
  Thanks,
  Ash
  http://ashleysheridan.co.uk
 


 Please don't top post.

 What part of the site is in php, or is it only that you want to use php
 for the search functionality?

 What have you got so far? Have you written any code, searched for any
 pre-made solutions? Have you even thought how you want the search to work,
 I.e. order of results, will it ignore certain words, etc?

 Thanks,
 Ash
 http://ashleysheridan.co.uk



[PHP] PHP in HTML code

2010-03-12 Thread Martine Osias
An HTML/PHP code migrated to a different hosting platform seems to behave 
differently. The PHP statements within HTML fields or within tables  does 
not execute


PHP within table:

tr
td align=left?=laquo;.$_SESSION['scripture_text'].raquo;?/td
/tr

This PHP code doesn't print in the HTML page.

PHP within form field:

input type=text name=reservation_date value=?=$_GET['rdate'];? 
readonly=


This PHP code shows on the page when it shouldn't. The same variable is an 
input and an output in this form:




form name=frm method=post action=ins_reservation.php onsubmit=return 
(submitonce(this)  doValidate(this));

   table border=0 width=100% align=center
tr
 td valign=top width=23%
  strongYour Pledge For:/strong/strong/td
 td width=75%
  p
  ?php if($_POST['reservation_date'] != ) { ?
  input type=text name=reservation_date 
value=?=$_POST['reservation_date'];? readonly=

  ?php }else {  ?
  input type=text name=reservation_date 
value=?=$_GET['rdate'];? readonly=

  ?php } ?

  nbsp;img src=images/cal.gif 
onclick=cal17.select(document.forms[0].reservation_date,'anchor17','MM/dd/'); 
return false;  name=anchor17 id=anchor17

  !--td width=1%--
   ?php require(calendar/make_update_calendar.php); ?
  /p

   ?php if ($totalRows_findme == 0  
$_GET['email'] != ) { // Show if recordset empty ?
 span class=style1Not found. Please enter 
info/span  ?php } // Show if recordset empty 
?/td

 /tr
   /table

   table border=0 width=100% align=center
?php if ($totalRows_findme == 0) { // Show if recordset empty 
?

tr
  td class=st1Email:span style=color: 
#CC;*/span/td
  td class=st1input name=email type=text 
class=v_email id=email value=?=$_GET['email'];? /

span style=padding-left: 3px;
input type=button name=button id=button value=Get 
my Information onclick=getacctt() /

/span/td
 /tr
 tr
   td width=34% class=st1 First Name:span 
style=color: #CC;*/span   /td
   td width=66% class=st1input name=first_name 
type=text class=v_required value=?=$_GET['fname'];? //td

 /tr
 tr
   td class=st1Last Name:span style=color: 
#CC;*/span/td


***

Are there times when the ? statements in HTML code don't execute?


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



Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-06 Thread Michael A. Peters

Ashley Sheridan wrote:




Bit of advice though, don't use Javascript to submit a form. Firstly,
Javascript isn't available on all browsers, and on those it is available
on, not everyone has it turned on. The W3C has the stats for Javascript
being unavailable in a browser at about 5%.


Yup.
Just the other day a company lost my business because after registering 
for their web site, the login form did not work w/o JavaScript. 
Interesting that the registration form itself did.


A freaking login form that had nothing but an e-mail address, password 
field, and a button that was not a standard submit button, but a html 
button elements with a JavaScript event attached to it.


There was no valid reason for them to require JavaScript for that, I do 
not mind allowing JavaScript for local server if the site is of value to 
me but the fact that they used JavaScript for a submit button in a form 
that had two very standard fields told me that they did not know what 
they are doing, indicating they probably did not have their site 
properly protected from XSS injection, and I'm not going to white list a 
web site that I have reason to suspect may not have proper server side 
protection against XSS injection.


My guess is they don't even have a web master but are using some cms 
that autogenerates everything for them, which probably means any input 
validation is rather weak.


Use JavaScript when it is the best tool for the job. It is not the best 
tool for form submission. Client side form validation, sure - it's nice 
for catching problems before the user submits so he doesn't have to 
submit again, but not for the submit action itself.


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



[PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-05 Thread Mary Anderson

Hi,
  I am writing code in PHP which generates HTML script.  My app is 
fairly complex.  Twice in the development of the application I have run 
into a problem with submit buttons which pick up the wrong url.  Instead 
of call the url for that submit button, it appears to call the url for 
the first submit button on the page.  The problem may be intermittent, 
which seems to suggest that something funny is happening with the 
cache.  Clearing the cache did not help in the last go around.
I am including the generated html code.  Hitting the button 'Retrieve 
all ...' should call up the url get_query_forms.php.  Instead it calls 
up the url query_form_display_data.php, which is the url for the first 
submit button on the page.


  Any clues to clear up this mystery would be greatly appreciated!

Mary Anderson







!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
LINK href=./DMEM.css type=text/css rel=stylesheet
head
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleDisplay Data/title
/head
body 
form id=display_data name=display_data method=POST 
 action=./query_form_display_data.php?perm_batch_file=permpg_query_form_id=518data_table_id=255data_batch_id=query_form_schema=permanent_queriesbatch_input_file_id=create_tmp_data_tables=0


p 
big72 rows have been returned by this query/big
/pbr
p 

table 

tr 

th 

/th

td 
input type='text' name='max_row_count' size='3' value='0' /input

/td

/tr

/table
brbr
p 
input type='submit'  name='worksheet_join_element_initialize' value='Change worksheet : Change max row count' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
 /input
input type='submit'  name='display_results' value='Display query results' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
 /input
input type='submit'  name='generate_csv_file' value='Generate csv file' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
 /input

p 
input type='submit'  name='edit_existing_query_form' value='Revise query' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/edit_query_form.php?perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
 /input
input type='submit'  name='retrieve_existing_query_forms' value='Retrieve all permanent query forms for this 
table type' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file='perm'query_form_schema=permanent_queriesuser_name=data_table_type_id='
 /input
input type='submit'  name='retrieve_existing_query_forms' value='Retrieve all temporary query forms for this 
table type' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file='perm'query_form_schema=temporary_queriesuser_name=data_table_type_id='
 /input
input type='submit'  name='select_table_type' value='Change data table type' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file=permuser_name='
 /input

/p
p 
input type='submit'  name='home' value='Home' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo' /input

/pinput type='hidden' id='perm_batch_file' name='perm_batch_file' value='perm'input type='hidden' id='tmp_data_values_table' 
name='tmp_data_values_table' value='display.perm_tmp_data_values_518'input type='hidden' id='pg_query_form_id' name='pg_query_form_id' 
value='518'input type='hidden' id='query_form_schema' name='query_form_schema' value='permanent_queries'input type='hidden' 
id='data_table_id' name='data_table_id' value='255'input type='hidden' id='data_batch_id' name='data_batch_id' value='218'input type='hidden' 
id='batch_input_file_id' name='batch_input_file_id' value=''input type='hidden' id='tf_directory' name='tf_directory' value=''input 
type='hidden' id='tf_filename' name='tf_filename' value=''input type='hidden' id='data_table_type_id' name='data_table_type_id' value=''input 
type='hidden' id='user_name' name='user_name' value=''/form
/body
/html


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



Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-05 Thread Joseph Thayne
This is actually a javascript issue rather than a PHP issue.  What is 
happening is that the action of the form is what is being submitted.  
The action never changes.  What you need to do is have the javascript 
change the action as well as submit the form (which means you will need 
to move it to a function).  It would also help to empty out the form 
action as well.


Example JS function:
function retrieveAllPerm()
{
document.display_data.action='http://unproto.demog.berkeley.edu/memdemo/edit_query_form.php?perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries';
document.display_data.submit();
}

Example submit button:
button name='edit_existing_query_form' 
onClick=javascript:retrieveAllPerm(); Revise query/button


Joseph

Mary Anderson wrote:

Hi,
  I am writing code in PHP which generates HTML script.  My app is 
fairly complex.  Twice in the development of the application I have 
run into a problem with submit buttons which pick up the wrong url.  
Instead of call the url for that submit button, it appears to call the 
url for the first submit button on the page.  The problem may be 
intermittent, which seems to suggest that something funny is happening 
with the cache.  Clearing the cache did not help in the last go around.
I am including the generated html code.  Hitting the button 'Retrieve 
all ...' should call up the url get_query_forms.php.  Instead it calls 
up the url query_form_display_data.php, which is the url for the first 
submit button on the page.


  Any clues to clear up this mystery would be greatly appreciated!

Mary Anderson







!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml;
LINK href=./DMEM.css type=text/css rel=stylesheet
head
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleDisplay Data/title
/head
body form id=display_data name=display_data method=POST  
action=./query_form_display_data.php?perm_batch_file=permpg_query_form_id=518data_table_id=255data_batch_id=query_form_schema=permanent_queriesbatch_input_file_id=create_tmp_data_tables=0 



p 
big72 rows have been returned by this query/big
/pbr
p 

table 

tr 

th 

/th

td 
input type='text' name='max_row_count' size='3' value='0' /input

/td

/tr

/table
brbr
p 
input type='submit'  name='worksheet_join_element_initialize' 
value='Change worksheet : Change max row count' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries' 
/input
input type='submit'  name='display_results' value='Display query 
results' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries' 
/input
input type='submit'  name='generate_csv_file' value='Generate csv 
file' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries' 
/input


p 
input type='submit'  name='edit_existing_query_form' value='Revise 
query' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/edit_query_form.php?perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries' 
/input
input type='submit'  name='retrieve_existing_query_forms' 
value='Retrieve all permanent query forms for this table type' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file='perm'query_form_schema=permanent_queriesuser_name=data_table_type_id=' 
/input
input type='submit'  name='retrieve_existing_query_forms' 
value='Retrieve all temporary query forms for this table type' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file='perm'query_form_schema=temporary_queriesuser_name=data_table_type_id=' 
/input
input type='submit'  name='select_table_type' value='Change data 
table type' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file=permuser_name=' 
/input


/p
p 
input type='submit'  name='home' value='Home' 
onClick=form.action='http://unproto.demog.berkeley.edu/memdemo' 
/input


/pinput type='hidden' id='perm_batch_file' name='perm_batch_file' 
value='perm'input type='hidden' id='tmp_data_values_table' 
name='tmp_data_values_table' 
value='display.perm_tmp_data_values_518'input type='hidden' 
id='pg_query_form_id' name='pg_query_form_id' value='518'input 
type='hidden' id='query_form_schema' name='query_form_schema' 
value='permanent_queries'input type='hidden' id='data_table_id' 
name='data_table_id' value='255'input type='hidden' 
id='data_batch_id' name

Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-05 Thread Ashley Sheridan
On Fri, 2010-02-05 at 14:33 -0600, Joseph Thayne wrote:

 This is actually a javascript issue rather than a PHP issue.  What is 
 happening is that the action of the form is what is being submitted.  
 The action never changes.  What you need to do is have the javascript 
 change the action as well as submit the form (which means you will need 
 to move it to a function).  It would also help to empty out the form 
 action as well.
 
 Example JS function:
 function retrieveAllPerm()
 {
 document.display_data.action='http://unproto.demog.berkeley.edu/memdemo/edit_query_form.php?perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries';
 document.display_data.submit();
 }
 
 Example submit button:
 button name='edit_existing_query_form' 
 onClick=javascript:retrieveAllPerm(); Revise query/button
 
 Joseph
 
 Mary Anderson wrote:
  Hi,
I am writing code in PHP which generates HTML script.  My app is 
  fairly complex.  Twice in the development of the application I have 
  run into a problem with submit buttons which pick up the wrong url.  
  Instead of call the url for that submit button, it appears to call the 
  url for the first submit button on the page.  The problem may be 
  intermittent, which seems to suggest that something funny is happening 
  with the cache.  Clearing the cache did not help in the last go around.
  I am including the generated html code.  Hitting the button 'Retrieve 
  all ...' should call up the url get_query_forms.php.  Instead it calls 
  up the url query_form_display_data.php, which is the url for the first 
  submit button on the page.
 
Any clues to clear up this mystery would be greatly appreciated!
 
  Mary Anderson
 
  
 
 
 
 
 
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html xmlns=http://www.w3.org/1999/xhtml;
  LINK href=./DMEM.css type=text/css rel=stylesheet
  head
  meta http-equiv=Content-Type content=text/html; charset=utf-8 /
  titleDisplay Data/title
  /head
  body form id=display_data name=display_data method=POST  
  action=./query_form_display_data.php?perm_batch_file=permpg_query_form_id=518data_table_id=255data_batch_id=query_form_schema=permanent_queriesbatch_input_file_id=create_tmp_data_tables=0
   
 
 
  p 
  big72 rows have been returned by this query/big
  /pbr
  p 
 
  table 
 
  tr 
 
  th 
 
  /th
 
  td 
  input type='text' name='max_row_count' size='3' value='0' /input
 
  /td
 
  /tr
 
  /table
  brbr
  p 
  input type='submit'  name='worksheet_join_element_initialize' 
  value='Change worksheet : Change max row count' 
  onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
   
  /input
  input type='submit'  name='display_results' value='Display query 
  results' 
  onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
   
  /input
  input type='submit'  name='generate_csv_file' value='Generate csv 
  file' 
  onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
   
  /input
 
  p 
  input type='submit'  name='edit_existing_query_form' value='Revise 
  query' 
  onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/edit_query_form.php?perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
   
  /input
  input type='submit'  name='retrieve_existing_query_forms' 
  value='Retrieve all permanent query forms for this table type' 
  onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file='perm'query_form_schema=permanent_queriesuser_name=data_table_type_id='
   
  /input
  input type='submit'  name='retrieve_existing_query_forms' 
  value='Retrieve all temporary query forms for this table type' 
  onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file='perm'query_form_schema=temporary_queriesuser_name=data_table_type_id='
   
  /input
  input type='submit'  name='select_table_type' value='Change data 
  table type' 
  onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/get_query_forms.php?perm_batch_file=permuser_name='
   
  /input
 
  /p
  p 
  input type='submit'  name='home' value='Home' 
  onClick=form.action='http://unproto.demog.berkeley.edu/memdemo' 
  /input
 
  /pinput type='hidden' id='perm_batch_file' name='perm_batch_file' 
  value='perm'input type='hidden' id='tmp_data_values_table' 
  name='tmp_data_values_table' 
  value='display.perm_tmp_data_values_518'input type='hidden' 
  id

Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-05 Thread Joseph Thayne
What you maybe ought to consider is using several submit buttons, and 
give each a name and a value. That way, your PHP script can check for a 
specifically named variable sent from the form. That way, you keep many 
people happy, and your site still works perfectly.


The problem with doing it that way is that IE is not happy with multiple 
submit buttons in a single form.  To get around that, you can use image 
input types or buttons.  Also, a return key does not send values the 
same way as a mouse click.  I can't remember which browser does what, 
but the three possible submitted values are (providing the name of the 
button is submit):


submit
submit_x and submit_y
submit_x, submit_y, and submit

Just something to be aware of if you are looking for the value of the 
submit button -- not 100% reliable.  It would be better to use a hidden 
form value or just check to see if submit or submit_x is set.


Joseph

Ashley Sheridan wrote:

On Fri, 2010-02-05 at 14:33 -0600, Joseph Thayne wrote:
This is actually a javascript issue rather than a PHP issue.  What is 
happening is that the action of the form is what is being submitted.  
The action never changes.  What you need to do is have the javascript 
change the action as well as submit the form (which means you will need 
to move it to a function).  It would also help to empty out the form 
action as well.


Example JS function:
function retrieveAllPerm()
{
document.display_data.action='http://unproto.demog.berkeley.edu/memdemo/edit_query_form.php?perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries'
 
http://unproto.demog.berkeley.edu/memdemo/edit_query_form.php?perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries%27;
document.display_data.submit();
}

Example submit button:
button name='edit_existing_query_form' 
onClick=javascript:retrieveAllPerm(); Revise query/button


Joseph

Mary Anderson wrote:
 Hi,
   I am writing code in PHP which generates HTML script.  My app is 
 fairly complex.  Twice in the development of the application I have 
 run into a problem with submit buttons which pick up the wrong url.  
 Instead of call the url for that submit button, it appears to call the 
 url for the first submit button on the page.  The problem may be 
 intermittent, which seems to suggest that something funny is happening 
 with the cache.  Clearing the cache did not help in the last go around.
 I am including the generated html code.  Hitting the button 'Retrieve 
 all ...' should call up the url get_query_forms.php.  Instead it calls 
 up the url query_form_display_data.php, which is the url for the first 
 submit button on the page.


   Any clues to clear up this mystery would be greatly appreciated!

 Mary Anderson

 





 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

 html xmlns=http://www.w3.org/1999/xhtml;
 LINK href=./DMEM.css type=text/css rel=stylesheet
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8 /
 titleDisplay Data/title
 /head
 body form id=display_data name=display_data method=POST  
 action=./query_form_display_data.php?perm_batch_file=permpg_query_form_id=518data_table_id=255data_batch_id=query_form_schema=permanent_queriesbatch_input_file_id=create_tmp_data_tables=0 



 p 
 big72 rows have been returned by this query/big
 /pbr
 p 

 table 

 tr 

 th 

 /th

 td 
 input type='text' name='max_row_count' size='3' value='0' /input

 /td

 /tr

 /table
 brbr
 p 
 input type='submit'  name='worksheet_join_element_initialize' 
 value='Change worksheet : Change max row count' 
 onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries' http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries%27 
 /input
 input type='submit'  name='display_results' value='Display query 
 results' 
 onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries' http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries%27 
 /input
 input type='submit'  name='generate_csv_file' value='Generate csv 
 file' 
 onClick=form.action='http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file=permpg_query_form_id=518query_form_schema=permanent_queries' http://unproto.demog.berkeley.edu/memdemo/query_form_display_data.php?worksheet_join_element_initialize=1perm_batch_file

Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-05 Thread Robert Cummings

Joseph Thayne wrote:
What you maybe ought to consider is using several submit buttons, and 
give each a name and a value. That way, your PHP script can check for a 
specifically named variable sent from the form. That way, you keep many 
people happy, and your site still works perfectly.


The problem with doing it that way is that IE is not happy with multiple 
submit buttons in a single form.


I've never seen IE have a problem with multiple submit buttons. I'm 
guessing you're doing something wrong. I often have multiple submit buttons.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] Php generated html email

2007-10-23 Thread Richard Heyes

Ronald Wiplinger wrote:

How can I create a html email directly from a web page via Php?
The page will include tables, background colors and pictures within the 
tables. The received email should be readable without Internet 
connection (pictures, must be sent with the email)


http://www.phpguru.org/static/htmlMimeMail5.html

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

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



[PHP] Php generated html email

2007-10-22 Thread Ronald Wiplinger

How can I create a html email directly from a web page via Php?
The page will include tables, background colors and pictures within the 
tables. The received email should be readable without Internet 
connection (pictures, must be sent with the email)



bye

Ronald

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



RE: [PHP] Php generated html email

2007-10-22 Thread Jay Blanchard
[snip]
How can I create a html email directly from a web page via Php?
The page will include tables, background colors and pictures within the 
tables. The received email should be readable without Internet 
connection (pictures, must be sent with the email)
[/snip]

Google is your friend...
http://www.google.com/search?hl=ensafe=offsa=Xoi=spellresnum=0ct=re
sultcd=1q=html+email+with+PHPspell=1

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



[PHP] PHP and HTML Conventions

2004-07-12 Thread Harlequin
Hi all.

I just wondered if the general convention was to use entirely PHP and simply
encase HTML TAGs within that or use a mix and simply use PHP TAGs when
required.



-- 
-
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-

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



Re: [PHP] PHP and HTML Conventions

2004-07-12 Thread Matthew Sims
 Hi all.

 I just wondered if the general convention was to use entirely PHP and
 simply
 encase HTML TAGs within that or use a mix and simply use PHP TAGs when
 required.



 --
 -
  Michael Mason


I'm trying to get myself to use PHP tags when required. When I first
started learning PHP with HTML I would encase entire tables under PHP tags
out of bad learning habits. Not only was it ugly to look at (so many echo
statments, quotes () and escape slashes (\) ) but it became really hard
to read the code.

Also, using the PHP tags can mean fewer characters in your webpage making
it slightly smaller.

But...that's just my preference. :)

--Matthew Sims
--http://killermookie.org

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



[PHP] PHP to HTML

2003-12-08 Thread Steve Marquez
Greetings!

Is there a way to have PHP write an HTML file? What I would like to do is
have a user fill out a form, then have the information write an HTML file
and then save the file either for the first time, or overwrite the existing
one.

I hope this makes sense. Can anyone help?

--

Steve Marquez
Marquez Design

[EMAIL PROTECTED]

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



RE: [PHP] PHP to HTML

2003-12-08 Thread Chris W. Parker
Steve Marquez mailto:[EMAIL PROTECTED]
on Monday, December 08, 2003 12:28 PM said:

 Greetings!

Hi.

 Is there a way to have PHP write an HTML file?

Yes. Start here http://us2.php.net/manual/en/function.fwrite.php.


Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

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



Re: [PHP] PHP to HTML

2003-12-08 Thread Chris Shiflett
--- Steve Marquez [EMAIL PROTECTED] wrote:
 Is there a way to have PHP write an HTML file?

Sure. This is no different from writing any other file.

If you want it to write a file instead of outputting the content, a
convenient way (my opinion) of doing this is to use ob_start() at the top
of your script, and then do something like this at the very end:

$html = ob_get_contents();
$fp = fopen('./foo.html', 'w');
fwrite($fp, $html);
fclose($fp);

Hope that helps.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

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



[PHP] PHP process .html extension file

2003-11-17 Thread BennyYim
PHP server will interpret .php extension files (index.php) as default.

What should I set if I want the PHP server also interpret .html files (e.g. 
index.html) before send to client?

Thank You !

.---.
| Message Posted by NewsgroupXplorer|
| http://www.newsgroupxplorer.com   |
|   |
| Your newsreader in your browser.  |
`---'

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



Re: [PHP] PHP process .html extension file

2003-11-17 Thread Jason Wong
On Monday 17 November 2003 18:03, BennyYim wrote:
 PHP server will interpret .php extension files (index.php) as default.

 What should I set if I want the PHP server also interpret .html files (e.g.
 index.html) before send to client?

If using apache:

  AddType application/x-httpd-php .php .html

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Perhaps, after all, America never has been discovered.  I myself would
say that it had merely been detected.
-- Oscar Wilde
*/

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



[PHP] PHP 4.3.2, HTML and MSSQL2000

2003-11-07 Thread Rique Gresham
Hi All,

 I'm having trouble with a input box disappearing when using php to
generate the input box. I tested this script in a test.htm and worked fine.
Does it have something to do with the script being inside the div/div
statement?
 Any help would be appreciated.  Thanks


div id=Oobj220 style=position:absolute;z-index:74;visibility:visible;
left:612px;top:96px;width:110px;height:21px;
span id=Ggeo201 class=dfltt
?php
$link = mssql_connect(server) or die (Not Connected);
$db = mssql_select_db(database)or die (Unable to connect to database);
$sql= SELECT CId, ReportNum FROM tblCounter WHERE CId = 1;
$sql_result= mssql_query($sql,$link) or die (Query not executed);
function RepInc($reportnum)
{
$reportnum += 1;
}
while ($row = mssql_fetch_array($sql_result))
{
$cid = $row[CId];$reportnum = $row[ReportNum];
}
RepInc($reportnum);
echo input type=text name=reportnum size=20 value=$reportnum;
mssql_free_result($sql_result);
mssql_close($link);
?
/span
/div

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



RE: [PHP] PHP 4.3.2, HTML and MSSQL2000

2003-11-07 Thread Jay Blanchard
[snip]
Does it have something to do with the script being inside the
div/div
statement?

div id=Oobj220
style=position:absolute;z-index:74;visibility:visible;
left:612px;top:96px;width:110px;height:21px;
span id=Ggeo201 class=dfltt
?php
echo input type=text name=reportnum size=20 value=$reportnum;
?
/span
/div
[/snip]

Aside from the HTML being badly formed in the echo statment (all
attributes should be double-quoted) i.e.

echo input type=\text\ name=\reportnum\ size=\20\
value=\$reportnum\;

it would appear that something in your dfltt class may be causing the
problem. This is more of a CSS or HTML problem and would have a better
chance at a solution on one of those lists. As for the script it doesn't
care where it lives as long as the syntax between the ?php ? tags is
correct...and appears to be.

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



[PHP] php convert html to pdf

2003-10-13 Thread hycn office
hi all ~

where can find the free of charge complete script ?

remarks : i am using web hosting , so cant install anything

thank you -_-

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



RES: [PHP] PHP/JavaScript/HTML

2003-08-18 Thread Mauricio
Perfect! That's all I had to do.

Thanks!

Maurício

-Mensagem original-
De: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 5 de agosto de 2003 16:30
Para: Mauricio; [EMAIL PROTECTED]
Assunto: Re: [PHP] PHP/JavaScript/HTML


From: Mauricio [EMAIL PROTECTED]
 On the Address Bar I can see: index.php?slcAdd=1slcAdd=2slcAdd=3
 But when I get the value using $HTTP_GET_VARS['slcAdd']; it returns just
the
 last value. What can I do to get them all?

Name your select box as slcAdd[] and you'll have all of the values in an
array.

---John Holmes...


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.510 / Virus Database: 307 - Release Date: 14/8/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.510 / Virus Database: 307 - Release Date: 14/8/2003


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



Re: [PHP] PHP/JavaScript/HTML

2003-08-14 Thread Mauricio
Ok! Now I can see the values in the another page. But each value are passed
with the same name. How can I get all values using PHP script?

On the Address Bar I can see: index.php?slcAdd=1slcAdd=2slcAdd=3
But when I get the value using $HTTP_GET_VARS['slcAdd']; it returns just the
last value. What can I do to get them all?

Thanks!

.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Maurício Alegre Valente
AGP5 Tecnologia da Informação Ltda.
(48) 439-3004
Visite nosso site: www.agp5.com.br
.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
- Original Message - 
From: CPT John W. Holmes [EMAIL PROTECTED]
To: Mauricio [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 10:05 AM
Subject: Re: [PHP] PHP/JavaScript/HTML


 From: Mauricio [EMAIL PROTECTED]
  I wrote a JavaScript to set the values of a Select html object by client
  side. The values are copied from another Select that I create getting
the
  values from the database. After the user set the values he/she wants to
 add
  it in another form, for example, then press submit button, the values of
 the
  user Select object doesn't appears on the next page. What can I do to
 get
  the user selected values in the another page?

 Well, if I understand that correctly, you need to use Javascript to
select
 all of the options that the user selected to add to the second select box.
 If they aren't selected, then they won't be passed to the next page.

 ---John Holmes...


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



[PHP] PHP/JavaScript/HTML

2003-08-05 Thread Mauricio
Hello folks

I wrote a JavaScript to set the values of a Select html object by client
side. The values are copied from another Select that I create getting the
values from the database. After the user set the values he/she wants to add
it in another form, for example, then press submit button, the values of the
user Select object doesn't appears on the next page. What can I do to get
the user selected values in the another page?

Someone could help me?

Thanks!
.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Maurício Alegre Valente
AGP5 Tecnologia da Informação Ltda.
(48) 439-3004
Visite nosso site: www.agp5.com.br
.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
- Original Message - 
From: Nicholas Robinson [EMAIL PROTECTED]
To: skate [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 4:26 AM
Subject: Re: [PHP] easier than switch


 As, in this case, only one of the variables is non-null, then you could
use
 the string concatenation operator and this would return what you want.

 i.e. type = $_POST['news'] . $_POST['dreams'] . $_POST['storys']...

 I think I've used the same variable name in different forms on the same
page,
 as only one form submission occurs at any one time there can't be a
conflict
 and PHP doesn't care where the POST'ed variable came from.. So, you could
 rename news, dreams, etc. to be type and extract the result directly
without
 having to fiddle around.

 HTH

 Nick

 On Monday 04 Aug 2003 11:19 pm, skate wrote:
  okay, so i know there's an easy way to do this, and i've seen it done,
sure
  of it. so please forgive the stupidity of my question, i don't even know
  where to begin to look in the archives either...
 
  i have several forms on one page, they all submit a different variable,
i
  then want to set one variable depending on that... okay, now i'm
confusing
  myself, lets try explain it with some code...
 
  ?
 
  if(isset($_POST))
  {
   $type = $_POST['news'] || $_POST['dreams'] || $_POST['storys'] ||
  $_POST['words'] || $_POST['chat']; }
 
  ?
 
  obviously this doesn't work. but i wanna set $type depending on which
  $_POST variable was sent. only one of these will ever be sent. rather
than
  doing a big ass switch statement, is there no way i can get this into
one
  line?
 
  i hope this isn't too confusing...


 -- 
 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] PHP/JavaScript/HTML

2003-08-05 Thread CPT John W. Holmes
From: Mauricio [EMAIL PROTECTED]
 I wrote a JavaScript to set the values of a Select html object by client
 side. The values are copied from another Select that I create getting the
 values from the database. After the user set the values he/she wants to
add
 it in another form, for example, then press submit button, the values of
the
 user Select object doesn't appears on the next page. What can I do to
get
 the user selected values in the another page?

Well, if I understand that correctly, you need to use Javascript to select
all of the options that the user selected to add to the second select box.
If they aren't selected, then they won't be passed to the next page.

---John Holmes...


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



Re: [PHP] PHP/JavaScript/HTML

2003-08-05 Thread CPT John W. Holmes
From: Mauricio [EMAIL PROTECTED]
 On the Address Bar I can see: index.php?slcAdd=1slcAdd=2slcAdd=3
 But when I get the value using $HTTP_GET_VARS['slcAdd']; it returns just
the
 last value. What can I do to get them all?

Name your select box as slcAdd[] and you'll have all of the values in an
array.

---John Holmes...


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



[PHP] PHP suexec: html files as PHP.

2003-07-29 Thread Joan McGalliard
Hi,

I'm getting a little desperate here, and running out of places to ask.  
My hosting company changed - without warning - to PHP Suexec, which 
completely broke to sites.  They haven't been able to tell me how to 
fix it, just vague suggestions, and when I ask for detailed 
instructions, they send me a URL that has no connection with my problem.

So it's pretty simple, I want to know how to get html files parsed as 
PHP files with PHP Suexec on.  IE I want:
http://www.mcgalliard.org/index.html
to look  like
http://www.mcgalliard.org/index.html

thanks for any help!

joan
--
Joan McGalliard, UK 
http://www.mcgalliard.org

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


Re: [PHP] PHP suexec: html files as PHP.

2003-07-29 Thread Curt Zirzow
* Thus wrote Joan McGalliard ([EMAIL PROTECTED]):
 Hi,
 
 I'm getting a little desperate here, and running out of places to ask.  
 My hosting company changed - without warning - to PHP Suexec, which 
 completely broke to sites.  They haven't been able to tell me how to 
 fix it, just vague suggestions, and when I ask for detailed 
 instructions, they send me a URL that has no connection with my problem.

This is a problem you should take up to the hosting company, you
shouldn't really use php suexec for regular php files anyway.


 
 So it's pretty simple, I want to know how to get html files parsed as 
 PHP files with PHP Suexec on.  IE I want:

Not so simple i believe. php suexec isn't used as a module, only
cgi, as far as I know. You should really use .php as the
extention to avoid this problem in the future.


 http://www.mcgalliard.org/index.html
 to look  like
 http://www.mcgalliard.org/index.html

These look identical.  I'm assuming you mean index.php on the other
one.  

In that case I don't understand why you have two versions of the
same file.  I would suggest to dump the .html files and use only
.php.

Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

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



[PHP] php and html differences

2003-03-02 Thread Sunfire
hi..

i guess this is a php related question (well sort of)  the person i work
with decided that he was going to edit a few of my php scripts that make a
web page out of variables and just different conditions that happen in the
script.. he thought that he could use a gui html editor and edit the page..
well it worked and nothing happened bad... he just left any component alone
that had a / in them next to the name of it.. well the other thing that
happened was in another script i have there is 3 or so web pages built into
the script.. based on what happens from the page thet calls that script
either one of those 3 pages could be displayed.. well when i told him that
depending on what happens with the form that calls that page 1 of 3 pages
can come up because certain things are being tested and so on..

he told me a few things that i dont quite understand (or for that matter i
dont belive what he says is really true)..
he said:
1. on the instance about testing certain conditions to determine what page
to show..frames or a frameset can do exactly the same thing...i told him no
it didnt (who is right?)
2. he asked me in the scripts that have 3 or more pages built into them how
was the logo at the top of the page being shown.. i just told him that i
used normal html and put the logo at the top of the pages.. he said frames
wont let you do that (who is right??)

so im confused about that one.. he also said that plain html had an if else
statement in it.. i never heard of such a thing...

can somebody get me unconfused? and is it not really a good idea to have 3
or more pages built inside a php script? should the pages be called from the
script some way else?

tnx




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


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



Re: [PHP] php and html differences

2003-03-02 Thread Sunfire
well i told him it was probably java or something of the sort cuz he uses
java in his pages sometimes expecially when it comes to buttons or something
of that sort.. he has done about 24 web sites and all but 2 or 3 are framed
based with a minimum of 4 frames in it.. 1 for the logo 1 for a nav bar and
2 for content .. if he doesnt do that then he has a logo fram 2 nav bars and
a main content frame.. after that it can get up to 6 or even some pages i
seen with 8 frames in it... its annoying and i told him that for people that
are visually impared (which he is that himself) or people who use jaws for
windows screen reader on their computer frames arent the best thing in the
world to use.. i told him that frames can be usefull to a point but overall
they suck and moreso its a bad thing to get into for the blind users of his
pages.. he has the problem though of saying it doesnt make a bit of
difference to him if people have frames turned off or cant display frames or
the blind people have a hrd time with it...its their problem and not his.. i
told him toput a noframes section in the pages but he absolutely refuses
and so whatever i make with php/sql  has to fit in a frame 650 pixels wide
and we are running into lots of problems trying to get ie and netscape to
show the same thing in both browsers.. so i told him to drop the frames and
i basically got yelled at for it..

oh well he said that frames are good for the sighted people because it makes
things easier to find and makes the page look better...is this true or are
frames just utterly useless?

if you want a look at some of the stuff we done go to
www.wellstonmichigan.com/members/membersmain.htm and take a look... its a
front end part of a program i made for his web site...

btw i am also totally blind using jaws for windows and even though i have
great concepts of where to put stuff on pages he is telling me its all wrong
visually and it needs to be redone so he told me where to put stuff and i
had to move everything around on it..

if you do take a look at those pages the whole layout was my idea and i
wrote it myself without his changes... let me know if i am doing ok with it
or if he is right in that m atter..


sorry if this starting to fall outside php line but as far as php goes i
think its important things to concider in my php/sql programming life..
i know im not talking direct code but i do need to know if i have layout
problems or if the guy is taking his sight for granted...

tnx

- Original Message -
From: Darren Young [EMAIL PROTECTED]
To: 'Sunfire' [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 3:22 PM
Subject: RE: [PHP] php and html differences


 No, there are no test or conditional functions inside HTML, perhaps
 he's thinking of JavaScript. All HTML does is tells the browser how to
 render the page. It's extremely dumb and is best that way. The only
 thing I can think of at all is SSI or Server Side Includes which _can_
 do some very limited intelligent things. But that tends to be server
 specific and isn't used all that much any more. SSI was handy before
 dynamic languages were around such as PHP.

 Frames are just bad, it's too bad they were ever designed. All they do
 is provide compartments to render text on the browser, again there is
 no intelligence involved. Now, I could be wrong here since I stopped
 using frames many years ago so do some more research. You can always
 check the HTML specs at www.w3c.org or on Netscape's developer site.
 Netscape came up with the whole frame thing anyways.

 Frames won't let you display a logo? Get this guy a book on HTML and a
 clue at Kmart.

 I have MANY PHP pages that build the screen differently depending on the
 way it's called. While it may increase the individual page complexity,
 it does reduce overall site complexity. I prefer fewer pages doing more
 than tons of pages doing little things.

 I'd say overall you're on the right track and should stick to your guns.

 -Original Message-
 From: Sunfire [mailto:[EMAIL PROTECTED]
 Sent: Sunday, March 02, 2003 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] php and html differences


 hi..

 i guess this is a php related question (well sort of)  the person i work
 with decided that he was going to edit a few of my php scripts that make
 a web page out of variables and just different conditions that happen in
 the script.. he thought that he could use a gui html editor and edit the
 page.. well it worked and nothing happened bad... he just left any
 component alone that had a / in them next to the name of it.. well the
 other thing that happened was in another script i have there is 3 or so
 web pages built into the script.. based on what happens from the page
 thet calls that script either one of those 3 pages could be displayed..
 well when i told him that depending on what happens with the form that
 calls that page 1 of 3 pages can come up because certain things are
 being tested and so on..

 he told me a few things

Re: [PHP] php and html differences

2003-03-02 Thread Leif K-Brooks
If I was you, I would tell him he's insane.

Sunfire wrote:

hi..

i guess this is a php related question (well sort of)  the person i work
with decided that he was going to edit a few of my php scripts that make a
web page out of variables and just different conditions that happen in the
script.. he thought that he could use a gui html editor and edit the page..
well it worked and nothing happened bad... he just left any component alone
that had a / in them next to the name of it.. well the other thing that
happened was in another script i have there is 3 or so web pages built into
the script.. based on what happens from the page thet calls that script
either one of those 3 pages could be displayed.. well when i told him that
depending on what happens with the form that calls that page 1 of 3 pages
can come up because certain things are being tested and so on..
he told me a few things that i dont quite understand (or for that matter i
dont belive what he says is really true)..
he said:
1. on the instance about testing certain conditions to determine what page
to show..frames or a frameset can do exactly the same thing...i told him no
it didnt (who is right?)
2. he asked me in the scripts that have 3 or more pages built into them how
was the logo at the top of the page being shown.. i just told him that i
used normal html and put the logo at the top of the pages.. he said frames
wont let you do that (who is right??)
so im confused about that one.. he also said that plain html had an if else
statement in it.. i never heard of such a thing...
can somebody get me unconfused? and is it not really a good idea to have 3
or more pages built inside a php script? should the pages be called from the
script some way else?
tnx



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
 

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


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


Re: [PHP] php and html differences

2003-03-02 Thread Sunfire
well i have learned how to actually make better choices with the php and how
to display certain parts of a page rather than redo the whole page... so i
would have a certain web page with a table for example  and the first row
shows a static text from a db.. lets say its a company name  with a phone
number.. i found i can do:
tr
td
?php echo $company; ?
/td
/tr
?php
if(!empty($phone)) {
?
tr
td
?php echo $phone; ?
/td
/tr
?php } else { echo }
//on with the table...

i have found that way works better for me on rewriting tables with the same
page... or is there better way... ?


- Original Message -
From: Larry Brown [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 3:32 PM
Subject: RE: [PHP] php and html differences


 3 or more possible pages from one php page is what php was designed for.
It
 dynamically creates the page depending on what choices the client makes or
 criteria based on what type of browser the user is using or even where the
 client is (subnet).  You may be able to streamline the code though to make
 things easier to follow and shorten the scripts if you only change a
portion
 of the page depending on aforementioned criteria rather then rewriting the
 entire html 3 or more times.  I have never heard of dynamic choices being
 made in frames based on html alone.  A lot of reference books on html tend
 to throw in javascript pieces to help achieve some html authors' desired
 effect.  To my knowledge it isn't part of html though.

 Larry S. Brown
 Dimension Networks, Inc.
 (727) 723-8388

 -Original Message-
 From: Sunfire [mailto:[EMAIL PROTECTED]
 Sent: Sunday, March 02, 2003 3:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] php and html differences

 hi..

 i guess this is a php related question (well sort of)  the person i work
 with decided that he was going to edit a few of my php scripts that make a
 web page out of variables and just different conditions that happen in the
 script.. he thought that he could use a gui html editor and edit the
page..
 well it worked and nothing happened bad... he just left any component
alone
 that had a / in them next to the name of it.. well the other thing that
 happened was in another script i have there is 3 or so web pages built
into
 the script.. based on what happens from the page thet calls that script
 either one of those 3 pages could be displayed.. well when i told him that
 depending on what happens with the form that calls that page 1 of 3 pages
 can come up because certain things are being tested and so on..

 he told me a few things that i dont quite understand (or for that matter i
 dont belive what he says is really true)..
 he said:
 1. on the instance about testing certain conditions to determine what page
 to show..frames or a frameset can do exactly the same thing...i told him
no
 it didnt (who is right?)
 2. he asked me in the scripts that have 3 or more pages built into them
how
 was the logo at the top of the page being shown.. i just told him that i
 used normal html and put the logo at the top of the pages.. he said frames
 wont let you do that (who is right??)

 so im confused about that one.. he also said that plain html had an if
else
 statement in it.. i never heard of such a thing...

 can somebody get me unconfused? and is it not really a good idea to have 3
 or more pages built inside a php script? should the pages be called from
the
 script some way else?

 tnx




 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


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





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


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



Re: [PHP] php and html differences

2003-03-02 Thread Sunfire
already did that.. he even said whats new... *fear that* if i work for
someone like that?? hrm...


- Original Message -
From: Leif K-Brooks [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 3:55 PM
Subject: Re: [PHP] php and html differences


 If I was you, I would tell him he's insane.

 Sunfire wrote:

 hi..
 
 i guess this is a php related question (well sort of)  the person i work
 with decided that he was going to edit a few of my php scripts that make
a
 web page out of variables and just different conditions that happen in
the
 script.. he thought that he could use a gui html editor and edit the
page..
 well it worked and nothing happened bad... he just left any component
alone
 that had a / in them next to the name of it.. well the other thing that
 happened was in another script i have there is 3 or so web pages built
into
 the script.. based on what happens from the page thet calls that script
 either one of those 3 pages could be displayed.. well when i told him
that
 depending on what happens with the form that calls that page 1 of 3 pages
 can come up because certain things are being tested and so on..
 
 he told me a few things that i dont quite understand (or for that matter
i
 dont belive what he says is really true)..
 he said:
 1. on the instance about testing certain conditions to determine what
page
 to show..frames or a frameset can do exactly the same thing...i told him
no
 it didnt (who is right?)
 2. he asked me in the scripts that have 3 or more pages built into them
how
 was the logo at the top of the page being shown.. i just told him that i
 used normal html and put the logo at the top of the pages.. he said
frames
 wont let you do that (who is right??)
 
 so im confused about that one.. he also said that plain html had an if
else
 statement in it.. i never heard of such a thing...
 
 can somebody get me unconfused? and is it not really a good idea to have
3
 or more pages built inside a php script? should the pages be called from
the
 script some way else?
 
 tnx
 
 
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
 
 
 
 

 --
 The above message is encrypted with double rot13 encoding.  Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


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



Re: [PHP] php and html differences

2003-03-02 Thread Ernest E Vogelsinger
At 21:25 02.03.2003, Sunfire said:
[snip]
i guess this is a php related question (well sort of)  the person i work
with decided that he was going to edit a few of my php scripts that make a

... oh my god.

he told me a few things that i dont quite understand (or for that matter i
dont belive what he says is really true)..
he said:
1. on the instance about testing certain conditions to determine what page
to show..frames or a frameset can do exactly the same thing...i told him no
it didnt (who is right?)

Framesets are HTML constructs to divide a browser window in adjacent areas
to display more than one page at the same time. There's nothing what a
frameset construct can do to implement any logic - the page that's shown in
a frame is available in the src tag.

2. he asked me in the scripts that have 3 or more pages built into them how
was the logo at the top of the page being shown.. i just told him that i
used normal html and put the logo at the top of the pages.. he said frames
wont let you do that (who is right??)

Not within the frameset, of course... if you have a frameset you don't have
a body, that's it.

so im confused about that one.. he also said that plain html had an if else
statement in it.. i never heard of such a thing...

Never heard such bullshit.

can somebody get me unconfused? and is it not really a good idea to have 3
or more pages built inside a php script? should the pages be called from the
script some way else?

Boy - some of my applicatinos server a couple of hundred pages out of a
single script (from the database, that is)...


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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



Re: [PHP] php and html differences

2003-03-02 Thread Ernest E Vogelsinger
At 21:54 02.03.2003, Sunfire said:
[snip]
well i told him it was probably java or something of the sort cuz he uses
java in his pages sometimes expecially when it comes to buttons or something

right, you can do some logic with JavaScript (don't confuse that with Java
please!). There's a big BUT there - you can never be sure the client
browser gets it right, be it because JS is switched off, or some malicious
guy tries to trick your application.

oh well he said that frames are good for the sighted people because it makes
things easier to find and makes the page look better...is this true or are
frames just utterly useless?

Layout is a matter of taste, there's no final judgement about this, I
believe. I don't really like your particular layout of the site for two
reasons:
- the graphics render horribly (still alpha, going to be better?)
- the list scrolls endlessly - there must be a better way to display
records found

That doesn't mean that frames are the way to go - usually frames make a
site more complicated from a technical view. With languages like PHP it's
very easy to generate good-looking pages that are easy to navigate - start
your thoughts by trying to separate data and logic from presentation.

btw i am also totally blind using jaws for windows and even though i have
great concepts of where to put stuff on pages he is telling me its all wrong
visually and it needs to be redone so he told me where to put stuff and i
had to move everything around on it..

If he's the boss you should do what he wants; if you believe you have a
better concept try to make an alternative presentation.

sorry if this starting to fall outside php line but as far as php goes i
think its important things to concider in my php/sql programming life..
i know im not talking direct code but i do need to know if i have layout
problems or if the guy is taking his sight for granted...

Presentation doesn't have anything to do with web programming - that's the
HTML stuff. It's just composed by your application. Have a look at some
template engines like Smarty to get an idea.


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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



Re: [PHP] php and html differences

2003-03-02 Thread Sunfire

- Original Message -
From: Ernest E Vogelsinger [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 5:58 PM
Subject: Re: [PHP] php and html differences


 At 21:25 02.03.2003, Sunfire said:
 [snip]
 i guess this is a php related question (well sort of)  the person i work
 with decided that he was going to edit a few of my php scripts that make
a

 ... oh my god.
your telling me...messed up the whole thing and i had to basically rewrite a
700 line script cuz of it too

 he told me a few things that i dont quite understand (or for that matter
i
 dont belive what he says is really true)..
 he said:
 1. on the instance about testing certain conditions to determine what
page
 to show..frames or a frameset can do exactly the same thing...i told him
no
 it didnt (who is right?)

 Framesets are HTML constructs to divide a browser window in adjacent areas
 to display more than one page at the same time. There's nothing what a
 frameset construct can do to implement any logic - the page that's shown
in
 a frame is available in the src tag.
yup i got that but he uses frames way too much and it bothers my
scripts..i.e. cant always get a table to fit in the frame the way he wants
it to..

 2. he asked me in the scripts that have 3 or more pages built into them
how
 was the logo at the top of the page being shown.. i just told him that i
 used normal html and put the logo at the top of the pages.. he said
frames
 wont let you do that (who is right??)

 Not within the frameset, of course... if you have a frameset you don't
have
 a body, that's it.
i mean i hard coded the logo inside of the php script for every page that
was in there.. he said frames cant display a logo

 so im confused about that one.. he also said that plain html had an if
else
 statement in it.. i never heard of such a thing...

 Never heard such bullshit.
me either...

 can somebody get me unconfused? and is it not really a good idea to have
3
 or more pages built inside a php script? should the pages be called from
the
 script some way else?

 Boy - some of my applicatinos server a couple of hundred pages out of a
 single script (from the database, that is)...

wow a very large script then... must be right on what im doing then... so
how do you stop him from editing my scripts with a gui html editor then...ug



 --
O Ernest E. Vogelsinger
(\)ICQ #13394035
 ^ http://www.vogelsinger.at/





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


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



Re: [PHP] php and html differences

2003-03-02 Thread Jason Sheets
On Sun, 2003-03-02 at 16:55, Sunfire wrote:
 - Original Message -
 From: Ernest E Vogelsinger [EMAIL PROTECTED]
 To: Sunfire [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Sunday, March 02, 2003 5:58 PM
 Subject: Re: [PHP] php and html differences
 
 
  At 21:25 02.03.2003, Sunfire said:
  [snip]
 
  Boy - some of my applicatinos server a couple of hundred pages out of a
  single script (from the database, that is)...
 
 wow a very large script then... must be right on what im doing then... so
 how do you stop him from editing my scripts with a gui html editor then...ug
You might consider using a template engine, seperate your HTML from your
PHP logic, that way if he is in charge of the HTML he doesn't touch your
code.  I'd suggest using CVS as well or at least making backups so you
don't have to rewrite stuff when someone messes it up.  Other than that
you could make it a policy where only you change your scripts, they can
submit patches to you and you can apply them but they don't have direct
edit access to your code.

Jason
 
 
 
  --
 O Ernest E. Vogelsinger
 (\)ICQ #13394035
  ^ http://www.vogelsinger.at/
 
 
 
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
-- 
Jason Sheets [EMAIL PROTECTED]

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



Re: [PHP] php and html differences

2003-03-02 Thread Sunfire
where could i get a templet editor from that is good and fairly easy to use?

- Original Message -
From: Jason Sheets [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 7:07 PM
Subject: Re: [PHP] php and html differences


 On Sun, 2003-03-02 at 16:55, Sunfire wrote:
  - Original Message -
  From: Ernest E Vogelsinger [EMAIL PROTECTED]
  To: Sunfire [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Sunday, March 02, 2003 5:58 PM
  Subject: Re: [PHP] php and html differences
 
 
   At 21:25 02.03.2003, Sunfire said:
   [snip]
  
   Boy - some of my applicatinos server a couple of hundred pages out of
a
   single script (from the database, that is)...
  
  wow a very large script then... must be right on what im doing then...
so
  how do you stop him from editing my scripts with a gui html editor
then...ug
 You might consider using a template engine, seperate your HTML from your
 PHP logic, that way if he is in charge of the HTML he doesn't touch your
 code.  I'd suggest using CVS as well or at least making backups so you
 don't have to rewrite stuff when someone messes it up.  Other than that
 you could make it a policy where only you change your scripts, they can
 submit patches to you and you can apply them but they don't have direct
 edit access to your code.

 Jason
 
 
  
   --
  O Ernest E. Vogelsinger
  (\)ICQ #13394035
   ^ http://www.vogelsinger.at/
  
  
  
 
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
 --
 Jason Sheets [EMAIL PROTECTED]



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


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



Re: [PHP] php and html differences

2003-03-02 Thread Jason Sheets
Smarty is an excellent template engine, it is available at
http://smarty.php.net

Jason
On Sun, 2003-03-02 at 17:13, Sunfire wrote:
 where could i get a templet editor from that is good and fairly easy to use?
 
 - Original Message -
 From: Jason Sheets [EMAIL PROTECTED]
 To: Sunfire [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Sunday, March 02, 2003 7:07 PM
 Subject: Re: [PHP] php and html differences
 
 
  On Sun, 2003-03-02 at 16:55, Sunfire wrote:
   - Original Message -
   From: Ernest E Vogelsinger [EMAIL PROTECTED]
   To: Sunfire [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Sunday, March 02, 2003 5:58 PM
   Subject: Re: [PHP] php and html differences
  
  
At 21:25 02.03.2003, Sunfire said:
[snip]
   
Boy - some of my applicatinos server a couple of hundred pages out of
 a
single script (from the database, that is)...
   
   wow a very large script then... must be right on what im doing then...
 so
   how do you stop him from editing my scripts with a gui html editor
 then...ug
  You might consider using a template engine, seperate your HTML from your
  PHP logic, that way if he is in charge of the HTML he doesn't touch your
  code.  I'd suggest using CVS as well or at least making backups so you
  don't have to rewrite stuff when someone messes it up.  Other than that
  you could make it a policy where only you change your scripts, they can
  submit patches to you and you can apply them but they don't have direct
  edit access to your code.
 
  Jason
  
  
   
--
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/
   
   
   
  
  
   ---
   Outgoing mail is certified Virus Free.
   Checked by AVG anti-virus system (http://www.grisoft.com).
   Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
  --
  Jason Sheets [EMAIL PROTECTED]
 
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
-- 
Jason Sheets [EMAIL PROTECTED]

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



Re: [PHP] php and html differences

2003-03-02 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Use Smarty(http://smarty.php.net/) and Maguma Studio(http://www.maguma.com/).
~Paul

On Sunday 02 March 2003 07:13 pm, Sunfire wrote:
 where could i get a templet editor from that is good and fairly easy to
 use?

[snip]

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
The webthe way you want it!


It said uses Windows 98 or better, so I loaded Linux!
Registered Linux User #183202 using Register Linux System # 81891

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+YqJUDyXNIUN3+UQRAlfbAJ9/GVpqmnhQHJOFCZmegOOxh/6JwwCfTJzG
H8abV4rC/ddiNb623gOVTLg=
=U6rL
-END PGP SIGNATURE-

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



[PHP] .php to .html?

2002-09-29 Thread Jean-Christian Imbeault

I am using PHP 4.2.3 and Apache 1.3.26

When a user comes to one of my php pages it comes out has http:..ip/page.php

How can I make my pages come out as .html instead of .php?

Thanks!

Jc


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




RE: [PHP] .php to .html?

2002-09-29 Thread Peter Houchin

just save the files u create as .html make sure in your apache httpd.conf
where you reference for .php that u have html in here as well and all will
be sweet.

eg in this line

AddType application/x-httpd-php .php4 .php .htm .php3 .html


anything you put in that line will be passed through php

cheers


 -Original Message-
 From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 30 September 2002 3:46 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] .php to .html?


 I am using PHP 4.2.3 and Apache 1.3.26

 When a user comes to one of my php pages it comes out has
 http:..ip/page.php

 How can I make my pages come out as .html instead of .php?

 Thanks!

 Jc


 --
 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] .php to .html?

2002-09-29 Thread Jean-Christian Imbeault

Peter Houchin wrote:

 just save the files u create as .html make sure in your apache httpd.conf
 where you reference for .php that u have html in here as well and all will
 be sweet.
 
 eg in this line
 
 AddType application/x-httpd-php .php4 .php .htm .php3 .html

Super! That helps *so* much!

Jc


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




[PHP] php and html

2002-07-18 Thread Keith Roberts

I am running into a situation where I need some serious help.  My
environment is:

Workstation - W2k, Frontpage
Server - Cobalt RaQ4i, Linux, Apache

Problem:  I need to access MySQL to display inventory information on the web
page.  When I have modified the httpd.conf file to parse html files through
php, the embedded php code works.  However, FrontPage no longer works and a
Web statisics application will not work (Webalizer).  I know I am not
setting something correctly, but dang if I know what it is.

I really need some help on this.  Please realize that I am relatively new to
internet programming, linux, php, etc.  I have done okay so far, but this is
beyond me at this point.  Any help will be greatly appreciated.






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




[PHP] php and html

2002-07-18 Thread Keith Roberts

I am running into a situation where I need some serious help.  My
environment is:

Workstation - W2k, Frontpage
Server - Cobalt RaQ4i, Linux, Apache

Problem:  I need to access MySQL to display inventory information on the web
page.  When I have modified the httpd.conf file to parse html files through
php, the embedded php code works.  However, FrontPage no longer works and a
Web statisics application will not work (Webalizer).  I know I am not
setting something correctly, but dang if I know what it is.

I really need some help on this.  Please realize that I am relatively new to
internet programming, linux, php, etc.  I have done okay so far, but this is
beyond me at this point.  Any help will be greatly appreciated.








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




RE: [PHP] php and html

2002-07-18 Thread Jay Blanchard

[snip]
I am running into a situation where I need some serious help.  My
environment is:

Workstation - W2k, Frontpage
Server - Cobalt RaQ4i, Linux, Apache

Problem:  I need to access MySQL to display inventory information on the web
page.  When I have modified the httpd.conf file to parse html files through
php, the embedded php code works.  However, FrontPage no longer works and a
Web statisics application will not work (Webalizer).  I know I am not
setting something correctly, but dang if I know what it is.

I really need some help on this.  Please realize that I am relatively new to
internet programming, linux, php, etc.  I have done okay so far, but this is
beyond me at this point.  Any help will be greatly appreciated.
[/snip]

Ahem ... we got it the first time... :^]

What exactly did you modify in httpd.conf?

Jay

Vegetarian: primitive word for lousy hunter 

*
* Want to meet other PHP developers *
* in your area? Check out:  *
* http://php.meetup.com/*
* No developer is an island ... *
*





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




[PHP] PHP as HTML

2002-06-04 Thread Tom Ray

Hey there-

I'm trying to use an .htaccess file to parse .php files as .html does anyone
know how to do this? It doesn't work with the same structure as parsing the
.shtml files.

any suggestions would be great.




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




Re: [PHP] PHP as HTML

2002-06-04 Thread Kevin Stone

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

- Original Message -
From: Tom Ray [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 2:41 PM
Subject: [PHP] PHP as HTML


 Hey there-

 I'm trying to use an .htaccess file to parse .php files as .html does
anyone
 know how to do this? It doesn't work with the same structure as parsing
the
 .shtml files.

 any suggestions would be great.




 --
 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] PHP as HTML

2002-06-04 Thread Richard Heyes

Tom Ray [EMAIL PROTECTED] wrote:

 I'm trying to use an .htaccess file to parse .php files as .html does anyone
 know how to do this? It doesn't work with the same structure as parsing the
 .shtml files.

Assuming you're using the module version, add this into your .htaccess file:

  AddType application/x-httpd-php .html

-- 
Richard Heyes
___
This mail sent using V-webmail - http://www.v-webmail.co.uk


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




Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray

I tried this, and it just prompts me to download the file from the server. I
can't see what the issue is.


- Original Message -
From: Kevin Stone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 5:35 PM
Subject: Re: [PHP] PHP as HTML


 AddType application/x-httpd-php .html
 AddType application/x-httpd-php .htm

 - Original Message -
 From: Tom Ray [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 04, 2002 2:41 PM
 Subject: [PHP] PHP as HTML


  Hey there-
 
  I'm trying to use an .htaccess file to parse .php files as .html does
 anyone
  know how to do this? It doesn't work with the same structure as parsing
 the
  .shtml files.
 
  any suggestions would be great.
 
 
 
 
  --
  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




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




RE: [PHP] PHP as HTML

2002-06-04 Thread Peter

Tom, this does work fine... doing what Kevin says...
ie the

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

is PHP installed as a module or cgi ver?

Cheers

-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 5 June 2002 9:49 AM
To: Kevin Stone; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP as HTML


I tried this, and it just prompts me to download the file from the server. I
can't see what the issue is.


- Original Message -
From: Kevin Stone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 5:35 PM
Subject: Re: [PHP] PHP as HTML


 AddType application/x-httpd-php .html
 AddType application/x-httpd-php .htm

 - Original Message -
 From: Tom Ray [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 04, 2002 2:41 PM
 Subject: [PHP] PHP as HTML


  Hey there-
 
  I'm trying to use an .htaccess file to parse .php files as .html does
 anyone
  know how to do this? It doesn't work with the same structure as parsing
 the
  .shtml files.
 
  any suggestions would be great.
 
 
 
 
  --
  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




--
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] PHP as HTML

2002-06-04 Thread Tom Ray

you know, that's a good question. How would I determine that on the server?

Peter wrote:

Tom, this does work fine... doing what Kevin says...
ie the

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

is PHP installed as a module or cgi ver?

Cheers

-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 5 June 2002 9:49 AM
To: Kevin Stone; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP as HTML


I tried this, and it just prompts me to download the file from the server. I
can't see what the issue is.


- Original Message -
From: Kevin Stone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 5:35 PM
Subject: Re: [PHP] PHP as HTML


  

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

- Original Message -
From: Tom Ray [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 2:41 PM
Subject: [PHP] PHP as HTML




Hey there-

I'm trying to use an .htaccess file to parse .php files as .html does
  

anyone


know how to do this? It doesn't work with the same structure as parsing
  

the


.shtml files.

any suggestions would be great.




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






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



  





Re: [PHP] PHP as HTML

2002-06-04 Thread Pushkar Pradhan

If you do a phpinfo() you get a columen Server API, mine lists CGI as it
is what I installed php as.
 you know, that's a good question. How would I determine that on the server?

 Peter wrote:

 Tom, this does work fine... doing what Kevin says...
 ie the
 
 AddType application/x-httpd-php .html
 AddType application/x-httpd-php .htm
 
 is PHP installed as a module or cgi ver?
 
 Cheers
 
 -Original Message-
 From: Tom Ray [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 5 June 2002 9:49 AM
 To: Kevin Stone; [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP as HTML
 
 
 I tried this, and it just prompts me to download the file from the server. I
 can't see what the issue is.
 
 
 - Original Message -
 From: Kevin Stone [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 04, 2002 5:35 PM
 Subject: Re: [PHP] PHP as HTML
 
 
 
 
 AddType application/x-httpd-php .html
 AddType application/x-httpd-php .htm
 
 - Original Message -
 From: Tom Ray [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 04, 2002 2:41 PM
 Subject: [PHP] PHP as HTML
 
 
 
 
 Hey there-
 
 I'm trying to use an .htaccess file to parse .php files as .html does
 
 
 anyone
 
 
 know how to do this? It doesn't work with the same structure as parsing
 
 
 the
 
 
 .shtml files.
 
 any suggestions would be great.
 
 
 
 
 --
 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
 
 
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
 



-Pushkar S. Pradhan


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




Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray

Thanks. I got the issue figured out. There was an .htaccess file in the 
root of the website that I had forgotten about, it was affecting 
everything due to it's bad config.

Pushkar Pradhan wrote:

If you do a phpinfo() you get a columen Server API, mine lists CGI as it
is what I installed php as.
  

you know, that's a good question. How would I determine that on the server?

Peter wrote:



Tom, this does work fine... doing what Kevin says...
ie the

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

is PHP installed as a module or cgi ver?

Cheers

-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 5 June 2002 9:49 AM
To: Kevin Stone; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP as HTML


I tried this, and it just prompts me to download the file from the server. I
can't see what the issue is.


- Original Message -
From: Kevin Stone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 5:35 PM
Subject: Re: [PHP] PHP as HTML




  

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

- Original Message -
From: Tom Ray [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 2:41 PM
Subject: [PHP] PHP as HTML






Hey there-

I'm trying to use an .htaccess file to parse .php files as .html does


  

anyone




know how to do this? It doesn't work with the same structure as parsing


  

the




.shtml files.

any suggestions would be great.




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






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





  




-Pushkar S. Pradhan


  





RE: [PHP] PHP in HTML

2002-05-17 Thread Peter

I find it better than having every page go thru php not to mention quicker.



-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 May 2002 3:52 PM
To: Peter
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP in HTML


On Fri, 17 May 2002, Peter wrote:
 there are also possible good reasons for sending .html files through
 php. like if you don't want users to know that your website is written
 in php.
 
 a better way to do that would be to make up your own extension so
 instead of having your server use .php for php files make it use .web or
 what ever you like ...

Why is that better? 

There are certain little weirdnesses that crop up when HTML pages have 
file names that fool lesser platforms into thinking they're not HTML, 
especially when they try to save them locally.

miguel



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




RE: [PHP] PHP in HTML

2002-05-17 Thread Miguel Cruz

Do you really find it noticeable quicker? Benchmarks I've seen (none of
them that current) don't seem to support that. Depending on the software
versions involved, it seems to be anywhere from much faster through PHP to
a few % slower. Certainly no major penalty in any case.

If there's interest I'd be willing to do some benchmarks on a few 
different setups to see where things stand with current software.

miguel

On Fri, 17 May 2002, Peter wrote:
 I find it better than having every page go thru php not to mention quicker.
 
 
 
 -Original Message-
 From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 17 May 2002 3:52 PM
 To: Peter
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] PHP in HTML
 
 
 On Fri, 17 May 2002, Peter wrote:
  there are also possible good reasons for sending .html files through
  php. like if you don't want users to know that your website is written
  in php.
  
  a better way to do that would be to make up your own extension so
  instead of having your server use .php for php files make it use .web or
  what ever you like ...
 
 Why is that better? 
 
 There are certain little weirdnesses that crop up when HTML pages have 
 file names that fool lesser platforms into thinking they're not HTML, 
 especially when they try to save them locally.
 
 miguel
 
 
 
 


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




RE: [PHP] PHP in HTML

2002-05-17 Thread Peter

true there's not that much difference .. though it would depend on the
server's connection speed as well as the machines grunt as to how much of
a difference there is.

-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 May 2002 4:40 PM
To: Peter
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP in HTML


Do you really find it noticeable quicker? Benchmarks I've seen (none of
them that current) don't seem to support that. Depending on the software
versions involved, it seems to be anywhere from much faster through PHP to
a few % slower. Certainly no major penalty in any case.

If there's interest I'd be willing to do some benchmarks on a few
different setups to see where things stand with current software.

miguel

On Fri, 17 May 2002, Peter wrote:
 I find it better than having every page go thru php not to mention
quicker.



 -Original Message-
 From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 17 May 2002 3:52 PM
 To: Peter
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] PHP in HTML


 On Fri, 17 May 2002, Peter wrote:
  there are also possible good reasons for sending .html files through
  php. like if you don't want users to know that your website is written
  in php.
 
  a better way to do that would be to make up your own extension so
  instead of having your server use .php for php files make it use .web or
  what ever you like ...

 Why is that better?

 There are certain little weirdnesses that crop up when HTML pages have
 file names that fool lesser platforms into thinking they're not HTML,
 especially when they try to save them locally.

 miguel







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




[PHP] PHP in HTML

2002-05-16 Thread Jeremy

Hi Folks,

A simple question that has me puzzled, obviously I have a config file wrong
somewhere..

Why does a filename.php file run as php and a filename.html with php code
embedded not produce a php result?

cheers,

Jeremy Burton
Senior Consultant
PERTH TOURIST LOUNGE

Level 2 Carillon City
Murray Street, Perth
Ph: +618 9229 2238
Fax: +618 9229 2220
Email: [EMAIL PROTECTED]




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




Re: [PHP] PHP in HTML

2002-05-16 Thread Justin French

Your Apache config file will be set to only parse PHP pages if they have the
.php extension this is a feature, not a big, because otherwise every
html page on your server will be parsed, rather than just the php ones...
you could modify your apache config iff you wished, but I wouldn't.  .html
for HTML, .php for PHP, all is well.

Justin French


on 17/05/02 12:14 PM, Jeremy ([EMAIL PROTECTED]) wrote:

 Hi Folks,
 
 A simple question that has me puzzled, obviously I have a config file wrong
 somewhere..
 
 Why does a filename.php file run as php and a filename.html with php code
 embedded not produce a php result?
 
 cheers,
 
 Jeremy Burton
 Senior Consultant
 PERTH TOURIST LOUNGE
 
 Level 2 Carillon City
 Murray Street, Perth
 Ph: +618 9229 2238
 Fax: +618 9229 2220
 Email: [EMAIL PROTECTED]
 
 
 


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




RE: [PHP] PHP in HTML

2002-05-16 Thread Peter

if your using apache for you web server .. in httpd.conf you can set it so
you have the following config..
(this is on windows but same basically applies to other OS's)

LoadModule php4_module c:/phpdev/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .html

this will enable .html files to be run through php at the moment you'd have
like this

LoadModule php4_module c:/phpdev/php/sapi/php4apache.dll
AddType application/x-httpd-php .php

there for .html are not run through php and there for the php code in there
is not going to be of use..

hope that helped.



-Original Message-
From: Jeremy [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 May 2002 12:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP in HTML


Hi Folks,

A simple question that has me puzzled, obviously I have a config file wrong
somewhere..

Why does a filename.php file run as php and a filename.html with php code
embedded not produce a php result?

cheers,

Jeremy Burton
Senior Consultant
PERTH TOURIST LOUNGE

Level 2 Carillon City
Murray Street, Perth
Ph: +618 9229 2238
Fax: +618 9229 2220
Email: [EMAIL PROTECTED]




--
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] PHP in HTML

2002-05-16 Thread Jerome Houston

yeah, just find in your web server where to tell it what kind of files to 
send through php.

there are also possible good reasons for sending .html files through php.  
like if you don't want users to know that your website is written in php.

-jerome


Original Message Follows
From: Justin French [EMAIL PROTECTED]
To: Jeremy [EMAIL PROTECTED]

Your Apache config file will be set to only parse PHP pages if they have the
.php extension this is a feature, not a big, because otherwise every
html page on your server will be parsed, rather than just the php ones...
you could modify your apache config iff you wished, but I wouldn't.  .html
for HTML, .php for PHP, all is well.

Justin French


on 17/05/02 12:14 PM, Jeremy ([EMAIL PROTECTED]) wrote:

  Hi Folks,
 
  A simple question that has me puzzled, obviously I have a config file 
wrong
  somewhere..
 
  Why does a filename.php file run as php and a filename.html with php code
  embedded not produce a php result?
 
  cheers,
 
  Jeremy Burton
  Senior Consultant
  PERTH TOURIST LOUNGE
 
  Level 2 Carillon City
  Murray Street, Perth
  Ph: +618 9229 2238
  Fax: +618 9229 2220
  Email: [EMAIL PROTECTED]
 
 
 


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





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




RE: [PHP] PHP in HTML

2002-05-16 Thread Peter


snip

there are also possible good reasons for sending .html files through php.
like if you don't want users to know that your website is written in php.

-jerome
/snip


a better way to do that would be to make up your own extension so instead of
having your server use .php for php files make it use .web or what ever you
like ...


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




Re: [PHP] PHP in HTML

2002-05-16 Thread Jason Wong

On Friday 17 May 2002 13:33, Jerome Houston wrote:
 yeah, just find in your web server where to tell it what kind of files to
 send through php.

 there are also possible good reasons for sending .html files through php.
 like if you don't want users to know that your website is written in php.

Unless it has been configured otherwise, they can tell from the HTTP headers 
that you're using php.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
A student who changes the course of history is probably taking an exam.
*/


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




RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz

On Fri, 17 May 2002, Peter wrote:
 there are also possible good reasons for sending .html files through
 php. like if you don't want users to know that your website is written
 in php.
 
 a better way to do that would be to make up your own extension so
 instead of having your server use .php for php files make it use .web or
 what ever you like ...

Why is that better? 

There are certain little weirdnesses that crop up when HTML pages have 
file names that fool lesser platforms into thinking they're not HTML, 
especially when they try to save them locally.

miguel


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




[PHP] PHP and HTML

2002-05-15 Thread Alia Mikati

Hi everybody
Plz can u help me with this? I have an html file that diplays images. And 
I want to use PHP to parse this file: i.e. to display those images and 
their sources. How can this be done?
Thx a lot
Alia



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




[PHP] php and html image tag...

2002-04-08 Thread Jas

Ok here is my problem, I have a piece of code that queries the database
pulls the results of a table into an array, on another file the results of
that array are used with a require function and then each variable is echoed
to the screen where I need it, I have a piece of javascript to open a pop up
window and the code is as such...
a href='javascript:openPopWin(?php echo $ad01; ?, 420,545, , 0,
0)'onmouseover=window.status='This weeks full page ad';return true
As you can see I have placed the results of the array within my a href=
tag and it works fine.. however the second part img src=?php echo
$ad01_t; ? width=200 height=100 vspace=0 hspace=0 border=0/a
Will not pull the results of the array into the page, I don't know if this
is a valid piece or not, any help would be great.  Thanks in advance.
Jas



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




[PHP] PHP from HTML

2002-04-07 Thread Matja¾ Prtenjak

HI,

Is this possible?

SERVER1 with PHP some file with name xTest.php
xTest.php:
? echo(Hi from SERVER1); ?

SERVER2 without PHP some file with name file1.html
file1.html:
html
  body
Server1 is saying : ?
  /body
/html

How can I make HTML file (on SERVER2) say 'Server1 is saying : Hi from
SERVER1'?

TIA
Matja¾ Prtenjak







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




[PHP] PHP from HTML

2002-04-07 Thread Matja¾ Prtenjak

HI,

Is this possible?

SERVER1 with PHP some file with name xTest.php
xTest.php:
? echo(Hi from SERVER1); ?

SERVER2 without PHP some file with name file1.html
file1.html:
html
  body
Server1 is saying : ?
  /body
/html

How can I make HTML file (on SERVER2) say 'Server1 is saying : Hi from
SERVER1'?

TIA
Matja¾ Prtenjak




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




[PHP] PHP driven HTML-web front end software tools

2002-01-16 Thread Dennis Gearon

I'm slowly working on a PHP driven, html-web front end state machine design
tool. It uses an XML repository for the data, and renders a PHP file for
execution. It is good for moderate sized scripts and even better for designing
the inside of objects.

It would be a perfect compliment to a UML design tool, also having a web based
front end. Anybody know if someone has one, is working on one, etc? I would want
it to generate the PHP code for the object framework, i.e.

class object0{
function object0(){;}
function as_shown_in_UML_diagram(){;}
}

class object1 extends object0{
function object1(){;}
function as_shown_in_UML_diagram(){;}
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP outside HTML

2001-12-05 Thread John Kolvereid

Hi,
I'm a little confused.  I see the advantage of PHP within HTML.
However, a few of the examples of ECHO include the '\n' char.  Since
this is not valid within HTML, I conclude they are addressing this for
OUTSIDE HTML.  Please advise.  Thanks.

--
  John Kolvereid
  http://www.odinfo.com
  http://www.kolvereid.com
  [EMAIL PROTECTED]
  1.610.296.4485



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP outside HTML

2001-12-05 Thread Tyler Longren

PHP can be used on the command line if necessary.  Or the \n characters can
be printed to a text file or some other document that use's \n.  To compile
PHP for use on the command line, don't specify a web server to compile it
with.  Example...instead of this:
./configure --with-apxs2=/usr/local/apach2/bin/apxs --with-mysql

do this:
./configure --with-mysql

Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com

- Original Message -
From: John Kolvereid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 12:24 AM
Subject: [PHP] PHP outside HTML


 Hi,
 I'm a little confused.  I see the advantage of PHP within HTML.
 However, a few of the examples of ECHO include the '\n' char.  Since
 this is not valid within HTML, I conclude they are addressing this for
 OUTSIDE HTML.  Please advise.  Thanks.

 --
   John Kolvereid
   http://www.odinfo.com
   http://www.kolvereid.com
   [EMAIL PROTECTED]
   1.610.296.4485



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP outside HTML

2001-12-05 Thread Martin Towell

it's so it's easier to read the output

-Original Message-
From: John Kolvereid [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP outside HTML


Hi,
I'm a little confused.  I see the advantage of PHP within HTML.
However, a few of the examples of ECHO include the '\n' char.  Since
this is not valid within HTML, I conclude they are addressing this for
OUTSIDE HTML.  Please advise.  Thanks.

--
  John Kolvereid
  http://www.odinfo.com
  http://www.kolvereid.com
  [EMAIL PROTECTED]
  1.610.296.4485



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



Re: [PHP] PHP outside HTML

2001-12-05 Thread David Robley

On Thu,  6 Dec 2001 16:54, John Kolvereid wrote:
 Hi,
 I'm a little confused.  I see the advantage of PHP within HTML.
 However, a few of the examples of ECHO include the '\n' char.  Since
 this is not valid within HTML, I conclude they are addressing this for
 OUTSIDE HTML.  Please advise.  Thanks.


Among other uses, it makes your source code easier to read in a 'View 
Source'.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I'm embarrassed, Tom admitted readily.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP outside HTML

2001-12-05 Thread Michael A. Peters

On Wed, 05 Dec 2001 22:24:08 -0800
John Kolvereid [EMAIL PROTECTED] mentioned:

 Hi,
 I'm a little confused.  I see the advantage of PHP within HTML.
 However, a few of the examples of ECHO include the '\n' char.  Since
 this is not valid within HTML, I conclude they are addressing this for
 OUTSIDE HTML.  Please advise.  Thanks.

I find it extremely useful in general web programming.
For example, I have a cable modem with dhcp.
As such, occasionally my IP address changes- such as after I disconnect
from the web to go on vacation.

I use CVS to maintain my website that is on an external server.
If my IP address changes here at home, that means that the CVSROOT
environmental variable in my .bashrc and in all the CVS/Root files needs
to be changed, or I won't be able to use cvs.

So I have a password protected directory with a php script in it.
Once a day, my crontab uses wget with the username/password I specified to
wget that script.

What the php script does is write a bashrc file reflecting the new
CVSROOT.
\n is very handy for that, as it tells php to send a newline character.

//note- no, php does not have permission to write my .bashrc but I have a
cron job that cats the new bashrc (if it exists) onto the old one- and
updates the Root file in all the CVS directories

PHP is a fully featured wrapper language.
It can be used for everything from database to e-mail to pdf generation to
ldap to swf to you name it.
The ability to send the newline character is extremely critical for many
of these things.


 
 --
   John Kolvereid
   http://www.odinfo.com
   http://www.kolvereid.com
   [EMAIL PROTECTED]
   1.610.296.4485
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP within .html files

2001-08-16 Thread Paul S.

My UNIX apache server that I host from seems to be preset to execute PHP
code within html docs. That is, a php require statement within a .html
file is included, executed,  and sent to the browser.

Is this unusual? or standard? I ask because I would hope not to become
dependent on including php code in html docs and have them switch a
server setting back.

Of course, if that happens I guess I could rename my files from .html
to .php. But I really prefer to just having .html appear in the
browser URL bar.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP within .html files

2001-08-16 Thread Jon Haworth

Apache can be set up to parse whatever files you like as .php (you could
have .paul if you like...) - presumably your host has enabled this. If you
have access to .htaccess files (or the main server config, httpd.conf), you
can set this up on any Apache server with the line

AddType application/x-httpd-php .php .html

You can put as many extensions as you like in there, for example:

AddType application/x-httpd-php .php .php3 .php4 .html .phtml .foo .bar .baz
.xyzzy

Although this is probably overkill :-)


HTH
Jon


-Original Message-
From: Paul S. [mailto:[EMAIL PROTECTED]]
Sent: 16 August 2001 16:29
To: [EMAIL PROTECTED]
Subject: [PHP] PHP within .html files


My UNIX apache server that I host from seems to be preset to execute PHP
code within html docs. That is, a php require statement within a .html
file is included, executed,  and sent to the browser.

Is this unusual? or standard? I ask because I would hope not to become
dependent on including php code in html docs and have them switch a
server setting back.

Of course, if that happens I guess I could rename my files from .html
to .php. But I really prefer to just having .html appear in the
browser URL bar.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php in html-- what gives?

2001-07-24 Thread CGI GUY

I'm trying to test the following:

I have created a simple cookie script:

?php
if (!IsSet($session)) {
$cookievalue = md5(uniqid(rand()));
setcookie('session', $cookievalue, mktime
(8,0,0,7,31,2001));
} else {
mail([EMAIL PROTECTED], cookie, $session);
}
?

I have placed it in an html page, at the very top (no
spaces, lines, etc.), and have left no lines/spaces
between the '?' and 'html' tags. Yet the script
does not execute (nor does it return an error of any
kind). What gives?!?! 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php in html-- what gives?

2001-07-24 Thread Ben Bleything

Put it in a .php file.  Your webserver probably doesn't interpret PHP in
HTML files (as is proper).  If it MUST be in a HTML file, you'll have to
set up your webserver to interpret php in html files... that process
depends on your webserver.

Ben

On Tue, 24 Jul 2001, CGI GUY wrote:

 I'm trying to test the following:

 I have created a simple cookie script:

 ?php
 if (!IsSet($session)) {
 $cookievalue = md5(uniqid(rand()));
 setcookie('session', $cookievalue, mktime
 (8,0,0,7,31,2001));
 } else {
 mail([EMAIL PROTECTED], cookie, $session);
 }
 ?

 I have placed it in an html page, at the very top (no
 spaces, lines, etc.), and have left no lines/spaces
 between the '?' and 'html' tags. Yet the script
 does not execute (nor does it return an error of any
 kind). What gives?!?!


 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]