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

2006-03-29 Thread Weber Sites LTD
EO Data Monitor http://seo.weberdev.com -Original Message- From: Paul Goepfert [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 2:20 AM To: php-general@lists.php.net Subject: [PHP] Not sure if this is a php problem or a mysql problem Hi all, I have developed a php functilon that is to retur

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

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

2006-03-28 Thread Paul Goepfert
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 server (The one I have u

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

[PHP] not sure, what now

2006-02-25 Thread Schalk
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 Sounds simple at first but, when I moved the files to the root of the httpdocs I get an array of errors in the vain of: *Warning*: main(): open_basedir restri

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

[PHP] not sure why form submission gives me error

2005-07-15 Thread Bruce Gilbert
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 here is the PHP code, please let me know if you see where

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"

[PHP] Not sure

2004-05-14 Thread Brent Clark
Hi all I have the following php code: echo" \n"; I now have the following javascript code: Select all  Invert selection the problem I have is that if I change the echo" \n"; to echo" \n"; Then my php task is fine, but if I make it a normal variable, like name="frow" But then my PHP does no

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

[PHP] not sure why regex is doing this

2004-01-09 Thread craig
Hi, I have a text file that I have to parse and insert into a db. these are a couple of sample lines (they are part of the variable $query) (4536,'golf tournament management',430,0,0), (1434,'Premium golf balls',,,0), I have to replace the blank entries (,,) with NULLs, and I am using this rege

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

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

2003-08-03 Thread David Smith
Hi: I have a slight problem that I'm not sure where to begin. I have multiple files on another server other then my linux box that needs to be renamed. These files are used under a particular software package and I am trying to switch them to another software package which would require them to be

[PHP] Not sure if it pass the first time : Help with imap attachment

2002-10-01 Thread Nokar
$attachdata[$x] = imap_base64($attachment); on that part sometimes the attachdata get empty so i did a IF but at that point i'm stuck. If i output it raw it will simply not work. Please help ! Here the code : if ($AsAttach == "Y") { for ($x=0;$x PID : $pid[$x] Type : $type[$x] "; $attachment =

[PHP] Not sure how to loop this...(Newbie)

2002-05-31 Thread webmaster
I have this code:   $end_date = time(); $year = 2002; $month = 4; $monthi = $month + 1; $time = SecondsInMonth($month, $year); $time_i = SecondsInMonth($monthi, $year); $query = "SELECT * FROM news WHERE date < $time_i AND date > $time ORDER BY id"; $result = mysql_query($query); $num_results

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

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

2001-07-10 Thread Chad Day
I have a chunk of code in a webpage that works like this, to rotate some ads.. : if ($row = mysql_fetch_array($getads)) { do { $POS = $row[LASTPOS]; $ID = $row[ID]; $POS++; if ($POS > $