Having trouble running a PHP script locally.

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Mysterious Benefactor
-


Joined: 20 May 2004
Posts: 3

PostPosted: Mon Jun 21, 2004 5:32 pm    Post subject: Having trouble running a PHP script locally. Reply with quote

Hi all,

I'm sorry to bother everyone, but a little help would be vastly appreciated. I have been using phpBB on a remote site, but in preparation for a merger have mirrored my forum on a PC at my home here running as a web server to actually do the work. It's running Abyss (great little server, guys), PHP, MySQL, and the forum, and everything works well.

I found a script for merging phpBB databses here and have been attempting to run it. However, it never really starts; I only get a "Shifting IDs in table categories" message. I'm worried that the server isn't routing the interpreter to the script properly, though this is odd as the PHP based forum is working fine. I installed everything following this excellent tutorial, so those settings would be the same as mine. Also, everything (Abyss, MySQL) is running fine. Can anyone provide some input on my situation? Thanks, all!
Back to top View user's profile Send private message
Mysterious Benefactor
-


Joined: 20 May 2004
Posts: 3

PostPosted: Wed Jun 23, 2004 4:37 am    Post subject: Reply with quote

New info: I've found that running the script on my host's server (running Apache 1.3.29 and PHP 4.3.4) gets it going just fine. I've looked into my PHP (4.3.7) configuration, and everything seems to be working fine. I'm wondering if maybe it isn't the server, because it starts to run the scripts fine and just jams to a halt when it hits a $max parameter. Could the Abyss server be jamming up the PHP interpreter?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jun 24, 2004 4:27 pm    Post subject: Reply with quote

Mysterious Benefactor,

It seems that the problem comes from your PHP configuration. Try setting in php.ini:

Code:
register_globals = on


and retry your script. If this doesn't help, please send the URL of the script (where we can download a copy) and your php.ini file to support@aprelium.com .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
00squeaky
-


Joined: 11 May 2004
Posts: 60

PostPosted: Sun Jun 27, 2004 11:15 pm    Post subject: Reply with quote

your id's in the table are the same.
unless the id's of everything in the tables was shifted, it is impossible to merge it.

i'm talkng about this column
Code:

+---+   Merging with  +---+
| id|                 | id|
+---+                 +---+
| 1 |                 | 1 |
| 2 |                 | 2 |
| 3 |                 | 3 |
+---+                 +---+


it cannot work
_________________
Languages mastered:
HTML,GML,C,PHP,MYSQL (not really a language, but wtf)
Back to top View user's profile Send private message
Mysterious Benefactor
-


Joined: 20 May 2004
Posts: 3

PostPosted: Mon Jun 28, 2004 7:47 pm    Post subject: Reply with quote

Thanks, but the tables were quite different. :) Aprelium, here is the script. I got it running on my host's server who is running Apache and Linux. :( I hope you can figure something out; Abyss is downright elegant when compared to Apache. ;)

[Too long code - was removed by the moderator]
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group