Upgraded PHP now website doesn"t work properly?

Upgraded PHP now website doesn"t work properly?

am 11.01.2010 01:52:23 von Kaya Saman

Hi,

I am hoping someone can help me??

I currently run Fedora 11 on an Apple PowerMac G4 and recently performed
an upgrade to it which rendered my site completely unsee able for a
while but then after re-saving it showed up through my browsers however
my menu bar was slightly altered probably due to lack of formatting.

Apache error logs claim this:

[Sun Jan 10 23:06:23 2010] [error] [client 192.168.1.110] PHP Parse
error: syntax error, unexpected T_STRING, expecting ',' or ';' in
/home/optiplex-networks/links.php on line 20, referer:
http://co111w.col111.mail.live.com/mail/InboxLight.aspx?n=45 4360575

I have attempted to enable PHP debugging but nothing is being shown!

To give an idea of where things are going wrong this is the start of the
file:


// Set the page title and include the HTML header.
$page_title = 'Optiplex Networks';
include ('./header.inc');
?>


ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);

echo '




Contributors to Optiplex
Networks:


If it weren't for these projects Optiplex Networks would not have
happened. My thanks and regards to everyone involved!













Line 20 is the line beginning with

If it weren't for.......

I don't understand why this should be an error as it's basic html!

The only php part I have used is just echoing the html out.

As shown the echo ' is closed off at the bottom of the file with:

';

?>

which is fine according the book I read about php.

Obviously something is wrong but I can't figure it out, if anyone can
give me a hand I'd very much appreciate it!

Many thanks,

Kaya

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 01:58:29 von Ashley Sheridan

--=-xSkTzfsTTXBh5szJzK5k
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Mon, 2010-01-11 at 02:52 +0200, Kaya Saman wrote:

> Hi,
>
> I am hoping someone can help me??
>
> I currently run Fedora 11 on an Apple PowerMac G4 and recently performed
> an upgrade to it which rendered my site completely unsee able for a
> while but then after re-saving it showed up through my browsers however
> my menu bar was slightly altered probably due to lack of formatting.
>
> Apache error logs claim this:
>
> [Sun Jan 10 23:06:23 2010] [error] [client 192.168.1.110] PHP Parse
> error: syntax error, unexpected T_STRING, expecting ',' or ';' in
> /home/optiplex-networks/links.php on line 20, referer:
> http://co111w.col111.mail.live.com/mail/InboxLight.aspx?n=45 4360575
>
> I have attempted to enable PHP debugging but nothing is being shown!
>
> To give an idea of where things are going wrong this is the start of the
> file:
>
> >
> // Set the page title and include the HTML header.
> $page_title = 'Optiplex Networks';
> include ('./header.inc');
> ?>
>
> >
> ini_set('display_errors',1);
> error_reporting(E_ALL|E_STRICT);
>
> echo '
>
>
>

class="style2">Name
class="style2">Address
class="style2">Description

>
>
Contributors to Optiplex
> Networks:

>
>

If it weren't for these projects Optiplex Networks would not have
> happened. My thanks and regards to everyone involved!


>
>
>
>
>
>
>
>
>
>
>
> Line 20 is the line beginning with

If it weren't for.......
>
> I don't understand why this should be an error as it's basic html!
>
> The only php part I have used is just echoing the html out.
>
> As shown the echo ' is closed off at the bottom of the file with:
>
> ';
>
> ?>
>
> which is fine according the book I read about php.
>
> Obviously something is wrong but I can't figure it out, if anyone can
> give me a hand I'd very much appreciate it!
>
> Many thanks,
>
> Kaya
>


The main issue I can see is that the single quote string delimiter that
you're using is also being used in the HTML text! Have you considered
using heredoc syntax instead?

echo <<
your html goes here

OUTPUT;

The only thing to watch out for here is that the OUTPUT; line is all on
it's own, and is preceeded with no whitespace at all. Also, the word
OUTPUT in this example can be whatever you feel like. The main advantage
ti heredoc is that you can use any quote characters you like within the
text and you can output any PHP variables in the text also as if you had
a double quoted string.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-xSkTzfsTTXBh5szJzK5k--

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 01:59:20 von Ashley Sheridan

--=-/tsM9erqEh2trU2QO7Nh
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Mon, 2010-01-11 at 02:52 +0200, Kaya Saman wrote:

