php-general Digest 6 Aug 2008 20:42:28 -0000 Issue 5610

Topics (messages 277758 through 277777):

Re: A specific(ish) request
        277758 by: Richard Heyes
        277762 by: Richard Heyes
        277763 by: Per Jessen
        277764 by: Richard Heyes

iconv utf-8 to ucs-2 the endian not same
        277759 by: kimshell

Re: Newbie problem: Php script not running in browser.
        277760 by: V S Rawat
        277761 by: Chetan Rane
        277769 by: Chetan Rane
        277773 by: V S Rawat
        277774 by: V S Rawat

Re: An appeal to your better nature
        277765 by: Chris Haensel
        277770 by: Ross McKay
        277772 by: Richard Heyes
        277775 by: Robert Cummings
        277776 by: tedd

being professional about IT. (was: An appeal to your better nature)
        277766 by: Per Jessen
        277767 by: Chris Haensel

make fails - PHP 5.2.6
        277768 by: Rees, Chris

RSS Feed using PHP/MySQL errors
        277771 by: Don Mak

Version Control Software
        277777 by: Benjamin Darwin

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
> > Anything else I may have missed
>
> A backup script?  :-)

Lol. Point taken. II hink I may have finally got through to 1and1
though, I'm downloading my site now. Fingers crossed.

-- 
Richard Heyes
http://www.phpguru.org

--- End Message ---
--- Begin Message ---
Hi,

Well, seems I may have my site after all, so it's just a case of
getting it up and running. My sincere thanks to those who have helped.

-- 
Richard Heyes
http://www.phpguru.org

--- End Message ---
--- Begin Message ---
Richard Heyes wrote:

> Hi,
> 
> Well, seems I may have my site after all, so it's just a case of
> getting it up and running. My sincere thanks to those who have helped.
> 

Ah, that's better.  Good stuff, Richard.  Now, about that
backup-script ... 


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
> Now, about that
> backup-script ...

Yes, think I may be getting me one of those... :-)

-- 
Richard Heyes
http://www.phpguru.org

--- End Message ---
--- Begin Message ---
Greetings!
I used the iconv function translate UTF-8 to UCS-2 format but the endian of results not the same between Linux and Windows. Is there some way to configure and make the OS environment irrelevant to the result.
thanks for your help.
:P
--
get along unaided.
--- End Message ---
--- Begin Message ---
On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote:

On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote:
I have put the first php script to hello.php file:

<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'; ?>
 </body>
</html>

I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b

http://localhost/ is E:\wamp\www

I put the hello.php file to E:\wamp\www. drag/dropping it to browser
shows the above source code in ff3/ie6

putting it to E:\wamp\bin\apache\apache2.2.8\htdocs and drag/dropping it
to browser shows the same source code.

However, putting it to E:\wamp\www\php_ex but giving
http://localhost/hello.php shows a blank screen

I have forgotten some situation where it had appeared as

Hello World

'; ?>

on the browser.

E:\wamp\bin\apache\apache2.2.8\conf\httpd.conf file has the lines:
LoadModule php5_module "e:/wamp/bin/php/php5.2.6/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

On double clicking the php file in windows explorer, it opens in notepad
for edit, instead of getting opened in firefox that is my default.

Please give me the starting push.
-- V



