Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Stut
Ryan A wrote: 1) Is it possible to detect JavaScript via php... and yes I do know that JS is client side while PHP is server...but how else to do it? The reason I ask is before serving an AJAX page I would like to make sure JS is enabled, if not, serve the other normal page... I am sure I am not

[PHP] Apache 2.2 problems to protect folder with mod_authz_host

2006-04-15 Thread Dennis Neetix
Hello, We're having some trouble with upgrading our webserver from apache 2.0 to apache 2.2. Everything is working fine except one thing: We have created one alias (outside the web root folder). On this folder nobody from the internet should have access to it. Only the webserver should have

Re: [PHP] Apache 2.2 problems to protect folder with mod_authz_host

2006-04-15 Thread chris smith
On 4/15/06, Dennis Neetix [EMAIL PROTECTED] wrote: Hello, We're having some trouble with upgrading our webserver from apache 2.0 to apache 2.2. Everything is working fine except one thing: Ask the apache mailing list: http://httpd.apache.org/lists.html They will be able to give you a much

Re: [PHP] how should MS Access DATETIME be handled in PHP?

2006-04-15 Thread chris smith
On 4/14/06, Bing Du [EMAIL PROTECTED] wrote: While all the data-munging in PHP is very interesting... Might I suggest that you just use MySQL's date_format() function to ask MySQL to give you the data you want in the first place? Some purists would claim that the database is not the

[PHP] refresh PHP page via onclick event

2006-04-15 Thread Alain Roger
Hi, Sorry to look like stupid for some of you, but i'm still not able to link to link (a /a) or to a button via onclick event) the refresh of my page. i've check META tag and also $PHP_SELF variable, but it does not work. here is what i would like to do. i have 1 PHP page on which i have 3

Re: [PHP] refresh PHP page via onclick event

2006-04-15 Thread chris smith
On 4/15/06, Alain Roger [EMAIL PROTECTED] wrote: Hi, Sorry to look like stupid for some of you, but i'm still not able to link to link (a /a) or to a button via onclick event) the refresh of my page. i've check META tag and also $PHP_SELF variable, but it does not work. What happens when

Re: [PHP] refresh PHP page via onclick event

2006-04-15 Thread Alain Roger
but i do not want to add some variable at the end of link... when user click on the flag, it should first store language into a $_SESSION variable and after redirect/refresh page. On 4/15/06, chris smith [EMAIL PROTECTED] wrote: On 4/15/06, Alain Roger [EMAIL PROTECTED] wrote: Hi, Sorry

Re: [PHP] refresh PHP page via onclick event

2006-04-15 Thread Richard Davey
On 15 Apr 2006, at 12:51, Alain Roger wrote: but i do not want to add some variable at the end of link... when user click on the flag, it should first store language into a $_SESSION variable and after redirect/refresh page. Not possible. Web pages don't work like that. You need the flags

Re: [PHP] refresh PHP page via onclick event

2006-04-15 Thread afan
Or, use form and images as button and you will not get variables at the end of the link: form method=post action=?= $_SERVER['PHP_SELF'] ? input type=images src=engFlag.jpg name=lang value=en input type=images src=fraFlag.jpg name=lang value=fr /form and on the top of the page (php file)

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Ryan A
Hey Stut, Thanks for replying. --- The way I do this is to serve the 'notmal page' first, but with the following snippet of JS in it... script language=javascript !-- location.href = '/url/for/ajax/page.php'; -- /script--Makes sense and pretty easy,

Re: [PHP] refresh PHP page via onclick event

2006-04-15 Thread tedd
At 1:40 PM +0200 4/15/06, Alain Roger wrote: Hi, Sorry to look like stupid for some of you, but i'm still not able to link to link (a /a) or to a button via onclick event) the refresh of my page. i've check META tag and also $PHP_SELF variable, but it does not work. here is what i would like

RE: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Chrome
(20060415) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread tedd
Something to consider might be: noscript Sorry! This page requires Javascript to function properly! Please enable it or get a decent browser /noscript !-- Normal page functions -- I haven't tested it so there is a chance it's fiction :) Of course, if web standards aren't a concern it makes no