> Hi,
>
> I am hoping someone can help me??
>
> I currently run Fedora 11 on an Apple PowerMac G4 and recently performed
> an upgrade to it which rendered my site completely unsee able for a
> while but then after re-saving it showed up through my browsers however
> my menu bar was slightly altered probably due to lack of formatting.
>
> Apache error logs claim this:
>
> [Sun Jan 10 23:06:23 2010] [error] [client 192.168.1.110] PHP Parse
> error: syntax error, unexpected T_STRING, expecting ',' or ';' in
> /home/optiplex-networks/links.php on line 20, referer:
> http://co111w.col111.mail.live.com/mail/InboxLight.aspx?n=45 4360575
>
> I have attempted to enable PHP debugging but nothing is being shown!
>
> To give an idea of where things are going wrong this is the start of the
> file:
>
> >
> // Set the page title and include the HTML header.
> $page_title = 'Optiplex Networks';
> include ('./header.inc');
> ?>
>
> >
> ini_set('display_errors',1);
> error_reporting(E_ALL|E_STRICT);
>
> echo '
>
>
>

> class="style2">Name
> class="style2">Address
> class="style2">Description

>
>
Contributors to Optiplex
> Networks:

>
>

If it weren't for these projects Optiplex Networks would not have
> happened. My thanks and regards to everyone involved!


>
>
>
>
>
>
>
>
>
>
>
> Line 20 is the line beginning with

If it weren't for.......
>
> I don't understand why this should be an error as it's basic html!
>
> The only php part I have used is just echoing the html out.
>
> As shown the echo ' is closed off at the bottom of the file with:
>
> ';
>
> ?>
>
> which is fine according the book I read about php.
>
> Obviously something is wrong but I can't figure it out, if anyone can
> give me a hand I'd very much appreciate it!
>
> Many thanks,
>
> Kaya
>


I also forgot to mention, it's worth getting an editor that comes with
syntax highlighting, as this would have shown you the problem right
away.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-/tsM9erqEh2trU2QO7Nh--

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 02:05:33 von Kenneth Sande

Ashley Sheridan wrote:
> On Mon, 2010-01-11 at 02:52 +0200, Kaya Saman wrote:
>
>
>> Hi,
>>
>> I am hoping someone can help me??
>>
>> I currently run Fedora 11 on an Apple PowerMac G4 and recently performed
>> an upgrade to it which rendered my site completely unsee able for a
>> while but then after re-saving it showed up through my browsers however
>> my menu bar was slightly altered probably due to lack of formatting.
>>
>> Apache error logs claim this:
>>
>> [Sun Jan 10 23:06:23 2010] [error] [client 192.168.1.110] PHP Parse
>> error: syntax error, unexpected T_STRING, expecting ',' or ';' in
>> /home/optiplex-networks/links.php on line 20, referer:
>> http://co111w.col111.mail.live.com/mail/InboxLight.aspx?n=45 4360575
>>
>> I have attempted to enable PHP debugging but nothing is being shown!
>>
>> To give an idea of where things are going wrong this is the start of the
>> file:
>>
>> >>
>> // Set the page title and include the HTML header.
>> $page_title = 'Optiplex Networks';
>> include ('./header.inc');
>> ?>
>>
>> >>
>> ini_set('display_errors',1);
>> error_reporting(E_ALL|E_STRICT);
>>
>> echo '
>>
>>
>>

> class="style2">Name
> class="style2">Address
> class="style2">Description

>>
>>
Contributors to Optiplex
>> Networks:

>>
>>

If it weren't for these projects Optiplex Networks would not have
>> happened. My thanks and regards to everyone involved!


>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Line 20 is the line beginning with

If it weren't for.......
>>
>> I don't understand why this should be an error as it's basic html!
>>
>> The only php part I have used is just echoing the html out.
>>
>> As shown the echo ' is closed off at the bottom of the file with:
>>
>> ';
>>
>> ?>
>>
>> which is fine according the book I read about php.
>>
>> Obviously something is wrong but I can't figure it out, if anyone can
>> give me a hand I'd very much appreciate it!
>>
>> Many thanks,
>>
>> Kaya
>>
>>
>
>
> The main issue I can see is that the single quote string delimiter that
> you're using is also being used in the HTML text! Have you considered
> using heredoc syntax instead?
>
> echo << >
> your html goes here
>
> OUTPUT;
>
> The only thing to watch out for here is that the OUTPUT; line is all on
> it's own, and is preceeded with no whitespace at all. Also, the word
> OUTPUT in this example can be whatever you feel like. The main advantage
> ti heredoc is that you can use any quote characters you like within the
> text and you can output any PHP variables in the text also as if you had
> a double quoted string.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
>
Yup, and the single quote shows up right in this line:

