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
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
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
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
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:
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
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,
> 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
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
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
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
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
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
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
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
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
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
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"
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
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:
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
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
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
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
$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 =
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
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
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 > $
28 matches
Mail list logo