RE: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Chrome
-- http://sperling.com __ NOD32 1.1490 (20060415) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread cajbecu
In your script, $js will be false false! Chrome wrote: How about ?php $js = true; ? noscript ?php $js = false; ? /noscript ?php if ($js) { // whizzy Ajax code (or file include) } else { // generic warning (or include non-JS base file) } ? I know that

[PHP] Re: Here is a silly question

2006-04-15 Thread Michelle Konzack
Am 2006-04-03 11:58:39, schrieb Wolf: I tend to stick /nav/header.php in for my includes, since I control the server. As long as the site translates root to the main directory of your website and not somewhere else, you can always have your links be /menu.php as server-speak / means rootme.

RE: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Chrome
To bad that php within those tags is read regardless or we would have an easy way to detect js. tedd __ NOD32 1.1490 (20060415) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread fabien champel
js is client-side, php server side... it can't work fabien Chrome wrote: How about ?php $js = true; ? noscript ?php $js = false; ? /noscript ?php if ($js) { // whizzy Ajax code (or file include) } else { // generic warning (or include non-JS base

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread fabien champel
for js detection, you can use that in a previous page : script type=text/javascript document.write('a href=ajax-page.htmlpage/a'); /script noscripta href=simple-page.htmlpage/a/noscript it is simple, and work fine. no need to have cookies enable -- PHP General Mailing List

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Ryan A
Hey, Thanks for replying. for js detection, you can use that in a previous page : script type=text/javascript document.write('a href=ajax-page.htmlpage/a'); /script noscripta href=simple-page.htmlpage/a/noscript it is simple, and work fine. no need to have

[PHP] Re: 2 questions: Search in array and detect JS

2006-04-15 Thread Rafael
Ryan A wrote: Hi, Like the subject says; I have two questions: 1) Is it possible to detect JavaScript via php... and yes I do know that JS is client side while PHP is server...but how else to do it? The reason I ask is before serving an AJAX page I would like to make sure JS is enabled, if not,

[PHP] Include Problem

2006-04-15 Thread Shaun
Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or

[PHP] Include Problem

2006-04-15 Thread Shaun
Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or

RE: [PHP] Include Problem

2006-04-15 Thread Chrome
__ NOD32 1.1490 (20060415) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include Problem

2006-04-15 Thread Mark Charette
Shaun wrote: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line 38 Most assuredly the file isn't there (do you have the include path set?) or the permissions are not sufficient to open the

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread John Wells
On 4/14/06, Ryan A [EMAIL PROTECTED] wrote: The reason I ask is before serving an AJAX page I would like to make sure JS is enabled, if not, serve the other normal page... I am sure I am not the first person to come accross this little problem, how did you solve it? Dan eluded to a big problem

[PHP] soapmapper error

2006-04-15 Thread Alex Duggan
Hello, I am trying to connect to a webservice with a wsdl. After creating a new SoapClient, I tried calling one of the methods. It returned this exception. Uncaught SoapFault exception: [SOAP-ENV:Server] SoapMapper:Converting data for SoapMapper failed inside the typemapper in

Re: [PHP] Include Problem

2006-04-15 Thread Shaun
Mark Charette [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shaun wrote: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line 38 Most assuredly the file isn't there (do you have

Re: [PHP] Include Problem

2006-04-15 Thread Shaun
to be picking it up, has anyone else had this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1490 (20060415) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com

[PHP] Re: Include Problem

2006-04-15 Thread Al
Check the file's permissions with your ftp utility Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning:

[PHP] Common Files

2006-04-15 Thread Shaun
Hi, We have a dedicated UNIX server running FreeBSD, is it possible to set a directory where we can place a set of common files that can be used by all of our web sites? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Include Problem

2006-04-15 Thread tedd
At 8:03 PM +0100 4/15/06, Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php):

Re: [PHP] Common Files

2006-04-15 Thread chris smith
We have a dedicated UNIX server running FreeBSD, is it possible to set a directory where we can place a set of common files that can be used by all of our web sites? Sure. Chuck them where-ever you want and then change your include path: http://www.php.net/manual/en/ini.core.php