[PHP] phpMyAdmin--resetting auto increments to 0

2006-04-15 Thread alex
hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so i was wondering is it possible to som

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 http://www.

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): fa

[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: http://www.php.net/unsub.p

[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: main(/

Re: [PHP] Include Problem

2006-04-15 Thread Shaun
Warning: main(): Failed opening '/cms/templates/footer.php' for inclusion > (include_path='.:/lib/php') in > /home/m/y/mysite/public_html/cms/news/index.php on line 38 > > The file is definitely there, the script just doesn't seem to be picking > it > up, ha

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

[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 /home/aldug/soap_

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 p

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

RE: [PHP] Include Problem

2006-04-15 Thread Chrome
t/) 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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

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 : document.write('page'); page it is simple, and work fine. no need to have cookies enable-Nice, most of the methods disc

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 : document.write('page'); page it is simple, and work fine. no need to have cookies enable -- 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 fabien champel
js is client-side, php server side... it can't work fabien Chrome wrote: > How about > > > > > > > > if ($js) { > // whizzy Ajax code (or file include) > } else { > // generic warning (or include non-JS base file) > } > ?> > > I know that would work bu

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

2006-04-15 Thread Chrome
nce >> >> Dan > > > It works and if you want it to validate, just enclose the paragraph > in , like so: > > > > Sorry! This page requires Javascript to function properly! Please enable it > or get a decent browser. > > > > 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/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 "/" me

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 > > > > > > > > if ($js) { > // whizzy Ajax code (or file include) > } else { > // generic warning (or include non-JS base file) > } > ?> > > I know that would work but does it give the desired effec

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

2006-04-15 Thread Chrome
browser. To bad that php within those tags is read regardless or we would have an easy way to detect js. tedd -- ---- http://sperling.com __ NOD32 1.1490 (20060415) Information __ This message was checked

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

2006-04-15 Thread tedd
Something to consider might be: Sorry! This page requires Javascript to function properly! Please enable it or get a decent browser 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 difference Dan It works and if you want i

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

2006-04-15 Thread Chrome
unctionbut reading the user contributed articles on strpos at thephp site I got the code that does exactly that in 2-3 linesCheers! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1490 (20060415) Information __

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 ( ) 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 d

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... --Makes sense and pretty easy, this was suggested a while back, si

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: > and on the top of the page (php file) before you grab info from database and language info (maybe i the header file): -afan > On 15 Apr 2006, at 12:51, Alain Roger wrote: > >> but i do not want to

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

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 ( ) 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 whe

[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 ( ) 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 flags (

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

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 mu

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

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 no