If you simply drag-and-drop the file from an explorer window into
Firefox, Firefox will display the page directly from the file system
instead of serving it through your web server. (You can tell this
because your address bar will say file:///E:/wamp/www/hello.php.) Your
browser won't parse the PHP as script; it will just think it is
malformed HTML and it would show the output you listed above.
Double-clicking the file, or dragging it into IE will try to open the
file with whatever program is associated with that extension in
Windows. (If there isn't a file association for *.php files, it will
either prompt you for a program to handle the file or it might do the
same as Firefox. I'm not sure, and I'm not really interested in
changing my file associations to test.)

IF the file is located at E:\wamp\www\hello.php AND PHP is configured
correctly AND your web server's document root is E:\wamp\www\, THEN
opening http://localhost/hello.php should work.

Andrew

Thanks.

k, I will not drag and drop but would open through firefox localhost.

giving http://localhost/hello.php is not showing anything at all, just a blank screen. What has gone wrong?

--
V

--- End Message ---
--- Begin Message ---
Hi

You need to check if your Apache is up and running do the following

Right click on My Computer and select "manage"
Next click on Services and Applications
After that Click on Services

And check if Apache is running



Chetan Dattaram Rane | Software Engineer | Persistent Systems
[EMAIL PROTECTED]  | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014
Innovation in software product design, development and delivery- 
www.persistentsys.com




-----Original Message-----
From: V S Rawat [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 2:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie problem: Php script not running in browser.

On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote:

> On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote:
>> I have put the first php script to hello.php file:
>>
>> <html>
>>  <head>
>>   <title>PHP Test</title>
>>  </head>
>>  <body>
>>  <?php echo '<p>Hello World</p>'; ?>
>>  </body>
>> </html>
>>
>> I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b
>>
>> http://localhost/ is E:\wamp\www
>>
>> I put the hello.php file to E:\wamp\www. drag/dropping it to browser
>> shows the above source code in ff3/ie6
>>
>> putting it to E:\wamp\bin\apache\apache2.2.8\htdocs and drag/dropping it
>> to browser shows the same source code.
>>
>> However, putting it to E:\wamp\www\php_ex but giving
>> http://localhost/hello.php shows a blank screen
>>
>> I have forgotten some situation where it had appeared as
>>
>> Hello World
>>
>> '; ?>
>>
>> on the browser.
>>
>> E:\wamp\bin\apache\apache2.2.8\conf\httpd.conf file has the lines:
>> LoadModule php5_module "e:/wamp/bin/php/php5.2.6/php5apache2_2.dll"
>> AddType application/x-httpd-php .php
>> AddType application/x-httpd-php .php3
>>
>> On double clicking the php file in windows explorer, it opens in notepad
>> for edit, instead of getting opened in firefox that is my default.
>>
>> Please give me the starting push.
>> -- V
>>
> 
> 
> If you simply drag-and-drop the file from an explorer window into
> Firefox, Firefox will display the page directly from the file system
> instead of serving it through your web server. (You can tell this
> because your address bar will say file:///E:/wamp/www/hello.php.) Your
> browser won't parse the PHP as script; it will just think it is
> malformed HTML and it would show the output you listed above.
> Double-clicking the file, or dragging it into IE will try to open the
> file with whatever program is associated with that extension in
> Windows. (If there isn't a file association for *.php files, it will
> either prompt you for a program to handle the file or it might do the
> same as Firefox. I'm not sure, and I'm not really interested in
> changing my file associations to test.)
> 
> IF the file is located at E:\wamp\www\hello.php AND PHP is configured
> correctly AND your web server's document root is E:\wamp\www\, THEN
> opening http://localhost/hello.php should work.
> 
> Andrew

Thanks.

k, I will not drag and drop but would open through firefox localhost.

giving http://localhost/hello.php is not showing anything at all, just a 
blank screen. What has gone wrong?

-- 
V

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


--- End Message ---
--- Begin Message ---
Can you please check what the Document Root in http.conf

Chetan Dattaram Rane | Software Engineer | Persistent Systems
[EMAIL PROTECTED]  | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014
Innovation in software product design, development and delivery- 
www.persistentsys.com




-----Original Message-----
From: V S Rawat [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 7:22 PM
To: Chetan Rane
Subject: Re: [PHP] Newbie problem: Php script not running in browser.

On 8/6/2008 4:20 PM India Time, _Chetan Rane_ wrote:

> Hi
> 
> You need to check if your Apache is up and running do the following
> 
> Right click on My Computer and select "manage"
> Next click on Services and Applications
> After that Click on Services
> 
> And check if Apache is running

Hi Chetan,

Yeah, that is listing

wampapache, Apache/2.2.8 (Win32) PHP/5.2.6, started, manual, local 
system, and

wampmysqld, started, manual, local system, and

I restarted all services from the wamp systray icon. That gave the 
following entries in apache_error.log

[Wed Aug 06 19:06:57 2008] [notice] Parent: Received shutdown signal -- 
Shutting down the server.
[Wed Aug 06 19:06:57 2008] [notice] Child 3072: Exit event signaled. 
Child process is ending.
[Wed Aug 06 19:06:58 2008] [notice] Child 3072: Released the start mutex
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: All worker threads have 
exited.
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: Child process is exiting
[Wed Aug 06 19:06:59 2008] [notice] Parent: Child process exited 
successfully.
[Wed Aug 06 19:06:59 2008] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 
configured -- resuming normal operations
[Wed Aug 06 19:06:59 2008] [notice] Server built: Jan 18 2008 00:37:19
[Wed Aug 06 19:06:59 2008] [notice] Parent: Created child process 1872
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Child process is running
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Acquired the start mutex.
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting 64 worker threads.

I gave, check port 80. The dos window that opened said "your port 80 is 
not used" and the following entry got added in error_log:

[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting thread to 
listen on port 80.

Thanks.
-- 
V

> 
> 
> 
> Chetan Dattaram Rane | Software Engineer | Persistent Systems
> [EMAIL PROTECTED]  | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014
> Innovation in software product design, development and delivery- 
> www.persistentsys.com
> 
> 
> 
> 
> -----Original Message-----
> From: V S Rawat [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 06, 2008 2:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Newbie problem: Php script not running in browser.
> 
> On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote:
> 
>> On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote:
>>> I have put the first php script to hello.php file:
>>>
>>> <html>
>>>  <head>
>>>   <title>PHP Test</title>
>>>  </head>
>>>  <body>
>>>  <?php echo '<p>Hello World</p>'; ?>
>>>  </body>
>>> </html>
>>>
>>> I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b
>>>
>>> http://localhost/ is E:\wamp\www
>>>
>>> I put the hello.php file to E:\wamp\www. drag/dropping it to browser
>>> shows the above source code in ff3/ie6
>>>
>>> putting it to E:\wamp\bin\apache\apache2.2.8\htdocs and drag/dropping it
>>> to browser shows the same source code.
>>>
>>> However, putting it to E:\wamp\www\php_ex but giving
>>> http://localhost/hello.php shows a blank screen
>>>
>>> I have forgotten some situation where it had appeared as
>>>
>>> Hello World
>>>
>>> '; ?>
>>>
>>> on the browser.
>>>
>>> E:\wamp\bin\apache\apache2.2.8\conf\httpd.conf file has the lines:
>>> LoadModule php5_module "e:/wamp/bin/php/php5.2.6/php5apache2_2.dll"
>>> AddType application/x-httpd-php .php
>>> AddType application/x-httpd-php .php3
>>>
>>> On double clicking the php file in windows explorer, it opens in notepad
>>> for edit, instead of getting opened in firefox that is my default.
>>>
>>> Please give me the starting push.
>>> -- V
>>>
>>
>> If you simply drag-and-drop the file from an explorer window into
>> Firefox, Firefox will display the page directly from the file system
>> instead of serving it through your web server. (You can tell this
>> because your address bar will say file:///E:/wamp/www/hello.php.) Your
>> browser won't parse the PHP as script; it will just think it is
>> malformed HTML and it would show the output you listed above.
>> Double-clicking the file, or dragging it into IE will try to open the
>> file with whatever program is associated with that extension in
>> Windows. (If there isn't a file association for *.php files, it will
>> either prompt you for a program to handle the file or it might do the
>> same as Firefox. I'm not sure, and I'm not really interested in
>> changing my file associations to test.)
>>
>> IF the file is located at E:\wamp\www\hello.php AND PHP is configured
>> correctly AND your web server's document root is E:\wamp\www\, THEN
>> opening http://localhost/hello.php should work.
>>
>> Andrew
> 
> Thanks.
> 
> k, I will not drag and drop but would open through firefox localhost.
> 
> giving http://localhost/hello.php is not showing anything at all, just a 
> blank screen. What has gone wrong?
> 



--- End Message ---
--- Begin Message ---
On 8/6/2008 4:20 PM India Time, _Chetan Rane_ wrote:

Hi

You need to check if your Apache is up and running do the following

Right click on My Computer and select "manage"
Next click on Services and Applications
After that Click on Services

And check if Apache is running


Yeah, that is listing

wampapache, Apache/2.2.8 (Win32) PHP/5.2.6, started, manual, local
system, and

wampmysqld, started, manual, local system, and

I restarted all services from the wamp systray icon. That gave the
following entries in apache_error.log

[Wed Aug 06 19:06:57 2008] [notice] Parent: Received shutdown signal --
Shutting down the server.
[Wed Aug 06 19:06:57 2008] [notice] Child 3072: Exit event signaled.
Child process is ending.
[Wed Aug 06 19:06:58 2008] [notice] Child 3072: Released the start mutex
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: All worker threads have
exited.
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: Child process is exiting
[Wed Aug 06 19:06:59 2008] [notice] Parent: Child process exited
successfully.
[Wed Aug 06 19:06:59 2008] [notice] Apache/2.2.8 (Win32) PHP/5.2.6
configured -- resuming normal operations
[Wed Aug 06 19:06:59 2008] [notice] Server built: Jan 18 2008 00:37:19
[Wed Aug 06 19:06:59 2008] [notice] Parent: Created child process 1872
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Child process is running
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Acquired the start mutex.
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting 64 worker threads.

I gave, check port 80. The dos window that opened said "your port 80 is
not used" and the following entry got added in error_log:

[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting thread to
listen on port 80.

Thanks.
--
V



Chetan Dattaram Rane | Software Engineer | Persistent Systems
[EMAIL PROTECTED]  | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014
Innovation in software product design, development and delivery- 
www.persistentsys.com




-----Original Message-----
From: V S Rawat [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 2:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie problem: Php script not running in browser.

On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote:

On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote:
I have put the first php script to hello.php file:

<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'; ?>
 </body>
</html>

I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b

http://localhost/ is E:\wamp\www

I put the hello.php file to E:\wamp\www. drag/dropping it to browser
shows the above source code in ff3/ie6

putting it to E:\wamp\bin\apache\apache2.2.8\htdocs and drag/dropping it
to browser shows the same source code.

However, putting it to E:\wamp\www\php_ex but giving
http://localhost/hello.php shows a blank screen

I have forgotten some situation where it had appeared as

Hello World

'; ?>

on the browser.

E:\wamp\bin\apache\apache2.2.8\conf\httpd.conf file has the lines:
LoadModule php5_module "e:/wamp/bin/php/php5.2.6/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

On double clicking the php file in windows explorer, it opens in notepad
for edit, instead of getting opened in firefox that is my default.

Please give me the starting push.
-- V


If you simply drag-and-drop the file from an explorer window into
Firefox, Firefox will display the page directly from the file system
instead of serving it through your web server. (You can tell this
because your address bar will say file:///E:/wamp/www/hello.php.) Your
browser won't parse the PHP as script; it will just think it is
malformed HTML and it would show the output you listed above.
Double-clicking the file, or dragging it into IE will try to open the
file with whatever program is associated with that extension in
Windows. (If there isn't a file association for *.php files, it will
either prompt you for a program to handle the file or it might do the
same as Firefox. I'm not sure, and I'm not really interested in
changing my file associations to test.)

IF the file is located at E:\wamp\www\hello.php AND PHP is configured
correctly AND your web server's document root is E:\wamp\www\, THEN
opening http://localhost/hello.php should work.

Andrew

Thanks.

k, I will not drag and drop but would open through firefox localhost.

giving http://localhost/hello.php is not showing anything at all, just a blank screen. What has gone wrong?



--- End Message ---
--- Begin Message ---
On 8/6/2008 7:28 PM India Time, _Chetan Rane_ wrote:

Can you please check what the Document Root in http.conf

windows explorer search didn't threw any file matching http.conf.

The file E:\wamp\bin\apache\apache2.2.8\conf\httpd.conf has

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "e:/wamp/www/"


thanks.
--
V



Chetan Dattaram Rane | Software Engineer | Persistent Systems
[EMAIL PROTECTED]  | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014
Innovation in software product design, development and delivery- 
www.persistentsys.com




-----Original Message-----
From: V S Rawat [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 7:22 PM
To: Chetan Rane
Subject: Re: [PHP] Newbie problem: Php script not running in browser.

On 8/6/2008 4:20 PM India Time, _Chetan Rane_ wrote:

Hi

You need to check if your Apache is up and running do the following

Right click on My Computer and select "manage"
Next click on Services and Applications
After that Click on Services

And check if Apache is running

Hi Chetan,

Yeah, that is listing

wampapache, Apache/2.2.8 (Win32) PHP/5.2.6, started, manual, local system, and

wampmysqld, started, manual, local system, and

I restarted all services from the wamp systray icon. That gave the following entries in apache_error.log

[Wed Aug 06 19:06:57 2008] [notice] Parent: Received shutdown signal -- Shutting down the server. [Wed Aug 06 19:06:57 2008] [notice] Child 3072: Exit event signaled. Child process is ending.
[Wed Aug 06 19:06:58 2008] [notice] Child 3072: Released the start mutex
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: All worker threads have exited.
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: Child process is exiting
[Wed Aug 06 19:06:59 2008] [notice] Parent: Child process exited successfully. [Wed Aug 06 19:06:59 2008] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Wed Aug 06 19:06:59 2008] [notice] Server built: Jan 18 2008 00:37:19
[Wed Aug 06 19:06:59 2008] [notice] Parent: Created child process 1872
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Child process is running
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Acquired the start mutex.
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting 64 worker threads.

I gave, check port 80. The dos window that opened said "your port 80 is not used" and the following entry got added in error_log:

[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting thread to listen on port 80.

Thanks.


--- End Message ---
--- Begin Message ---

-----Original Message-----
From: Daniel Brown [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2008 1:34 AM
To: Ross McKay
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: An appeal to your better nature

On Tue, Aug 5, 2008 at 7:28 PM, Ross McKay <[EMAIL PROTECTED]> wrote:
>
> Problems I see with the above:
>
> * good IT professionals use version control AND take backups
> * good IT professionals work on dev servers and migrate to test, prod
> * good IT professionals don't tend to claim "guru" status themselves :)

    Addendum:

    * Good IT professionals don't usually criticize one another in a
public forum in the above manner, if nothing else than out of
professional courtesy.

--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.

ROFL

I never thought someone seriously would go the whole way from dev, test and
prod servers AND use all the version control stuff.

Honestly: I use dev servers and two backup servers for our company website,
but having  a version control system and everything would, in my opinion,
really make this whole being a developer some kind of ... ugh. Might be good
to do, I don't know. Never tried, and probably never will. And being a "good
IT professional" to me means: know what you're doing, and take the hits you
get. Lost your data? Well, there is a hit to take. But pointing fingers has
never helped anybody.

2 Cents from germany

Chris



--- End Message ---
--- Begin Message ---
Chris Haensel wrote:

>I never thought someone seriously would go the whole way from dev, test and
>prod servers [...]

Really? You've never:

* developed locally on your own server
* uploaded to a published site, not the client's live site, for preview
* uploaded the approved changes to the client's live site

thus development, test and production?

Never worked on a project with multiple developers, a few development
environments, integration testing, system testing, user acceptance
testing, and releases to the live system?

>AND use all the version control stuff.

Just one is sufficient :) and it certainly saves time in the long run.
It can be especially useful when clients make their own modifications,
and need you to come in and restore just the bits they broke; version
control and a good diff-and-merge tool (e.g. Subversion and Meld) can
save hours of sorting that out.

>Honestly: I use dev servers and two backup servers for our company website,
>but having  a version control system and everything would, in my opinion,
>really make this whole being a developer some kind of ... ugh. Might be good
>to do, I don't know. Never tried, and probably never will. And being a "good
>IT professional" to me means: know what you're doing, and take the hits you
>get. Lost your data? Well, there is a hit to take. 

That's your prerogative, and presumably your company's too, but maybe
Richard would like to know what some of his options are.

>But pointing fingers has never helped anybody.

Who was pointing fingers? I pointed out that hacking the live site with
no version control and no backups wasn't being a good IT professional,
and then I suggested where to find some of the missing files (Google
cache). I also pointed out that I had changes outstanding and not backed
up too, i.e. I'm hardly claiming to be the good IT professional either.

Maybe if Richard picks up some proven software development procedures
like those simple ones mentioned, he won't be bitten like this again.
Maybe you won't be bitten likewise, unless you'd prefer to take umbrage
at offers of advice you don't like.

Or perhaps you think that good IT professionals do hack their production
environments without backups as a matter of course? And on low-service
hosting environments. :)
-- 
Ross McKay, Toronto, NSW Australia
"Words can only hurt if you try to read them. Don't play their game" - Zoolander

--- End Message ---
--- Begin Message ---
> Maybe if Richard picks up some proven software development procedures
> like those simple ones mentioned, he won't be bitten like this again.
> Maybe you won't be bitten likewise, unless you'd prefer to take umbrage
> at offers of advice you don't like.

I just want to point out that I don't need to pick them up. If it was
anyone elses stuff (ie work) then backups are done as a matter of
course (more to protect my own arse if nothing else), but it wasn't.
It was my own personal stuff that I'm not going to get sued over.
Naturally I'd rather not lose it, but life would go on if I did.

-- 
Richard Heyes
http://www.phpguru.org

--- End Message ---
--- Begin Message ---
On Wed, 2008-08-06 at 14:59 +0200, Chris Haensel wrote:
> 
> -----Original Message-----
> From: Daniel Brown [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2008 1:34 AM
> To: Ross McKay
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: An appeal to your better nature
> 
> On Tue, Aug 5, 2008 at 7:28 PM, Ross McKay <[EMAIL PROTECTED]> wrote:
> >
> > Problems I see with the above:
> >
> > * good IT professionals use version control AND take backups
> > * good IT professionals work on dev servers and migrate to test, prod
> > * good IT professionals don't tend to claim "guru" status themselves :)
> 
>     Addendum:
> 
>     * Good IT professionals don't usually criticize one another in a
> public forum in the above manner, if nothing else than out of
> professional courtesy.
> 
> --
> </Daniel P. Brown>
> Better prices on dedicated servers:
> Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
> Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
> Dedicated servers, VPS, and hosting from $2.50/mo.
> 
> ROFL
> 
> I never thought someone seriously would go the whole way from dev, test and
> prod servers AND use all the version control stuff.
> 
> Honestly: I use dev servers and two backup servers for our company website,
> but having  a version control system and everything would, in my opinion,
> really make this whole being a developer some kind of ... ugh. Might be good
> to do, I don't know. Never tried, and probably never will.

I use CVS all the way from dev to production with staging in between
(except personal projects where I skip staging). Here's an approximation
of my update workflow:

dev> modify code
dev> cvs commit -m 'blah blah comments'

dev> ssh staging
staging> cvs update
staging> ./buildSite.php

After feedback from client...

dev> ssh production
production> cvs update
production> ./buildSite.php

I use CVS for all my projects. Be they tiny or large. If something goes
wrong after production is updated, I just grab a snapshot from when we
last had a stable run. Using CVS is well worth the extra 5 minutes I
spend at the beginning of a project setting up the repository. When I
take over some project that didn't use CVS, the first thing I do is put
it in CVS. Usually I find crap like foo.php.bak, foo.php.better.bak,
foo.php.good, foo.php.broken littered all over the source tree. Some
idiot obviously made them because they didn't use a versioning system.
The really sad part is, all these files are usually right there in the
production tree.

As far as backups go, CVS is on another machine, production and staging
are sometimes on the same machine, sometimes on their own machines.
Either way, the source exists in 3 physical locations... cvs, dev,
staging. And I run nightly backups of CVS.

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


--- End Message ---
--- Begin Message ---
At 9:11 AM -0400 8/5/08, Daniel Brown wrote:
On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius
<[EMAIL PROTECTED]> wrote:

 I wouldn't like to loose my stuff, but I can't afford much for the best
 solutions either. It's not that my job depends on it, but personal data is a
 big loss too.

    Tell me about it.  One of the sickest feelings in the world comes
when you hear your hard drive start going "click.... click....
choke.... click...."

No question about it.

That's the reason why I have three backup systems. One in my garage in a fireproof safe that's in another fireproof safe; One hidden in my house in another fireproof safe; And one attached to my main computer that I backup everyday, or more often, which is stored (when not in use) in a yet another waterproof and fireproof safe. (I'm big on fireproof safes) All of which are protected by me and my guns. The only way I'm going to lose any data is if my place is stuck by a meteor.

Sure it takes a lot of time to backup, but less than the alternative.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Chris Haensel wrote:

> I never thought someone seriously would go the whole way from dev,
> test and prod servers AND use all the version control stuff.

Oh, it's done quite a lot, I can assure you. 

> And being a "good IT professional" to me means: know what 
> you're doing, and take the hits you get. 

When the hits become expensive, your thinking will change.  If every
hour of downtime is EUR100K lost, you don't take the hits you get, you
make sure you don't get hit :-)


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
Chris Haensel wrote:

> I never thought someone seriously would go the whole way from dev,
> test and prod servers AND use all the version control stuff.

Oh, it's done quite a lot, I can assure you.

> And being a "good IT professional" to me means: know what
> you're doing, and take the hits you get.

When the hits become expensive, your thinking will change.  If every
hour of downtime is EUR100K lost, you don't take the hits you get, you
make sure you don't get hit :-)


/Per Jessen, Zürich

Okay, that is a point I can take :o)



--- End Message ---
--- Begin Message ---
Environment

 

AIX 5.3

PHP 5.2.6

 

I'm trying to install PHP (1st time user so bear with me). Here is what
I've done

 

tar -xvf php-5.2.6.tar

cd php-5.2.6

../configure -with-apx2=/usr/local/apache2/bin/apxs

make

 

The make fails after a short time with

 

/bin/sh /home/mmscxr/php-5.2.6/libtool --silent --preserve-dup-deps
--mode=compile cc -Iext/date/lib -Iext/date/
-I/home/mmscxr/php-5.2.6/ext/date/ -DPHP_ATOM_INC
-I/home/mmscxr/php-5.2.6/include -I/home/mmscxr/php-5.2.6/main
-I/home/mmscxr/php-5.2.6 -I/opt/freeware/include/libxml2
-I/home/mmscxr/php-5.2.6/ext/date/lib -I/home/mmscxr/php-5.2.6/TSRM
-I/home/mmscxr/php-5.2.6/Zend    -I/usr/include -g  -c
/home/mmscxr/php-5.2.6/ext/date/php_date.c -o ext/date/php_date.lo

"/home/mmscxr/php-5.2.6/ext/date/php_date.c", line 272.37: 1506-046 (S)
Syntax error.

 

I've certainly not changed anything.


Has anyone else seen this ?

Can anyone help??

 

Thanks

 

 

 

 


*********************************************************************************
This email is intended solely for the use of the individual to whom
it is addressed and may contain confidential and/or privileged 
material.  Any views or opinions presented are solely those of the 
author and do not necessarily represent those of AGCO.
If you are not the intended recipient, be advised that you have
received this email in error and that any use, dissemination, 
forwarding, printing or copying of this email is strictly prohibited.
 
Neither AGCO nor the sender accepts any responsibility for viruses and it is 
your
responsibility to scan and virus check the e-mail and its attachment(s) (if 
any).
*********************************************************************************
AGCO Limited, a limited company, registered in England (registered no.509133) 
with its registered office at Abbey Park Stoneleigh, Kenilworth CV8 2TQ, 
England.


--- End Message ---
--- Begin Message ---
Trying to create an articles rss feed for my site and I keep getting an
error that says:

=====
A semi colon character was expected.
Line: 7 Character: 60
<link>http://www.chirunning.com/shop/pages.php?pageid=19&id=383</link>
=====

I've tried every way imaginable to figure out why I am getting this error,
finally I needed to post it to get some feedback. I put an ARROW at the end
of the line in question below. Thanks in advance for any insight you can
provide.

<?php
header("Content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

// Set RSS version.
echo "<rss version=\"2.0\"> ";

// Start the XML.
echo "
<channel>
<title>Articles Feed</title>
<description>Latest Articles</description>
<link>http://www.mydomain.com/shop/pages.php?pageid=17</link>";

// Create a connection to your database.
//require("db_connection.php");

@mysql_connect('localhost', 'xxxxx', 'xxxxx') or die('ERROR--CAN'T CONNECT
TO SERVER');
@mysql_select_db('shop') or die('ERROR--CAN'T CONNECT TO DB');

$masterQuery="SELECT articleid, the_date, title FROM mytable WHERE type = 1
ORDER BY the_date DESC";


// Query database and select the last 10 entries.
$data = mysql_query($masterQuery);
while($row = mysql_fetch_array($data))
{

// Convert database images data into actual image link.
$row[Intro] = str_replace("images/", "http://www.mydomain.com/images/";,
$row[Intro]);

// Continue with the 10 items to be included in the <item> section of the
XML.
echo "
<item>
<link>http://www.mydomain.com/shop/pages.php?pageid=19&id=".$row[articleid].";</link>
<!---ERROR!
<guid isPermaLink=\"true\">
http://www.mydomain.com/shop/pages.php?pageid=18&id=
".$row[articleid]."</guid>
<title>".$row[chi_title]."</title>
</item>";
}

// substr can limit the number of characters. First number is starting point
while the second number is number of characters.
// otherwise just use $row[Intro].
// <guid> is an optional sub-element of <item> but recommended if you don't
want to receive a warning when validating your RSS.
echo "</channel></rss>";
?>

DM

--- End Message ---
--- Begin Message ---
After reading a topic on the list here about someone losing their website,
and having a minor mistake on my own that cost me a week's work on a file
(basically, tested the file, then uploaded to the live site and took the
daily backup off the live site.. only to find the file was messed up.. and
had to go to the weekly backup off cd to recover it, losing a week of
work)..

I'm wondering if anybody knows of a version control software program that
may fit my needs.

Basically, I'm looking for something that runs locally, not on the live
site, that I can edit the files on the dev computer, and store old versions
on the dev computer, and then just publish off of the local onto the live
site whenever I need to.

Anybody have any suggestons/ideas on how this should be done, and what
program is a good fit?

Thanks for any help,
Ben

--- End Message ---

Reply via email to