php-general Digest 10 Oct 2011 18:33:16 -0000 Issue 7513

Topics (messages 315199 through 315211):

Re: Need help Wth PHP
        315199 by: Rod Lindgren
        315200 by: Lester Caine
        315201 by: Jeffrin Jose
        315203 by: Jen Rasmussen
        315204 by: Jen Rasmussen

Re: Server Side Include translator as PHP functions
        315202 by: Tedd Sperling
        315205 by: Complex

Multiple SQLite statements
        315206 by: Tim Streater

Please unsubscribe
        315207 by: Joao Coelho
        315209 by: Jim Lucas

Oi , Portas/ Hello, Ports
        315208 by: QI.VOLMAR QI
        315210 by: Jim Giner
        315211 by: Ashley Sheridan

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
I was able to install Wordpress, but how do I identify the database from the
original site? Do I need to change some settings in it somewhere with the
authorizations from the new install on the new server? Right now, if you go
to the website, a generic page created by the install comes up. I seem to
have lost the original page. 

Thanks,
Rod

-----Original Message-----
From: Lester Caine [mailto:les...@lsces.co.uk] 
Sent: Sunday, October 09, 2011 11:31 PM
To: php-gene...@lists.php.net
Subject: Re: [PHP] Need help Wth PHP

Rod Lindgren wrote:
> Thanks for the link. I am now wondering if Wordpress is available on my
> server.
If it's not, you can add it yourself in much the same way you uploaded the 
'profile' for the wordpress site ... http://wordpress.org/download/
Essentially it is just another PHP application, but you do need the database

that goes with the original site.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11


--- End Message ---
--- Begin Message ---
Rod Lindgren wrote:
I was able to install Wordpress, but how do I identify the database from the
original site? Do I need to change some settings in it somewhere with the
authorizations from the new install on the new server? Right now, if you go
to the website, a generic page created by the install comes up. I seem to
have lost the original page.