If it weren't for these projects Optiplex Networks would not have

Ken Sande/KC8QNI

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 02:06:56 von Kaya Saman

>>
>>
>
> I also forgot to mention, it's worth getting an editor that comes with
> syntax highlighting, as this would have shown you the problem right away.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
Thanks for both comments Ashley!

I will attempt it now. An editor with syntax checking?? Currently my
data center is in the UK and I am in Turkey so am having to SSH in and
my current text editor is nano. Are there any good CLI based editors
that will do highlighting something hopefully not in the vi/vim
categories as I really don't get on with them!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 02:07:54 von Ashley Sheridan

--=-4G6qmaVtA+eZvdF711QO
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Mon, 2010-01-11 at 03:06 +0200, Kaya Saman wrote:

> >>
> >>
> >
> > I also forgot to mention, it's worth getting an editor that comes with
> > syntax highlighting, as this would have shown you the problem right away.
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
> Thanks for both comments Ashley!
>
> I will attempt it now. An editor with syntax checking?? Currently my
> data center is in the UK and I am in Turkey so am having to SSH in and
> my current text editor is nano. Are there any good CLI based editors
> that will do highlighting something hopefully not in the vi/vim
> categories as I really don't get on with them!


I use Kate which comes with KDE on Linux. With KDE's Kioslaves I can
edit files directly over SSH via the SFTP protocol.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-4G6qmaVtA+eZvdF711QO--

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 02:15:04 von Ashley Sheridan

--=-FNqiJah7H3Z4HbRz3pYS
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Mon, 2010-01-11 at 03:15 +0200, Kaya Saman wrote:

> >
> > I use Kate which comes with KDE on Linux. With KDE's Kioslaves I can
> > edit files directly over SSH via the SFTP protocol.
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
> Thank you for the suggestion!
>
> Your idea about using echo << >
> worked and I now have access to the files again :-)
>
> I am not quite sure why the menu comprising of: portal, unix, login
> etc.... has become so messed up - totally left aligned as it was fine
> before my upgrade. (I guess use editor like you say which may highlight
> the problem; just hope it works with .inc files as well)
>
> Regards,
>
> Kaya
>


The Kate editor can syntax highlight in literally dozens of different
languages. If it doesn't recognise one right away, you can configure it
to recognise a new extension, or just pick the language from a list once
the file is opened.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-FNqiJah7H3Z4HbRz3pYS--

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 02:15:21 von Kaya Saman

>
> I use Kate which comes with KDE on Linux. With KDE's Kioslaves I can
> edit files directly over SSH via the SFTP protocol.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
Thank you for the suggestion!

Your idea about using echo <<
worked and I now have access to the files again :-)

I am not quite sure why the menu comprising of: portal, unix, login
etc.... has become so messed up - totally left aligned as it was fine
before my upgrade. (I guess use editor like you say which may highlight
the problem; just hope it works with .inc files as well)

Regards,

Kaya

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 02:27:42 von Kaya Saman

>>
>>
> Depending on the latency and bandwidth you could use X11 forwarding
> (granted the server supports it) so you could use a non-CLI editor. I
> think "joe" has some syntax highlighting, but I've never edited PHP
> files with it.
> If you are coming from a windows machine, you can use Cygwin or Xming
> to set up an X server on the box before SSHing to your data center
> w/X11 forwarding enabled.
>
> -Ken Sande
Many thanks to everyone!

I currently use a mixture of FreeBSD, Linux, and Solaris/OpenSolaris as
operating systems so X11 forwarding is not a problem but maybe quite
slow considering the distance between me and my data center right now,
and also I have only 1Mbps upstream as the data center uses ADSL which
is a restriction on my behalf.

Am using SFTP to transfer non-html related stuff and using simple nano
or copy-paste from the Gnome terminal.....

Yeah many options available I know and I guess that's what makes things
fun :-)

Anyway I'm sure I'll work something out, at worst case I could always
VPN once I get a Cisco router out here and get an IPsec tunnel going and
do things over NFS mount??

