Re: [PHP] Upgraded PHP now website doesn't work properly?
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
Re: [PHP] Upgraded PHP now website doesn't work properly?
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: [PHP] Upgraded PHP now website doesn't work properly?
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: [PHP] Upgraded PHP now website doesn't work properly?
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: [PHP] Upgraded PHP now website doesn't work properly?
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: [PHP] Upgraded PHP now website doesn't work properly?
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
Re: [PHP] Upgraded PHP now website doesn't work properly?
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: [PHP] Upgraded PHP now website doesn't work properly?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upgraded PHP now website doesn't work properly?
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
Re: [PHP] Upgraded PHP now website doesn't work properly?
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: [PHP] Upgraded PHP now website doesn't work properly?
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: [PHP] Upgraded PHP now website doesn't work properly?
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
Re: [PHP] Upgraded PHP now website doesn't work properly?
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 <
Re: [PHP] Upgraded PHP now website doesn't work properly?
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
Re: [PHP] Upgraded PHP now website doesn't work properly?
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: [PHP] Upgraded PHP now website doesn't work properly?
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=454360575 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: Contributors to Optiplex Networks: If it weren't for these projects Optiplex Networks would not have happened. My thanks and regards to everyone involved! class="style2">Name class="style2">Address class="style2">Description 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 <
Re: [PHP] Upgraded PHP now website doesn't work properly?
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=454360575 > > 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! > > > > > > class="style2">Name > class="style2">Address > class="style2">Description > > > > 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
Re: [PHP] Upgraded PHP now website doesn't work properly?
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=454360575 > > 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! > > > > > > class="style2">Name > class="style2">Address > class="style2">Description > > > > 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 <
[PHP] Upgraded PHP now website doesn't work properly?
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=454360575 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: Contributors to Optiplex Networks: If it weren't for these projects Optiplex Networks would not have happened. My thanks and regards to everyone involved! class="style2">Name class="style2">Address class="style2">Description 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