On the original host, there would be a mysql database in addition to the 'website' and it is that which you need to copy over. This is where it gets fun as there is no one way of doing it and it depends on the hosts way of providing mysql databases :(

( I don't use mysql at all myself, but someone should be able to direct you to the right way of doing it )

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--- End Message ---
--- Begin Message ---
there is a file called wp-config.h  in wordpress files mostly located 
in the source parent there you can see the database name , username
and password. that file also may contain the site url. This way you may
be able to identify the database from the original site. 

If you do not have wordpress in your new server you may be able
to install it using cpanel application..


 
software engineer
department of computer science
Rajagiri school of engineering and technology.


>________________________________
>From: Rod Lindgren <r...@okinawa-te.info>
>To: 'Lester Caine' <les...@lsces.co.uk>; php-gene...@lists.php.net
>Sent: Monday, 10 October 2011 1:37 PM
>Subject: RE: [PHP] Need help Wth PHP
>
>I was able to install Wordpress, but how do I identify the database from the
>original site? Do I need to change some settings in it somewhere with the
>authorizations from the new install on the new server? Right now, if you go
>to the website, a generic page created by the install comes up. I seem to
>have lost the original page. 
>
>Thanks,
>Rod
>
>-----Original Message-----
>From: Lester Caine [mailto:les...@lsces.co.uk] 
>Sent: Sunday, October 09, 2011 11:31 PM
>To: php-gene...@lists.php.net
>Subject: Re: [PHP] Need help Wth PHP
>
>Rod Lindgren wrote:
>> Thanks for the link. I am now wondering if Wordpress is available on my
>> server.
>If it's not, you can add it yourself in much the same way you uploaded the 
>'profile' for the wordpress site ... http://wordpress.org/download/
>Essentially it is just another PHP application, but you do need the database
>
>that goes with the original site.
>
>-- 
>Lester Caine - G8HFL
>-----------------------------
>Contact - http://lsces.co.uk/wiki/?page=contact
>L.S.Caine Electronic Services - http://lsces.co.uk
>EnquirySolve - http://enquirysolve.com/
>Model Engineers Digital Workshop - http://medw.co.uk//
>Firebird - http://www.firebirdsql.org/index.php
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>-----
>No virus found in this message.
>Checked by AVG - www.avg.com
>Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
>-----
>No virus found in this message.
>Checked by AVG - www.avg.com
>Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
>-----
>No virus found in this message.
>Checked by AVG - www.avg.com
>Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
>
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>

--- End Message ---
--- Begin Message ---
If I remember this correctly ... 

The database information can be setup/modified only with the
install/reinstall. 
If the DB's are moving to a new server, You have to copy out the databases
directly from the DB manager and then do a fresh install of WP. 
You should also copy out any custom theme css .. 

When you go through the installation process, you can specify your new DB
access info and then once installed and theme selected, 
copy in the archived CSS from the old install. It's a bit tricky. 

I'm trying to direct you to the correct process based on memory from when
I've had to do in the past,
so apologies if it's a bit spotty but it is definitely more of a manual than
automated process.

1. Backup DB's directly from old DB manager (i.e. MySQL or other)
2. Archive custom theme css if applied
3. Export posts from old WP install admin as a safety measure 
4. New install of WP at new URL 
4. Specify new server DB access info and new WP and site URL's during new
install
5. Apply appropriate theme and update any custom css with archived css from
old install.

I hope that helps... not saying this is the only way if there is other
advice to be offered, but this is what has worked for me. 

Jen


-----Original Message-----
From: Rod Lindgren [mailto:r...@okinawa-te.info] 
Sent: Monday, October 10, 2011 3:08 AM
To: 'Lester Caine'; php-gene...@lists.php.net
Subject: RE: [PHP] Need help Wth PHP

I was able to install Wordpress, but how do I identify the database from the
original site? Do I need to change some settings in it somewhere with the
authorizations from the new install on the new server? Right now, if you go
to the website, a generic page created by the install comes up. I seem to
have lost the original page. 

Thanks,
Rod

-----Original Message-----
From: Lester Caine [mailto:les...@lsces.co.uk] 
Sent: Sunday, October 09, 2011 11:31 PM
To: php-gene...@lists.php.net
Subject: Re: [PHP] Need help Wth PHP

Rod Lindgren wrote:
> Thanks for the link. I am now wondering if Wordpress is available on my
> server.
If it's not, you can add it yourself in much the same way you uploaded the 
'profile' for the wordpress site ... http://wordpress.org/download/
Essentially it is just another PHP application, but you do need the database

that goes with the original site.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11


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




--- End Message ---
--- Begin Message ---
Ok, scratch "the db info can only be setup/modified with
install/reinstall"..
Forgot about wp-config.php ...doh!

Otherwise, you still need to backup the DBs from old server manually and
move them
to the new DB manager. I believe I did a fresh install because you also have
to update the URL settings in WP admin and I think I just found it easier
and less confusing
to do it the way I recommended.

Whoops ..good luck! 
Jen


-----Original Message-----
From: Jen Rasmussen [mailto:j...@cetaceasound.com] 
Sent: Monday, October 10, 2011 8:32 AM
To: r...@okinawa-te.info; php-gene...@lists.php.net
Subject: RE: [PHP] Need help Wth PHP

If I remember this correctly ... 

The database information can be setup/modified only with the
install/reinstall. 
If the DB's are moving to a new server, You have to copy out the databases
directly from the DB manager and then do a fresh install of WP. 
You should also copy out any custom theme css .. 

When you go through the installation process, you can specify your new DB
access info and then once installed and theme selected, 
copy in the archived CSS from the old install. It's a bit tricky. 

I'm trying to direct you to the correct process based on memory from when
I've had to do in the past,
so apologies if it's a bit spotty but it is definitely more of a manual than
automated process.

1. Backup DB's directly from old DB manager (i.e. MySQL or other)
2. Archive custom theme css if applied
3. Export posts from old WP install admin as a safety measure 
4. New install of WP at new URL 
4. Specify new server DB access info and new WP and site URL's during new
install
5. Apply appropriate theme and update any custom css with archived css from
old install.

I hope that helps... not saying this is the only way if there is other
advice to be offered, but this is what has worked for me. 

Jen


-----Original Message-----
From: Rod Lindgren [mailto:r...@okinawa-te.info] 
Sent: Monday, October 10, 2011 3:08 AM
To: 'Lester Caine'; php-gene...@lists.php.net
Subject: RE: [PHP] Need help Wth PHP

I was able to install Wordpress, but how do I identify the database from the
original site? Do I need to change some settings in it somewhere with the
authorizations from the new install on the new server? Right now, if you go
to the website, a generic page created by the install comes up. I seem to
have lost the original page. 

Thanks,
Rod

-----Original Message-----
From: Lester Caine [mailto:les...@lsces.co.uk] 
Sent: Sunday, October 09, 2011 11:31 PM
To: php-gene...@lists.php.net
Subject: Re: [PHP] Need help Wth PHP

Rod Lindgren wrote:
> Thanks for the link. I am now wondering if Wordpress is available on my
> server.
If it's not, you can add it yourself in much the same way you uploaded the 
'profile' for the wordpress site ... http://wordpress.org/download/
Essentially it is just another PHP application, but you do need the database

that goes with the original site.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11


-- 
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




--- End Message ---
--- Begin Message ---
On Oct 9, 2011, at 7:43 PM, Tommy Pham wrote:

> On Sun, Oct 9, 2011 at 8:41 AM, Complex <complex.confus...@gmail.com> wrote:
> 
>> Tedd,
>> 
>> The crucial detail you're lookign for is my lack of choice or control
>> in the matter, for all sorts of reasons that are actually quite stupid
>> but not possible for *me* to change, and not possible for anyone else
>> to change quickly. Thus I am looking for a solution to the problem at
>> hand, instead of a suggestion for what the entire org should be doing
>> instead. I know what they should be doing instead, but that's not my
>> decision. It's not like I'm building a new website this way; I'm
>> trying to move forwards with an existing and large website. The more
>> different code-bases we have for different parts of the site, the
>> harder it will be to actually change to something else (PHP-based, I
>> pray).
>> 
>> 
> At the time when I was working with ASP and SSI, I suggested my client to
> better rewrite the application in OOP language then do patchworks.  But he
> _insisted_ on keeping existing code base.  So I did patchworks here and
> there.  It got to the point where he finally wanted some additional features
> much later that it was impossible to do with ASP and SSI.  It was then that
> he finally decided to go with my suggestions, which is months later.  During
> that time, I could have easily rewritten the application in PHP.  That's why
> I suggested you to consider the site's function and features.  It maybe just
> one thing that the client/boss wants now, then another, and another...
> etc...  Eventually, you're going to through the same thing I did.
> 
> Good luck,
> Tommy

Not me.

I pick and choose my clients based upon several things -- one is their ability 
to fully understand what they want. And if what they want exceeds their 
understanding and thus my comfort level, then I walk.

Live is too short to work for ignorant people. Realize that if they don't 
understand the job, then they won't appreciate the effort, and you won't be 
paid as you should.

Several years ago, one guy asked me how much do I charge. At that time I said 
"$50 per hour" He replied "I've never paid more than $25 per hour -- would you 
consider working for that?" I replied "Sure, but it's going to take me twice as 
long to get anything done." Needless to say, I didn't get hired.

A year later he returned and we had the identical conversation again. It was 
clear that he didn't like the programmers he hired at $25 per hour, but he 
continued looking.

In addition to failing to get what he wanted, he didn't realized that his time 
is also worth something and he was wasting it by measuring programmers by a 
single metric. Some clients are simply not worth the effort and that's my point.

Cheers,

tedd

_____________________
t...@sperling.com
http://sperling.com


--- End Message ---
--- Begin Message ---
Ah, well, thanks for the job advice, guys. I'll go looking elsewhere
for possible PHP solutions. Or, failing that, continue the build up to
actually being able to replace all of this with a company-wide (and
hopefully PHP-based) solution.

--- End Message ---
--- Begin Message ---
I would like to use the SQLite3 (not PDO) interface to SQLite, and I would like 
to be able to supply a string containing several SQL statements and have them 
all executed, thus saving the overhead of several calls. It *appears* that this 
may be how it actually works, but I wondered if anyone could confirm that.

--
Cheers  --  Tim

--- End Message ---
--- Begin Message ---
I have been sending emails to this list to unsubscribe and i still receive 
emails.

CONFIDENTIALITY NOTICE: This communication with its contents may contain 
confidential and/or legally privileged information. It is solely for the use of 
the intended recipient(s). Unauthorized interception, review, use or disclosure 
is prohibited and may violate applicable laws including the Electronic 
Communications Privacy Act. If you are not the intended recipient, please 
contact the sender and destroy all copies of the communication.

--- End Message ---
--- Begin Message ---
On 10/10/2011 8:26 AM, Joao Coelho wrote:
> I have been sending emails to this list to unsubscribe and i still receive 
> emails.
> 

To unsubscribe, visit: http://www.php.net/unsub.php



-- 
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

C - (541) 408-5189
O - (541) 323-9113
H - (541) 323-4219

--- End Message ---
--- Begin Message ---
Alguem sabe se, e como eu posso trabalhar com as portas do computador com
php no windows?

Do someone know if, and how, I could work with Computer logical ports with
PHP on Windows?

ex: shell_exec('cat /dev/usbmon0 | hexdump'); <- Linux

--- End Message ---
--- Begin Message ---
""QI.VOLMAR QI"" <qi.vol...@gmail.com> wrote in message 
news:cab7l6ey9rkfwtmprpe0fk3doo5s1c5jyhpnbt5rjj0f_eb5...@mail.gmail.com...
> Alguem sabe se, e como eu posso trabalhar com as portas do computador com
> php no windows?
>
> Do someone know if, and how, I could work with Computer logical ports with
> PHP on Windows?
>
> ex: shell_exec('cat /dev/usbmon0 | hexdump'); <- Linux
>

If you mean "use php to interrogate a port" I would think the answer is No. 
Computer port=client; PHP=server. 



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

Jim Giner <jim.gi...@albanyhandball.com> wrote:

>
>""QI.VOLMAR QI"" <qi.vol...@gmail.com> wrote in message
>news:cab7l6ey9rkfwtmprpe0fk3doo5s1c5jyhpnbt5rjj0f_eb5...@mail.gmail.com...
>> Alguem sabe se, e como eu posso trabalhar com as portas do computador
>com
>> php no windows?
>>
>> Do someone know if, and how, I could work with Computer logical ports
>with
>> PHP on Windows?
>>
>> ex: shell_exec('cat /dev/usbmon0 | hexdump'); <- Linux
>>
>
>If you mean "use php to interrogate a port" I would think the answer is
>No.
>Computer port=client; PHP=server.
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

You can if the port is a server port, i.e. you're creating a daemon. But, if it 
is the client machine you wish to inspect, then as Jim mentioned, PHP is not 
for you and something like java may be better suited, although I'm not sure how 
much power an applet has in this area.

Thanks,
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

--- End Message ---

Reply via email to