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...
Please help me!
I have migrated a shopping cart script from my test environment (PHP 4) to a live server (PHP 5).
When I open the site I get the following message:
Parse error: syntax error, unexpected T_STRING in /home/xxx/public_html/test/shoppingcart.php on line 1
Now I have been...
Hi All,
My hosting company has disabled this mail script following a spamming issue (a third party spamming, not me!!)
As it is php I thought it would be reasonably secure, but could anybody guide me on any obvious "holes"?
Thanks.
<?php
$my_email = "(email address) ";
$email =...
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...
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.