Regards,

Kaya

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 06:35:06 von Waynn Lue

Emacs/xemacs does syntax highlighting too.

On 1/10/10, Kaya Saman wrote:
>
>>>
>>>
>> Depending on the latency and bandwidth you could use X11 forwarding
>> (granted the server supports it) so you could use a non-CLI editor. I
>> think "joe" has some syntax highlighting, but I've never edited PHP
>> files with it.
>> If you are coming from a windows machine, you can use Cygwin or Xming
>> to set up an X server on the box before SSHing to your data center
>> w/X11 forwarding enabled.
>>
>> -Ken Sande
> Many thanks to everyone!
>
> I currently use a mixture of FreeBSD, Linux, and Solaris/OpenSolaris as
> operating systems so X11 forwarding is not a problem but maybe quite
> slow considering the distance between me and my data center right now,
> and also I have only 1Mbps upstream as the data center uses ADSL which
> is a restriction on my behalf.
>
> Am using SFTP to transfer non-html related stuff and using simple nano
> or copy-paste from the Gnome terminal.....
>
> Yeah many options available I know and I guess that's what makes things
> fun :-)
>
> Anyway I'm sure I'll work something out, at worst case I could always
> VPN once I get a Cisco router out here and get an IPsec tunnel going and
> do things over NFS mount??
>
> Regards,
>
> Kaya
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 14:18:37 von Ashley Sheridan

--=-d4mjQoOsq/hD5sNfkLid
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Mon, 2010-01-11 at 03:27 +0200, Kaya Saman wrote:

> >>
> >>
> > Depending on the latency and bandwidth you could use X11 forwarding
> > (granted the server supports it) so you could use a non-CLI editor. I
> > think "joe" has some syntax highlighting, but I've never edited PHP
> > files with it.
> > If you are coming from a windows machine, you can use Cygwin or Xming
> > to set up an X server on the box before SSHing to your data center
> > w/X11 forwarding enabled.
> >
> > -Ken Sande
> Many thanks to everyone!
>
> I currently use a mixture of FreeBSD, Linux, and Solaris/OpenSolaris as
> operating systems so X11 forwarding is not a problem but maybe quite
> slow considering the distance between me and my data center right now,
> and also I have only 1Mbps upstream as the data center uses ADSL which
> is a restriction on my behalf.
>
> Am using SFTP to transfer non-html related stuff and using simple nano
> or copy-paste from the Gnome terminal.....
>
> Yeah many options available I know and I guess that's what makes things
> fun :-)
>
> Anyway I'm sure I'll work something out, at worst case I could always
> VPN once I get a Cisco router out here and get an IPsec tunnel going and
> do things over NFS mount??
>
> Regards,
>
> Kaya


