Hi all.
I am preparing to install a new test server on my Windows XP machine using XAMPP, to upgrade from the very old PHPTRIAD version I put on years ago.
I have copied HTDocs to an external hard drive but was wondering if there is a way I could transfer the 40-50 databases I have in MYSQL...
Fixed it!!!
After much hair pulling etc I discovered that the server was parsing the comments and also (seemingly) the whitespace!
I believe that the text editor I was using was the culprit as I simply opened the file in Dreamweaver, saved it and reuploaded it to the server.
Voila! Works...
Thanks elck
I have tried the amended code but with no change to teh outcome :(
To amend what I said earlier, the development environment is PHP 4.1.1 and live is 4.4.7 so should they not be (nearly) the same?
Thanks for the reply.
Having stayed up all night, testing the class object and the "parent" file, line by line, I uploaded a simple class file:
<?php
class SimpleClass
{
test $var = 'a default value';
}
?>
To my suprise, when I called the file direct from the server, the same error...
...true;
} //close query
function get_contents()
{//open function
//get stuff in the cart and return in indexed array
$q1 = "SELECT * FROM ". $this->cart_table. " WHERE session='".$this->cart_id."'";
$incart_r = mysql_query($q1,$this->dblink) or die(mysql_error())...
...is shown below for information.\n";
$confirmationBody .="Regards. \n";
$confirmationBody .="Webmaster \n\n";
if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {
echo "<div align='center'><blockquote> <p>Sorry, the e-mail address you gave was invalid. Please...
I had never heard of that site before.
So many of my clients use obscure fonts, I spend hours trawling thru Google trying to match them.
You have saved me so much time, I may take the rest of the day off ;)
Thanks again.
This may be a bit of a no-brainer so my apologies in advance :)
I am trying to separate the items in a array with commas. Straight forward enough, except I am trying make it not have a comma on the last item.
To clarify, I am trying to do this:
item, item, item
but am getting
item, item...
Thank you, that works fine in dev - I will test it in production tomorrow. You may have saved me a heap of work!
One question though, whats is <<< EOS? Is it Perl?
Thanks for the response
I have tried mysql_escape_string, but again it adds slashes to the DB entry which means I have to add a striplashes command when displaying the data.
I was kinda hoping there was a simple way around it pre insert to the database. PHPmyadmin seems to have overcome the...
Please can anyone help me? I have been pulling out what is left of my hair for two days on this!
I have built a cms for a website that allows the client to add new journal entries using php/mysql.
It worked absolutely fine in my test environment (PHP4.1.1) however, as soon as I put it into...
Hi all.
A client wants a bells and whistles hit/stat counter attached to his site.
I usually use the statcounter.com freebie but he wants a more sophisticated product (and is willing to pay!!)
Any recommendations?
Thanks.
This question may prove to be threefold, so please bear with me!
Recently I have recoded my sites to include keywords in the url string as opposed to product id, i.e.
product.php?id=1234
becomes
product.php?product=shoes
The problem (if indeed it is a problem)is where there is more than one...
This question may prove to be threefold, so please bear with me!
Recently I have recoded my sites to include keywords in the url string as opposed to product id, i.e.
product.php?id=1234
becomes
product.php?product=shoes
The problem (if indeed it is a problem)is where there is more than one...
Ok, it seems so easy in principle!
I am trying to use mod_rewrite on my test machine - Windows XP, running Apache 1.3.23, PHP 4.1.1, MYSQL 3.23.27.
I have follwed a tutorial I found on the net but instead of getting the desired results I get a 400 Bad Request page.
The idea is that I request...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.