RE: [PHP] Not sure if this is a php problem or a mysql problem

2006-03-29 Thread Weber Sites LTD
If you want to do it in PHP you can always do : $Tomorrow = date( "Y-m-d", strtotime ("1 day" ) ) ; Or more general : http://www.weberdev.com/get_example-292.html Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. SEO Data Monitor http://seo.weberdev.

Re: [PHP] Not sure if this is a php problem or a mysql problem

2006-03-29 Thread Angelo Zanetti
Chris wrote: Paul Goepfert wrote: Hi all, I have developed a php functilon that is to return the date +1 from a Mysql database. My sql statement is as follows SELECT dayNum FROM Days Where dayNum >= day(curdate())+1; The function works great on the intended webserver but when placed on a d

Re: [PHP] Not sure if this is a php problem or a mysql problem

2006-03-28 Thread Chris
Paul Goepfert wrote: Hi all, I have developed a php functilon that is to return the date +1 from a Mysql database. My sql statement is as follows SELECT dayNum FROM Days Where dayNum >= day(curdate())+1; The function works great on the intended webserver but when placed on a different mysql s

Re: [PHP] not sure, what now

2006-02-25 Thread Michael Hulse
To be more specific: Based on error message you posted: #Start from server root: include($_SERVER['DOCUMENT_ROOT'].'/inc/siteconfig.php'); Hth, gl, M On Feb 25, 2006, at 7:31 PM, Michael Hulse wrote: Try changing all includes that look like this: include('/folder/file.php'); ... to this:

Re: [PHP] not sure, what now

2006-02-25 Thread Michael Hulse
On Feb 25, 2006, at 2:22 PM, Schalk wrote: *Warning*: main(): open_basedir restriction in effect. File(../inc/siteconfig.php) is not within the allowed path(s): (/home/httpd/vhosts/sealbeachprofessionals.com/httpdocs:/tmp) in /home/httpd/vhosts/sealbeachprofessionals.com/httpdocs/home.php on li

Re: [PHP] not sure, what now

2006-02-25 Thread Richard Lynch
Find your php.ini and read it. Actually, find your httpd.conf and read it, because you can change JUST DocumentRoot in httpd.conf, and not move any files around. 'Course, you'll have to put the files back, but you won't have to change any of the paths embedded in the PHP web application. On Sat,

Re: [PHP] not sure, what now

2006-02-25 Thread chris smith
> Where is Open_basedir set? In a global php setting or can it be done > site by site? And if so, what is the most logical place to put the file > that controls this? It's set by apache and unless you have root access you don't have any control over it. Re-read the error message, php tells you al

Re: [PHP] not sure, what now

2006-02-25 Thread Schalk
chris smith wrote: On 2/26/06, Schalk <[EMAIL PROTECTED]> wrote: Greetings All, I am pretty new to PHP and are tasked to move a clients site from: www.domain.com/somedirectory/home.php to www.home.php If you're moving a clients site wouldn't your work be a better place to ask? They w

Re: [PHP] not sure, what now

2006-02-25 Thread chris smith
On 2/26/06, Schalk <[EMAIL PROTECTED]> wrote: > Greetings All, > > I am pretty new to PHP and are tasked to move a clients site from: > > www.domain.com/somedirectory/home.php to www.home.php If you're moving a clients site wouldn't your work be a better place to ask? They will have processes etc

Re: [PHP] not sure, what now

2006-02-25 Thread Rory Browne
On 2/25/06, Schalk <[EMAIL PROTECTED]> wrote: > > Greetings All, > > I am pretty new to PHP and are tasked to move a clients site from: > > www.domain.com/somedirectory/home.php to www.home.php Is there a .php tld? Sounds simple at first but, when I moved the files to the root of the > httpdocs

Re: [PHP] not sure why form submission gives me error

2005-07-16 Thread Burhan Khalid
Edward Vermillion wrote: Bruce Gilbert wrote: Hello, I have a form on my site http://www.inspired-evolution.com/Contact.php produces this error on submission Parse error: parse error, unexpected T_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line 35 Well.. i

Re: [PHP] not sure why form submission gives me error

2005-07-15 Thread Edward Vermillion
Bruce Gilbert wrote: Hello, I have a form on my site http://www.inspired-evolution.com/Contact.php produces this error on submission Parse error: parse error, unexpected T_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line 35 Well.. it says it's found a strin

Re: [PHP] not sure why form submission gives me error

2005-07-15 Thread glumtail
I recommend PSPad 2005/7/16, Bruce Gilbert <[EMAIL PROTECTED]>: > > Hello, > > I have a form on my site > > http://www.inspired-evolution.com/Contact.php > > produces this error on submission > > Parse error: parse error, unexpected T_STRING in > /hsphere/local/home/bruceg/inspired-evolution

Re: [PHP] Not sure

2004-05-14 Thread Marek Kilimajer
Brent Clark wrote: Hi all I have the following php code: echo" \n"; I now have the following javascript code: Select all  Invert selection use and document.frm.elements['frow[]'][i].checked. And you will get javascript error if you refer to document.frm.frow as both array and object, use typ

RE: [PHP] Not sure

2004-05-14 Thread Ford, Mike [LSS]
On 14 May 2004 09:59, Brent Clark wrote: > Hi all > > I have the following php code: > > echo"  value=\"$var\">\n"; > > I now have the following javascript code: > > > Select all  > Invert > selection > > the problem I have is that if I change the > > echo"  value=\"$var\">\n"; to > echo"

RE: [PHP] not sure why regex is doing this

2004-01-09 Thread craig
Thanks Kelly. That works just like I wanted, only starting the regex engine once. Guess I'll have to figure out lookahead. -Craig > -Original Message- > From: Kelly Hallman [mailto:[EMAIL PROTECTED] > Sent: January 9, 2004 11:24 AM > To: craig > Cc: Php > Subject:

Re: [PHP] not sure why regex is doing this

2004-01-09 Thread Kelly Hallman
On Fri, 9 Jan 2004, craig wrote: > (4536,'golf tournament management',430,0,0), > (1434,'Premium golf balls',,,0), > > I have to replace the blank entries (,,) with NULLs, using this regex: > $query = preg_replace('/,\s*,/',',NULL,', $query, -1); > after this line, only ONE of the ,, sets is repla

Re: [PHP] Not sure of the best way to handle a problem

2003-08-04 Thread David Smith
Actually it does have to do with php.One of my main questions was also about whether it was best to use the script from the command-line or from the web server itself. The network question had to do with php as well. Whether it would be best to use samba or another source. VNC is a poor idea. After

Re: [PHP] Not sure how to describe this problem..

2001-07-10 Thread infoz
I agreee that it sounds like you're running into concurrency issues with mySQL. I would just adopt a statistical approach, and pick a banner at random each time...if the random number generator works properly, then you'll get an even distribution over the universe of available banners. If you ne