I never bother with X-forwarding for development work, it is too slow I
agree. I use Konqueror to connect as an FTP client, as it works really
well as a file manager with the split screen views it has. From there, I
can manage most of my files as I wish over sftp as if they were local.
The only thing I can't do it edit the graphics files with Gimp, as that
doesn't use KDE's kioslaves :(

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-d4mjQoOsq/hD5sNfkLid--

RE: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 14:33:22 von Bob McConnell

From: Kaya Saman
>>
>> I also forgot to mention, it's worth getting an editor that comes
with=20
>> syntax highlighting, as this would have shown you the problem right
away.
>>
> Thanks for both comments Ashley!
>=20
> I will attempt it now. An editor with syntax checking?? Currently my=20
> data center is in the UK and I am in Turkey so am having to SSH in and

> my current text editor is nano. Are there any good CLI based editors=20
> that will do highlighting something hopefully not in the vi/vim=20
> categories as I really don't get on with them!

When working in a shell, I always use joe (Joe's Own Editor). But my
first word processor was WordStar, so those keystrokes come naturally.
People who learned on newer programs probably won't have the same
experience.

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 15:21:29 von Kaya Saman

Bob McConnell wrote:
> From: Kaya Saman
>
>>> I also forgot to mention, it's worth getting an editor that comes
>>>
> with
>
>>> syntax highlighting, as this would have shown you the problem right
>>>
> away.
>
>> Thanks for both comments Ashley!
>>
>> I will attempt it now. An editor with syntax checking?? Currently my
>> data center is in the UK and I am in Turkey so am having to SSH in and
>>
>
>
>> my current text editor is nano. Are there any good CLI based editors
>> that will do highlighting something hopefully not in the vi/vim
>> categories as I really don't get on with them!
>>
>
> When working in a shell, I always use joe (Joe's Own Editor). But my
> first word processor was WordStar, so those keystrokes come naturally.
> People who learned on newer programs probably won't have the same
> experience.
>
> Bob McConnell
>
>

Thanks for so much support guys!

I've just compiled Emacs 23 on OpenSolaris and also installed Bluefish
from the package repo.

Emacs has something called flymake which I enabled but it didn't find
any errors??

My site I think is up and running again but the central menu is really
messed up and not sure why that is. Of course it doesn't help being a
network and UNIX engineer as web design is a completely different ball-game!

--K

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 15:25:39 von Ashley Sheridan

--=-U8ctLgE443LCk67Doxgz
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Mon, 2010-01-11 at 16:21 +0200, Kaya Saman wrote:

> Bob McConnell wrote:
> > From: Kaya Saman
> >
> >>> I also forgot to mention, it's worth getting an editor that comes
> >>>
> > with
> >
> >>> syntax highlighting, as this would have shown you the problem right
> >>>
> > away.
> >
> >> Thanks for both comments Ashley!
> >>
> >> I will attempt it now. An editor with syntax checking?? Currently my
> >> data center is in the UK and I am in Turkey so am having to SSH in and
> >>
> >
> >
> >> my current text editor is nano. Are there any good CLI based editors
> >> that will do highlighting something hopefully not in the vi/vim
> >> categories as I really don't get on with them!
> >>
> >
> > When working in a shell, I always use joe (Joe's Own Editor). But my
> > first word processor was WordStar, so those keystrokes come naturally.
> > People who learned on newer programs probably won't have the same
> > experience.
> >
> > Bob McConnell
> >
> >
>
> Thanks for so much support guys!
>
> I've just compiled Emacs 23 on OpenSolaris and also installed Bluefish
> from the package repo.
>
> Emacs has something called flymake which I enabled but it didn't find
> any errors??
>
> My site I think is up and running again but the central menu is really
> messed up and not sure why that is. Of course it doesn't help being a
> network and UNIX engineer as web design is a completely different ball-game!
>
> --K
>


Get the Firefox addon called Firebug. It shows you what CSS is being
applied to each element, and lets you edit things temporarily to see
what would happen.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-U8ctLgE443LCk67Doxgz--

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 15:37:21 von Robert Cummings

Bob McConnell wrote:
> From: Kaya Saman
>>> I also forgot to mention, it's worth getting an editor that comes
> with
>>> syntax highlighting, as this would have shown you the problem right
> away.
>> Thanks for both comments Ashley!
>>
>> I will attempt it now. An editor with syntax checking?? Currently my
>> data center is in the UK and I am in Turkey so am having to SSH in and
>
>> my current text editor is nano. Are there any good CLI based editors
>> that will do highlighting something hopefully not in the vi/vim
>> categories as I really don't get on with them!
>
> When working in a shell, I always use joe (Joe's Own Editor). But my
> first word processor was WordStar, so those keystrokes come naturally.
> People who learned on newer programs probably won't have the same
> experience.

Woohoo!!! A fellow JOE user :)

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 15:45:11 von Michael Peters

Ashley Sheridan wrote:

>
>
> I never bother with X-forwarding for development work, it is too slow I
> agree.

My development box is a Dell Optiplex G50 I found discarded in an
illegal trash pile. Hard drive was bad, I had a spare. Heat sink was
dislodged, I had thermal paste. CDROM is not reliable, but reliable
enough to boot off of a 4MB CentOS boot.iso and network install. Video
gives snow, but after install, it's headless so who cares.

It's been problem free for a couple months now (found it a couple months
ago). Only thing I had to purchase was a mouse for install - as I don't
have a spare and didn't feel like detaching a mouse from an existing
computer.

I installed bluefish on it and use bluefish over ssh via x forwarding on
my local lan and sometimes have the bluefish window open for days. When
I'm ready to publish to live, I simple ssh in and rsync to live. Never
had a slowness problem.

It's an old crap computer, ram limit of 512MB (currently has 384 in it),
but having the devel box local makes things like X forwarded a GUI text
editor cake w/o performance issues.

I use Ubuntu for my desktop, no server crap installed on it, I prefer
CentOS for serving - so this a cheap crap local box for devel server is
the perfect solution. Since I'm the only user, the low performance of
the CPU/Intel i815 chipset really isn't an issue (I think the mobo was
swapped at some point, Dell website indicates i810 but it has i815).

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 16:00:16 von Kaya Saman

>
> My development box is a Dell Optiplex G50 I found discarded in an
> illegal trash pile. Hard drive was bad, I had a spare. Heat sink was
> dislodged, I had thermal paste. CDROM is not reliable, but reliable
> enough to boot off of a 4MB CentOS boot.iso and network install. Video
> gives snow, but after install, it's headless so who cares.
>
> It's been problem free for a couple months now (found it a couple
> months ago). Only thing I had to purchase was a mouse for install - as
> I don't have a spare and didn't feel like detaching a mouse from an
> existing computer.
>
> I installed bluefish on it and use bluefish over ssh via x forwarding
> on my local lan and sometimes have the bluefish window open for days.
> When I'm ready to publish to live, I simple ssh in and rsync to live.
> Never had a slowness problem.
>
> It's an old crap computer, ram limit of 512MB (currently has 384 in
> it), but having the devel box local makes things like X forwarded a
> GUI text editor cake w/o performance issues.
>
> I use Ubuntu for my desktop, no server crap installed on it, I prefer
> CentOS for serving - so this a cheap crap local box for devel server
> is the perfect solution. Since I'm the only user, the low performance
> of the CPU/Intel i815 chipset really isn't an issue (I think the mobo
> was swapped at some point, Dell website indicates i810 but it has i815).

Thanks for that info I do admit that old computers do make the coolest
machines especially home servers and when running something like FreeBSD
they end up being awsome!

However we were talking about SSH over continents not local LAN! With
local LAN you get round 100Mbps unless really old in which case you
would get 10Mbps half duplex. This is no way an issue when in such close
proximity. I however am round 3500 km's away at the moment from my web
server and the internet connection I am getting is really poor as it
locks up quite a bit and I end up with failed routes between my PoP
(point of presence) server or the countries main gateway.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 16:46:26 von Michael Peters

Kaya Saman wrote:
>

>
> Thanks for that info I do admit that old computers do make the coolest
> machines especially home servers and when running something like FreeBSD
> they end up being awsome!
>
> However we were talking about SSH over continents not local LAN! With
> local LAN you get round 100Mbps unless really old in which case you
> would get 10Mbps half duplex. This is no way an issue when in such close
> proximity. I however am round 3500 km's away at the moment from my web
> server and the internet connection I am getting is really poor as it
> locks up quite a bit and I end up with failed routes between my PoP
> (point of presence) server or the countries main gateway.
>

But what you can do is keep your dev box local, and then use rsync over
ssh to publish to the production (or dev) server that is across ocean(s).

I use .devel as my TLD for my dev hosts (IE www.something.devel) but
otherwise have the dev box configured identical to the production
server, so that if it works on dev box I know it works on production.

Other thing I do, cron job on production dumps the database once a
night, cron job on dev fetches it (via rsync over ssh w/ keys) and
applies it to dev database so that the dev database is always very close
to production database.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Upgraded PHP now website doesn"t work properly?

am 11.01.2010 17:27:24 von Kaya Saman

>>
>>
>
> But what you can do is keep your dev box local, and then use rsync
> over ssh to publish to the production (or dev) server that is across
> ocean(s).
>
> I use .devel as my TLD for my dev hosts (IE www.something.devel) but
> otherwise have the dev box configured identical to the production
> server, so that if it works on dev box I know it works on production.
>
> Other thing I do, cron job on production dumps the database once a
> night, cron job on dev fetches it (via rsync over ssh w/ keys) and
> applies it to dev database so that the dev database is always very
> close to production database.


Thanks for the tip! It isn't really a necessity as I'm not a web
developer - I just built my site from scratch that's all as I don't have
any developer friends who can help me out since I'm not an established
company yet......

Usually I just sftp a tar'ed folder or files into my home dir if I need
anything or do work on the fly.

I really need to learn rsync though as I managed to accomplish transfers
of it once but never again :-( It is especially useful for backing up
machines!

Regards,

Kaya

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

>> class="style2">Name
>> class="style2">Address
>> class="style2">Description